Root on Lollipop custom ROMs? - Xperia Z2 Q&A, Help & Troubleshooting

Hi,
I've been fiddling around with Lollipop for the Z2 device today and I've got a question.
Are 5.1.1 based custom ROMs root-possible? I've first managed to make a stock pre-rooted 5.1.1 .ftf and everything was fine, both root and recovery, but my phone was overheating like crazy on it so I decided to try a custom ROM, Paranoid Android to be exact. I got the latest stable from their site and almost successfully installed it using the TWRP. Almost, because I forgot to re-flash the recovery. Then it turned out I can't root it and couldn't find a way to do so. I've since gone back to 4.4.2 using Flashtool, rooted it and installed the XZDualRecovery.
So, my question(s) is/are, what did I do wrong? Would flashing the flashable XZDualRecovery after the custom ROM and gapps sufficied? Or maybe flashing the SuperSU package? Or maybe, is it impossible to have a rooted custom ROM on 5.1.1? And if isn't, I'd be really grateful if someone supplied me with a hint or something, because I don't want to go through all the trouble only to downgrade again.
I'm using this for recovery : http://forum.xda-developers.com/showthread.php?t=2785598
And used this guide for the prerooted .ftf, though I guess it's not related at all to my questions, except the SuperSU package I'm thinking of using: http://forum.xda-developers.com/xperia-z2/general/4-4-4-creating-rooted-update-package-t2933155
Thanks in advance.
EDIT: OK, I've tried my own advice and flashed SuperSU and flashable XZDualRecovery after flashing the custom ROM and Gapps. Now the phone is rooted, but the custom recovery doesn't stick. I tried installing again using the installer version, which soft rebooted into the custom recovery, but after the manual boot the recovery was gone and the garbled screens were back.
My question has changed then, what is the way to having a custom recovery on a custom ROM on lollipop 5.1.1?
EDIT2: Nvm fixed it... , I went to NUT's website and made recovery using his kernel creator.
Sorry for wasting space then and I hope my post helps someone eventually.

You can flash superSU via recovery on any rom
Worst that can happen is it bootloops.

Related

A little information please ?

I have trued to read and search the forums, but I haven't been able to figure a definitive answer to this...
When I flash CWM on my S2 using Odin, does it root the phone ?
I usually Root (with framaroot), Flash CWM, Flash CM 11 nightly, Re-root using framaroot.
But Can I just do : Flash CWM and Flash the CM 11 nightly ? does it auto root ?
What do you mean, 'usually'? Why is it that you can't just flash each new build of Cm11 from the previous one? Why do you need to re-root in the first place?
When I rooted my phone, rather than using a one-click such as framaroot, I flashed a kernel (siyah in my case) using Odin. That gave me CWM and root. That cuts out the step you're trying to to eliminate, if I've understood your question correctly?
I'm not sure in answer to your direct question, try it and see. Hopefully the alternative method I just gave you makes it a little quicker though
Edit : you could, if flashing CWM only doesn't give you root, just flash SuperSU from there and then continue.
Sent from a galaxy far, far away
Well mate your question is tricky to understand :cyclops:
1. NO installing CWM wont root your device requires another process (such a framaroot)
2. Aftrer installing CM 11 you dont have to re-root the mobile because CM comes prerooted with superuser !!
3. if you had already managed to install CM 11 think that you have already rooted your mobile
just for typing the 3 points my head spins in short no need for rooting after cm 11 ....and NO cwm wont root your device
thuva06 said:
Well mate your question is tricky to understand :cyclops:
1. NO installing CWM wont root your device requires another process (such a framaroot)
2. Aftrer installing CM 11 you dont have to re-root the mobile because CM comes prerooted with superuser !!
3. if you had already managed to install CM 11 think that you have already rooted your mobile
just for typing the 3 points my head spins in short no need for rooting after cm 11 ....and NO cwm wont root your device
Click to expand...
Click to collapse
Thanks for taking the time to reply.
Why do I have to install CWM if I'm already rooted ? Can't I just framaroot then install CM 11 ?
Can I do a CWM, Cyanogen install without rooting ? Since CM already comes rooted. So jut CWM using odin, then CM install ROM. ?
Other question, Let's say I root, flash CWM, flash a ROM (any rom), can I be unrooted after that and have to reroot again ? Or do ALL roms come pre rooted ?
Gregory48 said:
Thanks for taking the time to reply.
Why do I have to install CWM if I'm already rooted ? Can't I just framaroot then install CM 11 ?
Can I do a CWM, Cyanogen install without rooting ? Since CM already comes rooted. So jut CWM using odin, then CM install ROM. ?
Other question, Let's say I root, flash CWM, flash a ROM (any rom), can I be unrooted after that and have to reroot again ? Or do ALL roms come pre rooted ?
Click to expand...
Click to collapse
CyanogenMod comes rooted. Also, the default recovery on CyanogenMod is CWM as well, so you can boot into recovery with volume up + home + power and flash a new build from there. You don't even need to use framaroot or flash CWM using Odin...
And yes, most (almost all) custom ROMs should come rooted unless you're flashing stock Samsung ROM through Odin. Besides, if you're flashing something in recovery, I don't think you need to be rooted.
Gregory48 said:
Thanks for taking the time to reply.
Why do I have to install CWM if I'm already rooted ? Can't I just framaroot then install CM 11 ?
Can I do a CWM, Cyanogen install without rooting ? Since CM already comes rooted. So jut CWM using odin, then CM install ROM. ?
Other question, Let's say I root, flash CWM, flash a ROM (any rom), can I be unrooted after that and have to reroot again ? Or do ALL roms come pre rooted ?
Click to expand...
Click to collapse
Just to make sure that you understand everything i'm segregating your questions
1.Why do i install CWM when i'm already rooted?
Rooting is a process which just gives your overall control to your device, but just rooting wont make you eligible to flash any ROMS. Now when your install CWM (Clock Work Mod) its a unique type of recovery which enables your to flash Custom Roms. Your ordinary stock rom (your samsung firmware) also does have a recovery (stock recovery) which cannot penetrate into system files. So CWM is a must to flash roms !
Can i do a CWM and flash Cyanogenmod?
Absolutely NO!! Just because CM comes prerooted doesn't mean that you can flash CM without rooting.. CWM requires root to flash and change system files. For instance your are in Stock Samsung Firmware not rooted you just install CWM flash Cyanogenmod and you'll end up in a bootloop or softbrick. Since your system didnt allow files inside coz no ROOT!!..In the other hand if your already running Cyanogenmod (any version) you dont have to root nor flash CWM because they come prerooted and preinstalled with CWM.so you can flash on the go
Let's say I root, flash CWM, flash a ROM (any rom), can I be unrooted after that and have to reroot again ? Or do ALL roms come pre rooted ?
Well cyanogenmod has an inbuilt function to disable root and most of the Roms comes with it now it can be found in settings >developer options> and root access...but not all roms im assuming. on the other hand yes some roms never come prerooted such as (omni rom 4.4.2) where you have to flash superuser to get root. But as i said incase of all prerooted roms there is an option to disable root
hope this helps you understand about rooting and cwm :good:
Thank you both for your answers, I understand much more now.
BUT
Last two answers are in conflict. They say the opposite.
which one to choose ?

