原帖地址:
1:下载地址:http://forum.xda-developers.com/showthread.php?t=2130276
2:高级用法:http://forum.xda-developers.com/showpost.php?p=50148092&postcount=1742
Hi,
Framaroot 1.9.1 is out with a new action : Execute script.
For advanced users only
Use this action at your own risk. Im not responsible for what you will do with it.
Framaroot can execute a custom shell script when it root your device. To use this feature, you have to name your script "custom" and put it in /sdcard/ in order to have the following path : /sdcard/custom
An example of what /sdcard/custom could be :
cat /sdcard/myappneedsystem.apk > /system/app/myappneedsystem.apk pm install /system/app/myappneedsystem.apk
You can do all what you want in your script (including brick your device) so be careful.
If you want to automate all the process from your PC, you can launch Framaroot from an adb shell directly :
$ adb shell am start -n com.alephzain.framaroot/.FramaAdbActivity --es exploit Barahir --ei action 2
Available values for action argument:
- 0 -> Install SuperSU
- 1 -> Unroot
- 2 -> Execute script (/sdcard/custom)
Available values for exploit argument:
- Sam (affect Exynos devices only)
- Frodo (affect Exynos devices only)
- Gimli (affect Omap36XX devices only)
- Merry (affect Exynos devices only)
- Aragorn (affect Samsung devices only)
- Legolas (affect Samsung devices only)
- Gandalf (affect Qualcomm devices only)
- Boromir (affect Mediatek devices only)
- Pippin (affect K3V2 devices only)
- Gollum (affect AMLogic devices only)
- Faramir (affect Mediatek devices only)
- Barahir (affect Mediatek devices only)
看文章,总的来说步骤如下
1:安装framaroot软件到手机上
2:执行命令启动framaroot的自动root代码,$ adb shell am start -n com.alephzain.framaroot/.FramaAdbActivity --es exploit Barahir --ei action 2
其中exploit后的Barahir表示root方式,action后的2代表行为方式
3:root完毕,删除掉安装的framaroot
文章评论