Is there a way to give root privileges to an app through the ADB?
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
2
down vote
favorite
The Android Debug Bridge (ADB) itself has root access (after executing the adb root command). Can that be used to give the same privileges to apps on the device? Is there a file somewhere in the system that keeps track of which user (app) has root access and can it be modified? If it helps I've already put the app in the system folder so it's regarded as a system app now.
applications adb root-access
add a comment |
up vote
2
down vote
favorite
The Android Debug Bridge (ADB) itself has root access (after executing the adb root command). Can that be used to give the same privileges to apps on the device? Is there a file somewhere in the system that keeps track of which user (app) has root access and can it be modified? If it helps I've already put the app in the system folder so it's regarded as a system app now.
applications adb root-access
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
The Android Debug Bridge (ADB) itself has root access (after executing the adb root command). Can that be used to give the same privileges to apps on the device? Is there a file somewhere in the system that keeps track of which user (app) has root access and can it be modified? If it helps I've already put the app in the system folder so it's regarded as a system app now.
applications adb root-access
The Android Debug Bridge (ADB) itself has root access (after executing the adb root command). Can that be used to give the same privileges to apps on the device? Is there a file somewhere in the system that keeps track of which user (app) has root access and can it be modified? If it helps I've already put the app in the system folder so it's regarded as a system app now.
applications adb root-access
applications adb root-access
asked yesterday
Stormtrooper
182
182
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
Nope. Though you could use e.g. pm grant
and grant it SUPERUSER
, but that would have no effect if the app hadn't declared that in its manifest. And if it had, it wouldn't be necessary to grant it manually.
An app must actively request superuser privileges in order to gain it – and even then it only works with a superuser app in place (acting as "gate keeper") that then pops up a message for the user to confirm.
Ah, I had hoped it could be done without a superuser app. Too bad but thanks for your time.
– Stormtrooper
yesterday
1
If it could be done without a superuser app, it would be too bad – for security :)
– Izzy♦
yesterday
True but after the ADB is allowed you can already compromise security in many ways. I've tried making my app a system one on two different devices. On one making the app a system one automatically gave it root privileges but in the seconds case it does not... Better security I guess.
– Stormtrooper
yesterday
Does that mean that grantingSUPERUSER
withpm grant
effectively does nothing?
– Raimund Krämer
yesterday
Granting anything an app has not in its manifest does nothing AFAIK, @RaimundKrämer.
– Izzy♦
yesterday
|
show 3 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
Nope. Though you could use e.g. pm grant
and grant it SUPERUSER
, but that would have no effect if the app hadn't declared that in its manifest. And if it had, it wouldn't be necessary to grant it manually.
An app must actively request superuser privileges in order to gain it – and even then it only works with a superuser app in place (acting as "gate keeper") that then pops up a message for the user to confirm.
Ah, I had hoped it could be done without a superuser app. Too bad but thanks for your time.
– Stormtrooper
yesterday
1
If it could be done without a superuser app, it would be too bad – for security :)
– Izzy♦
yesterday
True but after the ADB is allowed you can already compromise security in many ways. I've tried making my app a system one on two different devices. On one making the app a system one automatically gave it root privileges but in the seconds case it does not... Better security I guess.
– Stormtrooper
yesterday
Does that mean that grantingSUPERUSER
withpm grant
effectively does nothing?
– Raimund Krämer
yesterday
Granting anything an app has not in its manifest does nothing AFAIK, @RaimundKrämer.
– Izzy♦
yesterday
|
show 3 more comments
up vote
3
down vote
accepted
Nope. Though you could use e.g. pm grant
and grant it SUPERUSER
, but that would have no effect if the app hadn't declared that in its manifest. And if it had, it wouldn't be necessary to grant it manually.
An app must actively request superuser privileges in order to gain it – and even then it only works with a superuser app in place (acting as "gate keeper") that then pops up a message for the user to confirm.
Ah, I had hoped it could be done without a superuser app. Too bad but thanks for your time.
– Stormtrooper
yesterday
1
If it could be done without a superuser app, it would be too bad – for security :)
– Izzy♦
yesterday
True but after the ADB is allowed you can already compromise security in many ways. I've tried making my app a system one on two different devices. On one making the app a system one automatically gave it root privileges but in the seconds case it does not... Better security I guess.
– Stormtrooper
yesterday
Does that mean that grantingSUPERUSER
withpm grant
effectively does nothing?
– Raimund Krämer
yesterday
Granting anything an app has not in its manifest does nothing AFAIK, @RaimundKrämer.
– Izzy♦
yesterday
|
show 3 more comments
up vote
3
down vote
accepted
up vote
3
down vote
accepted
Nope. Though you could use e.g. pm grant
and grant it SUPERUSER
, but that would have no effect if the app hadn't declared that in its manifest. And if it had, it wouldn't be necessary to grant it manually.
An app must actively request superuser privileges in order to gain it – and even then it only works with a superuser app in place (acting as "gate keeper") that then pops up a message for the user to confirm.
Nope. Though you could use e.g. pm grant
and grant it SUPERUSER
, but that would have no effect if the app hadn't declared that in its manifest. And if it had, it wouldn't be necessary to grant it manually.
An app must actively request superuser privileges in order to gain it – and even then it only works with a superuser app in place (acting as "gate keeper") that then pops up a message for the user to confirm.
answered yesterday
Izzy♦
75.5k49237738
75.5k49237738
Ah, I had hoped it could be done without a superuser app. Too bad but thanks for your time.
– Stormtrooper
yesterday
1
If it could be done without a superuser app, it would be too bad – for security :)
– Izzy♦
yesterday
True but after the ADB is allowed you can already compromise security in many ways. I've tried making my app a system one on two different devices. On one making the app a system one automatically gave it root privileges but in the seconds case it does not... Better security I guess.
– Stormtrooper
yesterday
Does that mean that grantingSUPERUSER
withpm grant
effectively does nothing?
– Raimund Krämer
yesterday
Granting anything an app has not in its manifest does nothing AFAIK, @RaimundKrämer.
– Izzy♦
yesterday
|
show 3 more comments
Ah, I had hoped it could be done without a superuser app. Too bad but thanks for your time.
– Stormtrooper
yesterday
1
If it could be done without a superuser app, it would be too bad – for security :)
– Izzy♦
yesterday
True but after the ADB is allowed you can already compromise security in many ways. I've tried making my app a system one on two different devices. On one making the app a system one automatically gave it root privileges but in the seconds case it does not... Better security I guess.
– Stormtrooper
yesterday
Does that mean that grantingSUPERUSER
withpm grant
effectively does nothing?
– Raimund Krämer
yesterday
Granting anything an app has not in its manifest does nothing AFAIK, @RaimundKrämer.
– Izzy♦
yesterday
Ah, I had hoped it could be done without a superuser app. Too bad but thanks for your time.
– Stormtrooper
yesterday
Ah, I had hoped it could be done without a superuser app. Too bad but thanks for your time.
– Stormtrooper
yesterday
1
1
If it could be done without a superuser app, it would be too bad – for security :)
– Izzy♦
yesterday
If it could be done without a superuser app, it would be too bad – for security :)
– Izzy♦
yesterday
True but after the ADB is allowed you can already compromise security in many ways. I've tried making my app a system one on two different devices. On one making the app a system one automatically gave it root privileges but in the seconds case it does not... Better security I guess.
– Stormtrooper
yesterday
True but after the ADB is allowed you can already compromise security in many ways. I've tried making my app a system one on two different devices. On one making the app a system one automatically gave it root privileges but in the seconds case it does not... Better security I guess.
– Stormtrooper
yesterday
Does that mean that granting
SUPERUSER
with pm grant
effectively does nothing?– Raimund Krämer
yesterday
Does that mean that granting
SUPERUSER
with pm grant
effectively does nothing?– Raimund Krämer
yesterday
Granting anything an app has not in its manifest does nothing AFAIK, @RaimundKrämer.
– Izzy♦
yesterday
Granting anything an app has not in its manifest does nothing AFAIK, @RaimundKrämer.
– Izzy♦
yesterday
|
show 3 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fandroid.stackexchange.com%2fquestions%2f203850%2fis-there-a-way-to-give-root-privileges-to-an-app-through-the-adb%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown