Skip to content

Add google pay parser - #1496

Merged
abrignoni merged 6 commits into
abrignoni:mainfrom
prcharan592:add-google-pay-parser
Oct 16, 2026
Merged

abrignoni merged 6 commits into
abrignoni:mainfrom
prcharan592:add-google-pay-parser

Conversation

@prcharan592

Copy link
Copy Markdown

Summary

Adds Google Pay parsing support for Android extractions.

New artifacts

  • Google Pay Transactions
  • Google Pay UPI IDs
  • Google Pay People support for compatible PaisaUserDatabase databases

Parsing

The parser processes Google Pay conversation-card data stored in data.db and decodes the protobuf payloads to extract:

  • Transaction date
  • Direction
  • Amount and currency
  • Transaction status
  • Counterparty information
  • UPI ID
  • Bank information
  • UPI reference
  • Owner UPI ID/account
  • Transaction ID
  • Card ID
  • First/last seen timestamps for UPI identities

Testing

Added privacy-safe synthetic Google Pay test data and regression baselines.

Validation:

python .\admin\test\scripts\run_test_cases.py --module googlePay --strict

Result:

  • get_googlePay_transactions: PASS — 2 rows
  • get_googlePay_upi_ids: PASS — 2 rows

Also includes a Windows test extraction path-resolution fix required for the SQLite regression fixture.

CharanDSCI and others added 6 commits October 4, 2026 07:50
Drop the Google Pay People artifact, which has no test data yet.
Report state code 8 as Unknown with its code. Move two docstrings
above the first statement, remove cut-off comments, and reword the
UPI IDs description. Leave the test harness path change for its own PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
data/data/<pkg> and data/user/0/<pkg> are the same storage, so both
artifacts reported every row twice when an extraction carried both.
Use unique_files like the other modules. Refresh the test baselines
for the Unknown (8) status.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Say where the field mapping comes from, note the Transaction Date
fallback and the second Device Owner rule, and put First Seen beside
Last Seen.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni

Copy link
Copy Markdown
Owner

Thanks for this, @prcharan592. Nice work on the protobuf decoding. I pushed a few changes to your branch so we can merge it:

  • Took out Google Pay People for now. There is no test data for it, so we cannot check it. Happy to take it back in its own PR with a fixture.
  • Both artifacts now use unique_files. Without it, an extraction with both data/data and data/user/0 reported every row twice.
  • State code 8 now shows as Unknown (8). The comment explaining why 8 means completed was cut off. If you can tell us what you saw for code 8, we can add the label back.
  • Fixed the lint and claim-language failures (misplaced docstrings, the word "every").
  • Notes now say the field mapping comes from the data you worked from and has not been checked against another sample.
  • First Seen moved next to Last Seen.
  • The test_module.py change is now its own PR, Resolve the test harness temp folder to an absolute path #1727, with credit to you.

@abrignoni
abrignoni merged commit a154bfb into abrignoni:main Oct 16, 2026
11 checks passed
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.

3 participants