• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to enable Superuser acces for android app from command line?

I have an Android system application which executes sudo commands. And when I run the app for the first time Superuser displays following window: "[App Name] is requesting Superuser access" with options allow and deny.

There is any way to Allow Superuser for my application manually from "adb shell" ?

qt9F5m.jpg
 
You have to also select "Remember this choice forever"
Of course I do. Problem is that the Superuser application opens this window every time. I need to allow sudo access for my app from command line (adb shell) if it's possible.
I have also tried to disable/remove Superuser.apk, in this case , Window not appears, but my app not executing commands.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones