Closed ngoquang2708 closed 6 years ago
We have to enable it in the GUI or set prop persist.sys.usb.config=mtp,adb
either in build time or in runtime.
I have another option: Hack up adbd source in system/core Look at daemon/main.cpp, comment out line 161 and 163, force return true on line 93 https://github.com/LineageOS/android_system_core/blob/lineage-15.1/adb/daemon/main.cpp#L161 https://github.com/LineageOS/android_system_core/blob/lineage-15.1/adb/daemon/main.cpp#L93
The culprit is somehow PRODUCT_DEFAULT_PROPERTY_OVERRIDES
doesn't override our adb props, or we don't know how it actually works
I built eng variant and set prop persist.sys.usb.config=mtp,adb
in system.prop
. My ADB can work with that.
First clue: