Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an ssh target #1

Closed
tshirtman opened this issue Dec 28, 2012 · 2 comments
Closed

add an ssh target #1

tshirtman opened this issue Dec 28, 2012 · 2 comments
Labels

Comments

@tshirtman
Copy link
Member

Sometime using adb is not convenient, and with an ssh-server installed on the android device, it's possible to do everything adb can do, allowing to configure such things could be useful, one needs

an ssh server on the device (dropbear is great)
an ssh key added to the ssh server, so the connection is transparent (optional)
a dump of the adb shell "env" command, so everything happens correctly (i usually put this in /sdcard/adb_env)
the ip of the server

then, the apk can be copied other with a command like
tar -c $apk |ssh root@device_ip 'cd /sdcard/ && tar -x'

and the apk can be installed with

ssh root@device_ip "source /sdcard/adb_env &&\
pm uninstall $package_name &&\
pm install /sdcard/$apk"

and the activity started with
`am start -n $package_name/org.renpy.android.PythonActivity -a o rg.renpy.android.PythonActivity"``

Assuming adb_env is loaded too.

If nobody does, i'll try to do that at some point in the future, if someone wants to do it before, i can help :)

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@knappador
Copy link

I made some progress towards this earlier. IPython can operate in a
client-server way by sending zeroMQ over a socket that can be itself piped
over SSH. If you get on the IPython IRC, I'm sure you can get a clearer
description of how.

On Fri, Dec 28, 2012 at 5:18 AM, Gabriel Pettier
[email protected]:

Sometime using adb is not convenient, and with an ssh-server installed on
the android device, it's possible to do everything adb can do, allowing to
configure such things could be useful, one needs

an ssh server on the device (dropbear is great)
an ssh key added to the ssh server, so the connection is transparent
(optional)
a dump of the adb shell "env" command, so everything happens correctly (i
usually put this in /sdcard/adb_env)
the ip of the server

then, the apk can be copied other with a command like
tar -c $apk |ssh root@device_ip 'cd /sdcard/ && tar -x'

and the apk can be installed with

ssh root@device_ip "source /sdcard/adb_env &&
pm uninstall $package_name &&
pm install /sdcard/$apk"

and the activity started with
am start -n $package_name/org.renpy.android.PythonActivity -a o
rg.renpy.android.PythonActivity"`

Assuming adb_env is loaded too.

If nobody does, i'll try to do that at some point in the future, if
someone wants to do it before, i can help :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/1.

@dessant
Copy link
Contributor

dessant commented Dec 4, 2016

Should be solved by https://github.com/kivy/kivy-remote-shell.

Edit: If not, please reopen. :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants