Yes, you can set an app to run with UID 0 (root) on an Android device using adb, but only if the device is rooted and allows such operations.
bashadb shell
bashps -A | grep <app-package-name>
kill to stop the app process:
bashkill <PID>
basham start -n <app-package-name>/<app-activity> --uid 0
<app-package-name> and <app-activity> with your app's details./data/system/packages.xml/data/system/packages.xml to change the app's UID, but this is risky and may break the app.Would you like help with a specific app or use case? Let me know!
Vibe can make mistakes. Check answers. Learn more