[Q] CM 11 EXPERIMENTAL NiGHTLY - Error status 7

------------- SOLVED! --------------
Hello all,
First of all I want to say I'm pretty new to flashing ROMs etc.
Currently I'm at stock 4.3 Jellybean and I want to flash my SGS3 to the new CM 11 ROM.
I rooted my phone following this tutorial: vvvvvv.telefoonrooten.nl/samsung/samsung-galaxy-s3-root/ (sorry if its in Dutch, but it uses the CF-Root-SGS3-v6.3 and Odin).
After I rooted I copied both the CM11 ROM and GAPPS to my external SD, I went to recovery and tried to install the new custom ROM but I got an error (status 7) and it was aborted.
Also if I try to reboot it won't boot normally as it should be but it goes back to recovery mode automatically...
I fixed to get back to Jellybean by flashing the stock rom (unrooting?) it via Odin.
Anyone else got the exact same problem as I do and knows a solution to be able to flash CM 11?
Thanks in advance,
Steelbear
Steelbear said:
Anyone else got the exact same problem as I do and knows a solution to be able to flash CM 11?
Click to expand...
Click to collapse
please read the thirst post in a rom/kernel/whatever thread. and maybe if you havent done it already you should also read the stickies in general section.
FAQ (Read before post !!)
- If you obtain Error 7 when you tried to install ROM in CWM or TWRP
Install the latest version of CMW or TWRP
Click to expand...
Click to collapse
BTW latest philz touch recovery works too
Since you went back to stock and you already know how to root, I suggest you go to Play Store and download ROM Manager to help you install latest CWM recovery on your device.
Or you can simply go to CWM website, pick the version of the recovery for your phone and flash it via Odin.
Hope it helps.
Steelbear said:
Hello all,
First of all I want to say I'm pretty new to flashing ROMs etc.
Currently I'm at stock 4.3 Jellybean and I want to flash my SGS3 to the new CM 11 ROM.
I rooted my phone following this tutorial: vvvvvv.telefoonrooten.nl/samsung/samsung-galaxy-s3-root/ (sorry if its in Dutch, but it uses the CF-Root-SGS3-v6.3 and Odin).
After I rooted I copied both the CM11 ROM and GAPPS to my external SD, I went to recovery and tried to install the new custom ROM but I got an error (status 7) and it was aborted.
Also if I try to reboot it won't boot normally as it should be but it goes back to recovery mode automatically...
I fixed to get back to Jellybean by flashing the stock rom (unrooting?) it via Odin.
Anyone else got the exact same problem as I do and knows a solution to be able to flash CM 11?
Thanks in advance,
Steelbear
Click to expand...
Click to collapse
I had the same problem the fix is quite easy
flash the latest CWM 6.0.4.4 and flash cm11 it will work fine
Blackwolf10 said:
I had the same problem the fix is quite easy
flash the latest CWM 6.0.4.4 and flash cm11 it will work fine
Click to expand...
Click to collapse
Indeed it worked! I found it out myself yesterday. Went to the CWM site and downloaded the latest version (6.0.4.4.) and flashed it through Odin. But thanks for your input anyways (to all who replied) !
An alternative solution that I often use is to open the Updater Script in META-INF folder in the ROM's zip and delete first lines, where it gets device model as property.
Obviously it's an UNSAFE operation (because that lines avoid to install ROMs of other phone on mine) but when I'm sure that ROM I've downloaded is for my phone I do it and it works

