A Flutter plugin for controlling hardware-level features on Rockchip RK series boards (e.g. RK3288, RK3399, RK3568). This plugin enables system-level control directly from Flutter apps, perfect for embedded devices and digital signage solutions.
- โ Power Control: Turn the device on or off
- โฐ Scheduled Power On/Off: Automatically power the device on or off at a specified time
- ๐ก Screen Control: Manage screen state (on/off)
- ๐ System Time Configuration: Set or synchronize system time
- โ RK3288
- โ RK3399
- โ RK3568
- โ Other Rockchip RK series boards
Requires Android OS (tested on Android 7.1+)
Add the dependency in your pubspec.yaml
:
dependencies:
rk_hardware_control: ^1.0.0
Replace with the actual plugin name and version.
Import the plugin:
import 'package:rk_hardware_control/rk_hardware_control.dart';
await RkHardwareControl.shutdown(); // Shutdown device
await RkHardwareControl.schedulePowerOn("08:00");
await RkHardwareControl.schedulePowerOff("22:00");
await RkHardwareControl.turnScreenOff();
await RkHardwareControl.turnScreenOn();
await RkHardwareControl.setSystemTime("2025-06-29 15:30:00");
Ensure your app has system-level permissions and is signed with the platform key, as most of these controls require elevated access.
This project is licensed under the Apache License 2.0.
For issues, feature requests, or contributions, please open an Issue or submit a Pull Request.