I have ported the Z5 Compact root method to Z5.
Please note that both recovery.img and kernel img are different from the Z5 Compact thread. Do not use recovery or kernel for Z5 Compact on your regular Z5 phone.
Disclaimer
I am well aware that this is not the nicest method of rooting, but I got the phone a few hours ago and haven't got the time to put together a better way.
Credits
@Tommy-Geenexus for Zombie kernel
@AndroPlus for Z5 recovery and guidance :good:
@Chainfire for SuperSU
Guide
First, you need to unlock you bootloader (I know, I know, now stop weeping :crying::crying::crying
A rooted device does not boot using default kernel, so you need to install an insecure kernel.
I have repacked stock Z5 (32.0.A.4.11) kernel to disable Sony RIC, dm verity, make it insecure, etc.
Flash using:
Code:
fastboot flash boot z5_stock_fixed.img
Reboot your phone using:
Code:
fastboot reboot
And verify that it works as expected.
Now, reboot your phone to bootloader again (see info how to at the end of post).
Then issue:
Code:
fastboot boot recovery.img
This recovery is partly broken, but it works well enough to install root.
Thanks to @AndroPlus for TWRP.
The phone will boot to a black screen, but you can connect to it using ADB.
You need to manually mount the system and userdata partition by issuing:
Code:
adb shell mount /dev/block/platform/soc.0/by-name/system /system
adb shell mount /dev/block/platform/soc.0/by-name/userdata /data
If you get this error:
mount: mounting /dev/block/platform/soc.0/by-name/system on /system failed: No such file or directory
You probably just need to wait a while and try again. You usually have to wait ~120 sec for the mount to work. Be patient.
If you got /system and /data to mount, you can now push SuperSU to the phone and install it:
Code:
adb push UPDATE-SuperSU-v2.46.zip /data/media/0/
adb shell twrp install /data/media/0/UPDATE-SuperSU-v2.46.zip
adb shell rm /data/media/0/UPDATE-SuperSU-v2.46.zip
If it all works, just reboot and enjoy root:
Code:
adb reboot
Files
z5_stock_fixed.img
recovery.img (for Z5)
Extra info
Boot to bootloader by adb command:
Code:
adb reboot bootloader
or by turning off the phone, and then hold down VOL UP while plugging in the USB cable.
works like a charm, finally I can use my Z5 =)
thank you mate.
Awesome, do we need to backup TA partition anymore to keep X-Reality etc?
komugi said:
Awesome, do we need to backup TA partition anymore to keep X-Reality etc?
Click to expand...
Click to collapse
You need to unlock the bootloader, so I don't think you can backup the TA partition.
Does this change anything in the kernel? Will battery life be the same?
If you unlock yourbootloadeR TA partition it lost forever! You can't get it back and things like x-reality won't work anymore.
Gesendet von meinem E6653 mit Tapatalk
We know that, but it must have a way (yet to find?) to backup and restore the TA partition just like previous devices (it was possible on Z and Z1, don't know about the others)
Sent from my E6653
are there unlocked bootloader Z5s? how do we check if our bootloader is locked?
GOOGLE
Go to calls,enter *#*#7378423#*#* and go to service info-configuration.
Sent from my E6653 @ XDA Portal
I ran through these instructions, and I now have root privileges, but I can't write to /system. Is there something I missed to enable this, or does this just not work?
Sent from my E6653 using Tapatalk
mindstormsguy said:
I ran through these instructions, and I now have root privileges, but I can't write to /system. Is there something I missed to enable this, or does this just not work?
Sent from my E6653 using Tapatalk
Click to expand...
Click to collapse
You need to mount /system as read/write (default: read-only).
You can use an app or shell command to do this.
For example:
http://forum.xda-developers.com/wiki/Guide:Using_the_Terminal#Mount
nilezon said:
You need to mount /system as read/write (default: read-only).
You can use an app or shell command to do this.
For example:
http://forum.xda-developers.com/wiki/Guide:Using_the_Terminal#Mount
Click to expand...
Click to collapse
I see I have this problem too.
Using terminal cmd
# mount -o rw,remount /system
replies
mount: Operation not permitted
Also not possible with Root Explorer
In this way it's also not possible to install Busybox.
I reinstalled kernel but didn't change anything.
Operation not permitted for me too. And I also tried reinstalling the kernel before posting.
Sent from my E6653 using Tapatalk
mindstormsguy said:
Operation not permitted for me too. And I also tried reinstalling the kernel before posting.
Sent from my E6653 using Tapatalk
Click to expand...
Click to collapse
Hmm. Same for me. Maybe Sony RIC or SELinux is not fully disabled after all.
harfot said:
I see I have this problem too.
Using terminal cmd
# mount -o rw,remount /system
replies
mount: Operation not permitted
Also not possible with Root Explorer
In this way it's also not possible to install Busybox.
I reinstalled kernel but didn't change anything.
Click to expand...
Click to collapse
nilezon said:
Hmm. Same for me. Maybe Sony RIC or SELinux is not fully disabled after all.
Click to expand...
Click to collapse
@DooMLoRD:
Hello my friend,
Long time no see - hope you are doing well.
Am I wrong if I remember this "half" root once in a DooMKernel? Cannot find it but I'm sure you know the reason.
Thanks
It looks like Zombie kernel doesn't have changes like this:
https://github.com/AndroPlus-org/an...mmit/f0544c997bb22da293005ffcaaeeeb4a55394c8d
I think he can improve this current method...
AndroPlus said:
It looks like Zombie kernel doesn't have changes like this:
https://github.com/AndroPlus-org/an...mmit/f0544c997bb22da293005ffcaaeeeb4a55394c8d
I think he can improve this current method...
Click to expand...
Click to collapse
I don't think it is needed.
Setting:
CONFIG_SECURITY_SONY_RIC=n
in kernel config seem to solve the remount rw problem.
It's much cleaner to remove Sony RIC module this way, than just patching it, IMHO.
It's sad this can't be done by just repacking stock ramdisk.
@nilezon do we need a new compiled kernel for every new firmware?
Azdian said:
@nilezon do we need a new compiled kernel for every new firmware?
Click to expand...
Click to collapse
You can run an older kernel, but the latest is often then best.
nilezon said:
I don't think it is needed.
Setting:
CONFIG_SECURITY_SONY_RIC=n
in kernel config seem to solve the remount rw problem.
It's much cleaner to remove Sony RIC module this way, than just patching it, IMHO.
It's sad this can't be done by just repacking stock ramdisk.
Click to expand...
Click to collapse
Is the fixed version in the main post now, then?
Related
The title says it all, anyone experiencing similar issues ?
Running 2.3.3 thru manual updates with a stock recovery, then after everything was done I fastboot flashed amon RA's recovery and it keeps getting replaced with the stock recovery ... Not quite sure when it's doing it, working on that now.
Not sure, but I think this will happen as long as you're not rooted?
Stock 2.2 did the same thing to me...
I'm rooted via flashing Superuser zip from ChainsDD...
negroplasty said:
I'm rooted via flashing Superuser zip from ChainsDD...
Click to expand...
Click to collapse
Hmmm...yeah, I don't know what I'm talking about lol.
Seems like there was some kind of fix for this in 2.2 though...maybe Superboot? Maybe that's why I'm thinking it has to do with rooting? Think something has to change in boot.img?
EDIT: Have you tried using the rooted stock ROM in the dev section?
If you are upgrading to a non-modified stock rom, it will overwrite your custom recovery.
You need to flash a rooted stock rom to keep your custom recovery.
Edit: Oh and you need an unlocked bootloader to fastboot a custom recovery.
Thanks for your help guys, I guess I'll just flash one of the stock but rooted roms now that they're available... Don't know why I thought that would work come to think about it, it was hopeful thinking at best lol...
Thanks again.
Just look up how to stop this from happening on stock froyo roms.
A bone stock rom with just root will do the same thing that your current rom is doing.
Sent from my Nexus One using XDA App
negroplasty said:
The title says it all, anyone experiencing similar issues ?
Running 2.3.3 thru manual updates with a stock recovery, then after everything was done I fastboot flashed amon RA's recovery and it keeps getting replaced with the stock recovery ... Not quite sure when it's doing it, working on that now.
Click to expand...
Click to collapse
That is because there are two files in a stock ROM (/system/recovery-from-boot.p and /system/etc/install-recovery.sh) that flash the stock recovery every boot. You need to delete (or rename) those two files after flashing a stock ROM, and then re-flash your custom recovery.
efrant said:
That is because there are two files in a stock ROM (/system/recovery-from-boot.p and /system/etc/install-recovery.sh) that flash the stock recovery every boot. You need to delete (or rename) those two files after flashing a stock ROM, and then re-flash your custom recovery.
Click to expand...
Click to collapse
If you don't mind my asking what are the commands I can use to delete these files? I'm in the process of looking up how to do this but wanted to ask as well.
Foxwolfe said:
If you don't mind my asking what are the commands I can use to delete these files? I'm in the process of looking up how to do this but wanted to ask as well.
Click to expand...
Click to collapse
The easiest way would be to use Root Explorer, mount the /system partition as r/w, navigate to each of the two directories, long-press on the files and click delete.
Or you can do it in a terminal emulator: open a terminal and type the following commands:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
rm /system/recovery-from-boot.p
rm /system/etc/install-recovery.sh
Just flash this from recovery...
http://db.tt/cp7De8G
Sent from my Nexus One using XDA App
efrant said:
The easiest way would be to use Root Explorer, mount the /system partition as r/w, navigate to each of the two directories, long-press on the files and click delete.
Or you can do it in a terminal emulator: open a terminal and type the following commands:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
rm /system/recovery-from-boot.p
rm /system/etc/install-recovery.sh
Click to expand...
Click to collapse
Only the shell script has to be deleted. I'm not sure why everyone includes the other file as well.
GldRush98 said:
Only the shell script has to be deleted. I'm not sure why everyone includes the other file as well.
Click to expand...
Click to collapse
Not sure. The reason I do is because those are the two files that are added every time there is an update. Hence those are the two files I delete...
GldRush98 said:
Only the shell script has to be deleted. I'm not sure why everyone includes the other file as well.
Click to expand...
Click to collapse
What's the value in keeping the other file?
Sent from my Nexus One using XDA App
danger-rat said:
What's the value in keeping the other file?
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
None really. It just seems weird to arbitrarily delete a file that does nothing on its own.
GldRush98 said:
None really. It just seems weird to arbitrarily delete a file that does nothing on its own.
Click to expand...
Click to collapse
Because it's bloat. Those are the two files used to reflash the stock recovery on each and every boot. They have no other purpose. Why keep one? Or the other? Why not just get rid of them both?
I've successfully ported / combined wkpark's CWM5 for early P990 ICS build to the latest v28G build and its completely different recovery.img
Update Nov 12: re-based on different CWM 5 and the latest v28G recovery image base. Update recommended!
Update Nov 15: re-based on CWM 6 and the latest v28G recovery image base. Update recommended! No more big font!
Requirements: Stock v28E ICS or later => new partitioning structure, new bootloader (unlocked)
Download: look at the bottom
Installation:
Installation directly on the phone using dd with root permission
when you have already rooted your device you can use "dd" to install cwm.img
like as following
(using adb shell or terminal app) - type the following things in terminal (first copy the recovery image you want to install to your internal SD card):
Code:
su
dd if=/dev/block/mmcblk0p8 of=/sdcard/backup-recovery.img
dd if=/sdcard/[B]<putNameOfRecoveryImageHere>[/B].img of=/dev/block/mmcblk0p8
Click to expand...
Click to collapse
Installation via NVFlash:
- Download NVFlash version of v28G-based CWM 6 recovery here: Not yet available
- extract archive, connect phone in NVFlash mode (search yourself how to do it, explained in my ROM threads as well), run flash-recovery.bat (Windows only)
Click to expand...
Click to collapse
If you get error messages in CWM, stating that /cache can't be mounted: just format /cache partition in CWM
Click to expand...
Click to collapse
thanks mate.....
Under usb debugging mode i flashed it. but when i try to enter cwm, an android with spinning cube appears and phone restarts. It erased my internal memory and it starts with 'welcome' wizard'
naazgulla said:
Under usb debugging mode i flashed it. but when i try to enter cwm, an android with spinning cube appears and phone restarts. It erased my internal memory and it starts with 'welcome' wizard'
Click to expand...
Click to collapse
I can confirm this ! happened to me too !
I cant install I think it cant mount data for r/w or something (i've unlocked bootloader). Also i cant do remount because when i enter adb remount i get this:
remount failed: Operation not permitted
Didn't happen for me. I flashed it directly from the phone without adb.
Also I don't understand why you execute the psneuter exploit Stefan? It is more than sufficient to just do the dd if=/location/to/recovery of=/destination part.
Maybe the psneuter exploit does something with the internal storage??
TheSSJ said:
Didn't happen for me. I flashed it directly from the phone without adb.
Also I don't understand why you execute the psneuter exploit Stefan? It is more than sufficient to just do the dd if=/location/to/recovery of=/destination part.
Maybe the psneuter exploit does something with the internal storage??
Click to expand...
Click to collapse
Ok, I did:
[email protected]:/sdcard # dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p8
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p8
13680+0 records in
13680+0 records out
7004160 bytes transferred in 2.740 secs (2556262 bytes/sec)
BR.
Edit: backing up ICS v28E rom
TheSSJ said:
Didn't happen for me. I flashed it directly from the phone without adb.
Also I don't understand why you execute the psneuter exploit Stefan? It is more than sufficient to just do the dd if=/location/to/recovery of=/destination part.
Maybe the psneuter exploit does something with the internal storage??
Click to expand...
Click to collapse
Can u please elaborate on your method?
naazgulla said:
Can u please elaborate on your method?
Click to expand...
Click to collapse
Copy the recovery.img to your /sdcard/ and then do as stated in this post:
http://forum.xda-developers.com/showpost.php?p=34001124&postcount=7
Stefan Gündhör said:
I've successfully ported / combined wkpark's CWM5 for early P990 ICS build to the latest v28E build and its completely different recovery.img
When from CWM connecting to PC as mass storage, you can access both SD cards.
Also you can most of the times directly boot to CWM using the well known VOL DOWN + POWER
Requirements: Stock v28E ICS or later => new partitioning structure, new bootloader (unlocked)
Download: http://d-h.st/5e5
Installation: Unpack, connect phone via adb, then run either Windows, Linux, or Mac script (thanks to Harsh for the scripts!)
Click to expand...
Click to collapse
Sorry, could you possibly point me to how to connect the phone in ADB mode. I know APX, but not ADB.
Thx so much
i did the dd thing but how can i enter recovery mode?? I tried su, reboot recovery. Doesnt work.
wawyed said:
i did the dd thing but how can i enter recovery mode?? I tried su, reboot recovery. Doesnt work.
Click to expand...
Click to collapse
Shutdown your phone. Then keep volume down button AND power button pressed until you are in recovery mode. Important: BOTH pressed constantly.
I have 28e version of ics and root with smarthflash and i can´t instal cwm =(
C:\Users\rogerio.figueiredo\Desktop\cwm5-p990-ICS-for_unlocked_new_bootloader\cw
m5-p990-ICS-for_unlocked_new_bootloader>adb-windows push psneuter /data/local/ps
neuter
failed to copy 'psneuter' to '/data/local/psneuter': No such file or directory
C:\Users\rogerio.figueiredo\Desktop\cwm5-p990-ICS-for_unlocked_new_bootloader\cw
m5-p990-ICS-for_unlocked_new_bootloader>adb-windows shell chmod 4755 /data/local
/psneuter
- exec '/system/bin/sh' failed: No such file or directory (2) -
C:\Users\rogerio.figueiredo\Desktop\cwm5-p990-ICS-for_unlocked_new_bootloader\cw
m5-p990-ICS-for_unlocked_new_bootloader>adb-windows shell /data/local/psneuter
- exec '/system/bin/sh' failed: No such file or directory (2) -
C:\Users\rogerio.figueiredo\Desktop\cwm5-p990-ICS-for_unlocked_new_bootloader\cw
m5-p990-ICS-for_unlocked_new_bootloader>adb-windows wait-for-device
TheSSJ said:
Shutdown your phone. Then keep volume down button AND power button pressed until you are in recovery mode. Important: BOTH pressed constantly.
Click to expand...
Click to collapse
DO NOT do that . there's something wrong with the recovery ! it wipes /data !!
For those having trouble copy recovery.img to internal sd. Open terminal and type su and grant permission. Then type
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p8
Mind the spaces.
Then type reboot.
Done!
Sent from my LG-P990 using xda app-developers app
thamerkh said:
DO NOT do that . there's something wrong with the recovery ! it wipes /data !!
Click to expand...
Click to collapse
The recovery is fine but the flashing part seems to be broken. I've removed the link for now and might add it lateron with a new flashing method.
Is it only me but I can't access my external SD after booting into CWM. Only internal. Just letting u know. Thx!
Peteflyman said:
Is it only me but I can't access my external SD after booting into CWM. Only internal. Just letting u know. Thx!
Click to expand...
Click to collapse
ITs working fine for me....just flashed new 28g rom and addons from external sd. Although log was showing lot of errors...but it was opening. Try going to mounts and storage and mount external sd from there.. just a thought.
naazgulla said:
ITs working fine for me....just flashed new 28g rom and addons from external sd. Although log was showing lot of errors...but it was opening. Try going to mounts and storage and mount external sd from there.. just a thought.
Click to expand...
Click to collapse
I will provide a new recovery.img soon, based on v28G
naazgulla said:
Try going to mounts and storage and mount external sd from there.. just a thought.
Click to expand...
Click to collapse
Yea, forgot to mention that I tried that but no success. Will try to reboot a third time and in case not working I'll reflash again and see if it makes any difference.
can anybody help me? i just rooted my huawei ascen p7-L10 USING Kingoroot apk, now the phone is rooted but it still has a locked bootloader and set_immutable.list isnt removed.
i wanted to install twrp on my device but cant (yes still stock recovery) and the flashify does not get root permission but other apps and root checker do. any ideas how to fix this? yes also busybox installed.
and trough command emulator i tryd to remove set_immutable.list but at the end command emulater fails with the error that it cant wright system, read only.
i am running android 4.4.2 with emui v3, build number: p7-l10v100r001c00b609. kingo user as supersu.
yes ive searched the web but theres really so little support for this device.
if anyone can help, thank you. (i prefer not using a pc but if theres no other way ill do it)
for removing set immutable list i used these commands:
su
mount -o rw,remount /system
cd system
lsattr
chattr -R -i *
rm –f /system/set_immutable.list
lsattr
look here: http://forum.xda-developers.com/showthread.php?t=3003605
blueIBI said:
look here: http://forum.xda-developers.com/showthread.php?t=3003605
Click to expand...
Click to collapse
Thanks but i still cant remove set immutable list somehow as i explained in my original post.
But i managed to get twrp on the device but it freezes immidiatly (maybe i need to wipe dalvik and cache, any ideas wich app that does this?)
Sent from my HUAWEI P7-L10 using XDA Free mobile app
you need to change the stock boot.img to a modded boot.img (should be on the first posts..i recommend the boot_hrt_emui3.0.img)(this is for the b609 firmware)..
after that root your device again..and do the steps as described in the thread i linked to..
there is a working recovery (twrp 2.8.6.0)..should be in developement section a thread for twrp..
blueIBI said:
you need to change the stock boot.img to a modded boot.img (should be on the first posts..i recommend the boot_hrt_emui3.0.img)(this is for the b609 firmware)..
after that root your device again..and do the steps as described in the thread i linked to..
there is a working recovery (twrp 2.8.6.0)..should be in developement section a thread for twrp..
Click to expand...
Click to collapse
Thanks, and this cannot be flashed trough an command emulator? So i need a pc?
blueIBI said:
you need to change the stock boot.img to a modded boot.img (should be on the first posts..i recommend the boot_hrt_emui3.0.img)(this is for the b609 firmware)..
after that root your device again..and do the steps as described in the thread i linked to..
there is a working recovery (twrp 2.8.6.0)..should be in developement section a thread for twrp..
Click to expand...
Click to collapse
I just found out i have an unlocked bootloader.
Is there no other way? Cant i just flash a recovery and then install a custom rom?
Sent from my GT-I9205 using XDA Free mobile app
So i fixed my problem a long time ago but forgot my thread... Oops
Anyway i found a way to bypass set_immutable.list.
When using kingoroot i tryd to use the Flashify app from google play...but it doesnt support kingo root so i didnt work but there are other flash apps for boot.img and recovery.img.
I flashed a recover.img and installed my rom for a temporarily solution for my problem, but i can just flash a modded boot.img and reflash the stock recovery with flashify(i now have the supported supersu with my rom) and then force upgrade my firmware again and from there i can easily remove set_immutable.list and then root again flash rom etc. This is without a pc.
Flashify may be less stable for this but i never had a problem with it.
Hope this can help other people who dont have a pc to use
Sent from my HUAWEI P7-L10 using XDA Free mobile app
Q&A for [Recovery][CWM][TWRP][UB]Flashable Recovery For Xperia ZR
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [Recovery][CWM][TWRP][UB]Flashable Recovery For Xperia ZR. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
NOOB here.. all the threads says just flash the recovery TWRP using recovery mode.
the thing is how do I get into recovery mode on my Xperia ZR in the first place.. rebooting using power and volume down button opens SAFE mode..
please help..
also, TWRP Manager doesn't list Xperia ZR C5502 in the device list. (It has Xperia Z C5502 though)..
can i flash TWRP for Xperia Z(yuga) on my Xperia ZR(DOGO)??
please help.. thanks in advance...
psawardekar said:
NOOB here.. all the threads says just flash the recovery TWRP using recovery mode.
the thing is how do I get into recovery mode on my Xperia ZR in the first place.. rebooting using power and volume down button opens SAFE mode..
please help..
also, TWRP Manager doesn't list Xperia ZR C5502 in the device list. (It has Xperia Z C5502 though)..
can i flash TWRP for Xperia Z(yuga) on my Xperia ZR(DOGO)??
please help.. thanks in advance...
Click to expand...
Click to collapse
If you have no recovery installed, there is no recovery mode bro.. DON"T use power button but go to general section and choose a pre-rooted ROM for your phone and recovery will/should be pre-installed.. after having recovery installed, to get to recovery, reboot phone and at the sony screen a green/pink led will show and you push VOL-UP and that will get you to recovery..
hagar006 said:
go to general section and choose a pre-rooted ROM for your phone and recovery will/should be pre-installed..
Click to expand...
Click to collapse
Okaaay... so in short, you mean to install a custom rom in the first place.. (wipe off everything :crying: )
where do i get this pre-rooted ROM?? could't find it anywhere in XDA.. and it wont require custom recovery to flash it??
basically, the thing is; Im running stock sony Lollipop 10.6.A.0.454 firmware on Xperia ZR. rooted using kingroot.
and Im missing Xposed frameworks badly.. :crying: :crying: earlier the installation was simple with kitkat. however with lollipop, xposed needs to be flashed since its a alpha release.
thats the only reason i need a recovery. I have the TWRP recovery.img for my phone but flashing it is a problem. cant use Flashify also. doesnt work.(gives error: Partition not found)
can you suggest any other simple way to tackle this? using fastboot or ADB?
Place the recovery.img to your phone internal storage and use adb or emulator commands to install to your Fota:
Su
dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Go to play store and get android terminal emulator (free) and run the above commands.. Press enter after su and grant root rights and then do the rest of the command and press enter again.. Of all goes well, you'll have recovery..
Sent from my Xperia Z using XDA Forums Pro
hagar006 said:
Place the recovery.img to your phone internal storage and use adb or emulator commands to install to your Fota:
Su
dd if=/sdcard/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Go to play store and get android terminal emulator (free) and run the above commands.. Press enter after su and grant root rights and then do the rest of the command and press enter again.. Of all goes well, you'll have recovery..
Sent from my Xperia Z using XDA Forums Pro
Click to expand...
Click to collapse
Didn't work
Was typing in Terminal Emulator, Xperia ZR C5502, stock Android 5.0.2, rooted, locked bootloader
Brembol said:
Didn't work
Was typing in Terminal Emulator, Xperia ZR C5502, stock Android 5.0.2, rooted, locked bootloader
Click to expand...
Click to collapse
Try dual recovery for stock by xenius9.. Should be in his CM12 thread in general section.. Or dual recovery by NUT.. comes with installer or flashable zip.. Look in the cross device section and you will find
Sent from my ZR
hagar006 said:
Try dual recovery for stock by xenius9.. Should be in his CM12 thread in general section.. Or dual recovery by NUT.. comes with installer or flashable zip.. Look in the cross device section and you will find
Sent from my ZR
Click to expand...
Click to collapse
The problem is that I have neither computer (broken), nor recovery. Is there any other way to install recovery (CWM or TWRP) without computer?
Brembol said:
The problem is that I have neither computer (broken), nor recovery. Is there any other way to install recovery (CWM or TWRP) without computer?
Click to expand...
Click to collapse
Yes but the problem is your locked boot loader.. If un locked the emulator would do the job.. But locked, you need to get dual recovery from NUT (with computer for the installer).. But to unlock your boot loader you need computer so you can lock again.. Or a already working recovery.. Sorry mate, I know of no other way..
I've been thinking a little.. Take a look at nut's dual recovery installer and see of there is a way to download to your phone and install using emulator.. Should work.. I think
Sent from my ZR
Haven't found any instruction, which I can understand and tells how to install recovery without PC in [NUT]'s thread. I think it's easier to wait and install using computer. Still thanks for help and sorry for your time
Brembol said:
Haven't found any instruction, which I can understand and tells how to install recovery without PC in [NUT]'s thread. I think it's easier to wait and install using computer. Still thanks for help and sorry for your time
Click to expand...
Click to collapse
If you have root ... download from playstore:
Terminal Emulator
Root Browser
Download the windows recovery installer from here http://forum.xda-developers.com/showthread.php?p=46216491
Steps:
1. unzip the windows installer
2. with root browser :
- go to folder
/data/local/tmp/
-create a new folder called recovery
So you have this path: /data/local/tmp/recovery
- from the unziped windows installer put the following files into the folder you created:
-> ric , charger , chargemon.sh , dualrecovery.sh , busybox , recovery.twrp.cpio.lzma , recovery.cwm.cpio.lzma , supersu.sh
If you have all those files in the folder... Klick on them (in root browser) and change permissions of all those files to rwxrwxr-x
Then go to terminal emulator and type:
su -c /system/bin/ls -la /data/local/tmp/recovery/chargemon
And after that:
su -c /data/local/tmp/recovery/supersu.sh
And then:
su reboot recovery
Then you should have a recovery installed without pc
Sent from my Xperia T using XDA Free mobile app
SdtBarbarossa said:
If you have root ... download from playstore:
Terminal Emulator
Root Browser
Download the windows recovery installer from here http://forum.xda-developers.com/showthread.php?p=46216491
Steps:
1. unzip the windows installer
2. with root browser :
- go to folder
/data/local/tmp/
-create a new folder called recovery
So you have this path: /data/local/tmp/recovery
- from the unziped windows installer put the following files into the folder you created:
-> ric , charger , chargemon.sh , dualrecovery.sh , busybox , recovery.twrp.cpio.lzma , recovery.cwm.cpio.lzma , supersu.sh
If you have all those files in the folder... Klick on them (in root browser) and change permissions of all those files to rwxrwxr-x
Then go to terminal emulator and type:
su -c /system/bin/ls -la /data/local/tmp/recovery/chargemon
And after that:
su -c /data/local/tmp/recovery/supersu.sh
And then:
su reboot recovery
Then you should have a recovery installed without pc
Sent from my Xperia T using XDA Free mobile app
Click to expand...
Click to collapse
Didn't work
After su -c ... /supersu.sh phone rebooted and worked normally. When "Sony" screen appears, LED doesn't work
Brembol said:
Didn't work
After su -c ... /supersu.sh phone rebooted and worked normally. When "Sony" screen appears, LED doesn't work
Click to expand...
Click to collapse
have you set the rights completely?
is your root working properly?
have you any log from terminal rmulator for me?
Sent from my C2105 using XDA Free mobile app
SdtBarbarossa said:
have you set the rights completely?
is your root working properly?
have you any log from terminal rmulator for me?
Sent from my C2105 using XDA Free mobile app
Click to expand...
Click to collapse
I have set the permissions, root works properly.
In "su -c ... chargemon" I wrote "chargemon.sh" instead of "chargemon", because Terminal Emulator said that there was no such directory.
After "su -c ... /supersu.sh" Terminal Emulator said something about checking recovery...
Sorry, can't say what writes Terminal Emulator after "su -c ... supersu.sh". Phone reboots too fast :banghead:
Brembol said:
I have set the permissions, root works properly.
In "su -c ... chargemon" I wrote "chargemon.sh" instead of "chargemon", because Terminal Emulator said that there was no such directory.
After "su -c ... /supersu.sh" Terminal Emulator said something about checking recovery...
Sorry, can't say what writes Terminal Emulator after "su -c ... supersu.sh". Phone reboots too fast :banghead:
Click to expand...
Click to collapse
Hm... If you want install teamviewer from playstore and i will look into it
Sent from my Xperia T using XDA Free mobile app
New to root
Hi, I'm quite new to root. Can you tell me how to flash custom recovery???
Android4Lyfeee said:
Hi, I'm quite new to root. Can you tell me how to flash custom recovery???
Click to expand...
Click to collapse
It's not really that complicated but it depends on if you have locked bootloader and already rooted or not, what firmware are you on.. If your bootloader is locked, go to cross device section and download TA backup so you can back up your keys for locking your bootloader again..if you have unlocked bootloader, things are simpler.. Let me know and I'll give you a step by step tutorial..
Sent from my ZR
hagar006 said:
It's not really that complicated but it depends on if you have locked bootloader and already rooted or not, what firmware are you on.. If your bootloader is locked, go to cross device section and download TA backup so you can back up your keys for locking your bootloader again..if you have unlocked bootloader, things are simpler.. Let me know and I'll give you a step by step tutorial..
Sent from my ZR
Click to expand...
Click to collapse
My bootloader is locked, but I am rooted. I'm also running Android 5.0.2 Lollipop right now.
Sent from my C5502 using Tapatalk
Android4Lyfeee said:
My bootloader is locked, but I am rooted. I'm also running Android 5.0.2 Lollipop right now.
Sent from my C5502 using Tapatalk
Click to expand...
Click to collapse
Ok.. Go to the cross device section and download dual recovery installer by NUT.. Extract the installer to your desk top, make sure you have debugging checked on your phone, connect your phone to pc with usb, go to dual recovery folder and click the .bat according to your root ie superuser or supersu. Follow the instructions and you have working recovery.. Please note, this will not work with kingroot.. Horrible app anyway..
Sent from my ZR
hagar006 said:
Ok.. Go to the cross device section and download dual recovery installer by NUT.. Extract the installer to your desk top, make sure you have debugging checked on your phone, connect your phone to pc with usb, go to dual recovery folder and click the .bat according to your root ie superuser or supersu. Follow the instructions and you have working recovery.. Please note, this will not work with kingroot.. Horrible app anyway..
Sent from my ZR
Click to expand...
Click to collapse
I rooted with Kingroot, but I changed it to SuperSU. Is this okay?
EDIT: Wow, thanks, it worked!
Sent from my C5502 using Tapatalk
I made a script to backup any partition in our A7:
YOU HAVE TO BE ROOT, TO USE IT.
To run it simply push to the sdcard fire up adb shell to launch the script.
from the computer while connected to the A7 with usb debugging turned on
Code:
adb push PATH_to_the_script/full-backup.sh /sdcard
and
Code:
adb shell
su
cd /sdcard/
sh full-backup.sh
you will see a menu to choose which partition to backup.
As in the attachment.
enjoy, and please hit the thanks button.
the script v1.00
and a terminal screenshot.
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
ultramag69 said:
Could you use terminal emulator to run this from on the phone thus cutting out the need for a pc?
Click to expand...
Click to collapse
yes you could run it directly form the device:
fire up a terminal emulator app:
RUN IT AS ROOT
Code:
su
sh /sdcard/full-backup.sh
thank you. we can backup unmodified firmware via this tool right?
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
So you need to be root to use this script, so not really..
RealSchule said:
thank you. we can backup unmodified firmware via this tool right?
Click to expand...
Click to collapse
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
manu7irl said:
The root modifed just the boot partition so you could backup every stock partition but the stock boot... but you could get the stock boot from other places...
Click to expand...
Click to collapse
we can backup all images except boot.img with this tool but we can find boot.img from other topic. so we have full stock images right?
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
manu7irl said:
If you have root you can backup every single partition. This is not full stock rom! This is for backup and restore easily.
Click to expand...
Click to collapse
So what is the process to restore these images? Is it as simple as flashing in twrp?
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Sure that would be great. Thanks.
manu7irl said:
Go in TWRP, fire up adb shell on your PC, then do:
Code:
dd if=/sdcard/[backup_folder]/[partition].img of=/dev/block/bootdevice/by-name/[partition_name]
example:
Code:
dd if=/sdcard/backup-part/[date-folder]/system.img of=/dev/block/bootdevice/by-name/system
I will also make a restore part in this little script. If you are intersting in one to do so.
Click to expand...
Click to collapse
Been waiting for just that.