Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB tcpip command without cable

I need remote ADB shell.. I know that we have to issue "ADB tcpip ".. to change ADB server to TCP listening mode.

But, the problem is that my phone is not rooted, and I do not have USB cable. I can't issue tcpip command since I do not have USB cable,, I can't change default.prop file as the phone is not rooted.

Is there any other ways to change ADB server to TCP listening mode???

like image 844
Jason Hwang Avatar asked Nov 24 '25 17:11

Jason Hwang


1 Answers

I found an articel that says you can execute setprop persist.adb.tcp.port 5555 to make tcpip mode autostart after reboot.

The problem is, you must run this command as root.

On my device unfortunally the command su doeas not exist.

Here is the orginal Permanent network debugging on android

EDIT: I discovered, that the su command is only available when your device is rooted. So the solution only works when you have a rooted phone

like image 200
Radon8472 Avatar answered Nov 26 '25 07:11

Radon8472



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!