Skip to content

Instantly share code, notes, and snippets.

@mizzunet
Created November 9, 2021 20:03
Show Gist options
  • Save mizzunet/69703175a4bf687f8eafedae88f8eda8 to your computer and use it in GitHub Desktop.
Save mizzunet/69703175a4bf687f8eafedae88f8eda8 to your computer and use it in GitHub Desktop.
Enable ADB and Wireless ADB from TWRP
```
adb shell
mount system
echo '' >> /system/build.prop
echo '# Enable ADB' >> /system/build.prop
echo 'persist.service.adb.enable=1' >> build.prop
echo 'persist.service.debuggable=1' >> build.prop
echo 'persist.sys.usb.config=mtp,adb' >> build.prop
echo 'service.adb.tcp.port=5555' >> build.prop
```
```
adb push ~/.android/adbkey.pub /data/misc/adb/adb_keys
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment