commit | c1f57b2f48a57b4c9684dc3fd1a1a96af808a0d7 | [log] [tgz] |
---|---|---|
author | Yan Yan <evitayan@google.com> | Thu Sep 26 17:05:35 2024 -0700 |
committer | Yan Yan <evitayan@google.com> | Thu Sep 26 17:31:49 2024 -0700 |
tree | 72f0fed0e14cc91c84d5377202048a6ac97f0e1d | |
parent | 1d0dae7bf093568636fce31dba3654687ebe6fdb [diff] |
Update MockTelephonyManager to align with the method being overriden Signature of TelephonyManager#getPackagesWithCarrierPrivileges has changed. This patch updates MockTelephonyManager to be aligned with that change. Bug: 366598445 Bug: 367831385 Test: atest CtsTelephonyTestCases:TelephonyManagerTest Test: atest ContactsProviderTests Flag: android.os.mainline_vcn_platform_api Change-Id: I541bd4eb29abf970ff653c07b6c850dbd73dc8ff
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