Domanda

I was tryng to reboot my device with my app, but it throws an exception with Error message "The app with xxxx uid and with xxxx pid you can't reboot the device". So, if I can search what is the pid or uid that can, may be like a pid of alarm or other can do that, because are from the OS. Thanks for all

È stato utile?

Soluzione

You can request superuser privileges on rooted devices thru the su command and reboot the device with reboot.

Altri suggerimenti

How i can change the uid and pid of my app?

This is not possible.

The thing is that i try to reboot my app

You do not "reboot" an "app". You reboot a device.

but he throw a exception and the messages say that with xxxx uid and with xxxx pid you cant reboot

Only applications considered part of the firmware can hold the necessary permissions to reboot a device. If you wish to reboot a device, build your own custom firmware.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top