关于Framaroot的PC端控制方法

原帖地址:

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 :

Code:
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 :

Code:
$ 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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值