You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Android_boot_image_editor/doc/recovery_adb.md

25 lines
538 B
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 打开recovery模式下的adb
###1. 解开vbmeta.img 关闭AVB
修改 build/unzip_boot/vbmeta.img.avb.json, Line #19
```diff
- "flags" : 0,
- "flags" : 2,
```
重新打包,刷回去
###2. 先解开boot.img, 然后做修改如下
修改**prop.default**,打开debuggable, 注意ro.debuggable出现两次得全改了, 或者删一个
```diff
-ro.debuggable=0
+ro.debuggable=1
```
关闭adb secure, 防止出现adb devices之后的unauthorized 状态
```diff
-ro.adb.secure=1
+ro.adb.secure=0
```
重新打包,刷回去