Jump to content
gc986

Root for Android 9

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...