[KERNEL] 7.1.1 [41.2.A.2.199] Xperia XZ [F8331/F8332] - Sony Xperia XZ ROMs, Kernels, Recoveries, & Other

Hey guys, here are the modified rootable kernels for the Xperia XZ [F8331 & F8332] 7.1.1 fw
Kernel F8332
Kernel F8331
Thanks to tobias.waldvogel for his awesome resources.
Don't forget to flash the recovery. Here's the link
Recovery
Also, recovery can be accessed only through the official way i.e.
Power off >> Press the power key and the volume down key simultaneously >> As soon as the SONY logo appears, release ONLY the power key, don't release the volume down key >> After 20-30 seconds the device will enter recovery mode.​

arjun.arora said:
Hey guys, here's the modified rootable kernel for the Xperia XZ Dual 7.1.1 fw
Kernel
Thanks to tobias.waldvogel for his awesome resources.
Don't forget to flash the recovery. Here's the link
Recovery
Also, recovery can be accessed only through the official way i.e.
Power off >> Press the power key and the volume down key simultaneously >> As soon as the SONY logo appears, release ONLY the power key, don't release the volume down key >> After 20-30 seconds the device will enter recovery mode.​
Click to expand...
Click to collapse
Thank you
Working fine
DRM Fixed and RIC enabled

karrouma said:
Thank you
Working fine
DRM Fixed and RIC enabled
Click to expand...
Click to collapse
Glad it worked for you..

thanks a lot

Can someone please upload the same kernel for F8331 (NOT dual)? Thanks.

Papanik said:
Can someone please upload the same kernel for F8331 (NOT dual)? Thanks.
Click to expand...
Click to collapse
same kernel works with both single and dual

karrouma said:
same kernel works with both single and dual
Click to expand...
Click to collapse
OK thanks a lot.

Papanik said:
OK thanks a lot.
Click to expand...
Click to collapse
I'm not quite sure of that buddy.. Has someone tested it on the single sim version..
Extract and share the kernel.sin from the ftf file.. I'll modify it..

arjun.arora said:
I'm not quite sure of that buddy.. Has someone tested it on the single sim version..
Extract and share the kernel.sin from the ftf file.. I'll modify it..
Click to expand...
Click to collapse
No different between F8332 and F8331 kernel or fota-kernel (recovery)... Only difference are system.*.sin cach.*.sin userspace.*.sin oem.*.sin

please give me some detail instruction to install it!
my Knowledge: backup TA -> unlock bootloader -> flash this kernel -> flash recover -> flash SuperSU -> done??
after that, if i want to roll back to stock, i must do that: push TA back to phone by recovery -> reflash stock rom by flashtool.??
is this right?
and one more question : is this kernel use for stock rom and all thing will work fine??

link_it said:
please give me some detail instruction to install it!
my Knowledge: backup TA -> unlock bootloader -> flash this kernel -> flash recover -> flash SuperSU -> done??
after that, if i want to roll back to stock, i must do that: push TA back to phone by recovery -> reflash stock rom by flashtool.??
is this right?
and one more question : is this kernel use for stock rom and all thing will work fine??
Click to expand...
Click to collapse
I don't know much about the ta backup part, please make a search..

