[ROOT ONLY] Root Power Manager – Shutdown & Reboot Extension

Root required: YES

Description
Root Power Manager is a simple extension that allows an app to shutdown or reboot an Android device using root access.

This extension is intended for advanced users and rooted devices only.
It does not root the device and does not bypass Android security.
It only executes power commands using existing root permissions.

If something goes wrong (no root, permission denied, or command failure), the extension triggers an event so the app can handle the error properly.

Features

  • Shutdown the device
  • Reboot the device
  • Failure event with error message
  • Lightweight and simple
  • No external libraries

Available Blocks

Action Blocks

  • Shutdown
  • Reboot

Event Blocks

  • IfFailed(errorMessage)

How It Works
The extension executes system power commands using the "su" binary.

If the device is not rooted, root permission is denied, or the command fails, the IfFailed event will be triggered with a descriptive error message.

Important Notes

Blocks

Example usage:
Button click → Reboot
IfFailed → Show error message

Tested On

  • Rooted Android device
  • Magisk
  • Niotron IDE

Disclaimer
Use at your own risk.
The developer is not responsible for any data loss or device issues caused by improper use.