通过 Homebrew 安装 ADB
brew install android-platform-tools获取USB连接设备列表
adb devices手机弹出允许调试,选择接受,控制台显示如下:
# 未授权
adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
f6123456 unauthorized
# 已授权
adb devices
List of devices attached
f6123456 device修改负一屏为 Shelf (一加负一屏):
adb shell settings put secure assistant_screen_type 1
adb shell settings put secure assistant_screen_type_left_enable 1关闭 Google 负一屏:
adb shell settings put secure assistant_screen_type 0
adb shell settings put secure assistant_screen_type_left_enable 0
评论 (0)