ContactsProvider: Bring in the new icon

* Part of the new iconset made by Asher Simonds

Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: I63b4ec6555e093cac9c044068b19efd7a4864448
4 files changed
tree: 27fac60b90b41b2e79a5c4dc6a91ff517af3dae4
  1. Android.bp
  2. AndroidManifest.xml
  3. CleanSpec.mk
  4. OWNERS
  5. PREUPLOAD.cfg
  6. README-tests.md
  7. README.md
  8. TEST_MAPPING
  9. contactsprovider_flags.aconfig
  10. contactsproviderutils.sh
  11. logging.sh
  12. proguard.flags
  13. qc/
  14. res/
  15. src/
  16. test_common/
  17. tests/
  18. tools/
README.md

Debugging Tools

Enable all verbose logs

Running ./logging.sh will enable all verbose logs for the queries in the provider. More details in the script itself.

Querying the database

There are 2 different ways to easily query the database, qc and contatcsproviderutils.sh.

QC usage

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.

contactsproviderutils.sh usage

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.db and query:
    sqlite3-pull
    
    This will open a sql terminal with rlwrap which can be easily used for queries.
  • Pull contacts2.db and query with a graphical interface:
    sqlitebrowser-pull
    
  • Push local updates to the device:
    sqlite3-push