reboot

open fun reboot()

Reboot the device.

Requires root permissionor hold {@code android:sharedUserId="android.uid.system"} in manifest.

open fun reboot(reason: String)

Reboot the device.

Requires root permissionor hold {@code android:sharedUserId="android.uid.system"}, {@code }

Parameters

reason

code to pass to the kernel (e.g., "recovery") to request special boot modes, ornull.