首页 > 系统相关 >Android adb shell content命令

Android adb shell content命令

时间:2023-06-26 10:58:08浏览次数:32  
标签:shell -- uri value content adb Android

 

 

adb shell content


usage: adb shell content [subcommand] [options]

usage: adb shell content insert --uri <URI> [--user <USER_ID>] --bind <BINDING> [--bind <BINDING>...] [--extra <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>] [--extra <BINDING>...]
  <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>] [--extra <BINDING>...]
  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>] [--extra <BINDING>...]
  <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/

 

标签:shell,--,uri,value,content,adb,Android
From: https://www.cnblogs.com/onelikeone/p/17505054.html

相关文章

  • 小鹏内部独家Android车载系统开发指南开源了
    众所周知,国内的安卓市场内卷极其严重,原生应用开发可谓是寸步难行,想必大家在最近的面试中能看出,要么面试完全没机会,要么薪资对半砍,一天比一天难......但细看整个Android生态却无比繁荣,手机、平板、电视、音视频等等,特别是在智能汽车+电动汽车的浪潮下,诞生出一大批高薪岗位。车载成为......
  • Android学习第一书
    大家好,我是一名Facebook的工程师,同时也是《第一行代码——Android》的忠实读者。虽然我最近几年是在国外读书和工作的,但是和很多人一样,我也非常喜欢郭霖的博客以及他写的《第一行代码——Android》。事实上,这本书在我面试Facebook的时候给我提供了很大的帮助。为此,我专门为这本书......
  • Android开发找工作之前先看看这些面试题吧
    前言要想在众多的Android竞争者中脱颖而出,就需要有扎实的技术功底和丰富的项目经验。而要证明自己的能力,就需要通过面试。面试是一个考验你综合素质的过程,不仅要回答好技术问题,还要展示你的沟通能力、逻辑思维、学习能力等。所以,在准备面试的时候,不要只关注知识点的复习,还要注意模......
  • Linux扩展篇-shell编程(八)-shell字符串截取
    shell字符串截取,一般包含从指定位置和从指定字符截取。一、从指定位置截取从字符串左边开始计数格式:${string:start:length}从string字符串的左边第start个字符开始,向右截取length个字符。${string:start}从string字符串的左边第start个字符开始截取,直到最......
  • Shell判断是否包含给定字符串
    Shell判断是否包含给定字符串点击关注......
  • 强强联手:诚迈科技携手研华共同发起嵌入式Linux和Android联盟
    3月16日于2017年纽伦堡嵌入式电子与工业电脑应用展(EmbeddedWorld)上,全球智能系统领导厂商研华公司宣布与诚迈科技等9家公司作为联合发起人,共同宣布成立嵌入式Linux与Android联盟(ELAA)。ELAA主要在工业嵌入式市场推动开放、标准化的Linux和Android软硬件构架,诚迈科技及其......
  • 强强联手:诚迈科技携手研华共同发起嵌入式Linux和Android联盟
    3月16日于2017年纽伦堡嵌入式电子与工业电脑应用展(EmbeddedWorld)上,全球智能系统领导厂商研华公司宣布与诚迈科技等9家公司作为联合发起人,共同宣布成立嵌入式Linux与Android联盟(ELAA)。ELAA主要在工业嵌入式市场推动开放、标准化的Linux和Android软硬件构架,诚迈科技及其......
  • 强强联手:诚迈科技携手研华共同发起嵌入式Linux和Android联盟
    3月16日于2017年纽伦堡嵌入式电子与工业电脑应用展(EmbeddedWorld)上,全球智能系统领导厂商研华公司宣布与诚迈科技等9家公司作为联合发起人,共同宣布成立嵌入式Linux与Android联盟(ELAA)。ELAA主要在工业嵌入式市场推动开放、标准化的Linux和Android软硬件构架,诚迈科技及其......
  • Android面试题合集大全(2023最新版),1600+面试题附答案详解,字节大佬力推
    接触Android已经3年,在工作中遇到疑难问题总是在网上(csdn大牛博客,stackoverflow等)搜索答案,各位大牛大神总是把自己的经验分享出来,帮助我们这些需要帮助的人,由此表示衷心感谢!然而现在自己细想了一下,自己也是时候把遇到的问题并把解决方案分享出来,希望能帮助到有需要的人。现在小公司......
  • 清醒一点,当你还苦闷Android出路时,已经有人在为高级开发做准备
    程序员,你还要迷茫多久?程序员,一个特殊的群体,我们不知道为什么加入这个行业,也不知道这个行业还能做多久,不同人有着不同的故事、有着不同的迷茫。有的开发者起点太低,比如专科或者高中毕业,他们也在做IT。很多在我们眼里很一般的公司,他们却连面试机会都得不到,他们很苦恼很迷茫,甚至有很多......