Magisk module to patch boot image to make your powered off device turn on automatically as charger is plugged. Similiar to iPhone
- A rooted Android device with Magisk installed.
-
Download and install this module
-
Run
autoboot_patcher auto
. -
Now see if it's working, power off the device and plug a charger
- The patching process modifies the
boot.img
, which is a critical component of the Android system. Be cautious while applying patches and ensure you have proper backups in case anything goes wrong. - The provided
init.custom.sh
contains a proof-of-concept line that triggers a reboot. Avoid using this line in a production environment.
Use the provided scripts and patches at your own risk. The repository owner and contributors are not responsible for any damage or issues that may occur as a result of using these scripts.
The patch has been successfully tested on the following devices:
- Redmi 4X running Android 10
- Samsung J3 (2016) running Android 7.1.2
- Google Pixel 4a running CalyxOS
- anasfanani - Author