| commit | ef0d14299bd6745fd96f35f03a41ef6894985fd1 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 01:41:03 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 01:41:03 2024 +0000 |
| tree | b63c4a95ffb69ece0701d59d7a0a3ebf8702f207 | |
| parent | 6fa2480066ac7052c3c07937b208ca774f57ab96 [diff] | |
| parent | 549a1a15dba9edd300d59f9648bdc3d090762c08 [diff] |
Merge cherrypicks of ['googleplex-android-review.googlesource.com/28432396'] into 24Q3-release. Change-Id: I94e38d0081ab9ce1f040f30f8516066507feb60e
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