Android Run App as Root?

Good idea?

  • Yes

    Votes: 0 0.0%
  • No

    Votes: 0 0.0%
  • Turnip

    Votes: 4 100.0%

  • Total voters
    4

Pleng

Custom Title
Member
Joined
Sep 14, 2011
Messages
2,391
Trophies
1
XP
2,466
Country
Thailand
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
 

gudenau

Largely ignored
Member
GBAtemp Patron
Joined
Jul 7, 2010
Messages
3,738
Trophies
0
Location
/dev/random
Website
www.gudenau.net
XP
3,436
Country
United States
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.
 

Pleng

Custom Title
Member
Joined
Sep 14, 2011
Messages
2,391
Trophies
1
XP
2,466
Country
Thailand
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.
 

Pleng

Custom Title
Member
Joined
Sep 14, 2011
Messages
2,391
Trophies
1
XP
2,466
Country
Thailand
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

General chit-chat
Help Users
    huma_dawii @ huma_dawii: Love it. Okay gotta go.