Repository navigation
Leave out ALEX _id 0 rows from rebuilt provider databases - #2077
Merged
Merged
Conversation
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]>
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ALEX-rebuilt provider databases no longer produce SMS, MMS, call or calendar records that don't exist. Part of #2076.
ilapfuncs.pyspots a rebuilt database (user_version 0, main table_iddeclared TEXT) and leaves out its_id0 rows, with a log line.🤖 Generated with Claude Code


Confidence Score: 5/5 
The PR appears safe to merge; no actionable issues were found.Summary
The PR excludes ALEX-generated
_id0 rows from SMS, MMS, call, and calendar reports.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 --> EReviews (1) · Last reviewed commit: "Leave out ALEX _id 0 rows from rebuilt p..." · Reviewed by Greptile