Is it possible to reboot by calling SYSCALL(sys_reboot,sys_reboot,sys32_reboot_wrapper)
?
Actually you can only if your mobile device is rooted. As alternative you can run adb reboot within your code. adb has the super user permission.
//include this file in kernel code
#include<cutils/android_reboot.h>
//call this function
android_reboot(ANDROID_RB_RESTART,0,0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With