Skip to content
/ AERoot Public
forked from quarkslab/AERoot

AERoot is a command line tool that allows you to give root privileges on-the-fly to any process running on the Android emulator with Google Play flavors AVDs.

License

Notifications You must be signed in to change notification settings

BiteFoo/AERoot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python version

AERoot (Android Emulator ROOTing system)

alt text AERoot is a command line tool that allows you to give the root privileges on-the-fly to any process running on the Android emulator with Google Play flavors AVDs.

This project is a rewrite from scratch of the android-emuroot tool (https://github.com/airbus-seclab/android_emuroot). It comes with new features:

  • Recent AVDs support (Android API > 27)
  • Execution time optimization
  • Selection of a process by its PID

Compatible AVDs

Release Name API Level ABI Target
Nougat 24 x86 Android 7.0 (Google Play)
Nougat 25 x86 Android 7.1.1 (Google Play)
Oreo 26 x86 Android 8.0 (Google Play)
Oreo 27 x86 Android 8.1 (Google Play)
Pie 28 x86 Android 9.0 (Google Play)
Pie 28 x86_64 Android 9.0 (Google Play)
Q 29 x86 Android 10.0 (Google Play)
Q 29 x86_64 Android 10.0 (Google Play)
R 30 x86 Android 11.0 (Google Play)
R 30 x86_64 Android 11.0 (Google Play)

Installation

git clone https://github.com/quarkslab/AERoot.git
pip3 install -r requirements.txt

Quick-start

First of all, you must launch the Android emulator with the gdb qemu option (-qemu -s).

emulator @Your_AVD -qemu -s

Then run aeroot.py by choosing the mode among:

  • pid: give the root privileges to a process selected by its PID.
  • name: give the root privileges to a process selected by its name.
  • daemon: give the root privileges to the ADB daemon, so shells created with adb shell will automaticaly have root rigths.

Usage

aeroot.py [-h] [--verbose | --quiet] [--device DEVICE] [--host HOST] [--port PORT] {name,pid,daemon} ...

Examples

pid mode example

aeroot.py pid 1337

Gives the root privileges to the process with pid 1337

name mode example

aeroot.py name my_process

Gives the root privileges to the process named "my_process"

daemon mode example

aeroot.py daemon

Gives the root privileges to the ADB daemon

Additional options

You can find additional options by checking the help of the tool: aeroot.py -h

About

AERoot is a command line tool that allows you to give root privileges on-the-fly to any process running on the Android emulator with Google Play flavors AVDs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%