Skip to content

Leave out ALEX _id 0 rows from rebuilt provider databases - #2077

Merged
abrignoni merged 1 commit into
mainfrom
alex-rebuilt-provider-dbs
Nov 25, 2026
Merged

abrignoni merged 1 commit into
mainfrom
alex-rebuilt-provider-dbs

Conversation

@abrignoni

@abrignoni abrignoni commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

ALEX-rebuilt provider databases no longer produce SMS, MMS, call or calendar records that don't exist. Part of #2076.

  • New helper in ilapfuncs.py spots a rebuilt database (user_version 0, main table _id declared TEXT) and leaves out its _id 0 rows, with a log line.
  • Times stored as the text 0 are blank, and MMS Direction decodes a text msg_box.
  • Tested on new known data emu_a15_alex_prfs_empty_20261125 and emu_a15_alex_prfs_sms_20261125 (ALEX backups of an emulator). On galaxys10_a10 and kevin_pocox7_a15 the TSV output of these artifacts is byte-identical to main.
  • No real call, calendar or MMS row from a rebuild was available; the notes say so.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

The PR appears safe to merge; no actionable issues were found.

Summary

The PR excludes ALEX-generated _id 0 rows from SMS, MMS, call, and calendar reports.

  • SMS and MMS reports skip ALEX-generated rows in rebuilt databases.
  • Call reports leave ALEX-generated rows out of rebuilt call logs.
  • Calendar reports leave ALEX-generated rows out of rebuilt databases.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Read provider database] --> B{Version 0 and main _id declared TEXT?}
    B -->|No| C[Keep every row]
    B -->|Yes| D[Log count and exclude _id 0 rows]
    C --> E[Build artifact rows]
    D --> E
Loading

Reviews (1) · Last reviewed commit: "Leave out ALEX _id 0 rows from rebuilt p..." · Reviewed by Greptile

ALEX can rebuild mmssms.db, calllog.db, contacts2.db and calendar.db from
content query output. For an empty provider it writes one row of defaults
with _id 0, which the SMS, MMS, call log and calendar artifacts reported
as real records dated 1970-01-01. A value holding "Row: <n>" also becomes
an extra _id 0 row.

A shared helper recognises a rebuilt database (user_version 0 and the main
table's _id declared TEXT) and gives the artifacts a condition that drops
the _id 0 rows and logs how many. Device databases are read as before.
Times stored as the text 0 are blank like a stored 0, and MMS Direction
decodes a msg_box stored as text.

Part of #2076.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant