Repository navigation
Add Maps Sync raw typed and sent map query artifacts - #2735
Conversation
…stored in ZMAPITEMSTORAGE and ZROUTEREQUESTSTORAGE BLOBs
…sent coverage claim on pre-iOS18 devices)
Select each history column only when the store has it, so stores without ZLATITUDE1 (the iOS 14 to 17 stores tested) keep their route and map item BLOBs. Type fields 8.1.3 and 8.1.7.10000 as bytes so short text is not read as a nested message, join distinct queries across payloads, and add the two query columns to Maps Favorites. Co-authored-by: nwish <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: nwish <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: nwish <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-authored-by: nwish <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Python runtime contract CI failures should be fixed in 27f8f28 (I forgot to update the header count assertion) |
|
Thanks @nwish for this one. The raw query field is a great find. It keeps the text someone typed before they picked a suggestion, and nothing else in the store has that. Thanks also for the header count fix, I rebased on top of it. I pushed a few commits on top of yours:
One question before I merge: is the iPhone 13 behind Your Windows note about |
|
Thanks! I appreciate the additional commits - I'm a freshie here, so at least I can follow along with what you add and save you some time on the next PR. The iPhone 13 behind |
On Windows get_sqlite_db_path puts the extended-length prefix in front of every database path, and SQLite cannot open a relative path with it, so every SQLite-backed case failed with "unable to open database file". process_artifact and test_module_output.py now resolve admin/test/temp. process_data takes the working directory off staged paths so snapshots still record admin/test/temp/... and hold no local folder. The new test runs on the Windows smoke job, where the open actually fails. Reported by the contributor of abrignoni#2735. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What this changes
Adds
Query (Sent)andQuery (Raw)columns to the Maps Sync artifact, extracted from base64placeRequest=payloads embedded in theZMAPITEMSTORAGE/ZROUTEREQUESTSTORAGEBLOBs (protobuf fields 8.1.3 and 10000 under 8.1.7). The raw field carries the partial text typed before an autocomplete suggestion was accepted — text that exists nowhere else in the store.For a new or changed artifact
ileapp.py -t ziprun against the dexter_ios18 FFS extraction: 50 rows, 30 with Query (Sent), 30 with Query (Raw) — matches the recorded baseline.python admin/scripts/check_artifact_output.py <report folder>on that report and fixed or documented every finding. 488 exports checked; Maps Sync produced no findings. On pre-iOS-18 extractions both columns are empty on every row; the notes name the columns and state they were absent from every row of the four pre-18 stores tested.MapsSync_0.0.1_deviceLocalCache.dbsidecar carries the same history schema but held 0 history rows on all three stores tested where present (see below).notes,descriptionandsample_datasay only what the data shows, and the numbers were re-derived from the finished run. All cited corpora are already registered entries, and I left my uncited test data out of the key list.Anything reviewers should know
appleMapsSearchHistory.pyhas extracted the same8.1.7.10000position from GeoHistory.mapsdata since 2021 — independent corroboration of the field path; that store is gone on modern iOS, so this applies the known pattern to the live store.deviceLocalCache.dbgap (future work): the sidecar shares the history schema and is skipped by the module'sendswith('MapsSync_0.0.1')filter. It was empty of history rows on every corpus image tested, but on real devices it could hold local-only rows — including payloads — that this artifact never surfaces.Windows test-harness snag
I hit a snag running
test_module.pyon Windows - the script stages case files into a relativeadmin/test/tempdir. On Windows,get_sqlite_db_pathprepends the extended-length prefix (\\?\), which SQLite can only resolve against an absolute path — every SQLite-backed artifact fails with "unable to open database file", then crashes on the None handle. I fixed this temporarily withbase_temp_dir = Path('admin/test/temp').resolve()on line ~194 oftest_module.pybut left it out of this PR.