android check root
来源:互联网 发布:巴伐利亚级战列舰知乎 编辑:程序博客网 时间:2024/05/17 03:54
<span style="white-space:pre"></span>/** * 判断设备是否Root * * @return */public static boolean checkRoot() {try {Process process = Runtime.getRuntime().exec("/system/bin/ls -l /system/bin/su /system/xbin/su");BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));String line = reader.readLine();reader.close();process.destroy();return (line != null && line.length() > 9)&& (line.charAt(9) == 'x' || line.charAt(9) == 't');} catch (Exception e) {return false;}
0 0
- android check root
- bashrc check if root
- check android activity exist
- android+root
- Android Root
- Android Root
- Android Root
- android root
- Android root
- android root
- android-root
- android root
- U880 root 教程 android root
- android ROM root&root kernel
- android check symbols in so
- android 中CHECK宏分析
- android 6.0 Runtime Permissions Check
- Android Studio check update失败
- nrf51 bootloader ,app烧录 第一次无法进入APP 解决办法
- 【读书笔记】【Delphi高手突破】TControl与Windows消息的封装
- 程序员必看的书
- Delphi中的Assigned和nil
- 80x86汇编学习笔记(时刻更新中)
- android check root
- Caused by: org.hibernate.TransientObjectException: object references an unsaved transient instance -
- Eclipse使用
- 初识三层结构
- tomcat启动,但是spring配置的bean并没有初始化
- mysqldump Failed to open file 'xxxl', error: 22 on windows os
- 关于AJAX/GET请求乱码的问题
- 用javascript实现观察者模式
- 浅析配置更快的Eclipse方法