[Q] Regarding root on .157 - Xperia Z1 Compact Q&A, Help & Troubleshooting

I have only just aquired my xperia z1 compact, but have already unlocked the bootloader.
I didn't even notice I updated to .157, but apparently, I did.
The problem is, when I tried to root, I had to flash old kernel, root and then flash new kernel again.
But when I flash old kernel, the screen doesn't work, meaning that I can't activate USB debugging or confirm the prompt for USB debugging.
I want to know whether there's something I did wrong or there's something I didn't do.

How to root on unlocked bootloader:
1. Flash a custom kernel (e.g. http://nut.xperia-files.com/ Z1C-XZDRKernel)
2. Flash SuperSU in recovery ( http://download.chainfire.eu/supersu )
3. Enjoy root
Not sure why you are using the method for locked bootloader.

zxz0O0 said:
How to root on unlocked bootloader:
1. Flash a custom kernel (e.g. http://nut.xperia-files.com/ Z1C-XZDRKernel)
2. Flash SuperSU in recovery ( http://download.chainfire.eu/supersu )
3. Enjoy root
Not sure why you are using the method for locked bootloader.
Click to expand...
Click to collapse
Flashing that kernel works on .157?
Oh and, I flash via fastboot right?
"fastboot flash zip", correct?

As the one from the link I provided is a flashable zip, you need to unpack it (get the boot.img). Then use
Code:
fastboot flash boot boot.img

Yes, but are you 100% sure it works on 157? Last time I flashed a boot.img I had to flash stock firmware again.

No matter what boot.img you flash, you will never get to the point that you need to flash full stock rom.
I am using this kernel on .157.

It worked! Had I known that it was that easy I wouldn't have gone through so much trouble. Thanks, and sorry for being paranoic. I'm in a transition from a Nexus 5 to a Z1 Compact and doing those things on the N5 was more straightforward.

Related

[Acro S][Kernel] Stock Kernel + CWM + Root (updated latest 6.1.A.2.55)

[Disclaimer] Do it at your own risk. I am not responsible for anything happened to your phone.
Hi all, I've just upgraded my phone to Acro S recently. It is running ICS 4.0.4 build 6.1.A.1.58. It has been updated to 6.1.A.2.55
So here is a modified Stock Kernel with CWM which I created based on Arakmar's Stock ICS kernel (Build 11) for XS
Credits:
1. Arakmar - for the ramdisk and CWM
2. DoomLord and FXP team - for too many things to mention
Link (do not mirror)
6.1.A.2.55 - http://www.mediafire.com/?zuzatcl3it3zce7
6.1.A.2.50 - http://www.mediafire.com/?jrjiwg13w3gvxpf
6.1.A.2.45 - http://www.mediafire.com/?rq43glb93khd9ia
6.1.A.1.58 - http://www.mediafire.com/?wsuha53wvcc3cav
Instructions:
1. Unzip the files to the fastboot folder, there are 2 files:
kernel.sin -- Stock ICS Kernel
kernel-cwm.elf -- Stock ICS Kernel with init.d support and CWM 5.5.0.4
2. Get into fastboot mode, type:
- To flash the CWM kernel
Code:
fastboot flash boot kernel-cwm.elf
- To flash back the Stock kernel
Code:
fastboot flash boot kernel.sin
To get into CWM - Reboot your phone, tap the screen (not buttons) a few times when the blue led and button lights appear
To root your phone, follow instructions here: http://forum.xda-developers.com/showpost.php?p=30320507&postcount=11
If you like it, please hit the [Thanks] button or you can buy me a beer
Thank you.
But i have a question: what is ram disk use for?
I used xperia s mod kernel to flash supersu.apk, then flash back stock arco s kernel, and add CMW. But some .zip file can not use.
Does this give us root or do i need to root the phone first and then flash this kernel ?
Also, do we need to unlock bootloader for this ?
Can anyone please comment on performance? Thanks in advance!!
Hi do i need to flash these 2 files or just one i want cwm.and does it include root or not?
mercury_beta said:
Thank you.
But i have a question: what is ram disk use for?
I used xperia s mod kernel to flash supersu.apk, then flash back stock arco s kernel, and add CMW. But some .zip file can not use.
Click to expand...
Click to collapse
ramdisk is part of kernel. it runs initial scripts that control how the phone starts.
dusanzk said:
Does this give us root or do i need to root the phone first and then flash this kernel ?
Also, do we need to unlock bootloader for this ?
Click to expand...
Click to collapse
You need to unlock bootloader first. This kernel won't give you root. But you can boot into cwm to flash any package that root your phone or you can flash a complete rom, if available.
john9 said:
Can anyone please comment on performance? Thanks in advance!!
Click to expand...
Click to collapse
There is no difference in performance as stock kernel
noriya said:
Hi do i need to flash these 2 files or just one i want cwm.and does it include root or not?
Click to expand...
Click to collapse
You need to flash only the one with cwm. It won't root your phone.
Thanks for your reply,is it ok to flash cwm without root first?and unlock bootloader is the same xperia s right?
cobrato said:
[Disclaimer] ]
Hi all, I've just upgraded my phone to Acro S recently. It is running ICS 4.0.4 build 6.1.A.1.58
)
Click to expand...
Click to collapse
Could you make a pre-root one?
I am sorry.
Although I checked, and kernel.sin of original and kernel.sin of cobrato are the same, is it right now?
puriketsuangel said:
I am sorry.
Although I checked, and kernel.sin of original and kernel.sin of cobrato are the same, is it right now?
Click to expand...
Click to collapse
I think you're right. The moded kernel is kernel-cwm.elf.
Root Package
Here is the Root package after you flash the kernel with cwm
To root your phone:
1. copy the RootPhone.zip file to sdcard (internal storage)
2. reboot into cwm
3. install the package
4. reboot
Link:
http://www.mediafire.com/?11rhxm1k490edxz
papacarla said:
I think you're right. The moded kernel is kernel-cwm.elf.
Click to expand...
Click to collapse
Sorry.
Thanks alot.
It works on Acro HD with Acro S's ICS ROM flashed exlude baseband.
UPD: I did not like the ICS. There are only 320 mb of free RAM. I have 460 mb of free RAM on 2.3.7. So, I installed back the 2.3.7
if you could add 2way call recording patch to this kernel would be great
cobrato said:
Here is the Root package after you flash the kernel with cwm
To root your phone:
1. copy the RootPhone.zip file to sdcard (internal storage)
2. reboot into cwm
3. install the package
4. reboot
Link:
http://www.mediafire.com/?11rhxm1k490edxz
Click to expand...
Click to collapse
This worked for me, unlocked bootloader, flashed kernel-cwm and then flashed rootphone in CWM. Thanks.
Just a suggestion,
You might wanna add "+ Root" to your title seeing as this is another way to root the device.
With CWM, can we then flash custom ROMs for Xperia S or a Kernel with permanent root (e.g. DoomKernel)?
I'd like to get rid of all the Facebook-crap in the stock ROM but if it will be there again after the next update from Sony it's no use.
skycamefalling said:
With CWM, can we then flash custom ROMs for Xperia S or a Kernel with permanent root (e.g. DoomKernel)?
I'd like to get rid of all the Facebook-crap in the stock ROM but if it will be there again after the next update from Sony it's no use.
Click to expand...
Click to collapse
Once you unlock bootloader, you can flash any custom kernel.
If the kernel comes with CWM, you can flash any rom/zip with root
But I think current S custom kernels/roms are based on older version: 6.1.A.0.452
Bootloader unlock will probably void warranty.
But how about rooting? No righht?
Where to find the tools for unlocking bootloader.
Would appreciate a link if anybody now...
SweKen said:
Where to find the tools for unlocking bootloader.
Would appreciate a link if anybody now...
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1527159
It's the same method for Xperia P/U/S/Acro S.

[Q] eXistenZ v2 Error 7

Hi guys i have a problem when I instaling the eXistenZ v2 on LT26. I rooted my phone i have recovery and when i install a rom have error nr 7 in revovery, any ideas?
Flash the kernel file from the rom itself
Try flashing the kernel from the rom itself bro this works most of the time Extract it first from the zip file of the ROM you want to install then install the kernel usually it is the boot.img file Flash it via fastboot mode using flashtool then voila you have the kernel of the ROM you want to use and most of the time the recovery comes with it too :good:
ksmalcuga said:
Hi guys i have a problem when I instaling the eXistenZ v2 on LT26. I rooted my phone i have recovery and when i install a rom have error nr 7 in recovery, any ideas?
Click to expand...
Click to collapse
Are You on stock firmware? Existenz requires You to be on stock 6.2.b.1.96 firmware. Also, You have to flash v1 and then flash v2, not the v2 directly.
11:55 said:
Try flashing the kernel from the ROM itself bro
Click to expand...
Click to collapse
Do check, this ROM is stock based, so it doesn't have a separate kernel.
I flashed witth stock 6.2.b.1.96, and try to flash V1 witch recovery v6.0.3.0 but still error ''Error in /sdcard/xperia_s_existenz_v1.zip (status 7)'' Maybe try with other kernel?
ksmalcuga said:
I flashed witth stock 6.2.b.1.96, and try to flash V1 witch recovery v6.0.3.0 but still error ''Error in /sdcard/xperia_s_existenz_v1.zip (status 7)'' Maybe try with other kernel?
Click to expand...
Click to collapse
Huh, weird. Just to verify, could You try downloading the v1 again? Or else, do You have a unlocked bootloader? If yes, then You can flash the DoomKernel.
Yes, i downloaded rom again, and i have lock bootloader witch no posibly to unlock 'allowed-no'' something like this, but this rom can be flash without unlocked bootloader.
ksmalcuga said:
Yes, i downloaded rom again, and i have lock bootloader witch no posibly to unlock 'allowed-no'' something like this, but this rom can be flash without unlocked bootloader.
Click to expand...
Click to collapse
Well, since You have a locked bootloader, You can't flash other kernels. Try this recovery, If even this one doesn't work, then try going back to full stock(no root, no recovery) and root using DoomLord's method and try above recovery again as it had worked for Me earlier.
ksmalcuga said:
Hi guys i have a problem when I instaling the eXistenZ v2 on LT26. I rooted my phone i have recovery and when i install a rom have error nr 7 in revovery, any ideas?
Click to expand...
Click to collapse
This is waaaay late but, may help someone.
As I understand it, this is an issue with the kernel/recovery you have. You need to flash a boot.img with a combined kernel/recovery that is compatible with the rom you wish to flash. You use fastboot for that:
Code:
fastboot flash boot boot.img
fastboot reboot
So, for official CM11, grab boot.img from the rom zip file and you should get (a rather old but fine for CM11) CWM recovery.
For many other Acro S (hikari) roms you find - e.g. @deedwar's BeanStalk - you will get TWRP recovery if you flash the included boot.img file.
Once you've got the kernel/recovery flashed, then you flash the full rom after the reboot.
MiyagiSan said:
This is waaaay late but, may help someone.
As I understand it, this is an issue with the kernel/recovery you have. You need to flash a boot.img with a combined kernel/recovery that is compatible with the rom you wish to flash. You use fastboot for that:
Code:
fastboot flash boot boot.img
fastboot reboot
So, for official CM11, grab boot.img from the rom zip file and you should get (a rather old but fine for CM11) CWM recovery.
For many other Acro S (hikari) roms you find - e.g. @deedwar's BeanStalk - you will get TWRP recovery if you flash the included boot.img file.
Once you've got the kernel/recovery flashed, then you flash the full rom after the reboot.
Click to expand...
Click to collapse
I think You didn't notice, but He said He has locked bootloader. So He cannot follow the procedure You mentioned.
Mirhawk said:
I think You didn't notice, but He said He has locked bootloader. So He cannot follow the procedure You mentioned.
Click to expand...
Click to collapse
Yes, this is for unlocked bootloader only.
Just noticed OP mentions a locked bootloader in a later post.

[Q] Rooting z1 compact stock lollipop

We all have gotten a sneak peek of Sony's lollipop update onto our beloved z1 compact. Through the many ways available I for instance used an ftf file. But they do not come pre-rooted like the zip file alternatives.
The only way to root ftf I am told is to flash a kernel pre-installed with a recovery then flash SuperSU zip. I have flashed like 3 different boot.imgs only to find no TWRP/Philz/cmw recovery.
Can anyone give me a WORKING kernel that will boot into a recovery? Would really appreciate this.
Found my solution
Edit: I just found a cm11 snapshot boot.img kernel, flashed it. Booted to recovery and flashed a pre-rooted rom zip. Easy as pie.
Thanks all.
Just flash KK firmware 108, root it, install recovery latest version, and afterwards flash any customised prerooted ROM of your choice.
kokkss said:
Just flash KK firmware 108, root it, install recovery latest version, and afterwards flash any customised prerooted ROM of your choice.
Click to expand...
Click to collapse
This is too much work. Work that I have to do. It's the only way to root this ftf. damn it
It's up to you.
I've done it.
I made a pre-rooted ftf using PRF creator and compiling the SUPERSU v2.37 and Z1C locked dual recovery 2.8.12 from Nuts site.
You can use Xperifirm to download the the firmware, then use Flashtool to decrypt the fileset and create the FTF, then you're good to go.
Hello guys.Does this method works??Without unlocking the bootloader? http://techchomps.com/root-14-5-a-0-242-android-5-0-lollipop-on-sony-xperia-z1-compact/
kos25k said:
Hello guys.Does this method works??Without unlocking the bootloader? http://techchomps.com/root-14-5-a-0-242-android-5-0-lollipop-on-sony-xperia-z1-compact/
Click to expand...
Click to collapse
Hello,
No don't work. With LB, you can't flash boot.img.
So i must unlock it right??Can anyone please send me the directions on how to unlock and root?
martin091 said:
I've done it.
I made a pre-rooted ftf using PRF creator and compiling the SUPERSU v2.37 and Z1C locked dual recovery 2.8.12 from Nuts site.
You can use Xperifirm to download the the firmware, then use Flashtool to decrypt the fileset and create the FTF, then you're good to go.
Click to expand...
Click to collapse
Awesome, which version region did you use? Mind sharing?
I am almost running out of options
So after everything done can we restore TA partition and relock the bootloader?
Not sent by me!
bumjrah said:
Awesome, which version region did you use? Mind sharing?
I am almost running out of options
Click to expand...
Click to collapse
I'm from the UK but I used the "Customized US" version. It works all the same, I've put together a UK one now but I'll need to wipe data before I can use it.
I'd share if I didn't have awful internet. The file is massive, unfortunately.
You'll find multiple threads on how to do different parts.
You need to create your pre-rooted firmware, then you'll need to download KK with Xperifirm (probably .108) and flash it with Flashtool.
Root KK using Easy Root Tool and install XZDualRecovery using the desktop client.
Once you're rooted with SuperSU/SuperUser and Recovery you can install the pre-rooted firmware (PRF) as a flashable zip within Recovery itself.
There's also work arounds for Xposed which you can find too, I've used them and it's all working as it should for now.
I also have a locked bootloader, so don't worry about unlocking it. I'll have a look around for the threads I used and post any I find.
---------- Post added at 08:38 AM ---------- Previous post was at 08:24 AM ----------
Working Xposed work-around
http://forum.xda-developers.com/showpost.php?p=60298690&postcount=123?
FR pre-rooted firmware with extras (not sure on your region or if it'll work properly. Worth a try?)
http://forum.xda-developers.com/sony-xperia-z1-compact/general/14-5-0-242customizedfrpre-t3083055
PRF Creator
http://forum.xda-developers.com/crossdevice-dev/sony/tool-prfcreator-easily-create-pre-t2859904
Xperifirm
http://forum.xda-developers.com/cro...xperifirm-xperia-firmware-downloader-t2834142
Flashtool
http://forum.xda-developers.com/showthread.php?t=2335555
I'll leave you to find your own SuperSU or SuperUser zip, same with XZDualRecovery as they're frequently updated so you're better off finding the latest versions.
But how can you flash 108 if you are already on 242 and you have a locked bootloader? You must unlock it first...
Not sent by me!
BlackArtsInc said:
But how can you flash 108 if you are already on 242 and you have a locked bootloader? You must unlock it first...
Not sent by me!
Click to expand...
Click to collapse
What I did is that I downgraded with Flashtool, rooted KK, and then flashed a prerooted rom through the recovery. No need to unlock the bootloader.
c6nsor9d said:
What I did is that I downgraded with Flashtool, rooted KK, and then flashed a prerooted rom through the recovery. No need to unlock the bootloader.
Click to expand...
Click to collapse
How did you downgrade really?
You just flashed the 157 FTF in flashmode? It's doable?
Not sent by me!
BlackArtsInc said:
How did you downgrade really?
You just flashed the 157 FTF in flashmode? It's doable?
Not sent by me!
Click to expand...
Click to collapse
OK, there seems to be some loss in translation somewhere. Hope this will clear up some stuff:
1. Flash KitKat (kernel, system, everything).
2. Root it.
3. Install recovery (here)
4. Since you don't want to make your own pre-rooted firmware, here. Click on 'Google Drive' for the zip, and FTF. You need both.
5. Put the zip in your SD card/internal.
6. Boot into recovery and clear all data (dalvik, system, data, everything).
7. Flash the zip. DO NOT REBOOT.
8. Shutdown and use Flashtool to flash the .ftf you downloaded. Check System and Baseband on the 'exclude' column.
9. Have fun!
@dazzerfong OK,first of all thanks for your answer. What I'm asking is how did you do the first step with locked bootloader.
Flashtool->Flashmode->KitKat 157 FTF->Then root it blah blah?
Are these steps correct or not? Im about to try today cos I really miss root on my phone.
If you are already on Lollipop and your bootloader is locked you can get root this way.
1.Download the correct KitKat (.157) ROM for your country/operator using Xperifim.
Convert it to FTF using Flashtool. (there are tutorials,search)
2.Flash the FTF you created using Flashtool's Flashmode. Include everything.
3.Root your KitKat (.157) using the forum's tutorials and also install [NUT]'s recovery.
4.Boot into recovery and flash your pre rooted ROM in flashable zip format.
(There are also tutorials on how to create this with Xperifim and PRF programs).
5.Enjoy rooted Lollipop with locked bootloader.
Not sent by me!
BlackArtsInc said:
@dazzerfong OK,first of all thanks for your answer. What I'm asking is how did you do the first step with locked bootloader.
Flashtool->Flashmode->KitKat 157 FTF->Then root it blah blah?
Not sent by me!
Click to expand...
Click to collapse
Yep! All done with locked bootloader (or, if you want, unlocked, but you're wasting your time if you're unlocked). So, first you flash the FTF of a KitKat ROM.
Rooting, use Towelroot or something. No idea why, but Towelroot refuses to play with my TWRP (recovery), so I used the old method.
@dazzerfong
One last question cos I just did all the steps but I couldnt reboot into Lollipop after flashing my pre rooted rom zip file.
6. Boot into recovery and clear all data (dalvik, system, data, everything).
7. Flash the zip. DO NOT REBOOT.
8. Shutdown and use Flashtool to flash the .ftf you downloaded.
Check System and Baseband on the 'exclude' column.
Click to expand...
Click to collapse
On step 8 which FTF you mean exactly? I assume you mean the FTF from which you created
your pre rooted zip initially? In my case the Customized GR version?
N.
BlackArtsInc said:
@dazzerfong
One last question cos I just did all the steps but I couldnt reboot into Lollipop after flashing my pre rooted rom zip file.
On step 8 which FTF you mean exactly? I assume you mean the FTF from which you created
your pre rooted zip initially? In my case the Customized GR version?
N.
Click to expand...
Click to collapse
You should have downloaded 2 things so far: the zip, and the FTF. That FTF is Lollipop stock: doesn't matter where it's from. Flash that in Flashtool, but remember to check 'System' and 'Baseband' in the 'Exclude' column.
BlackArtsInc said:
How did you downgrade really?
You just flashed the 157 FTF in flashmode? It's doable?
Not sent by me!
Click to expand...
Click to collapse
Downgrade to .108 (with flashtool) in order to directly root the phone, whereas with .157, you'll have to flash an older kernel with flashtool in order to get root.
Once rooted, just get yourself a flashable prerooted firmware (zip file) and flash it from the recovery (after a wipe factory reset; wipe data; wipe cache; wipe Davilk Cache and Wipe System).

[Q] Xperia Z1c has no recovery

Hi
My problem is that it seems my Xperia Z1 Compact has no recovery. I rooted it by downgrading to .108 kernel, rooting and flashing .157 kernel.
I don't know if the no recovery problem was right after this but now I wanted to upgrade to android 5 and discovered I have no recovery. I tried:
manually to recovery (the LED won't even light up)
quickboot app
via adb
I also then unlocked bootloader and flashed kernel .sin again to see if this helps but no.
Please help
Bosskardo said:
Hi
My problem is that it seems my Xperia Z1 Compact has no recovery. I rooted it by downgrading to .108 kernel, rooting and flashing .157 kernel.
I don't know if the no recovery problem was right after this but now I wanted to upgrade to android 5 and discovered I have no recovery. I tried:
manually to recovery (the LED won't even light up)
quickboot app
via adb
I also then unlocked bootloader and flashed kernel .sin again to see if this helps but no.
Please help
Click to expand...
Click to collapse
fastboot help you to put a kernel which is entered in the factory recovery partition. but you'll have to flash the (SLIM,RRREMIX) boot.img up and recovery.img the correct partition.
http://forum.xda-developers.com/sony-xperia-z1-compact/general/fota-twrp-recovery-amami-t2909719
glehel said:
fastboot help you to put a kernel which is entered in the factory recovery partition. but you'll have to flash the (SLIM,RRREMIX) boot.img up and recovery.img the correct partition.
http://forum.xda-developers.com/sony-xperia-z1-compact/general/fota-twrp-recovery-amami-t2909719
Click to expand...
Click to collapse
found .img in XZDRKernel and that worked

Root

If I am on stock recovery and unlocked bootloader, is it possible to root my phone without twrp by flashing magisk zip in stock recovery?
Sprinklefart said:
If I am on stock recovery and unlocked bootloader, is it possible to root my phone without twrp by flashing magisk zip in stock recovery?
Click to expand...
Click to collapse
No. Stock recovery will only flash images & zips from OnePlus.
Stock recovery only works with officially signed files from OnePlus.
If you already went through the trouble of unlocking the bootloader then flashing a custom recovery is very easy and straightforward. Otherwise you might as well relock the bootloader.
Theoretically it is possible with MAGISK (even with locked bootloader) but it didn't work for me...
Steps:
1. Extract the boot.img from stock rom zip
2. Patch with Magisk Manager
3. Rename the patched one to boot.img and replace in stock Rom zip
4. Flash the zip in stock revovery
Unluckily I finish with a "Installation failed" error
Did anybody managed this with 5.02 rom and locked bootloader. I got told that for older stock rom it was possible
Sent from my ONEPLUS A5010 using Tapatalk
No, no, no...
What you do is that you let the Magisk Manager patch the stock boot image (as in 1 & 2 above). Then you use fastboot to flash the patched image to your device. No custom recovery needed...
Code:
fastboot flash boot patched_boot.img
Your bootloader has to be unlocked though.
Didgeridoohan said:
No, no, no...
What you do is that you let the Magisk Manager patch the stock boot image (as in 1 & 2 above). Then you use fastboot to flash the patched image to your device. No custom recovery needed...
Code:
fastboot flash boot patched_boot.img
Your bootloader has to be unlocked though.
Click to expand...
Click to collapse
With fastboot I also tried without success. As you told, it is required that the bootloader is unlocked.
Sent from my ONEPLUS A5010 using Tapatalk

Categories

Resources