检测手机是否Root源码.zip

上传者: 39840515 | 上传时间: 2023-10-29 23:35:34 | 文件大小: 2.58MB | 文件类型: ZIP
检测手机是否Root源码判断安卓手机是否root有三种方式,本源码是第三种方式。
 
第一种:
Android可以直接运行一个底层命令,来判断是否root,但是这会带来一个问题,每次判断是否root都会弹出一个root请求框。这是十分不友好的一种交互方式,而且,用户如果选择取消,有部分手机是判断为非root的。这种方式的特点是交互不友好,而且有误判。
 
第二种:
一般root手机都会有一些的特殊文件夹,比如/system/bin/su,/system/xbin/su,里面存放有相关的权限控制文件。因此只要手机中有一个文件夹存在就判断这个手机root了。然后经过测试,这种方法在大部分手机都可行。这种方式的特点是交互友好,但是有误判。
 
第三种:
第三种判断方式是基于第二种的,部分国产,比如小米系列,有第二种方式所说的文件夹,但是系统是未root的,判断成了已root。经过分析,这是由于小米有自身的权限控制系统而导致。只需要在第二种方法的基础上,再另外判断文件拥有者对这个文件是否具有可执行权限(第4个字符的状态),就基本可以确定手机是否root了。这种方法基本可以判断所有的手机,而且不弹出root请求框。 
 

文件下载

资源详情

[{"title":"( 54 个子文件 2.58MB ) 检测手机是否Root源码.zip","children":[{"title":"RootCheck","children":[{"title":"bin","children":[{"title":"classes.dex <span style='color:#111;'> 703.77KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"crunch","children":[{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 5.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 9.14KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 17.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"jarlist.cache <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"R.txt <span style='color:#111;'> 30.11KB </span>","children":null,"spread":false},{"title":"dexedLibs","children":[{"title":"android-support-v4-ffd1ec8daaf7443e932fee4f1046688a.jar <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false},{"title":"android-support-v7-appcompat-393a6d982fc5df521c0af3e2d2893b0e.jar <span style='color:#111;'> 146.62KB </span>","children":null,"spread":false},{"title":"appcompat_v7_2-3fd06b6eeca85f1f1c16666624e93e04.jar <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"android-support-v4-2b20fd8330343b7699e1c37afbf2d89a.jar <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false},{"title":"android-support-v4-252033f44e39b9489328e2b21dfdd225.jar <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false},{"title":"android-support-v4-852b1262a7beb251e4798884e498beaf.jar <span style='color:#111;'> 236.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"classes","children":[{"title":"com","children":[{"title":"example","children":[{"title":"rootcheck","children":[{"title":"MainActivity.class <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'> 351B </span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'> 412B </span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'> 487B </span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'> 416B </span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'> 349B </span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'> 397B </span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'> 652B </span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'> 529B </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"ShellUtils.class <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"ShellUtils$CommandResult.class <span style='color:#111;'> 737B </span>","children":null,"spread":false},{"title":"RootUtil.class <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"resources.ap_ <span style='color:#111;'> 39.86KB </span>","children":null,"spread":false},{"title":"javaapk.com-RootCheck.apk <span style='color:#111;'> 282.97KB </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"RootCheck.apk <span style='color:#111;'> 282.98KB </span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"menu","children":[{"title":"main.xml <span style='color:#111;'> 376B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 341B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 884B </span>","children":null,"spread":false}],"spread":true},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"example","children":[{"title":"rootcheck","children":[{"title":"BuildConfig.java <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 57B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"example","children":[{"title":"rootcheck","children":[{"title":"MainActivity.java <span style='color:#111;'> 2.13KB </span>","children":null,"spread":false},{"title":"utils","children":[{"title":"ShellUtils.java <span style='color:#111;'> 7.25KB </span>","children":null,"spread":false},{"title":"RootUtil.java <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'> 857B </span>","children":null,"spread":false},{"title":"说明.htm <span style='color:#111;'> 4.22KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'> 609B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'> 633.13KB </span>","children":null,"spread":false}],"spread":false},{"title":"lint.xml <span style='color:#111;'> 161B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明