Android 台灣中文網
標題:
剛剛反組譯的時候看到的 檢查是否有root...
[打印本頁]
作者:
seadog007
時間:
2014-2-20 22:11
標題:
剛剛反組譯的時候看到的 檢查是否有root...
package com.madhead.tos.plugins.acs;
import android.os.Build;
import java.io.File;
public class Root
{
private static String LOG_TAG = Root.class.getName();
public static boolean checkRootMethod1()
{
String str = Build.TAGS;
return (str != null) && (str.contains("test-keys"));
}
public static boolean checkRootMethod2()
{
try
{
boolean bool = new File("/system/app/Superuser.apk").exists();
if (bool)
return true;
}
catch (Exception localException)
{
}
return false;
}
public static boolean checkRootMethod3()
{
return new ExecShell().executeCommand(ExecShell.SHELL_CMD.check_su_binary) != null;
}
public static boolean isDeviceRooted()
{
if (checkRootMethod1());
while ((checkRootMethod2()) || (checkRootMethod3()))
return true;
return false;
}
}
這樣不就有root會增加被鎖的機率?
作者:
p220fhf
時間:
2014-2-20 22:19
那又如何?mh要打爛自己的飯碗,我們可以阻止?
不過,某程式可以在unroot的情況下運行.
而根據你的資料,應該只是搜在system的,如沒轉去system的話就沒效.
作者:
zmc789
時間:
2014-2-21 01:17
MH有檢查也不能改變什麼吧
除非他限制有root就不能登入
我是用小米2s
刷官方出版的開發版
rom本身就自帶root
如果真的因為root不能遊戲
那大陸市場相對的已經失去許多玩家
畢竟對岸是真的很多老百姓喜歡搞手機研究手機
作者:
luslong
時間:
2014-2-21 05:27
同意樓上的說法,public class Root這個東東早在3.X版就出現了~~
歡迎光臨 Android 台灣中文網 (https://apk.tw/)
Powered by Discuz! X3.1