commit | a6d9a74768e77e80dc37bf4e61150dc69cc7539a | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Sep 07 01:12:31 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Sat Sep 07 01:12:31 2024 +0000 |
tree | af01c99bb1eebbc8e85a5444108467504260d1ca | |
parent | a7db27231198d678fcef5706c98c0ad83f044ccf [diff] | |
parent | 68bd02ba29f2b727995a25feb6bc4db974498cc6 [diff] |
Merge "Merge 24Q3 to AOSP main" into main
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