Open network ADB by default
Temporary modification method
Way one
- Android7.1
adb shell setprop persist.internet.adb.enable 1 - Android10/Android11/Android12
adb shell setprop persist.internet_adb_enable 1
Way two
-
Open
ADB over networkSettings-->Developer options-->ADB over network
Code modification method
-
Android7.1/Android10
- In the
device/rockchip/CPU_TYPE/PRODUCT_TYPE/system.propfile, add the following content:
persist.internet.adb.enable=1 - In the
-
Android10
- In the
device/rockchip/CPU_TYPE/PRODUCT_TYPE/system.propfile, add the following content:
persist.internet_adb_enable=1 - In the
-
Android11/Android12
- In the
device/rockchip/CPU_TYPE/PRODUCT_TYPE/PRODUCT_TYPE.mkfile, add the following content:
PRODUCT_PROPERTY_OVERRIDES += persist.internet_adb_enable=1 - In the
-
Delete build.prop in the out directory
rm out/target/product/PRODUCT_TYPE/obj/ETC/system_build_prop_intermediates/build.prop

