| commit | ed11413d226c5606a0ff1cedd32817c204d276c1 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 05 00:18:38 2024 +0000 |
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 05 00:18:38 2024 +0000 |
| tree | af576ba72daa3b4411d16d66392b6ea7fea3ef44 | |
| parent | 43d4e811a36e6ab87c445cfdea0044f598e875a0 [diff] | |
| parent | 2483792d1d9c38b0f95073c20558cf79b06c71bb [diff] |
Snap for 12748980 from 2483792d1d9c38b0f95073c20558cf79b06c71bb to 25Q1-release Change-Id: I400f95282a265c0d601bb6e4c808a221a4c399a0
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