commit | 4b9da6fb6a4d3ffe657fc86e648047c9b4de2db6 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Apr 23 23:30:04 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Apr 23 23:30:04 2024 +0000 |
tree | 52c2b959a39791ec34a4f005f4c531696c82125a | |
parent | b1c7a4b98f0f6002e6865a82755eb9159c6ca7a4 [diff] | |
parent | f0034e18ee7f6a785cb6ff124ba059df89480e23 [diff] |
Merge "Snap for 11754915 from b90bfe114310f07fcf6a2d0b7d35d269fc6c5cce to sdk-release" into sdk-release
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