Hi
I am using your app to reset my Wifi device in car headunit (PX5), because simple sh commands not working, but your app working every time I am trying to figure-out difference, and if possible correct commands, because I want to automate this process via Tasker.
So, maybe, you know sh commands which is close analogue of what your app do to reset usb device? Or, maybe, you have sources of uhctrl (which I find out been used for resetting USB device via your app) ?
Script I am trying (I also tried to play with /sys/bus/usb/devices/1-1/power/... nodes with no luck)
Code:
#!/system/bin/sh
su sh -c 'echo "0"> /sys/bus/usb/devices/1-1/authorized'
su sh -c 'echo "1"> /sys/bus/usb/devices/1-1/authorized'
sleep 1
su sh -c 'svc wifi disable'
sleep 5
su sh -c 'svc wifi enable'