当前位置:网站首页>ADB shell content command debug database
ADB shell content command debug database
2022-06-13 06:17:00 【Moon Mountain cicada】
adb shell content Instructions
usage: adb shell content [subcommand] [options]
usage: adb shell content insert --uri <URI> [--user <USER_ID>] --bind <BINDING> [--bind <BINDING>...]
<URI> a content provider URI.
<BINDING> binds a typed value to a column and is formatted:
<COLUMN_NAME>:<TYPE>:<COLUMN_VALUE> where:
<TYPE> specifies data type such as:
b - boolean, s - string, i - integer, l - long, f - float, d - double, n - null
Note: Omit the value for passing an empty string, e.g column:s:
Example:
# Add "new_setting" secure setting with value "new_value".
adb shell content insert --uri content://settings/secure --bind name:s:new_setting --bind value:s:new_value
usage: adb shell content update --uri <URI> [--user <USER_ID>] [--where <WHERE>]
<WHERE> is a SQL style where clause in quotes (You have to escape single quotes - see example below).
Example:
# Change "new_setting" secure setting to "newer_value".
adb shell content update --uri content://settings/secure --bind value:s:newer_value --where "name='new_setting'"
usage: adb shell content delete --uri <URI> [--user <USER_ID>] --bind <BINDING> [--bind <BINDING>...] [--where <WHERE>]
Example:
# Remove "new_setting" secure setting.
adb shell content delete --uri content://settings/secure --where "name='new_setting'"
usage: adb shell content query --uri <URI> [--user <USER_ID>] [--projection <PROJECTION>] [--where <WHERE>] [--sort <SORT_ORDER>]
<PROJECTION> is a list of colon separated column names and is formatted:
<COLUMN_NAME>[:<COLUMN_NAME>...]
<SORT_ORDER> is the order in which rows in the result should be sorted.
Example:
# Select "name" and "value" columns from secure settings where "name" is equal to "new_setting" and sort the result by name in ascending order.
adb shell content query --uri content://settings/secure --projection name:value --where "name='new_setting'" --sort "name ASC"
usage: adb shell content call --uri <URI> --method <METHOD> [--arg <ARG>]
[--extra <BINDING> ...]
<METHOD> is the name of a provider-defined method
<ARG> is an optional string argument
<BINDING> is like --bind above, typed data of the form <KEY>:{
b,s,i,l,f,d}:<VAL>
usage: adb shell content read --uri <URI> [--user <USER_ID>]
Example:
adb shell 'content read --uri content://settings/system/ringtone_cache' > host.ogg
usage: adb shell content write --uri <URI> [--user <USER_ID>]
Example:
adb shell 'content write --uri content://settings/system/ringtone_cache' < host.ogg
usage: adb shell content gettype --uri <URI> [--user <USER_ID>]
Example:
adb shell content gettype --uri content://media/internal/audio/media/
Example :
hold MediaProvider Media library external.db Database file Print out the data of the table
$ adb shell content query --uri content://media/external/file > D:\media_provider_external_file_table.txt
$ adb shell content query --uri content://media/external/images/media
MediaProvider Media library internal.db database
$ adb shell content query --uri content://media/internal/audio/media
$ adb shell content query --uri content://media/internal/audio/media/99
C:\Users\luoqingyan>adb shell
:/ $ su
:/ # content query --uri content://media/external/file --where "_data='/storage/emulated/0/DCIM/Camera'"
More examples of database fields :
$ adb shell
$ content query --uri content://media/external/file --where _data="'/storage/emulated/0/DCIM/Camera/d4fc6c4c273b2ce2406533de0655ad76.mp4'"
hold datetaken The field value of is changed to 0
$ adb shell content update --uri content://media/external/file --bind datetaken:l:0 --where _data="'/storage/emulated/0/DCIM/Camera/d4fc6c4c273b2ce2406533de0655ad76.mp4'"
边栏推荐
- App performance test: (IV) power
- Echart histogram: stack histogram value formatted display
- 《MATLAB 神经网络43个案例分析》:第11章 连续Hopfield神经网络的优化——旅行商问题优化计算
- Free screen recording software captura download and installation
- 楊輝三角形詳解
- AI realizes "Resurrection" of relatives | old photo repair | old photo coloring, recommended by free app
- 1+1>2,Share Creators可以帮助您实现
- FusionPBX 安装 —— 筑梦之路
- Rk3399 hid gadget configuration
- Echart柱状图:堆叠柱状图value格式化显示
猜你喜欢

电镀挂具RFID工序管理解决方案

Echart line chart: different colors are displayed when the names of multiple line charts are the same

Detailed explanation of PHP distributed transaction principle

Fichier local second Search Tool everything

Echart柱状图:echart实现堆叠柱状图

免费录屏软件Captura下载安装

《MATLAB 神经网络43个案例分析》:第10章 离散Hopfield神经网络的分类——高校科研能力评价

Custom view - extensible collapsexpendview

Huawei developer certification and deveco studio compiler Download

Echart rectangular tree diagram: simple implementation of rectangular tree diagram
随机推荐
自我总结ing
Local file search tool everything
安全基线检查脚本—— 筑梦之路
Uni app upload file
php redis 制作高迸发秒杀
App performance test: (IV) power
Learning records countless questions (JS)
The difference between the increment and decrement operators before and after variables i+, +i, I –, – I
Uni app dynamic setting title
Binary search
Echart柱状图:堆叠柱状图显示value
Not in the following list of legal domain names, wechat applet solution
Uniapp hides the scroll bar of scroll view
JS convert text to language for playback
Record the basic use of zxing, the Google open source library, to generate and read QR codes
PHP redis makes high burst spike
JVM基础
电镀挂具RFID工序管理解决方案
Regular verification of mobile phone number, landline email ID card
CORS request principle