Skip to content

Convert lgRCS to artifact_processor#873

Merged
abrignoni merged 1 commit into
mainfrom
convert-lgrcs
Jun 22, 2026
Merged

Convert lgRCS to artifact_processor#873
abrignoni merged 1 commit into
mainfrom
convert-lgrcs

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Converts the LG RCS chats artifact to LAVA @artifact_processor — a single consolidated table of messagefile_info from mmssms.db.

Change

  • Was an ArtifactHtmlReport with a latent bug: it populated data_list for the HTML table but built a separate, always-empty tsv_list and passed that to tsv() and timeline() — so the TSV and timeline exports were always empty. The framework now generates all outputs from the returned rows.
  • Timestamp (epoch ms) → timezone-aware UTC datetime (blank when date <= 0, matching the original CASE).
  • Dropped the dead get_offline_path helper; query wrapped in try/except sqlite3.Error; kept the mmssms.db basename + magisk-mirror filtering and the message-table existence check.

Verification

  • Compiles; pylint clean (-d C,R); column names pass a live CREATE TABLE (incl. read/date/body); name unique; PluginLoader 499 incl. get_lgRCS.
  • Fixture test (messagefile_info): a message with an attachment joins its file fields, a date=0 message yields a blank timestamp, and a message with no file_info row gets NULL file fields — timestamps aware-UTC.

Single LAVA table of LG RCS chat messages (message left join file_info from
mmssms.db). Was an ArtifactHtmlReport that also had a latent bug: it built an
empty 'tsv_list' and passed that (not data_list) to tsv()/timeline(), so the
TSV and timeline outputs were always empty -- now the framework generates
them from the returned rows. Timestamp (ms) -> aware UTC (blank when date<=0);
dropped the dead get_offline_path helper; read-only DB access guarded.
@abrignoni abrignoni merged commit b00bb7d into main Jun 22, 2026
2 checks passed
@abrignoni abrignoni deleted the convert-lgrcs branch June 22, 2026 15:37
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