corbinlc / gnuroot

152 stars 29 forks source link

Can I attach to the debian in a adb shell #76

Open huangyg11 opened 8 years ago

huangyg11 commented 8 years ago

As far as I can understand, it is like gnuroot start a vm in the android, and "ssh" to it.

Can I attach to the debian in a adb shell?

kapace commented 7 years ago

If you want to launch GNURoot from the shell, you'd probably have to execute /data/user/0/com.gnuroot.debian/support/busybox, but you can't access that directory unless the process is executing in the gnuroot app context. I don't think that possible, unless you use android builtin run-as command, but that's not possible with release apps. Might be possible to do if you install a debug build of GNURoot.