查看读写数据库

查看设置:
adb shell content query --uri content://settings/settings

查看launcher:
adb shell content query --uri content://com.android.launcher3.InterfaceProvider

adb shell settings get system

查看数据库里面的快捷
adb shell settings get secure sysui_qs_tiles
adb shell settings list secure | findstr tile

adb shell settings get secure user_setup_complete //用户开机初始化

adb shell settings put secure sysui_qs_tiles wifi,bt,rotation,screenshot,flashlight,location,airplane,hotspot,audio_mode,data,dont_interruptions
adb shell settings put secure sysui_qs_tiles null

adb shell content update --uri content://com.xxx.provider/data --bind confValue:s:0 --where “confKey=‘smart_switch’”
adb shell content query --uri content://com.xxx.provider/data
Row: 0 id=1, confKey=switch, confValue=1

查询日历定时提醒数据库
content://com.android.calendar/reminders
adb shell content delete --uri content://settings/settings/pointer_speed
adb shell content query --uri content://settings/settings
adb shell content insert --uri content://settings/secure --bind name:s:my_number --bind value:i:24

adb shell content query --uri content://com.android.calendar/calendars

adb shell content query --uri content://com.android.calendar/reminders
adb shell content query --uri content://com.android.calendar/events
adb shell content delete --uri content://com.android.calendar/events --where “method=‘1’”

adb shell content delete --uri content://settings/secure --where “name=‘new_setting’”

adb shell settings get global mode_ringer//更改静音
adb shell settings put global mode_ringer 0

adb shell settings get global airplane_mode_on//开启飞行模式
adb shell settings put global airplane_mode_on 1

adb pull /system/build.prop
adb push build.prop /system/build.prop
adb shell “echo ‘fw.max_users=3’ >> /system/build.prop”

禁止全屏手势:
显示全屏手势:
full gesture
adb shell cmd overlay disable com.android.internal.systemui.navbar.gestural
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural

关机 adb shell reboot -p
查看overlay adb shell cmd overlay list

可以在user版adb下执行命令,查看禁止XXXXX是否生效:
adb shell settings get global XXXXX
(1: 允许执行XXXXX 0:禁止执行XXXXX)

发布了71 篇原创文章 · 获赞 8 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/QQ18334373taikongyi/article/details/105708229