android content命令

  • Post author:
  • Post category:其他


content主要是和数据库进行交互,对数据库进行增删改查操作。

用法:

adb shell content [subcommand] [options]

adb shell content insert –uri <URI> [–user <USER_ID>] –bind <BINDING> [–bind <BINDING>…]

adb shell content update –uri <URI> [–user <USER_ID>] [–where <WHERE>]

adb shell content delete –uri <URI> [–user <USER_ID>] –bind <BINDING> [–bind <BINDING>…] [–where <WHERE>]

adb shell content query –uri <URI> [–user <USER_ID>] [–projection <PROJECTION>] [–where <WHERE>] [–sort <SORT_ORDER>]

adb shell content call –uri <URI> –method <METHOD> [–arg <ARG>]

adb shell content read –uri <URI> [–user <USER_ID>]

adb shell content write –uri <URI> [–user <USER_ID>]

adb shell content gettype –uri <URI> [–user <USER_ID>]



版权声明:本文为h784707460原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。