| commit | 9516431f45c80bf1ebcb03f1af56babcd5f8cfaa | [log] [tgz] |
|---|---|---|
| author | Marcus Hagerott <mhagerott@google.com> | Wed Jul 30 17:32:17 2025 +0000 |
| committer | Marcus Hagerott <mhagerott@google.com> | Wed Aug 13 16:17:16 2025 +0000 |
| tree | ea9c596e43757431261b3b79a4549e26c26d1e40 | |
| parent | c4b68202dd688578fc396e6825fae31c6ec826b7 [diff] |
Move some logic into LogFields build method This makes the logic simpler to test. Bug: 427735757 Flag: EXEMPT refactor Test: m ContactsProvider Change-Id: Ic6a89ea84ea277902ef6c79bec92d770c5995684
Running ./logging.sh will enable all verbose logs for the queries in the provider. More details in the script itself.
There are 2 different ways to easily query the database, qc and contatcsproviderutils.sh.
qc queries the deivce directly. For usage, append the query in single quotes after the command:
e.g.
qc/qc 'select * from raw_contacts'
or to get all the tables
qc/qc '.tables'
QC support SQLite language, but it might have some limitations working with complex nested queries.
This script downlaods the database locally and logins into a local version. It is also possible to push any change back to the device.
source contactsproviderutils.sh
contacts2.db and query:sqlite3-pullThis will open a sql terminal with
rlwrap which can be easily used for queries.contacts2.db and query with a graphical interface:sqlitebrowser-pull
sqlite3-push