[Q] adb with root rights - Xperia SP Q&A, Help & Troubleshooting

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

Related

Root instructions...

Originally posted by Stetsonaw at androidforums...
Please be aware that I did not write these instructions. I only posted them. Stetsonaw wrote these instructions. While comfortable in ADB and have rooted my phone many times in testing as well as rolled back the versions etc... I have no more insight into how or why it is not working for you. If you followed the directions exactly on a version 4 phone, this should work no problem.
Haxcid
Links to the necessary files are listed at the bottom.
Remember, I am not at fault if you brick your phone, now, proceed.
Connect your phone in charge only mode to install the LG Bootstrapper and drivers, or grab the LG Universal Drivers.
Change your USB Mode to Internet Connection
Go into Settings/Applications/Development and ensure USB Debugging is turned on
If all goes according to plan, you should see the ADB Ladybug icon in your notification bar
I updated the Rootzwiki page with the same info found below.
Busybox actually comes installed by LG on the Revo, how awesome is that??
Download the rageagainstthecage binary
Download the SU binary
Move these files to the same directory your adb.exe is in.
Code:
The > and # characters below illustrate the prompt
you should have, if you have the $ when you go into adb shell,
exit out and type 'adb usb' then go back into adb shell and
you should see the #
Open Command prompt (either use the Windows Key+R and type cmd or start/run, then type cmd)
32-bit users: >cd c:\program files\android\android-sdk\platform-tools
64-bit users: >cd c:\program files (x86)\android\android-sdk\platform-tools
Or >cd (whatever directory adb is in)
>adb devices (verifies you are connected)
>adb push rageagainstthecage-arm5.bin /data/local/temp/rage
(if the above command fails due to read-only, type 'adb usb' then 'adb root' to validate root status, then 'adb devices' again to verify connection)
>adb push su /data/local/temp/su
>adb shell chmod 777 /data/local/temp/rage
>adb shell ./data/local/temp/rage
>adb shell (If this gives you a $ prompt instead of a # prompt, type 'su', if that fails, 'exit', 'adb usb' like above.)
#mount -o remount,rw -t ext3 /dev/mmcblk0p12 /system
#busybox cp /data/local/temp/su /system/bin/su
#chmod 6755 /system/bin/su
Verify the file is in place w/correct permissions
#cd /system/bin
#ls -l *su
After the ls command you should see the following returned by the system:
-rwsr-sr-x root root 26248 2011-05-29 01:09 su
At this point, you may way to remove the files you put in /data/local/temp (optional):
#rm /data/local/temp/su
#rm /data/local/temp/rage
continue with commands
#reboot
Download and install SuperUser from the Market
Thanks Zennmaster, _mrbirdman_ for finding the linux routes and birdman for helping me out, and droidx8971 for helping me find all the information possible!
http://wikifilez.com/Root Files/revolution/rageagainstthecage-arm5.bin
http://wikifilez.com/Root Files/revolution/su
https://market.android.com/details?id=com.noshufou.android.su&feature=search_result
http://www.lg.com/us/support/mc-support/drivers/LGAndroidDriver_Ver_1.0_All.exe
Just a note for some. The rageagainstthecage bin file may be detected as a virus/trojan. It is not. You may want to disable your antivirus before downloading the .bin file.
I run avira on my desktop and it caught the file as a virus everytime I downloaded it and then deleted it. Avast on my laptop however did not.
Root is simple if you follow the instructions. You need to make sure that adb recognizes your device. Takes 5 minutes to complete, took me longer to install adb again and update it.
Any reason to not use the one click method? Seems to be working
bwhxeon said:
Any reason to not use the one click method? Seems to be working
Click to expand...
Click to collapse
No idea. I have not used the one click. Create a thread for it. I posted what I know which is adb.
Successfully Rooted
with RootzWiki instructions for Windows, needed the remount and busybox lines to overcome the permission denied when pushing su.
Hey guys, either using S1C or ADB Commands, have we found out if it's possible to unroot this as long as you Nand Backup the stock rom then unroot from there yet? Just because I got this phone as a filler/4g unl. lock and got buyback on it from best buy so I could buy a dual/quad later on when they come out .
MXFrodo195 said:
Hey guys, either using S1C or ADB Commands, have we found out if it's possible to unroot this as long as you Nand Backup the stock rom then unroot from there yet? Just because I got this phone as a filler/4g unl. lock and got buyback on it from best buy so I could buy a dual/quad later on when they come out .
Click to expand...
Click to collapse
Doing a factory reset I believe will unroot you. There is no nand back up at this time. We are waiting for a recovery mod.
Haxcid said:
Doing a factory reset I believe will unroot you. There is no nand back up at this time. We are waiting for a recovery mod.
Click to expand...
Click to collapse
Oh ya I know, I just always keep a stock one, on the Inc if you factory reset from an AOSP rom, you'd bootloop, so you had to make sure you were on a Sense 1.0 or stock rom(from my experience), so I was just making sure it was no big deal to go back.
Any idea when we will have cw on this?
Haxcid said:
Doing a factory reset I believe will unroot you. There is no nand back up at this time. We are waiting for a recovery mod.
Click to expand...
Click to collapse
I tried the factory reset. I am still rooted.
navycow said:
I tried the factory reset. I am still rooted.
Click to expand...
Click to collapse
That's what i figured. Can anyone verify if you remove SU and Rage through adb will it unroot?
Sent from my VS910 4G using XDA Premium App
MXFrodo195 said:
That's what i figured. Can anyone verify if you remove SU and Rage through adb will it unroot?
Sent from my VS910 4G using XDA Premium App
Click to expand...
Click to collapse
If you have to return your device, simply remove the superuser app, after you unfreeze anything you may have frozen then factory reset. They honestly will never know it was rooted. The only way now that you can really tell is the super user app from market.
Just so everyone knows. SuperOneClick can root and unroot this phone ok.
navycow said:
Just so everyone knows. SuperOneClick can root and unroot this phone ok.
Click to expand...
Click to collapse
Thank you for confirming this. My revolution just came in the mail today!
Thanks for posting this here for me Haxcid!
Sent from 1885
navycow said:
Just so everyone knows. SuperOneClick can root and unroot this phone ok.
Click to expand...
Click to collapse
Cool thanks for checking. Any benefits for ADB over S1C? Can't wait to finally root and freeze half these apps. I think we need a few more twitters to praise koush for a recovery on this beast.
Sent from my VS910 4G using XDA Premium App
Is there recovery for this now? Did I miss something?
stetsonaw said:
Is there recovery for this now? Did I miss something?
Click to expand...
Click to collapse
No No, I was saying we need to praise Koush's good work so he will make one faster .
And Stetsonaw, any idea if I root through ADB, can I unroot with S1C, since it uses the same idea.
S1C for whatever reason will not run(tried three computers, a XP, Vista, and Win7 lol), it keeps freezing at the same spot, everytime.
Should be able to, since S1C does what the ADB method does... or you could just delete the 'su' file out of /system/bin and /system/xbin (if it's there) to unroot.
EDIT: I couldn't get S1C to open on my desktop, and my laptop, which would open the program, would bluescreen when i connected the phone, so i had no choice but to do it the ADB way.
stetsonaw said:
Should be able to, since S1C does what the ADB method does... or you could just delete the 'su' file out of /system/bin and /system/xbin (if it's there) to unroot.
EDIT: I couldn't get S1C to open on my desktop, and my laptop, which would open the program, would bluescreen when i connected the phone, so i had no choice but to do it the ADB way.
Click to expand...
Click to collapse
Hmmm, ya now my computer for whatever reason won't open up ADB through command. This is getting irritating lol. Should be nice and simple, but it just won't go through. If I downloaded the SDK Manager like 4 months ago, it shouldn't matter, correct?
make sure you change directory to wherever your adb.exe is located... as in:
Code:
cd C:\Program Files\Android\android-sdk-windows\platform-tools

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.

Is there any way to require adb shell root?

I got the tool "galaxys2_kernel_repack" to modified the zImage which got from the official release and changed the default.prop "ro.secure=0".
Use the kTool.apk write the image to phone. after reboot, the default.prop value has changed. but the adb shell is still in normal mode, not root mode.
Is there any way to require adb shell root?
Thanks for you help.
My devices software version is N7000ZSLPM_TGY
hello,
have you tried this :
ningoune said:
hello,
have you tried this :
Click to expand...
Click to collapse
Thanks for your answer.
I used the stock ICS release by SAMSUNG, not CM release.
As your answer, there is still the normal mode, but can require root shell type the command "su".
I have resolved the problem by flash the speedmod kernel which provide adb shell root. With adb shell root you can use PC Client command like "adb root", "adb remount", "adb push to /system directly"

[Q] help me cant install

Please help me look at my attachment
What happend i cant install framework on my xperia..
My phone xperia Z3 and already root
xerxess said:
Please help me look at my attachment
What happend i cant install framework on my xperia..
My phone xperia Z3 and already root
Click to expand...
Click to collapse
try a different installation method, perhaps from recovery
same problem
could someone help us plz
I have the exact same problem same phone
I'm a nooby I did my rooting step by step from youtube and it works fine
plz don't ignore I'm stuck and depressed from this
guys a lot of you visited this page, no one of you can help us
Two things to check
1)Are you rooted?
1b) Just because you rooted doesn't mean you actually are rooted
2)Does xposed have root permission?
Bakerboy448 said:
Two things to check
1)Are you rooted?
1b) Just because you rooted doesn't mean you actually are rooted
2)Does xposed have root permission?
Click to expand...
Click to collapse
I checked with Root Checker and it's working also fine on other app that requires a root.
about giving the permission what do you mean ? through SuperSU ?
yes I grant xposed when it asked me so what els ?
I think it's a problem in the z3 because it's a dual sim not like other phones !!!
m4l3k said:
I checked with Root Checker and it's working also fine on other app that requires a root.
about giving the permission what do you mean ? through SuperSU ?
yes I grant xposed when it asked me so what els ?
I think it's a problem in the z3 because it's a dual sim not like other phones !!!
Click to expand...
Click to collapse
Try installing it via recovery, it has a better chance of working IF you have a custom recovery as well.
I already solve my problem..
Just need re root from start until update to the last fw with pre root flashable and do install recovery once again...
And dont forget change to rw via terminal in your pc
xerxess said:
I already solve my problem..
Just need re root from start until update to the last fw with pre root flashable and do install recovery once again...
And dont forget change to rw via terminal in your pc
Click to expand...
Click to collapse
Thanks a lot, but could you make it more simple for me
step by step without any abbreviations, so I can look at it online if I didn't know how to do it
I'm nooby like I said
m4l3k said:
Thanks a lot, but could you make it more simple for me
step by step without any abbreviations, so I can look at it online if I didn't know how to do it
I'm nooby like I said
Click to expand...
Click to collapse
just re root like usually you do and after that , update the FW to the lastest with pre root FW..
then when you finish..
in my experience my dual rec is gone so you cant do anything in recovery mode thats make you cant change system from ro to rw
to make recovery enabled again your phone after update..
do this
run your terminal in your pc inside giefroot folder then when the terminal already open
just copy command in below to your terminal pc..
just remember dont forget connect your phone to pc and make sure your debug is activate
adb push systemrw.sh /data/local/tmp
adb push modulecrcpatch /data/local/tmp
adb push wp_mod.ko /data/local/tmp
adb shell
chmod 777 /data/local/tmp/systemrw.sh
chmod 777 /data/local/tmp/modulecrcpatch
chmod 777 /data/local/tmp/wp_mod.ko
su
cd /data/local/tmp
./systemrw.sh
but about how to use giefroot you can look to this thread
http://forum.xda-developers.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598

