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).
Now I am stuck at a different problem of adding and connecting to a WiFi SSID via the commandline.
– Fahad Yousuf Aug 06 '18 at 11:25/data/misc/wifi/wpa_supplicant.conf
file with the right credentials and enable wifi usingsvc wifi enable
. – Zulakis Aug 07 '18 at 08:52Waiting patiently for new things to try.
– Fahad Yousuf Aug 13 '18 at 06:31/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