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

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,882
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
5,419
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.
 

Pleng

Custom Title
Member
Joined
Sep 14, 2011
Messages
2,440
Trophies
2
XP
2,812
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
OP
Member
Joined
Jul 7, 2010
Messages
3,882
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
5,419
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,440
Trophies
2
XP
2,812
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,440
Trophies
2
XP
2,812
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

Popular threads in this forum

General chit-chat
Help Users
    Sonic Angel Knight @ Sonic Angel Knight: @_@