android权限/ shell

时间:2017-12-30 15:52:51

标签: android shell permissions executable su

这是我的问题: 使用Team Win恢复模式,我尝试了两件事。一个有效,我不明白为什么另一个没有:

  1. 从终端,使用vi,我创建了文件/ system / bin / tteesst,这是:

    #!/系统/ bin / sh的

    echo Hi

  2. 我做了一个chmod 755。

    1. 我将/ supersu中的su文件复制到/ system / bin / su 我做了chmod 4755,并将其组设置为' shell'
    2. (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

      上输入密码

0 个答案:

没有答案