Created
September 23, 2016 18:08
-
-
Save Jack2/e17728714dad2067b5894dd68787084c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dz> help app.provider.query | |
usage: run app.provider.query [-h] [--projection [columns [columns ...]]] | |
[--selection conditions] [--selection-args [arg [arg ...]]] | |
[--order by_column] [--vertical] | |
uri | |
Query a content provider | |
Examples: | |
Querying the settings content provider: | |
dz> run app.provider.query content://settings/secure | |
| _id | name | value | | |
| 5 | assisted_gps_enabled | 1 | | |
| 9 | wifi_networks_available_notification_on | 1 | | |
| 10 | sys_storage_full_threshold_bytes | 2097152 | | |
| ... | ... | ... | | |
Querying, with a WHERE clause in the SELECT statement: | |
dz> run app.provider.query content://settings/secure | |
--selection "_id=?" | |
--selection-args 10 | |
| _id | name | value | | |
| 10 | sys_storage_full_threshold_bytes | 2097152 | | |
Last Modified: 2012-11-06 | |
Credit: MWR InfoSecurity (@mwrlabs) | |
License: BSD (3 clause) | |
positional arguments: | |
uri the content provider uri to query | |
optional arguments: | |
-h, --help | |
--projection [columns [columns ...]] | |
the columns to SELECT from the database, as in "SELECT <projection> FROM ..." | |
--selection conditions | |
the conditions to apply to the query, as in "WHERE <conditions>" | |
--selection-args [arg [arg ...]] | |
any parameters to replace '?' in --selection | |
--order by_column the column to order results by | |
--vertical |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment