How i can change the uid and pid of my app?
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
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.
You can request superuser privileges on rooted devices thru the su
command and reboot the device with reboot
.
精彩评论