0

What I want is to control a device from remote:

  • turn display on/off,
  • launch a specified application (clock),
  • open a website.

On a rooted device, I've installed a SSHD app, then I logged in to the device:

su
setprop service.adb.tcp.port 5555
stop adbd
start adbd

Then I can launch adb on my computer, connect to the device and perform various adb commands.

Can I do this on a non-rooted device? I've found that setprop requires root access.

Or, is there any app, which have TCP/WWW interface to do such things? (I've installed an IP camera app, which have URL interface for turning the camera LED on/off, beside usual camera functions, e.g. make snapshot.)

1

2 Answers 2

1

You can try this command, it restarts adbd on the android device after setting the tcp/ip port to the value you want (5555/tcp is a default) :

$ adb tcpip 5555
-1

Try adb shell command. It gives you super user permissions in the connected device.

3
  • But I can't adb until I have not set to tcp mode.
    – ern0
    Jan 13, 2015 at 12:57
  • If I set adb to TCP/IP mode, will it revert to USB mode at next boot?
    – ern0
    Jan 13, 2015 at 12:58
  • Please add some detail or steps to make this a complete answer.
    – HasH_BrowN
    Jan 15, 2015 at 2:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .