gc986 0 Posted April 29, 2021 Hey! I need to be root to restart "tcpip" (adb tcpip 5555) from my application. How can i do this? I am using tinkerboard R as a kiosk terminal and I need to control it over a TCP connection after a system reboot (after reboot "tcpip" is off). Share this post Link to post Share on other sites
TzuWen_Chang 0 Posted April 30, 2021 On 4/29/2021 at 8:38 PM, gc986 said: Hey! I need to be root to restart "tcpip" (adb tcpip 5555) from my application. How can i do this? I am using tinkerboard R as a kiosk terminal and I need to control it over a TCP connection after a system reboot (after reboot "tcpip" is off). Hi gc986, If you want do the following command on boot. Quote su setprop service.adb.tcp.port 5555 stop adbd start adbd You can modify init.usb.configfs.rc by "remount" Quote adb root adb shell remount adb pull /init.usb.configfs.rc Add "setprop service.adb.tcp.port 5555" before "start adbd" adb push init.usb.configfs.rc /init.usb.configfs.rc Then reboot to check property has been set. Share this post Link to post Share on other sites