how to grant root using adb? - OnePlus 3T Questions & Answers

Idk if this stupid question I'm still a noob lol but Is it possible to grant root using adb shell without rooting the phone?

Related

tatoo M7 root completed but applications say it is not rooted

I have completed my Tattoo M7 root however applications say it is not rooted.
basically if i do ADB SHELL and then SU i get the root console but can not write to /system folder via adb push since i get permisison denied which means i always have to adb shell and su.
I believe this is somehow creating problems also to applications (i am testing Titanium Backup) which require root permissions and say i am not.
Anyone can help understanding why i can su only in console or terminal emultor but cannot use apps requiring root permissions.
Dude, you have to remount EVERY TIME /system and /data if you reboot, otherwise it says permission denied because system is read only...
Get RootExplorer, there is a little button which lets you remount partitions with one tap...
pardol said:
I have completed my Tattoo M7 root however applications say it is not rooted.
basically if i do ADB SHELL and then SU i get the root console but can not write to /system folder via adb push since i get permisison denied which means i always have to adb shell and su.
I believe this is somehow creating problems also to applications (i am testing Titanium Backup) which require root permissions and say i am not.
Anyone can help understanding why i can su only in console or terminal emultor but cannot use apps requiring root permissions.
Click to expand...
Click to collapse
hi
as ur question in the related thread
see link : http://forum.xda-developers.com/showthread.php?t=637927
CLOSED

How to make adb work on root permission directly?

I have already rooted my Droid 3( the system is Verizon 906) , but when I use adb to contol it, I cannot get it run on root directly. I need to exploit it and reboot my phone to make adb run on root.
How to make adb run on root directly?
lzy0702 said:
I have already rooted my Droid 3( the system is Verizon 906) , but when I use adb to contol it, I cannot get it run on root directly. I need to exploit it and reboot my phone to make adb run on root.
How to make adb run on root directly?
Click to expand...
Click to collapse
So do you want any ADB command you send to the phone to have root privilege?
If you run ADB SHELL and then run su in the shell, you will get root privilege for that session (is that not enough for what you're trying to do?)
LaZiODROID said:
So do you want any ADB command you send to the phone to have root privilege?
If you run ADB SHELL and then run su in the shell, you will get root privilege for that session (is that not enough for what you're trying to do?)
Click to expand...
Click to collapse
It does work! Thanks a lot.

Root without custom recovery?

Can you root the One without installing a custom recovery? I want to root my buddies phone, but I don't want to put a custom recovery on because I want him to be able to take OTA updates. I know this is possible on some Samsung phones, but I'm not sure it can be done on HTC phones?
You can s-off and after it gets root and you have s-off, (after you run revone -s 0) then:
Code:
adb remount
adb push su /system/xbin/su
adb shell chmod 04755 /system/xbin/su
Then you just simply install the SuperUser app from the playstore.
Root simply means that you have access to superuser privileges, aka, power to change anything in the "root".
It had nothing to do with custom recovery, although it is common to see both together.
This is also possible on practically any phone, it's not brand-specific.
Note that there are easier ways for people to take OTAs though. As it can fail even if you still have stock recovery installed.
Someone usually posts the stock rooted update within a day or two of its release, and that's the easiest way of updating IMO. Taking the OTA while rooted will either fail, flash and remove root, or just flash normally.
Indirect said:
You can s-off and after it gets root and you have s-off, (after you run revone -s 0) then:
Code:
adb remount
adb push su /system/xbin/su
adb shell chmod 04755 /system/xbin/su
Then you just simply install the SuperUser app from the playstore.
Click to expand...
Click to collapse
Wouldn't we have to download the SU.apk before pushing to the phone?
toomuchespresso said:
Wouldn't we have to download the SU.apk before pushing to the phone?
Click to expand...
Click to collapse
That was implied...
Thanks. I just want to clarify because I'm tired this morning, su is the same as SuperUser or SuperSU? Or is it a different apk?
EDIT: Nevermind. Forgot it's the binary.
Could anyone be more specific as to the steps necessary? Sorry, I am a bit of a noob. I already have S-OFF with revone.
leo.sutton said:
Could anyone be more specific as to the steps necessary? Sorry, I am a bit of a noob. I already have S-OFF with revone.
Click to expand...
Click to collapse
i would also appreciate some more details if possible?

[Q] adb with root rights

Hello
Is there a solution to have adb with root access with a stock kernel ?
Or the only way is to unlock the bootloader and flash an alternative kernel ?
Thanks.
Adb can access stock ROM with root rights on stock kernel.
Just type "adb su" and you'll get prompt to allow superuser access to your device. But you should be rooted in order to do this.
And having unlocked Bootloader is very necessary to flash custom kernel
Sent from my C5302 using XDA Free mobile app
My bad, I forgot that.
I was trying using "adb root" and it answers something like impossible.
Thanks !
No problem
Always there to help
Sent from my C5302 using XDA Free mobile app
To fully use the adb root function on your device it has to be rooted;
So when rooted just enter the following commands:
Adb shell >enter<
Su >enter<
- A SuperUser prompt will appear on your device press approve or ok or whatever
And you can now use adb with your phone and root rights
~~ Regards
mrjraider said:
To fully use the adb root function on your device it has to be rooted;
So when rooted just enter the following commands:
Adb shell >enter<
Su >enter<
- A SuperUser prompt will appear on your device press approve or ok or whatever
And you can now use adb with your phone and root rights
~~ Regards
Click to expand...
Click to collapse
No. Even running a shell as root I continue with:
- adb root : "adbd cannot run as root in production builds"
- adb push xxxx /system/xxxx : failed to copy 'xxxx' to '/system/xxxxx': Permission denied
I think the only way to do that is to have a rooted kernel.
Last one is because /system is Read-Only
~~ Regards
mrjraider said:
Last one is because /system is Read-Only
~~ Regards
Click to expand...
Click to collapse
Nope ...
it's rw, verified ...
oh it is RW protected ofcourse
~~ Regards
mrjraider said:
oh it is RW protected ofcourse
~~ Regards
Click to expand...
Click to collapse
? rw protected ?
Without proper root you cannot push files to /system.
I even had issues with adb pull /system
To be honest I have no idea.
~~ Regards

How to manually re-grant access?

Hey guys! I accidentally "forgotten" access to the ADB Shell on my Super SU. I am really scared now. How do I manually re-enable it? I don't want to flash my phone and stuff if possible.
P.S. If this is the wrong topic/thread please feel free to direct me to the proper area.
zeron824 said:
Hey guys! I accidentally "forgotten" access to the ADB Shell on my Super SU. I am really scared now. How do I manually re-enable it? I don't want to flash my phone and stuff if possible.
P.S. If this is the wrong topic/thread please feel free to direct me to the proper area.
Click to expand...
Click to collapse
Regranting su access is an extremely quick and simple process. All you have to do to be able to use root from adb shell is to start and and shell on the device again, call su and grant root from the SuperSU access prompt that will appear on the device, regranting access to apps is simple too, simply open the app and when it calls for su, SuperSU will bring up the access prompt for any app/uid that it hasn't got any stored settings for already
mmonaghan34 said:
Regranting su access is an extremely quick and simple process. A you have to do to be able to use root from adb shell is to start and and shell on the device again, call su and grant root from the SuperSU access prompt that will appear on the device, regranting access to apps is simple too, simply open the app and when it calls for sure, SuperSU will bring up the access prompt for any app/uid that it hasn't got any stored settings for already
Click to expand...
Click to collapse
Thank you very much!

Categories

Resources