E6533 and root problems

Hello, i have 32.2.a.5.11 on E6533, recovery TWRP from bruno$0 on 5.11 firmware. Root is work, but few application ist not remount to RW, eg. Busybox application write this "mount: permission denied (are you root ?) What i need to proceed ?
No solution ? :crying:
Please help me, i am frustrated from this :crying:
Marek89 said:
Please help me, i am frustrated from this :crying:
Click to expand...
Click to collapse
while prepaing the kernel....busybox must hv been integrated into it then why did u tried it as a separate app.
try this...download terminal emulater from playstore...
write the command
su and then press enter...............
if this whole this works well,then ur busybox is working just fine.
press :good: thnx ...if i've helped u.
Terminal with command su work, [email protected] But mount system as rw, is not work, operation not permitted.
Marek89 said:
Hello, i have 32.2.a.5.11 on E6533, recovery TWRP from bruno$0 on 5.11 firmware. Root is work, but few application ist not remount to RW, eg. Busybox application write this "mount: permission denied (are you root ?) What i need to proceed ?
Click to expand...
Click to collapse
In my Kernel i choose to not disable sony ric for security purposes. If you wanna write sometime on system partition you have 2 options: do it by twrp recovery or disable temporarily RIC service using this command in a su terminal:
"just go to the /sys/kernel/security/sony_ric edit the enable file, put a '0' without quotes, save it, the go to a terminal command app and type this using su: pkill /sbin/ric | mount -o remount, rw /system . this will make the system writetable until next restart."
I hope help you.

Categories

Resources