Android Run App as Root?

  • Thread starter Thread starter gudenau
  • Start date Start date
  • Views Views 1,821
  • Replies Replies 7

Good idea?

  • Yes

    Votes: 0 0.0%
  • No

    Votes: 0 0.0%
  • Turnip

    Votes: 4 100.0%

  • Total voters
    4

gudenau

Largely ignored
Member
Joined
Jul 7, 2010
Messages
4,111
Reaction score
4,488
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
7,876
Country
United States
I was wondering if you can use root access to relaunch an app as the root user? Say launch->check root->user->relaunch as root->check root->start root activity. This could be useful to prevent toast spam.
 
No I don't think it's possible. I'm pretty sure apps can only be launched in user space and from there you have to shell-out to root.

How would this prevent toast spam anyway? And how on earth do you end up suffering from toast spam? If an app abuses toast, just uninstall it and find an alternative
 
No I don't think it's possible. I'm pretty sure apps can only be launched in user space and from there you have to shell-out to root.

How would this prevent toast spam anyway? And how on earth do you end up suffering from toast spam? If an app abuses toast, just uninstall it and find an alternative
If you can get root in your app, you might be able to relaunch as root. But if you are doing a lot of small operations with su you will get a toast message saying the app got root. I have had them last for minutes.
 
You can change the toast notification setting either globally, or on a per-app basis from within the SuperUser app.

You're trying to reinvent the wheel with tools that don't exist.
 
Then you need to build a custom ROM which enables Android to launch apps as root.

I doubt it will stop the toast issues, anyway, as apps that request root always shell out to SU.... None of them are expecting to be launched as root.

Probably best to just disable notifications in your SuperUser app. The only issue is that the setting gets reset when the app is updated. But you can see why that's a good thing from the security viewpoint.
 

Site & Scene News