这是我的问题: 使用Team Win恢复模式,我尝试了两件事。一个有效,我不明白为什么另一个没有:
从终端,使用vi,我创建了文件/ system / bin / tteesst,这是:
#!/系统/ bin / sh的
echo Hi
我做了一个chmod 755。
(su在恢复模式下工作,whoami产生root)
但是当我启动我的系统(Lineage OS)并打开终端时,我明白了:
jfvelte:/ $/system/bin/tteesst
Hi (---OK---)
jfvelte:/ $touch /system/bin/teesstt
touch '/system/bin/teesstt': read-only file system (---OK---)
jfvelte:/ $ /system/bin/su
/system/bin/sh: /system/bin/su : not found (---NOT OK---)
jfvelte: ls /system/bin/teesstt /system/bin/su
ls: /system/bin/su: No such file or directory (---NOT OK---)
/system/bin/teesstt
前两个命令执行我的预期,但接下来的两个命令没有。为什么用户不能看到su文件?
(solved)
部分原因是:我必须再次在lineage OS中安装supersu-package两次,并且还要让终端访问root。剩下的问题是找出我是否可以在su 上输入密码