link_it said:
please give me some detail instruction to install it!
my Knowledge: backup TA -> unlock bootloader -> flash this kernel -> flash recover -> flash SuperSU -> done??
after that, if i want to roll back to stock, i must do that: push TA back to phone by recovery -> reflash stock rom by flashtool.??
is this right?
and one more question : is this kernel use for stock rom and all thing will work fine??
Click to expand...
Click to collapse
Are you on FW41 (android 7.1.1)?
If "YES" you must downgrade to MM rom and not patched "dirty-cow" vulnerable for backup TA partition (if you don't backed up later. If you have ta backup skip this step)
Then update to N 7.1.1
After update to 7.1.1:
1- unlock bootloader (backup data and internal sd, device wiped all data!)
2- go to "fastboot mode" (power off phone, when hold volume up plug your phone to pc, blue light led must be on)
3- flash that image for drm-fix and disable dm-verify with this code
Code:
fastboot flash boot boot.img
4- reboot phone complete
Code:
fastboot reboot
5- again power off and go to fastboot mode. And flash recovery now:
Code:
fastboot flash recovery twrp-***-kagura.img
fastboot reboot
6- now go to recovery and install supersu zip package.
If you want go to complete stock you need TA.img (save that several place in your PC and better save on cloud storage like google drive)
If you need, flash TA.img and flash FTF stock rom and phone back to theirs factory state.
** and for knowledge: this is not custom kernel!!!
This is custom boot.img. The kernel inside that file is completely stock. Only "ramdisk" patched for allow you to root your device and fix drm.

completery understand
GenomeX said:
Are you on FW41 (android 7.1.1)?
If "YES" you must downgrade to MM rom and not patched "dirty-cow" vulnerable for backup TA partition (if you don't backed up later. If you have ta backup skip this step)
Then update to N 7.1.1
After update to 7.1.1:
1- unlock bootloader (backup data and internal sd, device wiped all data!)
2- go to "fastboot mode" (power off phone, when hold volume up plug your phone to pc, blue light led must be on)
3- flash that image for drm-fix and disable dm-verify with this code
Code:
fastboot flash boot boot.img
4- reboot phone complete
Code:
fastboot reboot
5- again power off and go to fastboot mode. And flash recovery now:
Code:
fastboot flash recovery twrp-***-kagura.img
fastboot reboot
6- now go to recovery and install supersu zip package.
If you want go to complete stock you need TA.img (save that several place in your PC and better save on cloud storage like google drive)
If you need, flash TA.img and flash FTF stock rom and phone back to theirs factory state.
** and for knowledge: this is not custom kernel!!!
This is custom boot.img. The kernel inside that file is completely stock. Only "ramdisk" patched for allow you to root your device and fix drm.
Click to expand...
Click to collapse
many thanks for your guide. Since Z3, i've never unlock bootloader yet, so i have a bit confused because of TA partition
i'll do it on next week, after my holiday

I tried but it didn't boot.

Pedimento said:
I tried but it didn't boot.
Click to expand...
Click to collapse
Working fine with my xz dual

karrouma said:
Working fine with my xz dual
Click to expand...
Click to collapse
Mine is XZ , not dual.

Pedimento said:
Mine is XZ , not dual.
Click to expand...
Click to collapse
Same kernek. It should works

Followed the guide but it didn't boot. The problem is boot.img i think.

karrouma said:
Same kernek. It should works
Click to expand...
Click to collapse
Me too. It stuck on Sony logo. Xperia xz single sim

djgigi94 said:
Me too. It stuck on Sony logo. Xperia xz single sim
Click to expand...
Click to collapse
Share the single sim kernel.sin from the firmware..

Related

[Tip]{All firmwares} Easily root an Xperia ZR with unlocked bootloader

thHello all,
This is a known way to root any android phone with an unlocked bootloader. I tested it on my ZR, it just works fine and is easy & fast to follow !
It works for all firmwares and it's a good way to root the latest stock rom (eg .67 / .244 or even KitKat firmwares).
Note: I'm not responsible if something happens to your device ! Just follow the procedure and all'd be fine !
Quick instructions
Unlock bootloader
Flash any CWM-containing kernel
Boot into recovery and flash su-bin-arm-signed.zip (or this one that worked for me on KitKat)
Revert back to stock kernel
Install SuperSU and update su.bin
Enjoy
Instructions for noobies (yes I didn't forget you !)
Unlock your bootloader.
You may want to backup your TA before. In this case you need an already rooted phone. I personnaly downgraded mine to .310 then rooted it with Doom's toolkit to be able to backup my TA.
Download and copy the following file to your phone: su-bin-arm-signed.zip (or this one for 4.3)
Install the firmware you want to be on when the phone gets rooted
Flash a kernel that contains CWM, for example this one which comes from CM 10.1 FXP234a (you can also try to hotboot it, didn't work for me).
You can flash it with a command line or a soft like FlashTool:
In FlashTool select Flash > Fastboot mode
Connect the phone in fastboot mode : when powered off, connect it to your laptop while pressing Volume + key. You can release the key when the LED turns blue
Select the kernel to flash and run the operation
> Now do not try to boot normally the phone because it won't boot, as the kernel's not compatible with the stock rom.
Boot into recovery:
Power on the phone
When the led turns violet at boot for 3", press Volume +
Now you are in recovery. Use Volume buttons to navigate and Power to confirm.
Select Install zip > Choose zip from sdcard or external sdcard (depending where you put the .zip to flash)
Choose su-bin-arm-signed.zip
Confirm
Go to Advanded > Power off
Flash back the stock kernel corresponding to the firmware installed on the phone (.244 -> .244 kernel). You can for example use Flashtool:
Download the .ftf of the build installed on your phone (no matter the location of the firmware)
Run Flashtool
Do Flash > Flashmode and select the .ftf you downloaded
Uncheck anything on the "Wipe" colon
Check everything on the "Exclude" colon except "KERNEL"
You should now only have kernel.sin and loader.sin on the content colon.
Click on Flash
Connect the phone in flash mode : when powered off, connect it to your laptop while pressing Volume - key. You can release the key when the LED turns green
Reboot the phone, install SuperSU, run it and update the su binary
You can relock the bootloader with Backup TA to recover warranty or Bravia Engine 2 without losing root.
May help:
- Stock .310 kernel
- Stock .244 kernel
- Stock .67 kernel
- Stock .569 kernel for C5503 / C5502
- Instructions by gspbeetle
Thanks to:
- Team FXP for the kernel
Sorry for my bad english and I hope I helped
NeoJeo said:
Hello all,
This is a known way to root any android phone with an unlocked bootloader. I tested it on my ZR, it just works fine and is easy & fast to follow !
It works for all firmwares and it's a good way to root the latest stock rom (eg .244).
Note: I'm not responsible if something happens to your device ! Just follow the procedure and all'd be fine !
Quick instructions
Unlock bootloader
Flash any CWM-containing kernel
Boot into recovery and flash su-bin-arm-signed.zip
Revert back to stock kernel
Install SuperSU and update su.bin
Enjoy
Instructions for noobies (yes I didn't forget you !)
Unlock your bootloader.
You may want to backup your TA before. In this case you need an already rooted phone. I personnaly downgraded mine to .310 then rooted it with Doom's toolkit to be able to backup my TA.
Download and copy the following file to your phone: su-bin-arm-signed.zip
Install the firmware you want to be on when the phone gets rooted
Flash a kernel that contains CWM, for example this one which comes from CM 10.1 FXP234a (you can also try to hotboot it, didn't work for me).
You can flash it with a command line or a soft like FlashTool:
In FlashTool select Flash > Fastboot mode
Connect the phone in fastboot mode : when powered off, connect it to your laptop while pressing Volume + key. You can release the key when the LED turns blue
Select the kernel to flash and run the operation
> Now do not try to boot normally the phone because it won't boot, as the kernel's not compatible with the stock rom.
Boot into recovery:
Power on the phone
When the led turns violet at boot for 3", press Volume +
Now you are in recovery. Use Volume buttons to navigate and Power to confirm.
Select Install zip > Choose zip from sdcard or external sdcard (depending where you put the .zip to flash)
Choose su-bin-arm-signed.zip
Confirm
Go to Advanded > Power off
Flash back the stock kernel corresponding to the firmware installed on the phone (.244 -> .244 kernel). You can for example use Flashtool:
Download the .ftf of the build installed on your phone (no matter the location of the firmware)
Run Flashtool
Do Flash > Flashmode and select the .ftf you downloaded
Uncheck anything on the "Wipe" colon
Check everything on the "Exclude" colon except "KERNEL"
You should now only have kernel.sin and loader.sin on the content colon.
Click on Flash
Connect the phone in flash mode : when powered off, connect it to your laptop while pressing Volume - key. You can release the key when the LED turns green
Reboot the phone, install SuperSU, run it and update the su binary
You can relock the bootloader with Backup TA to recover warranty or Bravia Engine 2 without losing root.
May help:
- Stock .310 kernel
- Stock .244 kernel
Thanks to:
- Team FXP for the kernel
Sorry for my bad english and I hope I helped
Click to expand...
Click to collapse
Sounds good. Testing this. Will let you know of the end results
akash4357 said:
Sounds good. Testing this. Will let you know of the end results
Click to expand...
Click to collapse
Thanks ! Did it work as expected ?
NeoJeo said:
Thanks ! Did it work as expected ?
Click to expand...
Click to collapse
Yes! It worked brilliant. Excellent find NeoJeo. Appreciate your help.
akash4357 said:
Yes! It worked brilliant. Excellent find NeoJeo. Appreciate your help.
Click to expand...
Click to collapse
Glad I helped
I wish had nown this before doing it the long way
Backing up with pc companion, downgrading with flashtool, rooting and then wait for OTA update and after that restore the backup with pc companion.
Skickat från min C5503 med Tapatalk 4
Mario.D said:
I wish had nown this before doing it the long way
Backing up with pc companion, downgrading with flashtool, rooting and then wait for OTA update and after that restore the backup with pc companion.
Skickat från min C5503 med Tapatalk 4
Click to expand...
Click to collapse
I also found the long ways to long... mostly with a slow connection. That's why I thought to this one
Regarding backup of TA partition, does it have to revert to original firmware or can I back it up even after flashing 4.2.2 with root?
grim_ripper said:
Regarding backup of TA partition, does it have to revert to original firmware or can I back it up even after flashing 4.2.2 with root?
Click to expand...
Click to collapse
Backing up TA Partition can only be done BEFORE you unlocked bootloader.
Thanks NeoJeo for this awesome rooting method! Flashed the Nordic 4.2.2 ROM on my Xperia ZR and it is working like a charm .
I've backed up my phone's TA partition just in case something goes wrong and I need to re-lock it and give it for servicing .
@ Grim_ripper: Is your bootloader already unlocked ?
@ su1979: You're welcome, glad I helped !
su1979 said:
I've backed up my phone's TA partition just in case something goes wrong and I need to re-lock it and give it for servicing .
Click to expand...
Click to collapse
I did the same ^^
thanks!! I'm testing !
Is it possible to re-lock the BL if I didn't do any TA backup before?
awwer2002 said:
thanks!! I'm testing !
Is it possible to re-lock the BL if I didn't do any TA backup before?
Click to expand...
Click to collapse
Hello,
No, not possible for the moment. For other devices such as the Xperia Z we can relock the bootloader by flashing a .ftf but without recovering the drm.
The backup and restore tool is the better way to reloock but it needs a backup before you unlock the BL.
I cant acces to the recovery mode even i press vol+ when i see the green light
Did i do something wrong?
The device is working good so far by this rooting method.
I just want the recovery mode back:cyclops:
Sorry for my bad english
awwer2002 said:
I cant acces to the recovery mode even i press vol+ when i see the green light
Did i do something wrong?
The device is working good so far by this rooting method.
I just want the recovery mode back:cyclops:
Sorry for my bad english
Click to expand...
Click to collapse
Green light? weird. Do the cyanogenmod logo displays at boot?
awwer2002 said:
I cant acces to the recovery mode even i press vol+ when i see the green light
Did i do something wrong?
The device is working good so far by this rooting method.
I just want the recovery mode back:cyclops:
Sorry for my bad english
Click to expand...
Click to collapse
If "select kernel to flash" says something like
"writing 'boot'...
FAILED (remote: Command not allowed)"
It means your bootloader is not unlocked yet.
NeoJeo said:
Green light? weird. Do the cyanogenmod logo displays at boot?
Click to expand...
Click to collapse
oh, I mean after I flashed back the stock kernel.
sorry I am new to android
---------- Post added at 09:50 PM ---------- Previous post was at 09:47 PM ----------
NeoJeo said:
Green light? weird. Do the cyanogenmod logo displays at boot?
Click to expand...
Click to collapse
gspbeetle said:
If "select kernel to flash" says something like
"writing 'boot'...
FAILED (remote: Command not allowed)"
It means your bootloader is not unlocked yet.
Click to expand...
Click to collapse
I am sure the BL is unlocked already as I flashed CM10.1 before.
anyway, Thanks for your advise
Edit: Use PRFCreated method for lollipop 5.0.2->5.1.1
Edit: For windows 8/10, you need to enable test mode for S1Boot fastboot driver install, you can also sign it with Zadig afterwards and turn off test mode.
Code:
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON
(reboot)
Thanks NeoJeo for the method!
For some reason, my friend's new machine have to use flashtool to create a ftf backup first after updating the official firmware . Using other kernels will fail and creates a bootloop. (Maybe carrier locked? No idea.)
Bootloop can be solved by re-flashing the stock firmware completely and redo all the steps again, so its quite safe.
Stock roms:
You can always download the latest with firmware with xperifirm.
http://forum.xda-developers.com/cro...xperifirm-xperia-firmware-downloader-t2834142
HK stock roms seem to be less bloated.
Old roms for research purpose:
C5503_10.1.1.A.1.310 (HK) (4.1.2)
https://docs.google.com/file/d/0B-WWAl17NsavUWJRZldCZVdpNTQ/edit?pli=1
* (Doomlord rooter for this rom:
http://forum.xda-developers.com/showthread.php?t=2327472)
Pre-rooted 10.4.B.0.569 (4.3.0) rom by Sijav:
http://forum.xda-developers.com/showthread.php?t=2590174
C5503_10.5.A.0.230 (HK) (4.4.2)
https://www.dropbox.com/s/phqyx3awwpjr1ab/C5503_10.5.A.0.230_Generic HK.rar
C5503_10.5.A.0.230 (NORDIC) (4.4.2):
http://forum.xda-developers.com/showthread.php?t=2774540
C5503_10.6.A.0.454 (HK) (5.0.2):
https://drive.google.com/file/d/0B7l5nu0bqYuGWUk3WkpQbm9EQm8/view?usp=sharing
Tools:
Flashtool:
http://flashtool.net/download.html
(Remember to install drivers as well from C:\Flashtool\drivers)
Backup TA:
http://forum.xda-developers.com/showthread.php?t=2292598
or https://www.dropbox.com/s/xjm6t08xy946lee/Backup-TA-9.10.zip
SDK Platfom tools:
http://developer.android.com/
or https://www.dropbox.com/s/lgs2m90p1et87hx/platform-tools.7z
Super SU zip install:
http://download.chainfire.eu/supersu
or
https://download.chainfire.eu/740/SuperSU/BETA-SuperSU-v2.49.zip
Boot.img:
http://forum.xda-developers.com/showthread.php?t=2774540
or
https://www.dropbox.com/s/0n62ripm00u4z78/boot_v8.img
UPDATE FOR 5.0.2, new boot.img:
(ref: http://forum.xda-developers.com/xperia-zr/general/c5502-unlock-bootloader-rom-c5502stock5-t3115901)
https://drive.google.com/file/d/0B7l5nu0bqYuGX19QcUl5VWdKOXc/view
Step by step reference for my friends:
1. download & install flashtool http://flashtool.net/download.html
^if doesnt work, then try https://www.dropbox.com/s/xyk493qa8psydrf/flashtool-0.9.13.0-windows.exe
2. install flashmode and fastboot drivers from C:\Flashtool\drivers
3. plugin your phone, make sure settings->security->unknown source and settings->developer options->usb debugging is checked at all times
(if cant find developer options, go to settings->about phone->build number, keep tapping build number to see what happens)
4. - If your already phone upgraded, then:
4.1 If you want to keep your current kernel for later use, see: http://forum.xda-developers.com/showthread.php?t=2334653)
4.2 download 31x kernel (4.1.2) from http://forum.xda-developers.com/showthread.php?t=2384512
4.3 save it to \Flashtool\firmwares
4.4 open FlashTool.exe, click Flash device -> Flashmode
^ to enter flashmode, either plugin usb without battery or plugin usb with Volume - while your phone is OFF
4.5 select the 31x kernel and downgrade
4.6 kill FlashTool.exe
5. download and run doomlord's rooter from http://forum.xda-developers.com/showthread.php?t=2327472
6. use task manager or cmd to kill adb.exe, if it is still running
- Now you have a rooted phone
7. download and run backup ta from http://forum.xda-developers.com/showthread.php?t=2292598 , keep the zip file for later use
- Backup TA only works with rooted rom
- If you want to use the latest andriod continue below:
7 download the latest firmware with xperifirm and bundle it with flashtool.
8. upgrade / flash your system to the latest version (see step 4, but use the latest firmware file instead)
9. get unlock key from http://unlockbootloader.sonymobile.com/unlock/step1
11. download andriod sdk from google and install http://developer.android.com/
12. open SDK manager, scroll down and check Google USB Driver then click install packages
^ if doesnt work, then try: https://www.dropbox.com/s/lgs2m90p1et87hx/platform-tools.7z
^ USB drivers is also avaible under flashtools/drivers
13. go to \sdk\platform-tools
(replace %key% below with the key from sony's email)
run fastboot.exe -i 0x0fce oem unlock 0x%key% in cmd
or create a plain text file and save it as a .bat with
Code:
fastboot.exe -i 0x0fce oem unlock 0x[B][I]%key%[/I][/B] [user=607132]@pause[/user]
^ If stuck at 'waiting for device', you can use flashtool.exe to enter 'fastboot mode via adb' (run Flashtool.exe -> Flash device -> fastbootmode
), then re-try the command above
^ while in fastboot mode, your phone screen is off and led is blue
- Now you bootloader is unlocked.
14. put this zip file into your external sd from http://download.chainfire.eu/supers...om/s/sy1vzzq9ygfvqvb/UPDATE-SuperSU-v2.01.zip
15. run Flashtool.exe -> Flash device -> fastbootmode
16. reboot into fastboot mode (via ADB)
17. after led turns blue, select kernel to flash and choose boot.img from http://www.mediafire.com/download/4bs9zy3z4sl1lvl/boot.img
^ if doesnt work, try: https://www.dropbox.com/s/y5is541wd5lck79/boot.img
18 click reboot device into system while pressing Volume +
- if LED does not turn purple at all, something must be wrong
- press Volume + as long as but NOT before the LED turn purple.
^ return to step 4 if needed, bootloader may be not properly unlocked.
19 select install zip -> choose zip from external sdcard
^ Volume+ - is up and down, Power is select
20 confirm
21 go to advance -> power off
22 remove battery and plugin usb to enter flash mode
^ Flashtool.exe should show the phone is connected in flash mode
^ But there seems to be a time limit where CM 10.1 remount itself automatically with the wired blue thing popping up and then crash
23 return to Flashtool.exe -> Flash device -> Flashmode
24 choose the .ftf either from the one in step 8 or the one you have downloaded
25 Uncheck anything on the "Wipe" colon
26 Check everything on the "Exclude" colon except "KERNEL"
^ You should now only have kernel.sin and loader.sin on the content colon
27 FLASH!
- if bootloop occurs, return to step 4 lol
^ alternatively you can just redo step 24, but this time "Wipe" everything and "Include" everything. If it boots, then jump right to step 14 and retry installing the zip
28 Install super su in google play
^ first boot may need battery in and usb removed
29 (optional) Re-run backup-ta to restore the zip from step 7 for Relocking bootloader (and check for rooted at the same time)
- if backup ta failed because of no su rights, return to step 4 lol
EDIT: do not re-lock bootloader if using the new img
EDIT:
Upgrading should keep your settings and stuff, unless something went wrong that you have to wipe data for a clean install.
Quick check list:
1. Most Important. Make sure you still have your bootloader backups.
Run Backup-TA to backup your current bootlocker if needed (new version here:http://forum.xda-developers.com/showthread.php?t=2292598). Backup-TA only works on rooted.
2. If you somehow lost it, re-obtain your unlock key from http://unlockbootloader.sonymobile.com/unlock/step1
3. Have your Flashtool and SDK ready (https://www.dropbox.com/s/xyk493qa8psydrf/flashtool-0.9.13.0-windows.exe, https://www.dropbox.com/s/lgs2m90p1et87hx/platform-tools.7z)
4. If you need the stock firmware from your carrier, remember to clear contents in something like: C:\ProgramData\Sony Ericsson\Update Engine\db\13740270\blob_fs and/or C:\ProgramData\Sony Mobile\Update Engine\db\13740270\blob_fs (or something similar in %appdata% for windows XP)
5. You can use any ADB backup tool or Sony Companion to backup your settings, best timing is right after OS update but before rooting.
To do:
1. Either upgrade with Sony Companion and use Flashtool -> SEUS Decrypt, or download by XperiFirm to create your own firmware (Will take a while to load depending on the power level of your PC.)
or just use the firmware people uploaded
2. open Flashtool.exe -> Flash device -> fastbootmode
3. reboot into fastboot mode (via ADB)
4. Unlock you bootlocker by running "fastboot.exe -i 0x0fce oem unlock 0x%key%" (%key% is your unlock key from Sony's email)
^ (Last time I checked, some people say they need to update SDK first.)
^ (unlock key may change after new firmware is flashed)
^ you need to enter fastboot mode via ADB first, or it will get stuck at 'waiting for device'
5. select kernel to flash and choose boot.img
6. click reboot device into system while pressing Volume + (press Volume + after the LED turn purple)
7. select install zip -> choose zip from external sdcard -> your-su-zip-file (http://download.chainfire.eu/supersu)
^ 'Volume+' 'Volume-' and 'Power'.
8. go to advance -> power off
^ If you get a boot loop, simply remove battery and plugin usb cable to enter flashmode and re-flash the new firmware again.
^ remember to re-enable "Usb debugging" under "Developer options"
^ tap "About phone" -> "Build number" 10 times to unlock "Developer options"
[/hide]
Thanks this works great but I am unable to successfully install a recovery with this method. Has anyone had the same issues??
Sent from my C5503 using xda app-developers app
Hello,
@awwer2002: After you succeed rooting the device did you install any recovery ? If yes, which one ?
@gmengass: Which recovery are you trying to install ?

[Q] Can Root Sony Xperia Z1 on 4.4.2(Kitkat)

Can I root z1 on kitkat??anyone can help me?
Yes,
First, ask QUESTIONS in the Question and answer section.
Now, read the several guides in the general and/or development section on how to root.
In brief
Either, unlock your bootloader and flash an insecure kernel
or
flash stock 4.2, root, install recovery and flash a prerooted 4.4 rom.
Alll instructions are in their relevant threads so I will not reproduce them here.
Eigth time and counting I have written this today
Anyone can explain why there is not an straight forward method to root Z1 directly on kitKat and we need to downgrade to do it ?
SrMoure said:
Anyone can explain why there is not an straight forward method to root Z1 directly on kitKat and we need to downgrade to do it ?
Click to expand...
Click to collapse
Because sony has patched the known exploits and made it hard for the devs to find any expoit.
avveMeetU said:
Can I root z1 on kitkat??anyone can help me?
Click to expand...
Click to collapse
Best way to do is it to downgrade to 534 using flashtool, grab the FTF file needed from the mega collection thread.
Use vroot to root the device, install a custom recovery, flash the rom that you want to install (Monx, ihacker, romaur) then don't reboot, but re-enter flashmode and flash everything (without wipe) from an FTF of the same base, do not flash TA and System.
Reboot and youre done.
I wrote a more in depth tutorial which can be found in this thread, second post.
http://forum.xda-developers.com/showthread.php?t=2709585
dladz said:
Best way to do is it to downgrade to 534 using flashtool, grab the FTF file needed from the mega collection thread.
Use vroot to root the device, install a custom recovery, flash the rom that you want to install (Monx, ihacker, romaur) then don't reboot, but re-enter flashmode and flash everything (without wipe) from an FTF of the same base, do not flash TA and System.
Reboot and youre done.
I wrote a more in depth tutorial which can be found in this thread, second post.
http://forum.xda-developers.com/showthread.php?t=2709585
Click to expand...
Click to collapse
No that's not the best way
1) Vroot sends your IMEI number to china for no known reason. They have been asked to change this but gave no response to XDA about it.
2) The point of downgrading to a .534 FTF is that you can install recovery without rooting first. So install dualrecovery, then flash SuperSU.zip from chainfire, then flash a 4.4 rom of your choice.
avveMeetU said:
Can I root z1 on kitkat??anyone can help me?
Click to expand...
Click to collapse
It's real easy to relock the bootloader using Flashtool, so don't sweat unlocking it to root.
KarimSalloum said:
It's real easy to relock the bootloader using Flashtool, so don't sweat unlocking it to root.
Click to expand...
Click to collapse
But how do you backup your TA that way.
You need to root first then backup TA. Relocking with flashtool does not restore your TA.
Once you have your backup then that is always possible, but not for a first time root.
gregbradley said:
No that's not the best way
1) Vroot sends your IMEI number to china for no known reason. They have been asked to change this but gave no response to XDA about it.
2) The point of downgrading to a .534 FTF is that you can install recovery without rooting first. So install dualrecovery, then flash SuperSU.zip from chainfire, then flash a 4.4 rom of your choice.
Click to expand...
Click to collapse
I didn't know you could do it that way, the way that i've mentioned is what was written on all the tutorials that i've seen so i'm literally going from what other people have said, including monx.
The IMEI thing is a bit creepy but I wasn't aware of that either.
another one bricked...sigh how to fix?
Hey all,
Successfully unlocked my c9603 with latest kitkat and installed cwm 6 with these instructions
How to Install CWM 6 Recovery on Xperia Z1:
Download Doomlord’s Advanced Stock Kernel with CWM Recovery
Copy the downloaded.zip file to your phone’s sd card.
Extract the downloaded .zip folder on your PC, you will get a Boot.img file.
Place the extracted Boot.img file in the Minimal ADB & Fastboot folder that you created using our ADB & Fastboot Quick Setup Guide.
If you are using Android ADB & Fastboot full package, you can place the downloaded Recovery.img file in the Fastboot folder or in the Platform-tools folder.
Open the folder where you placed the Boot.img file. E.g Minimal ADB & Fastbootor Fastboot or Platform Tools.
Press and hold the shift key and right click on an empty area within the folder, and click on “Open Command Window Here”.
Turn off your Xperia Z1 completely.
Now press the Volume Up Key and while keeping it pressed plug in the USB cable.
You should see a blue light in the notification light of your phone, that means your device is now connected in Fastboot mode.
Now type the following command: Fastboot Flash boot Boot.img
Hit Enter and it will quickly flash CWM 6.0.4.6 recovery in your Xperia Z1
Once recovery is flashed, now issue this command “Fastboot Reboot”
Your device will reboot now, as soon as you see the Sony logo, and the pink LED, press Volume Up key to enter recovery.
Congrats! You should now see the custom recovery.
Once in CWM recovery, flash the zip file you copied to your phone in step 2. To do so, select “install zip > choose zip from sd card > doomlord advanced stock kernel.zip > yes” and flash it.
Once flashed the zip file, reboot your device.
That’s all.
ok so I did all of the with success now when I turn my phone on I get what I think is a bootloop mode...it gives me the sony logo and the pink led to boot in cwm then re loops over and over.
I can get into cwm but thats it.
So how do I go about fixing my bricked phone now? Kinda need it lol
appreciated guys
WOW, I misread that...
If you flash doomkernel you already have recovery.
Please link to where you found those instructions, they seem way out of date.
and have you unlocked your bootloader?
96329992 144
gregbradley said:
WOW, I misread that...
If you flash doomkernel you already have recovery.
Please link to where you found those instructions, they seem way out of date.
and have you unlocked your bootloader?
Click to expand...
Click to collapse
http://techbeasts.com/2014/02/19/in...ng-latest-14-2-a-1-136-firmware-how-to-guide/
thats the link I used.
and yes I unlocked the bootloader via adb and fastboot using this guide
http://techbeasts.com/2013/12/18/how-to-unlock-bootloader-of-sony-xperia-devices-guide/
and I think I just maybe spotted my mistake, I probably should hvae used this link instead but due to sleep deprivation I didnt
http://techbeasts.com/2014/03/20/install-cwm-6-recovery-xperia-z1-android-4-4-2-kitkat-681/
anyway I went ahead and download that boot.img file, renamed it copied it across and tried to flash and I get this error
error: cannot load 'boot.img': No error
antiskeptic said:
http://techbeasts.com/2014/02/19/in...ng-latest-14-2-a-1-136-firmware-how-to-guide/
thats the link I used.
and yes I unlocked the bootloader via adb and fastboot using this guide
http://techbeasts.com/2013/12/18/how-to-unlock-bootloader-of-sony-xperia-devices-guide/
and I think I just maybe spotted my mistake, I probably should hvae used this link instead but due to sleep deprivation I didnt
http://techbeasts.com/2014/03/20/install-cwm-6-recovery-xperia-z1-android-4-4-2-kitkat-681/
anyway I went ahead and download that boot.img file, renamed it copied it across and tried to flash and I get this error
error: cannot load 'boot.img': No error
Click to expand...
Click to collapse
Those non xda guides are crap...
If you have unlocked your bootloader (Did you make a TA backup first?) then just flash doomkernel
Doomkernel has recovery in it.
Once you have done that you are rooted and have recovery
gregbradley said:
Those non xda guides are crap...
If you have unlocked your bootloader (Did you make a TA backup first?) then just flash doomkernel
Doomkernel has recovery in it.
Once you have done that you are rooted and have recovery
Click to expand...
Click to collapse
No, I didnt back up the ta as I didnt have root in the first place.
I have doom kernal installed and can access cwm.
It is stuck in bootloop mode...how do I just get my phone to boot normally for now instead of bootlooping?
---------- Post added at 06:51 PM ---------- Previous post was at 06:39 PM ----------
i just tried all of this from xda university, still no luck at all, still boot looping
If you flash a new (base)rom on your device it may not automatically wipe your dalvik-cache, This means your old dalvik-cache will be used for the new system files which would result in a bootloop, to fix this problem:
1. Start your phone in CWM Recovery
2. Go to Advanced
3. Choose “Wipe dalvik-cache”
4. Now go to “Mounts & Storage”
5. Choose “Wipe /cache”
6. Reboot your phone
Note: by wiping “/cache” and “dalvik-cache” you make sure it’s completely deleted, some roms use /data and some use /cache for the dalvik-cache
If the problems still exists after doing that, you could try to wipe your /data partition. before you do that first make a backup of your phone (in it’s current bootlooping state)
1. Start your phone in CWM Recovery
2. Now go to “Backup & Restore”
3. Choose “backup” (it may also be called “backup to internal/external sdcard)
When that’s done you are free to wipe /data, you can achieve this by doing:
1. Now go to “Mounts & Storage”
2. Choose “Wipe /data”
3. Choose “Wipe /cache”
4. Reboot your phone
If the rom still doesn’t boot correctly it’s probably the rom which isn’t working, contact the rom creator then and try an other rom for the meanwhile.
antiskeptic said:
No, I didnt back up the ta as I didnt have root in the first place.
I have doom kernal installed and can access cwm.
It is stuck in bootloop mode...how do I just get my phone to boot normally for now instead of bootlooping?
---------- Post added at 06:51 PM ---------- Previous post was at 06:39 PM ----------
i just tried all of this from xda university, still no luck at all, still boot looping
If you flash a new (base)rom on your device it may not automatically wipe your dalvik-cache, This means your old dalvik-cache will be used for the new system files which would result in a bootloop, to fix this problem:
1. Start your phone in CWM Recovery
2. Go to Advanced
3. Choose “Wipe dalvik-cache”
4. Now go to “Mounts & Storage”
5. Choose “Wipe /cache”
6. Reboot your phone
Note: by wiping “/cache” and “dalvik-cache” you make sure it’s completely deleted, some roms use /data and some use /cache for the dalvik-cache
If the problems still exists after doing that, you could try to wipe your /data partition. before you do that first make a backup of your phone (in it’s current bootlooping state)
1. Start your phone in CWM Recovery
2. Now go to “Backup & Restore”
3. Choose “backup” (it may also be called “backup to internal/external sdcard)
When that’s done you are free to wipe /data, you can achieve this by doing:
1. Now go to “Mounts & Storage”
2. Choose “Wipe /data”
3. Choose “Wipe /cache”
4. Reboot your phone
If the rom still doesn’t boot correctly it’s probably the rom which isn’t working, contact the rom creator then and try an other rom for the meanwhile.
Click to expand...
Click to collapse
Ok, flash SuperSU.zip from chainfires website (Google it)
Then flash a new rom of your choice.
gregbradley said:
Ok, flash SuperSU.zip from chainfires website (Google it)
Then flash a new rom of your choice.
Click to expand...
Click to collapse
Cool, ill get onto that. Ive noticed a cpl of roms floating around xda. Any suggestions on a good one or run with the
http://forum.xda-developers.com/showthread.php?t=2687275&page=8
option?
lol....might as well pick a good rom since i have stuffed my stock one.
I still will achieve my root! haha
thanks for the help so far, its always appreciated!
You do not need root to flash that.
Its a stock FTF, just flash it in flash tool
gregbradley said:
You do not need root to flash that.
Its a stock FTF, just flash it in flash tool
Click to expand...
Click to collapse
sorry I wasnt saying do i need root for this? i know i currently dont have root and can flash ftf anyway.
what i was saying was, once i have my phone back up, I will achieve root status on it...
so if I am correct flash the phone with supersu from sdcard via cwm6 then flash
[FTF] Xperia Z1 C6903 14.3.A.0.681 Commercial&Journalist
which I am downloading from http://forum.xda-developers.com/showthread.php?t=2687275
My phone should boot up now with root access, but I am only trying to fix it currently.
Cant see why I wouldnt have a working phone with root following these steps?
thanks , ill keep posting updates, might even help someone else in the process
But why are you insistent on backing up a system that is in bootloop? Why would you ever want to restore a bootlooping system?
I would just do a fresh system install and forget about backing up a non working system
Just flash the FTF of your choice, then the appropriate DooMKerneL version.
Then you are rooted and have CMW installed. 2 easy steps, I really don't understand your need to backup first, especially when your phone is bootlooping.
---------- Post added at 11:13 AM ---------- Previous post was at 11:07 AM ----------
antiskeptic said:
then flash
[FTF] Xperia Z1 C6903 14.3.A.0.681 Commercial&Journalist
which I am downloading from http://forum.xda-developers.com/showthread.php?t=2687275
My phone should boot up now with root access,
Click to expand...
Click to collapse
No, once you flash a FTF you lose root. You will need to reflash the appropriate DooMKerneL again
but I am only trying to fix it currently.
Cant see why I wouldnt have a working phone with root following these steps?
Click to expand...
Click to collapse
Because once you flash a FTF you lose root
thanks , ill keep posting updates, might even help someone else in the process
Click to expand...
Click to collapse
gregbradley said:
But why are you insistent on backing up a system that is in bootloop? Why would you ever want to restore a bootlooping system?
I would just do a fresh system install and forget about backing up a non working system
Just flash the FTF of your choice, then the appropriate DooMKerneL version.
Then you are rooted and have CMW installed. 2 easy steps, I really don't understand your need to backup first, especially when your phone is bootlooping.
---------- Post added at 11:13 AM ---------- Previous post was at 11:07 AM ----------
No, once you flash a FTF you lose root. You will need to reflash the appropriate DooMKerneL again Because once you flash a FTF you lose root
Click to expand...
Click to collapse
im not trying to backup the bootloop, i just want to fix my phone. I did not realise you were saying fresh install then start from scratch with the root process.
So I will flash the NEW ftf to my phone. Once phone is working I will flash doomlord kernel and supersu. thanks for the help. do you happen to know a link for the correct instructions for this, so I get it right this time.

[TUT] How to root your Android One devices (sprout) with Locked Bootloader

Hi guys, today I am going to share this simple tutorial on how to root without unlocking bootloader of sprout.. Many people asked me how to do so I am here to create a simple tut for everyone..
Requirements
1. Any custom recovery for sprout (I prefer philz http://forum.xda-developers.com/cro...e-general/sprout-philz-touch-v6-57-9-t2887574 )
2. Fastboot files (google for minimal fastboot) and fastboot drivers
3. Supersu update zip (http://download.chainfire.eu/supersu)
Proceedure
1. Install fastboot drivers and fastboot files..
2. Rename the custom recovery as "recovery.img"
3. Place the recovery.img within fastboot directory (where the fastboot.exe located)
4. Put supersu.zip in root of your phone's sd card
5. Connect your android one device to pc using usb cable in fastboot mode (switch off phn and press power+vol up and then select fastboot)
6. Use the following fastboot command
Code:
fastboot boot recovery.img
This command will not flash the recovery, it will just let your phone boot into recovery and it will work on locked bootloader
7. You will get the recovery menu then. Install the previously downloader supersu.zip from external sd card using the recovery menu.
8. Congratulation, You have successfully rooted your android one device without unlocking bootloader...:good:
Here is a video guide created by @thesaurabh7777, u can check it..
https://www.youtube.com/watch?v=DxlowF80deY&list=UUAWTixiBL7GqKAZB5OLAwDA
Credit
1. @varun.chitre15 for custom recovery
2. @Chainfire for supersu.zip
thanks
Thank you. Just what i wanted.
Anyone tried? And how to unroot if needed ?
UPDATE : I tried. It works and works like charm. I have created CWM backup of my stock ROM, rooted device and installed xposed also.
You can always unroot from settings in SuperSu - Which essentially removes itself and su binaries.
coolkoushik07 said:
Hi guys, today I am going to share this simple tutorial on how to root without unlocking bootloader of sprout.. Many people asked me how to do so I am here to create a simple tut for everyone..
Requirements
1. Any custom recovery for sprout (I prefer philz http://forum.xda-developers.com/crossdevice-dev/android-one-general/sprout-philz-touch-v6-57-9-t2887574 )
2. Fastboot files (google for minimal fastboot) and fastboot drivers
3. Supersu update zip (http://download.chainfire.eu/supersu)
Proceedure
1. Install fastboot drivers and fastboot files..
2. Rename the custom recovery as "recovery.img"
3. Place the recovery.img within fastboot directory (where the fastboot.exe located)
4. Put supersu.zip in root of your phone's sd card
5. Connect your android one device to pc using usb cable in fastboot mode (switch off phn and press power+vol up and then select fastboot)
6. Use the following fastboot command
Code:
fastboot boot recovery.img
This command will not flash the recovery, it will just let your phone boot into recovery and it will work on locked bootloader
7. You will get the recovery menu then. Install the previously downloader supersu.zip from external sd card using the recovery menu.
8. Congratulation, You have successfully rooted your android one device without unlocking bootloader...:good:
Credit
1. @varun.chitre15 for custom recovery
2. @Chainfire for supersu.zip
Click to expand...
Click to collapse
This method applicable for moto G??
after rooting using this methord can i install cwm recovery without unlocking the bootloader? i want to backup my rom
austinpinto said:
after rooting using this methord can i install cwm recovery without unlocking the bootloader? i want to backup my rom
Click to expand...
Click to collapse
U can but u need flashable zip of recovery.. And u can backup and restore ur rom by booting into custom recovery too..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
U can but u need flashable zip of recovery.. And u can backup and restore ur rom by booting into custom recovery too..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
can i boot into custom recovery and backup my entire rom without root or unlocking the bootloader?
austinpinto said:
can i boot into custom recovery and backup my entire rom without root or unlocking the bootloader?
Click to expand...
Click to collapse
Yes u can
Sent from my Xperia Z1 Compact
archies20 said:
This method applicable for moto G??
Click to expand...
Click to collapse
Please dont quote whole op...
And no, it will not work in moto..
Sent from my Xperia Z1 Compact
successfully rooted but how to check weather boot loader is locked r unlocked,with root can i get ota update(if the provide any in the near future )r else should i have do any thing to lock bootloader... thank you bro for the tut...:good::good:
how to unroot?
Can the device be unrooted by simple using the option in SuperSU to receive OTA update?
mknits said:
Can the device be unrooted by simple using the option in SuperSU to receive OTA update?
Click to expand...
Click to collapse
Yes and ota update depends on what modification u have done to ur phn while being rooted..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
Yes and ota update depends on what modification u have done to ur phn while being rooted..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
Hi, if I root my device this way, just to backup some apps via TB, and not modify the system any other way, are you sure just unrooting will be enough to safely apply the Kitkat to Lollipop OTA?
I've read about this new "verified boot" thing in Lollipop, which essentially means if you modify system partition in any way, even if just to add the SU app/binaries, the OTA will fail (where it obviously didn't use to, before lollipop). I'm not sure if this verified boot thing will apply to the OTA for Kitkat to Lollipop too, or just updates From Lollipop to future versions.
(AP did an article just a couple of weeks back, check it out here: http://www.androidpolice.com/2014/1...e-means-update-will-fail-system-modified-way/ )
I have made a backup of Stock ROM before rooting it,so when LOLLIPOP arrives and in case i have changes some system files, i can simply restore the stoock ROM to recieve the updates right???
Rahil S said:
I have made a backup of Stock ROM before rooting it,so when LOLLIPOP arrives and in case i have changes some system files, i can simply restore the stoock ROM to recieve the updates right???
Click to expand...
Click to collapse
Yes u can.. In fact I also did the same..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
Yes u can.. In fact I also did the same..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
Thanks.
And even if i unlock bootloader, flashing the stock rom back with lock the bootloader again right or do i need to do it manually???
Rahil S said:
Thanks.
And even if i unlock bootloader, flashing the stock rom back with lock the bootloader again right or do i need to do it manually???
Click to expand...
Click to collapse
If u unlock bootloader, u have to lock bootloader manually after flashing stock rom..
Sent from my Xperia Z1 Compact
coolkoushik07 said:
If u unlock bootloader, u have to lock bootloader manually after flashing stock rom..
Sent from my Xperia Z1 Compact
Click to expand...
Click to collapse
I have not unlocked bootloader just rooted it. Now do i need to flash stock rom back or removing supersu will make it stock?? I have only used SuperSu and link2sd app. Will be very helpfull if you can guide me. Thanks
Rahil S said:
I have not unlocked bootloader just rooted it. Now do i need to flash stock rom back or removing supersu will make it stock?? I have only used SuperSu and link2sd app. Will be very helpfull if you can guide me. Thanks
Click to expand...
Click to collapse
Yes it will
Sent from my Xperia Z1 Compact
Nice
---------- Post added at 04:16 PM ---------- Previous post was at 04:15 PM ----------
Good work

Unlocking bootloader and installing Custom recovery [Sprout4] [Marshmallow 6.0]

So i have successfully installed a custom recovery on my phone running Marshmallow and also unlocked the bootloader!
Its quite simple actually!
I am not responsible for any damage you make to your phone!
Steps-
1. Download the zip file from the link and extract it.
2. Install both the drivers and then proceed!(The drivers are universal and work for Windows 98,xp,vista,7,8,8.1,10 but in 8,8.1,10 you might need to turn off the digital signature verification-Make good use of google)
3.After installing the drivers , connect your phone in switched on and remember to turn on usb debugging in the dev options!
4. Open the unlock_bootloader_... and run the .bat file and follow the on screen steps( All the data will be formatted so make a backup beforehand)
5.After doing this you will void your warranty so make sure you know what you are doing!
6. Open the one click installer folder and replace the recovery.img with any recovery that you want.
7. Now again connect your phone in switched on mode and usb debugging on and run the .bat file of recovery installer.. and follow the on screen steps!
8.As soon as the the recovery installation is over do not let teh phone reboot just press the vol up button as the installation process stops and then go to recovery!
9.Boom!! Now you have a phone with unlocked bootloader and a custom recovery installed on marshmallow!!
10.Flash custom Kernels,Boot Animations, Logos and root your phone running marshmallow and brag!
Downloads--
Bootloader and Recovery.zip(27.4 MB)
Press Thanks:good: if this helped and if you have any querries just use the section below!
Recovery Kernel?
Hi bro just a quick question did you use the MM kernel in the custom recovery?
On our None AOSP standard Mediatek devices the rom does a Kernel check to ensure both the boot and recovery Kernels are of the same version eg KK boot = KK Recovery LP boot = LP Recovery so I just wondered if the MM Kernel still works in the Philz recovery or are you still using a kernel from a older version of android eg KK or LP.
Hope that makes sense to you :laugh:
How to open the unlock_bootloader ??? There is no such option
how about rooting? what method did you use?
bigrammy said:
Hi bro just a quick question did you use the MM kernel in the custom recovery?
On our None AOSP standard Mediatek devices the rom does a Kernel check to ensure both the boot and recovery Kernels are of the same version eg KK boot = KK Recovery LP boot = LP Recovery so I just wondered if the MM Kernel still works in the Philz recovery or are you still using a kernel from a older version of android eg KK or LP.
Hope that makes sense to you :laugh:
Click to expand...
Click to collapse
Actually i didn't work on the recovery, i just made the one click thing, i inserted any random recovery i found working on 6.0 .
cheeze.keyk said:
how about rooting? what method did you use?
Click to expand...
Click to collapse
i flashed a custom kernel and then the super su beta zip
akash.kotwani said:
How to open the unlock_bootloader ??? There is no such option
Click to expand...
Click to collapse
in the zip you will find a .bat file, open that and follow on screen instructions
How to relock bootloader if I ever want to?
net_freak said:
How to relock bootloader if I ever want to?
Click to expand...
Click to collapse
Well i did not make anything that can do that but you'll probably find it in other threads. You can also flash bootloader.using the stock rom file via sp flash tools to relock it just untick everything else but bootloader!
Unlocking bootloader is necessary? Can I not just do it with it locked bootloader?
net_freak said:
Unlocking bootloader is necessary? Can I not just do it with it locked bootloader?
Click to expand...
Click to collapse
You can but unlocking the bootloader opens up many other things for devs!
divyesh bansal said:
You can but unlocking the bootloader opens up many other things for devs!
Click to expand...
Click to collapse
Will the fastboot method to flash twrp work ? I'm on Android 6.0
net_freak said:
Will the fastboot method to flash twrp work ? I'm on Android 6.0
Click to expand...
Click to collapse
Yes it does, the tool is also all about it. In the one click recovery intaller folder replace the recovery.img with your twrp(you will have to rename twrp.img file to recovery.img) and follow the steps in the first post in this thread!
divyesh bansal said:
Yes it does, the tool is also all about it. In the one click recovery intaller folder replace the recovery.img with your twrp(you will have to rename twrp.img file to recovery.img) and follow the steps in the first post in this thread!
Click to expand...
Click to collapse
Thanks. . can I use all in one tool kit by @Faiyaz5yaz for the same

Custom Roms do not work on my phone. Can I repair my phone using TWRP?

I rooted my phone 2 weeks ago. While backing up and restoring Dem keys, I broke something I don't kno. Now every custom rom I install boots and gets stuck at Phone is starting and then reboots. Tried LOS 16, 17.1 and Pixel experience rom. But result is the same. Sony firmware boots perfectly, Twrp works, but custom roms don't.
Is it possible to wipe everything , all partitions and repair them using TWRP? I kno that option exists in Twrp and I have drm keys backed up. But woud that solve the problem I face with custom roms?
GOrMHATRe said:
But result is the same. Sony firmware boots perfectly, Twrp works, but custom roms don't.
Click to expand...
Click to collapse
Are you missing a step in the instructions, like flashing the boot.img for the roms you're trying to install?
GOrMHATRe said:
Is it possible to wipe everything , all partitions and repair them using TWRP? I kno that option exists in Twrp and I have drm keys backed up. But woud that solve the problem I face with custom roms?
Click to expand...
Click to collapse
To start over use the Flashtool, Newflasher, or even PC Companion. There is even Sony EMMA when something really messes up.
SXUsr said:
Are you missing a step in the instructions, like flashing the boot.img for the roms you're trying to install?
To start over use the Flashtool, Newflasher, or even PC Companion. There is even Sony EMMA when something really messes up.
Click to expand...
Click to collapse
Boot.img is part of rom zip file. With all 3 roms I tried, there was no instruction to flash boot separately. It's always flash recovery and then flash rom using recovery.
I have already use flashtool and newflasher. That's how I rooted my phone. Both of them are successful in flashing stock sony firmware. But the custom roms are in zip file. Don't kno of its possible to flash those using flashtool.
GOrMHATRe said:
Boot.img is part of rom zip file. With all 3 roms I tried, there was no instruction to flash boot separately. It's always flash recovery and then flash rom using recovery.
Click to expand...
Click to collapse
Steps :
Remove your screen lock (set it to swipe up or none) and remove all your fingerprints registered.
Download the zip above and extract the boot, system and vendor images
Make sure you have Android 10 TWRP as mentioned above with link
Go to recovery > wipe and wipe system, cache and data nothing else.
Then go to install and flash boot.img as boot image, system.img as system image and vendor.img as vendor image.
Click to expand...
Click to collapse
- [ROM] Pixel Experience 10.0 Plus
Always extract the boot.img and flash it with fastboot. If there is no instructions then still do it.
SXUsr said:
- [ROM] Pixel Experience 10.0 Plus
Always extract the boot.img and flash it with fastboot. If there is no instructions then still do it.
Click to expand...
Click to collapse
Latest file of PE rom is in zip format. Boot.img is in zip . But vendor and system are not img files.
GOrMHATRe said:
Latest file of PE rom is in zip format. Boot.img is in zip . But vendor and system are not img files.
Click to expand...
Click to collapse
Then extract the boot.img and flash it using fastboot, along with TWRP, then flash the rom. That should work flashing any custom rom.
SXUsr said:
Then extract the boot.img and flash it using fastboot, along with TWRP, then flash the rom. That should work flashing any custom rom.
Click to expand...
Click to collapse
I tried this but the result was same. Rom boots upto the lock screen. Then when I swipe it shows: phone is starting and goes into bootloop. I even tried an older version of PE Rom whic contain s only img files but again same result.
You kno initially, after I unlocked the bootloader I just installed stock rom and installed LOS on top of it as per guide. It worked well. I coud go into menu and see apps.
But I panicked that I had forgotten to restore drm keys. Instead of first checking camera, I went back and restored the Ta partition and repeated the steps after it upto installation of rom and since then I have faced problems . Restoring ta partition and flashing stock rom after it is where I have made a mistake and broken something. Can this be fixed with twrp. I kno there are options in twrp to format & repair partitions. Coud that help to repair what ever that was broken?
GOrMHATRe said:
Coud that help to repair what ever that was broken?
Click to expand...
Click to collapse
No more than the Flashtool, Newflasher or PC Companion, so I wouldn't even consider using TWRP. Check your service menu for the status of your DRM keys, flashing them is a one time process so if they have been successfully restored there is no need to flash them again.
Use Sonys Flashtool to repair, and start over. If you're still having issues, then user error is at play here. What command in fastboot did you use to flash the kernel?
SXUsr said:
No more than the Flashtool, Newflasher or PC Companion, so I wouldn't even consider using TWRP. Check your service menu for the status of your DRM keys, flashing them is a one time process so if they have been successfully restored there is no need to flash them again.
Use Sonys Flashtool to repair, and start over. If you're still having issues, then user error is at play here. What command in fastboot did you use to flash the kernel?
Click to expand...
Click to collapse
Which kernel are you speaking about? I had backed up Ta image using renoroot exploit and restored it using:
adb pull /data/local//tmp/TA-unlocked.img
adb push TA-locked.img /data/local/tmp
Then in window with temp root prompt:
cd /data/local/tmp
de if=TA-locked.img of=/dev/block/bootdevice/by-name/TA
sync
sync
Reboot phone
But actually, when I checked my phone just now and that tmp directory seems empty. So, does that mean TA didn't get restored properly? Is that why I am facing problems? Stock roms seem to be working fine.
As for sony's own flashtool, I have it installed. But thought it doesn't offer any different functionality than newflasher or old flashtool? Woud sony flashtool help me go back to square 1 and make my phone as it was before rooting so that I can do everything again properly?
GOrMHATRe said:
Which kernel are you speaking about?
Click to expand...
Click to collapse
The kernel of the rom. Check your service menu for drm status.
SXUsr said:
The kernel of the rom. Check your service menu for drm status.
Click to expand...
Click to collapse
The keys are there. The rooting status is shown not done because I have used that hide root unlock patch after going back to stock rom.
GOrMHATRe said:
The keys are there. The rooting status is shown not done because I have used that hide root unlock patch after going back to stock rom.
Click to expand...
Click to collapse
So, now forget your drm keys for a minute, and do the following.
1. Use Sonys flashtool to reset your phone. Make sure you've backed up what you need to.
2. Using fastboot, flash both the kernel of whatever rom you wish to use, and TWRP.
3. Following the instructions of the rom you want to flash, install the rom using twrp. You may want to read them first to ensure you're using the required stock firmware that you will be flashing over.
Have you tried NOT restoring TA partition? It isn't needed with custom ROMs (as far as I know).
SXUsr said:
So, now forget your drm keys for a minute, and do the following.
1. Use Sonys flashtool to reset your phone. Make sure you've backed up what you need to.
2. Using fastboot, flash both the kernel of whatever rom you wish to use, and TWRP.
3. Following the instructions of the rom you want to flash, install the rom using twrp. You may want to read them first to ensure you're using the required stock firmware that you will be flashing over.
Click to expand...
Click to collapse
I will try this but after some time. I have experimented on my phone a lot in recently. Need it to be stable for work for some time now. My secondary phone is not setup to work with gmail etc. Thanks for all the advice you have provided though.
On another note, now that Android 11 is out, do you think we will get a rom based on it for Xz1 compact? I even had a thought of skipping 10 and going for 11 based rom.
thefelineofaveb said:
Have you tried NOT restoring TA partition? It isn't needed with custom ROMs (as far as I know).
Click to expand...
Click to collapse
I have not touched drm keys after I backed up and restored them for the 1st time.

Categories

Resources