1. Android Central Question's Avatar
    Hello.
    I'm here to ask 2 quick questions.
    I'm not rooted because there's no root apps and no recovery for my phone to be able to root it.

    1) can I grant an app root permissions using adb? Will these commands do the trick? If

    adb shell pm grant [package/app name] android.permission.WRITE_SECURE_SETTINGS

    adb shell pm grant [package/app name] android.permission.DUMP

    Or is there more or it's completely impossible . an answer would be appreciated.
    Thanks
    03-03-2018 08:14 AM
  2. Rukbat's Avatar
    Root is "granted" when an app (or the user) runs su first:

    $adb shell su [app name]
    $

    or if you elevate to root first

    $adb shell su
    #

    If you don't have su in the phone (in other words, the phone isn't rooted), you can't run su, so you can't "grant" root to anything. ("Granting root" is just running su - elevating the pseudo-user to superuser. Rooting the phone is just installing su - which you can't do unless you're rooted, which you don't need to do if you're already rooted ... whichis why someone has to figure out a way to "fake" each ROM for each phone into temporarily elevating to superuser - so that su can get copied.)

    Since you can't "grant root" unless the phone is rooted, the second question doesn't apply. (The Superuser or SU app just keeps track of which apps you've told it get to run su. That way, if a virus tries to run as root, it can't, because Superuser pops up and asks if it should grant that app root status and you say no. It's an app asking for elevation to superuser that triggers the app to run - you don't tie anything to anything.)

    Oh - and "granting an app root permissions does nothing - unless the app requests root permissions - which the apps that come with the phone won't. It doesn't make the app run faster, or use less battery or anything like that, it just allows the app to do what it does, like write to a folder that can only be written to by the owner or superuser. The apps that come with the phone aren't written to do anything like that, so whether they run elevated to root or not, they do the same thing.
    03-03-2018 11:53 AM

Similar Threads

  1. Replies: 6
    Last Post: 10-07-2018, 02:18 PM
  2. Apps do not update automatically
    By Parman7172 in forum Ask a Question
    Replies: 2
    Last Post: 06-18-2018, 09:18 PM
  3. MMS messages that weren't sent to me keep showing up?
    By Thu Phan in forum Ask a Question
    Replies: 2
    Last Post: 03-03-2018, 04:24 PM
  4. Why can I not change my keyboard back to its original one.
    By Android Central Question in forum Ask a Question
    Replies: 1
    Last Post: 03-03-2018, 08:01 AM
  5. How to fix active message blocking LG aristo
    By Android Central Question in forum Ask a Question
    Replies: 0
    Last Post: 03-03-2018, 06:12 AM
LINK TO POST COPIED TO CLIPBOARD