I have an entrenched HTC Hero and I want to do this in order to enable adbd to listen on the port at boot time.
I tried to find the code here :
setprop service.adb.tcp.port 5555 stop adbd start adbd
in the Android shell and it works great.
I tried to modify the init.rc file. I added the code above to init.rc and I replaced it with the original file using the following commands:
adb push init.rc sdcard adb shell adb su mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 / adb cp sdcard/init.rc /
The file was successfully replaced, but when I restart my phone and try to connect via:
adb connect <IP>:5555
connection is not established.
Any ideas?
(PS. I do not want to use the remoteADB application and the shell command, for example am start -n ... )
android adb boot init
Thanasis petsas
source share