hack-root

Project Url: zjkhiyori/hack-root
Introduction: Android APP get root-level permissions without rooted system
More: Author   ReportBugs   
Tags:
Add tag-

English

Chinese

HackRoot is a demo that you can get adb shell level permission with out rooted system, such as uninstall app silently, get adb logcat, hack hosts, kill a proccess or service etc...

example

Beginning

  • Pls make sure that your Android device has toggle debug mode before starting
  • Clone the project
  • Push ${rootProject}/libs/server.dex file to your android device directory /data/local/tmp/
      adb push ${rootProject}/libs/server.dex /data/local/tmp
    
  • Install the lastest release apk
  • Execute the script
    • Foreground(service will close if you unplug the USB cable)
        bash scripts/launch_fore.sh
      
    • Background(will keep running unless restart the device or kill this service, service name is club.syachiku.hackrootservice )
        bash scripts/launch_silence.sh
      

Now you can use Hackroot to uninstall any app by input package id, or anything adb shell could do

If you have any question or idea, pls feel free to create a pr or issue

Technical reference

android-common

Fairy

app_process-shell-use

HackRoot CN

HackRoot 是一个可以让系统免 root,App 仍能获取高级权限的一个 demo,比如静默卸载安装,获取 adb 调试日志,篡改 hosts,杀掉某个服务、进程等等 adb shell 能做到的一切事情

example

开始使用

  • 开始前请确保你的 Android 设备已经开启调试模式
  • Clone 工程
  • ${rootProject}/libs/server.dex文件 push 至你的 android 设备目录的/data/local/tmp/
      adb push ${rootProject}/libs/server.dex /data/local/tmp
    
  • 安装最新 release 的 apk
  • 执行启动脚本
    • 前台执行(拔掉数据线服务会关闭)
        bash scripts/launch_fore.sh
      
    • 后台执行(除非重启设备或者 kill 该服务,否则会一直运行,任务名称为club.syachiku.hackrootservice
        bash scripts/launch_silence.sh
      
      现在你可以进入 HackRoot 输入包名随意静默卸载 App,或者任何 adb 能做的事情

若大家有有趣的想法与建议,欢迎 fork 与 pr

技术参考

android-common

Fairy

app_process-shell-use

License

MIT License

Copyright (c) 2019 Yori Zhao

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools