文件名称:RootCheck
介绍说明--下载内容均来自于网络,请自行研究使用
检测手机是否Root源码判断安卓手机是否root有三种方式,本源码是第三种方式。
第一种:
Android可以直接运行一个底层命令,来判断是否root,但是这会带来一个问题,每次判断是否root都会弹出一个root请求框。这是十分不友好的一种交互方式,而且,用户如果选择取消,有部分手机是判断为非root的。这种方式的特点是交互不友好,而且有误判。
第二种:
一般root手机都会有一些的特殊文件夹,比如/system/bin/su,/system/xbin/su,里面存放有相关的权限控制文件。因此只要手机中有一个文件夹存在就判断这个手机root了。然后经过测试,这种方法在大部分手机都可行。这种方式的特点是交互友好,但是有误判。-Detection of mobile phone is Root source to determine whether the Android mobile phone root there are three ways, the source is the third way.
First kind:
Android can directly run a bottom command, to determine whether the root, but this will bring a problem, each time to determine whether the root will pop up a root request box. This is a very unfriendly way of interaction, but also, if the user choose to cancel, there is a part of the phone is judged to be non root. This approach is characterized by the interaction is not friendly, and there is a miscarriage of justice.
Second species:
General root phone will have a number of special folders, such as /system/xbin/su, /system/bin/su, which is stored in the relevant permissions control file. So as long as there is a folder on the phone to determine the existence of this phone root. And then tested, this method is feasible in most mobile phones. This approach is characterized by a friendly interaction, but there is a miscarriage of
第一种:
Android可以直接运行一个底层命令,来判断是否root,但是这会带来一个问题,每次判断是否root都会弹出一个root请求框。这是十分不友好的一种交互方式,而且,用户如果选择取消,有部分手机是判断为非root的。这种方式的特点是交互不友好,而且有误判。
第二种:
一般root手机都会有一些的特殊文件夹,比如/system/bin/su,/system/xbin/su,里面存放有相关的权限控制文件。因此只要手机中有一个文件夹存在就判断这个手机root了。然后经过测试,这种方法在大部分手机都可行。这种方式的特点是交互友好,但是有误判。-Detection of mobile phone is Root source to determine whether the Android mobile phone root there are three ways, the source is the third way.
First kind:
Android can directly run a bottom command, to determine whether the root, but this will bring a problem, each time to determine whether the root will pop up a root request box. This is a very unfriendly way of interaction, but also, if the user choose to cancel, there is a part of the phone is judged to be non root. This approach is characterized by the interaction is not friendly, and there is a miscarriage of justice.
Second species:
General root phone will have a number of special folders, such as /system/xbin/su, /system/bin/su, which is stored in the relevant permissions control file. So as long as there is a folder on the phone to determine the existence of this phone root. And then tested, this method is feasible in most mobile phones. This approach is characterized by a friendly interaction, but there is a miscarriage of
(系统自动生成,下载前可以参看下载内容)
下载文件列表
RootCheck
.........\.classpath
.........\.project
.........\.settings
.........\.........\org.eclipse.core.resources.prefs
.........\AndroidManifest.xml
.........\assets
.........\bin
.........\...\AndroidManifest.xml
.........\...\classes
.........\...\.......\com
.........\...\.......\...\example
.........\...\.......\...\.......\rootcheck
.........\...\.......\...\.......\.........\BuildConfig.class
.........\...\.......\...\.......\.........\MainActivity.class
.........\...\.......\...\.......\.........\R$attr.class
.........\...\.......\...\.......\.........\R$dimen.class
.........\...\.......\...\.......\.........\R$drawable.class
.........\...\.......\...\.......\.........\R$id.class
.........\...\.......\...\.......\.........\R$layout.class
.........\...\.......\...\.......\.........\R$menu.class
.........\...\.......\...\.......\.........\R$string.class
.........\...\.......\...\.......\.........\R.class
.........\...\.......\...\.......\.........\utils
.........\...\.......\...\.......\.........\.....\RootUtil.class
.........\...\.......\...\.......\.........\.....\ShellUtils$CommandResult.class
.........\...\.......\...\.......\.........\.....\ShellUtils.class
.........\...\classes.dex
.........\...\dexedLibs
.........\...\.........\android-support-v4-252033f44e39b9489328e2b21dfdd225.jar
.........\...\.........\android-support-v4-2b20fd8330343b7699e1c37afbf2d89a.jar
.........\...\.........\android-support-v4-852b1262a7beb251e4798884e498beaf.jar
.........\...\.........\android-support-v4-ffd1ec8daaf7443e932fee4f1046688a.jar
.........\...\.........\android-support-v7-appcompat-393a6d982fc5df521c0af3e2d2893b0e.jar
.........\...\.........\appcompat_v7_2-3fd06b6eeca85f1f1c16666624e93e04.jar
.........\...\jarlist.cache
.........\...\R.txt
.........\...\res
.........\...\...\crunch
.........\...\...\......\drawable-hdpi
.........\...\...\......\.............\ic_launcher.png
.........\...\...\......\drawable-mdpi
.........\...\...\......\.............\ic_launcher.png
.........\...\...\......\drawable-xhdpi
.........\...\...\......\..............\ic_launcher.png
.........\...\...\......\drawable-xxhdpi
.........\...\...\......\...............\ic_launcher.png
.........\...\resources.ap_
.........\...\RootCheck.apk
.........\gen
.........\...\com
.........\...\...\example
.........\...\...\.......\rootcheck
.........\...\...\.......\.........\BuildConfig.java
.........\...\...\.......\.........\R.java
.........\ic_launcher-web.png
.........\libs
.........\....\android-support-v4.jar
.........\lint.xml
.........\proguard-project.txt
.........\project.properties
.........\res
.........\...\drawable-hdpi
.........\...\.............\ic_launcher.png
.........\...\drawable-ldpi
.........\...\drawable-mdpi
.........\...\.............\ic_launcher.png
.........\...\drawable-xhdpi
.........\...\..............\ic_launcher.png
.........\...\drawable-xxhdpi
.........\...\...............\ic_launcher.png
.........\...\layout
.........\...\......\activity_main.xml
.........\...\menu
.........\...\....\main.xml
.........\...\values
.........\...\......\dimens.xml
.........\...\......\strings.xml
.........\...\values-w820dp
.........\...\.............\dimens.xml
.........\src
.........\...\com
.........\...\...\example
.........\...\...\.......\rootcheck
.........\...\...\.......\.........\MainActivity.java
.........\...\...\.......\.........\utils
.........\...\...\.......\.........\.....\RootUtil.java
.........\...\...\.......\.........\.....\ShellUtils.java
.........\说明.htm