I have set permissions in the manifest:
<uses-permission android:name="android.permission.REBOOT" />
I call the following lines to reboot device:
Intent intent = new Intent(Intent.ACTION_REBOOT);
sendBroadcast(intent);
Since I have root permissions in the emulator, I am curious why I encounter the following error:
Permission Denial: not allowed to send broadcast android.intent.action.REBOOT from pid=963, uid=10046