Question ADB TCPIP mode w/o cable

Search This thread

Aqua1ung

Senior Member
Jun 17, 2010
683
54
I've been looking around for a way to enable ADB TCPIP mode without cable, and I just couldn't find something that works without rooting the device first. The Tasker trick is waaay too complicated, and I couldn't make it work on my Pixel 7 Pro.

When root is available, things look simple: run "setprop persist.adb.tcp.port 5555" or modify /system/build.prop to include a line to that effect. Assume that I go to the trouble of rooting my phone, and make the requisite change in /system/build.prop, will I be able to un-root afterward while keeping the change I made intact?

Edit: here's a wild thought: maybe I can actually tinker with the official Android factory image, hence add the requisite line to /system/build.prop in vitro, as it were, repackage the whole thing as a modified image, and then flash it onto my (unrooted) phone. Will that work? Or does the flashing process check the checksum before flashing?
 
Last edited:

Aqua1ung

Senior Member
Jun 17, 2010
683
54
Does the simple method described in the thread below not work?

For one, my adb doesn't seem to know the "adb pair" command ("adb: unknown command pair"). Moreover, the IP address provided by the "Pair with device" menu is funny, along the lines of 100.xxx.xxx.xxx, hence it's not an usual 192.168.xxx.xxx. Finally, this doesn't really lend itself to scripting, as the pairing code changes all the time.
 

NepoRood

Recognized Contributor / Retired Forum Moderator
Jan 26, 2016
3,005
4,011
Bugtussle
For one, my adb doesn't seem to know the "adb pair" command ("adb: unknown command pair"). Moreover, the IP address provided by the "Pair with device" menu is funny, along the lines of 100.xxx.xxx.xxx, hence it's not an usual 192.168.xxx.xxx. Finally, this doesn't really lend itself to scripting, as the pairing code changes all the time.
Are your tools up to date? What is the output of:
Code:
adb version
 

Aqua1ung

Senior Member
Jun 17, 2010
683
54
Code:
Android Debug Bridge version 1.0.41
Version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/adb
 
  • Like
Reactions: NepoRood

Aqua1ung

Senior Member
Jun 17, 2010
683
54
Thanks. This is what I am getting when attempting to pair:
Code:
[email protected]:~$ adb pair 100.78.124.214:32989
Enter pairing code: 521129
error: unknown host service
 

Aqua1ung

Senior Member
Jun 17, 2010
683
54
I checked on my Windows PC and it does not connect when the PC is connected via cable.

It works when both devices are connected via WiFi.
Thank you. Anyway, it may not be of much help, as this procedure needs to be repeated after each reboot, and is not scriptable. I, for one, am interested in writing a script. For now, it's easier for me to connect the phone via USB and run my script every time after reboot.

About the rooting/un-rooting questions I was asking in the OP, any opinions about those?
 

NepoRood

Recognized Contributor / Retired Forum Moderator
Jan 26, 2016
3,005
4,011
Bugtussle
Thank you. Anyway, it may not be of much help, as this procedure needs to be repeated after each reboot, and is not scriptable. I, for one, am interested in writing a script. For now, it's easier for me to connect the phone via USB and run my script every time after reboot.

About the rooting/un-rooting questions I was asking in the OP, any opinions about those?
As for things you can do with root, I have nothing to offer, in fact, I am totally against it. It just causes unnecessary problems with the device.

However, you *may* be able to modify the stock rom with an Android ROM Kitchen, emphasis on the "may".
 

Top Liked Posts