解决方案 »
- listview中item添加OnGestureListener监听
- button的监听方法selector与setOnTouchListener的关系
- iphone和android链接相同服务器问题
- 请教下android用什么来写程序挂起?
- 你们都是怎么阅读android系统源码的,用什么工具?
- 移动应用服务器端开发用的框架
- Adroid版本更新之后覆盖安装更新界面不见了?
- 动态移动ImageView的位置
- sipdroid真的能视频通话么
- 求解:android studio中,android 8.0后如何打开wifi热点及更改热点帐号密码?
- JAVA新手求助
- 怎么往一个service传入activity中上下文对象。
public static boolean upgradeRootPermission(String pkgCodePath) {
Process process = null;
DataOutputStream os = null;
try {
String cmd="chmod 777 " + pkgCodePath;
process = Runtime.getRuntime().exec("su"); //切换到root帐号
os = new DataOutputStream(process.getOutputStream());
os.writeBytes(cmd + "\n");
os.writeBytes("exit\n");
os.flush();
process.waitFor();
} catch (Exception e) {
return false;
} finally {
try {
if (os != null) {
os.close();
}
process.destroy();
} catch (Exception e) {
}
}
return true;
}
但在LOGE还是出现了SurfaceFlinger Permission Denial: can't read framebuffer pid=14444, uid=1010这个问题,紧接着就出现了Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 14444 (droid.ScreenCap)这个问题,不知道是什么原因?希望能够解答,谢谢!