1

I've followed https://gist.github.com/varhub/7b9555cdd1e5ad785ffde2300fcfd0bd and have doublechecked that the build.prop is indeed modified i.e. system was mounted in read-write mode.

Unfortunately after reboots, the /data/property/persist.sys.usb.config resets itself to just mtp (instead of mtp,adb).

Any ideas what I am missing? I have to do this via adb since I am working on a headless phone with a broken screen (touch/display not working at all).

  • Unfortunately, I wasn't able to get past this conventionally and no answers here either. I installed a LineageOS based rom via TWRP commandline and managed to get it to boot. It has ADB enabled by default and I was able to inject the adb key via the TWRP shell too. Now I am stuck at a different problem of adding and connecting to a WiFi SSID via the commandline. – Fahad Yousuf Aug 6 '18 at 11:25
  • You can just supply a /data/misc/wifi/wpa_supplicant.conf file with the right credentials and enable wifi using svc wifi enable. – Zulakis Aug 7 '18 at 8:52
  • @Zulakis I have already tried that, but unfortunately it doesn't work on my setup. I've raised a new question at android.stackexchange.com/questions/200285/… Waiting patiently for new things to try. – Fahad Yousuf Aug 13 '18 at 6:31
  • You could probably edit the /vendor/etc/init/hw/init.qcom.usb.rc file to achieve what you want. (That's what I did for a similar issue). – Zulakis Aug 13 '18 at 19:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.