• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

qc/15-Dec-2024-130105

res/14-Jan-2024-3,2271,778

src/com/android/providers/contacts/14-Jan-2024-41,31929,857

test_common/14-Jan-2024-728455

tests/15-Dec-2024-34,79026,053

tools/14-Jan-2024-326

Android.bpD15-Dec-20241.2 KiB4440

AndroidManifest.xmlD15-Dec-20247 KiB141114

CleanSpec.mkD14-Jan-20242.2 KiB500

OWNERSD15-Dec-2024208 1210

PREUPLOAD.cfgD15-Dec-2024106 22

README-tests.mdD14-Jan-2024103 85

README.mdD15-Dec-20241.1 KiB4536

TEST_MAPPINGD14-Jan-2024304 1615

contactsproviderutils.shD15-Dec-20242.1 KiB8462

logging.shD15-Dec-2024598 178

proguard.flagsD14-Jan-2024390 1613

README-tests.md

1# Running tests
2
3Use the following command to run the unit tests.
4
5```
6atest ContactsProviderTests
7```
8

README.md

1# Debugging Tools
2## Enable all verbose logs
3Running `./logging.sh` will enable all verbose logs for the queries in the provider.
4More details in the script itself.
5
6## Querying the database
7There are 2 different ways to easily query the database, `qc` and `contatcsproviderutils.sh`.
8
9### QC usage
10`qc` queries the deivce directly. For usage, append the query in single quotes after the command:
11
12e.g.
13```
14qc/qc 'select * from raw_contacts'
15```
16
17or to get all the tables
18```
19qc/qc '.tables'
20```
21QC support SQLite language, but it might have some limitations working with complex nested queries.
22
23### contactsproviderutils.sh usage
24
25This script downlaods the database locally and logins into a local version. It is also possible to push any change back to the device.
26
27* Add tools to path
28    ```
29    source contactsproviderutils.sh
30    ```
31* Pull `contacts2.db` and query:
32    ```
33    sqlite3-pull
34    ```
35    This will open a sql terminal with `rlwrap` which can be easily used for queries.
36* Pull `contacts2.db` and query with a graphical interface:
37    ```
38    sqlitebrowser-pull
39    ```
40* Push local updates to the device:
41    ```
42    sqlite3-push
43    ```
44
45