android_run_root_shell
======================
This code is still ugly, please re-write it and send pull-requests, if you want to use this.
Building
========
* Download the Android Native Development Kit (NDK): http://developer.android.com/tools/sdk/ndk/index.html#Downloads
* Extract into some directory and put that in your path:
`export PATH=ANDK_DIR:$PATH`
* In another directory clone this repo:
`git clone --recursive https://github.com/android-rooting-tools/android_run_root_shell`
* Change to the directory where the repo was cloned
`cd android_run_root_shell`
* To start build process use the following
`ndk-build NDK_PROJECT_PATH=. APP_BUILD_SCRIPT=./Android.mk`
* If all goes well you will get the compiled binary at:
`./libs/armeabi/run_root_shell`
Running
=======
* Download the Android Software Development Kit (SDK) ADT Bundle: http://developer.android.com/sdk/index.html
* Extract into some directory and put the platform-tools folder in your path:
`export PATH=SDK_DIR/sdk/platform-tools/:$PATH`
* Change to the directory with the compiled run_root_shell binary (see above)
* Connect your Android device through USB (click Cancel if it asks to enable USB storage; charging only is the correct mode) and enable USB debugging on the device.
* Start the adb server on your computer:
`sudo adb start-server`
* Transfer run_root_shell to a temporary directory on the phone:
`adb push run_root_shell /data/local`
* Ensure that run_root_shell has execute permissions:
`adb shell chmod 777 /data/local/run_root_shell`
* Run the command on the phone:
`adb shell /data/local/run_root_shell`
![avatar](https://profile-avatar.csdnimg.cn/9b2477a17809463d98cbef72b9eb6e12_lch516482670.jpg!1)
飞哥哥真牛
- 粉丝: 0
- 资源: 2
最新资源
- 基于C语言的第十九届全国大学生智能汽车竞赛越野信标组全国一等奖SUV设计源码
- NSM LSHADE CnEpSin算法-NSM-LSHADE-CnEpSin Algorithm-matlab
- 基于Vue与PHP的招商系统服务商管理系统设计源码
- 基于9月28号版本测试的C语言设计源码仓库
- 基于Java语言的九职消防演示系统后端设计源码
- 基于Python和Shell的树莓派学习项目设计源码
- 基于波传播曲率的N体重力模拟-N-body Gravity Simulation by Curvature of Wave Propagation-模拟太阳系、轨道进动、时间延迟、光偏转、黑洞阴影
- 基于Vue框架的白云机场机位分配前端设计源码
- 基于Python实现的photo-to-cartoon卡通化图像转换设计源码
- 基于Vue框架的ditan项目设计源码
- 基于Scala语言的毕设项目设计源码
- 基于Vue与TypeScript的vms自助办理入住Web端设计源码
- 基于JAVA的客房管理系统HTML前端设计源码
- 基于Java语言的个人运动健康饮食管理助手设计源码
- Simscape中具有路径规划的四足机器人-Quadruped Robot with Path Planning in Simscape-matlab
- 基于Go语言的成品项目仓库Project warehouse设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)