Search code examples
androidsdkpidrebootuid

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


Solution

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