当年的搞机经验随着安卓大版本的更新加上又不关注而出现了错误

无线调试

安卓 10 以上

出现了 匹配码

  • adb pair device_ip_address:port-for-pair
  • adb connect device_ip_address:port-for-connect

安卓 10 以下

  • adb connect device_ip_address:5555

常见问题

failed to connect to device_ip_address:port

  • 内网是否互通
  • 是否先连接了匹配码

屏幕旋转

禁用

  • adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0

横向

  • adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
  • adb shell settings put system user_rotation 1

纵向

  • adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
  • adb shell settings put system user_rotation 0

电视

tcl

开启adb安装应用权限

install apk has be disabled from pm by system default!

1
2
adb shell setprop persist.tcl.debug.installapk 1
adb shell setprop persist.tcl.installapk.enable 1

安装部分应用提示 disable install launcher app not signature by tcl

删除 apk 里面的 android.intent.category.HOME 或者 改电视源码吧