取得Android root权限(Magic Root Access)
来源:互联网 发布:淘宝产品排名规则 编辑:程序博客网 时间:2024/05/01 01:41
Accessing Root from the Magic/Sapphire Terminal Emulator
Now that you have followed Magic Rooting to root your HTC Magic/Sapphire, you will notice that it is not possible to gain a root from an application running on the phone. The only way to get root access is through the ADB shell. In order to be able to gain root access using su with a Terminal Emulator application the su utility in /system/xbin/su needs to be replaced. In Android 1.5, the su utility was updated to allow only the shell and rootusers to gain root access[1]. Since the adb shell runs as the shell user, the su utility will give root access through the adb shell. These instructions will also work for G1/ADP1 users who have upgraded to Android 1.5 and rooted their phone.
*** NOTE: Installing the modified su utility opens up a security risk to your phone, since any App can gain root access. You have been warned... ***
- First, download the modified su utility (ZIP), and unzip it somewhere on your computer. The instructions below assume C:/Android.
- Make sure you have ADB installed on your PC, and that USB Debugging is enabled on your phone. For details, see this post.
- Next, open a DOS Command Prompt window, and push a modified su utility to your phone. This utility will then be copied into the proper location to replace the existing su utility.
C:/Android>adb push su /data/local595 KB/s (76200 bytes in 0.125s)
- Next, use adb to get a shell prompt on your phone:
C:/Android>adb shell
- Gain root access using the existing su utility:
$ su#
- Then, remount the /system partition as read/write so you can replace the existing su:
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
- The su utility is located in /system/xbin. The following commands will back up your existing su utility as osu, and install the modified su utility, and change the permissions appropriately.
# cd /system/xbin# mv su osu# cat /data/local/su > su# chmod 6755 su
- Now, check your work, and make sure the permissions on the new su match those of the original osu.
# ls -l *su-rwsr-sr-x root root 76200 2008-08-01 05:00 osu-rwsr-sr-x root root 76200 2009-05-30 11:28 su
- Finally, if everything checks out, sync the filesystem, and reboot your phone:
# sync# reboot
- After your phone reboots, you will be able to su to root from the Terminal Emulator application.
原文:http://android-dls.com/wiki/index.php?title=Magic_Root_Access
- 取得Android root权限(Magic Root Access)
- ubuntu取得root权限方法
- Android手机取得Root权限的一种思路
- HTC G2 Magic 获取root权限教程
- sudo配置临时取得root权限
- sudo配置临时取得root权限
- sudo配置临时取得root权限
- Android root权限
- Android adb root权限
- 关闭Android root权限
- Android Emulator Root权限
- Android 获得root权限
- android root 权限分析
- Android adb root权限
- Android 获取root权限
- android root 权限分析
- Android开放系统root权限
- Android获得Root权限
- 第一个FMS程序,连接到FMS服务器(Flash/Flex两种实现)
- 常用数据结构有哪些
- poj2681
- 创建可交互的FMS连接--I can say:Hello World
- 基于FMS的流媒体播放程序,看山寨帮的山寨传奇
- 取得Android root权限(Magic Root Access)
- fms摄像头
- flex视频聊天
- ASP.NET生成静态页面
- [hdu] 1754 I hate it -- 线段树
- 浏览器相关功能系统调用
- 了解一些FMS的基本概念
- 一致性哈希(Consistent Hashing)
- ubuntu快捷键