zjkhiyori / hack-root

Android APP get root-level permissions without rooted system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English

Chinese

HackRoot EN

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.

About

Android APP get root-level permissions without rooted system

License:MIT License


Languages

Language:Java 97.9%Language:Shell 2.1%