Wiped out stock oc1 recovery

Hello all,
It was unwise of me to use ALL IN ONE TOOL (http://forum.xda-developers.com/showthread.php?t=2301720) to install a custom recovery on my i545vrugoc1 running lollipop.
As a brief record:
- I updated from kitkat to stock lollipop using stock recovery (was my only option since I live in Uzbekistan) which consisted of two packages
- I got it rooted using KingRoot (from 3d try)
- I flashed stang5litre ROM following the instructions via Flash Fire
Was more or less happy but not quite since wanted a ROM which is customizable (personally hate Samsung stock notification bar). To that end ignored all warnings and tried installing custom recovery using ALL IN ONE TOOL.
As a result my phone was unable to boot normally. Searching XDA forum I came across a solution to boot the phone from download mode.
So now I kindly ask to answer the following:
1. Can anyone provide me with i545vrugoc1 stock recovery wich I could flash via odin? I want to do so in order to be able to install the future OTA updates the same way I updated from kitkat to stock lollipop using stock recovery.
2. If first is not possible then second question is: will I be able to flash future stock updates via odin? My worry is that my stock recovery is messed up and I have no idea whatsover if it is going to affect the process.
Thank you in advance
After moving SU to the phone memory the device got stuck on Samsung boot logo and refused to boot up however much long I waited
Booting problem solved thanks to http://forum.xda-developers.com/gal...pment/odin-i545vrugoc1-factory-image-t3160125

Install CyanogenMod on my Honor5x L21-C432B140 Lollipop

Hello,
I have a rooted Honor5x L21-C432B140 Lollipop with TWRP recovery, and I would like to install CyanogenMod 13 on it. I understand that I need to get my phone to use Marshmellow, and to do this I need stock recovery, which as I said I have TWRP instead. The problem is I am unsure which files I need, and what to do with them, and I am scared of bricking my phone.
Can someone please guide me in the right direction of what I need to do? I've looked through most of the Honor5x stock recovery threads and all their replies, yet I am still a little confused as there are no step-by-step instructions for a noob like me to use.
Thanks!
You need to flash stock MM with adb first ....go to in still CM 13 and gapps ...cleen and reboot
I'm also having issues installing CM on my L21-C432B140. I followed this guide (except I got the firmware from here here) to update the firmware to L21-C432B340, and then I installed the cyanogenmod (newest available nightly, installed via TWRP), and I'm now stuck in a reboot loop. I've rooted my other phones without issues, but I'm completely stumped here. Any ideas?
Edit: There also appears to be no way for me to downgrade. As I understand it, I need to flash stock recovery that's compatible with my firmware, but I can't find stock recovery for B340.
Edit2: Never mind, I'm currently downgrading to B140 again with B140 recovery, though I'm not sure it really helps me get any closer to installing cyanogenmod.
Edit3: So I finally managed to get to B330 (I couldn't go from B340->B330 for some reason, I had to downgrade to B140 before I could try B330), and cyanogenmod successfully boots now!
For reference, I used this guide to update my firmware to B330 (I found the B330 firmware here, as the guide doesn't offer a link for B330 firmware for my model). Then I installed the latest nightly CM via TWRP.

[Request] Latest MM prerooted flashable zip

Hello.I would like to try the latest Marshmallow rom.As i am on latest LP..Can i flash the rom with same recovery?(nut's dual recovery) and later return to my restored LP rom with again the same recovery?
Thanks.
anyone?at least can someone tell me which version of supersu can i put inside prf creator?
hey there
Make a backup of your LP ROM.
In the first post you can find a prerooted MM ROM for the SGP611 (WiFi Version), i just flashed it and it worked.
Here
Also you can restore your /data from your Backup in recovery after flashing the ROM, so you don't have to set up everything again (you can also use TitaniumBackup).
The only thing you have to do is reinstalling the xposed framework if you were using it.
And you're done.
I don't know if you can switch back to LP, since the MM Rom flashed new Firmware. Haven't tried it yet.
Also i use TWRP as recovery and i would suggest you that too.
thanks.is there any method for rooting with supersu as i trust it more?Also the rom from this thread is the latest Marshmallow?Also with restore i mean if i for some reason dont like Marshmallow..Will i be able to restore my previous Lollipop backup from twrp?

Categories

Resources