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).
/data/misc/wifi/wpa_supplicant.conffile with the right credentials and enable wifi usingsvc wifi enable./vendor/etc/init/hw/init.qcom.usb.rcfile to achieve what you want. (That's what I did for a similar issue).