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).

4
  • 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. Commented Aug 6, 2018 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. Commented Aug 7, 2018 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. Commented Aug 13, 2018 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). Commented Aug 13, 2018 at 19:45

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.