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.
- Add tools to path
source contactsproviderutils.sh - Pull
contacts2.dband query:This will open a sql terminal withsqlite3-pullrlwrapwhich can be easily used for queries. - Pull
contacts2.dband query with a graphical interface:sqlitebrowser-pull - Push local updates to the device:
sqlite3-push