2016-11-20 38 views
-1

我在Android設備上使用su,busybox。 但做 「蘇」,似乎我沒有root權限:su的特權

[email protected]:/ $ su 
1|[email protected]:/ $ 

1|[email protected]:/ $ whoami 
shell 
[email protected]:/ $ 

EDIT1

好像在蘇特權都OK。請參閱下文,從亞行外殼:外殼@尼莫:/系統/ XBIN $ LS -al -rwxr蘇-XR-X根根75364 2015年11月21日13:10

EDIT2

我已經設置了7777權限(suid),但仍然失敗。

chmod 7777 su-arm 

[email protected]:/ $ ls -al /system/xbin/su-arm 
-rwsrwsrwt root  shell  467952 2016-11-20 12:01 su-arm 
[email protected]:/ $ su-arm 
255|[email protected]:/ $ id 
uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0 
[email protected]:/ $whoami 
shell 

EDIT3: 我已經更新蘇二進制和busybox的二進制文件,但現在每一個不同的失敗:

[email protected]:/ $ busybox su 
su: unknown user root 
1|[email protected]:/ $ su 
error: only position independent executables (PIE) are supported. 
1|[email protected]:/ $ 

我怎麼能明白這有什麼錯蘇和如何解決它?

感謝, 蘭壽

+1

您是否確實需要超級用戶權限?如果是這樣,那麼你有沒有試過運行這些命令? –

+0

是的,我對此有真正的需求。我怎樣才能開始瞭解什麼是錯的? – ransh

回答

3

您必須安裝 「蘇」 root權限。

只需複製su與普通用戶權限並不意味着「生根設備」。

我認爲你的問題應該是類似於「我如何根我的設備?」

+0

對,我嘗試根設備。 我有正常的特權在蘇。請看下面,從adb外殼: shell @ nemo:/ system/xbin $ ls -al su -rwxr-xr-x root root 75364 2015-11-21 13:10 su – ransh

+0

正如我看到你的su二進制文件不是SUID,這就是你無法運行root shell的原因。 – nemux

+0

你怎麼看到這個。現在嘗試使用Supersu的另一個版本,我仍然遇到另一個錯誤:shell @ nemo:/ $ su 錯誤:僅支持與位置無關的可執行文件(PIE)。 1 | shell @ nemo:/ $ – ransh