来自android命令行的GNURoot或开机时的自动启动

时间:2014-10-07 22:46:22

标签: android linux

将GNURoot作为Android中的自动启动流程会很棒。我不想手动启动它,然后设置"启动为假根"然后单击按钮"启动Rootfs"在GUI中。

为此,我想直接从Android命令行启动GNURoot,而不是从其启动图标启动它,

我试过了,

/data/data/champion.gnuroot/app_install/support/wheezy/proot -r /data/data/champion.gnuroot/app_install/roots/wheezy -0 -v -1 -b /dev -b /proc -b /data -b /mnt -b /proc/mounts:/etc/mtab -b /:/host-rootfs -b /tmp-mksh -b /factory -b /logs -b /sdcard -b /preload -b /storage -b /efs -b /config -b /cache -b /acct -b /vendor -b /d -b /system -b /data /bin/bash

我收到了这个错误,

/bin/bash: /system/lib/libc.so.6: no version information available (required by /bin/bash)
/bin/bash: /system/lib/libc.so.6: no version information available (required by /lib/i386-linux-gnu/libtinfo.so.5)
/bin/bash: /system/lib/libc.so.6: no version information available (required by /lib/i386-linux-gnu/libdl.so.2)
Inconsistency detected by ld.so: dl-lookup.c: 169: check_match: Assertion `version->filename == ((void *)0) || ! _dl_name_match_p (version->filename, map)' failed!

如何让proot命令适用于roots / wheezy?

一旦Wheezy在GNURoot中启动,我还想运行dropbear(ssh)吗?

1 个答案:

答案 0 :(得分:0)

您可以直接从android命令行运行GNURoot-Debian应用程序 通过运行:

am start -a android.intent.action.MAIN -n com.gnuroot.debian/com.gnuroot.debian.GNURootMain

您也可以使用以下命令直接启动终端窗口:

am start -a com.gnuroot.debian.NEW_WINDOW -n com.gnuroot.debian/com.gnuroot.debian.GNURootMain

要启动GNURoot Debian的其他窗口,例如XWINDOW,只需使用正确的" action"附加上面的命令。来自github app manifest file

要自动启动它,您可以安装一个init.d应用,例如this 并将其设置为启动myautorun.sh脚本,如下所示:

#!/bin/bash
echo "--- Opening GNURoot Debian Terminal ---"
am start -a com.gnuroot.debian.NEW_WINDOW -n com.gnuroot.debian/com.gnuroot.debian.GNURootMain

希望这有帮助!