android手机权限分析
来源:互联网 发布:nginx rtmp hls 延迟 编辑:程序博客网 时间:2024/05/17 23:15
一,如何将user版本手机root。
如何root user版本手机
1,将user load的bootimg解包,将default.prop里的ro.secure值改写。
如何root user版本手机
1,将user load的bootimg解包,将default.prop里的ro.secure值改写。
2,将eng版本的adbd放到user版本的bootimg里的/sbin/目录下
if (should_drop_privileges()) { struct __user_cap_header_struct header; struct __user_cap_data_struct cap; if (prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0) != 0) { exit(1); } /* add extra groups: ** AID_ADB to access the USB driver ** AID_LOG to read system logs (adb logcat) ** AID_INPUT to diagnose input issues (getevent) ** AID_INET to diagnose network issues (netcfg, ping) ** AID_GRAPHICS to access the frame buffer ** AID_NET_BT and AID_NET_BT_ADMIN to diagnose bluetooth (hcidump) ** AID_SDCARD_R to allow reading from the SD card ** AID_SDCARD_RW to allow writing to the SD card ** AID_MOUNT to allow unmounting the SD card before rebooting ** AID_NET_BW_STATS to read out qtaguid statistics */ gid_t groups[] = { AID_ADB, AID_LOG, AID_INPUT, AID_INET, AID_GRAPHICS, AID_NET_BT, AID_NET_BT_ADMIN, AID_SDCARD_R, AID_SDCARD_RW, AID_MOUNT, AID_NET_BW_STATS }; if (setgroups(sizeof(groups)/sizeof(groups[0]), groups) != 0) { exit(1); } /* then switch user and group to "shell" */ if (setgid(AID_SHELL) != 0) { exit(1); } if (setuid(AID_SHELL) != 0) { exit(1); } /* set CAP_SYS_BOOT capability, so "adb reboot" will succeed */ header.version = _LINUX_CAPABILITY_VERSION; header.pid = 0; cap.effective = cap.permitted = (1 << CAP_SYS_BOOT); cap.inheritable = 0; capset(&header, &cap); D("Local port disabled\n");
二:android 4.3权限分析
android 4.3权限分析
0 0
- android手机权限分析
- android手机权限分析(二)
- 关于Android手机权限
- Android 手机系统权限
- 获取android手机root权限
- Android手机文件访问权限
- Android手机获取权限问题
- Android手机动态获取权限
- android root 权限分析
- android root 权限分析
- android权限代码分析
- android 权限机制分析
- Android权限分析
- android-权限分析
- Android手机耗电分析
- 转:如何获得Android手机Root权限
- android 手机原机获取root权限
- Android编程获取手机root权限问题
- Liunx httpd 升级
- 8大常用排序方法总结图
- Android 基于google Zxing实现二维码、条形码扫描,仿微信二维码扫描效果
- 似然函数的概念
- 旋转有序的二分查找
- android手机权限分析
- 装饰者模式(Decorator)
- getAttribute 和setAttribute 的使用方法
- 2014年8月29日--2014年9月14日,进行24小时,剩4276小时
- Head First 线性表
- 关于js中dom对象不支持某些方法的处理
- 黑马程序员 多线程及其单例模式设计和GUI
- 一步步写STM32 OS【三】PendSV与堆栈操作
- 操作系统中进程的虚拟地址空间