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,492
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,442
Trophies
2
XP
2,828
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,492
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,442
Trophies
2
XP
2,828
Country
Thailand
You can disable those notifications in SuperUser application settings
 

Pleng

Custom Title
Member
Joined
Sep 14, 2011
Messages
2,442
Trophies
2
XP
2,828
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,442
Trophies
2
XP
2,828
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
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    why
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, it's not funny
  • K3Nv2 @ K3Nv2:
    ok
  • BigOnYa @ BigOnYa:
    Wut?
  • K3Nv2 @ K3Nv2:
    That's not funny
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    So two cannibals where eating a clown and one says to the other. Hey does this taste funny to you?
    +2
  • K3Nv2 @ K3Nv2:
    What do you call a slow car? Retired
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Did you hear about the police car that someone stole the wheels off of? The police are working tirelessly to find the thieves.
    +2
  • K3Nv2 @ K3Nv2:
    A firefighter got arrested for assault his main claim was what I was told he was on fire
    +2
  • BigOnYa @ BigOnYa:
    What do you call a hooker with a runny nose? Full
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    What do you tell a woman with two black eyes? Nothing you already told her twice!
  • K3Nv2 @ K3Nv2:
    Diddy also works
  • K3Nv2 @ K3Nv2:
    A scientist heard the word batman so he put a naked lady in a cage with a bat
  • Psionic Roshambo @ Psionic Roshambo:
    Chuck Norris won a staring contest, with the sun.
  • K3Nv2 @ K3Nv2:
    A vampires favorite thing to do is moon you
  • BigOnYa @ BigOnYa:
    What's the difference between an airplane, and Ken's mom? Not everyone has been in an airplane.
  • K3Nv2 @ K3Nv2:
    What's the difference between @BigOnYa and his wife? Nothing both want to bone me
    +3
  • RedColoredStars @ RedColoredStars:
    How much wood could a wood chuck chuck if a wood chuck could chuck norris
    +1
  • BakerMan @ BakerMan:
    how do i know? you're a guy, and he wants to bone every guy on this site (maybe, idk)
    +1
  • K3Nv2 @ K3Nv2:
    He wants to bone anything with a dick
    +1
  • Xdqwerty @ Xdqwerty:
    Good night
    +1
  • BigOnYa @ BigOnYa:
    Nighty night, big day tomorrow. Congrats.
    K3Nv2 @ K3Nv2: https://www.instagram.com/reel/C7iLZ35NrQt/?igsh=MWd2Z3U0dmNlMmNxcw==