How vermashobhit737-droid/automatedroot works
AutomatedRoot is a Python command-line tool for rooting or unrooting MediaTek Android devices through ADB and the mtk-su exploit. The user selects an operation; the tool connects to a device, gathers and validates its platform details, transfers files, then runs the selected rooting or unrooting procedure. The documented modes are system-mode with SuperSU, bootless-mode with Magisk, and unrooting. The excerpts show orchestration and device operations, but not the contents of the shell scripts or binary payloads, so their internal behavior is not expanded here.
Main entry points: mtksu.py Operation handler · mtk-su.py CLI entry point · device.py Device operations · config.py Tool configuration
Components 13
CLI and configuration
- CLI entry point
mtk-su.py - Tool configuration
automated_root/utils/config.py - Logging and errors
automated_root/utils/logger.py - Option dispatch
automated_root/utils/switch.py
Device operations
- Device operations
automated_root/utils/device.py
Root operations
- Operation handler
automated_root/utils/mtksu.py - System root script
automated_root/files/common/root.sh - Bootless root script
automated_root/files/common/magisk-root.sh - Unroot script
automated_root/files/common/unroot.sh
Operation payloads
- Device payloads
automated_root/files
Other components
- Operator
- ADB service
- Android device
Connections 17
- Operator → CLI entry point: selects operation
mtk-su.py - CLI entry point → Tool configuration: reads options
mtk-su.py - CLI entry point → ADB service: starts service
mtk-su.py - CLI entry point → Operation handler: dispatches operation
mtk-su.py - CLI entry point → Logging and errors: reports errors
mtk-su.py - Operation handler → Tool configuration: reads settings
automated_root/utils/mtksu.py - Operation handler → Device operations: runs device workflow
automated_root/utils/mtksu.py - Operation handler → Option dispatch: selects mode
automated_root/utils/mtksu.py - Operation handler → Logging and errors: reports status
automated_root/utils/mtksu.py - Device operations → Tool configuration: reads settings
automated_root/utils/device.py - Device operations → Logging and errors: reports device
automated_root/utils/device.py - Device operations → ADB service: uses client
automated_root/utils/device.py - ADB service → Android device: controls device
- Operation handler → Device payloads: pushes and installs
automated_root/utils/mtksu.py - Operation handler → System root script: runs via exploit
automated_root/utils/mtksu.py - Operation handler → Bootless root script: runs on device
automated_root/utils/mtksu.py - Operation handler → Unroot script: runs via exploit
automated_root/utils/mtksu.py