Make sure to read the 'Questions' (bottom of the post) if you encounter any problems!
First of all you need to have root access to backup your DRM keys.
Follow this thread to get root: http://forum.xda-developers.com/show....php?t=2784900
Take a backup of your phone because it will be wiped!
Video by @shem2409
- Contribute to this thread: http://forum.xda-developers.com/show...php?p=52011642
- Install Z1 Compact USB drivers ( http://developer.sonymobile.com/downloads/drivers/ )
It's possible that Z1 Compact drivers are already installed, if you have installed Sony PC Companion.
- Install Flashtool ( http://www.flashtool.net/index.php )
- Install fastboot & flashmode drivers from Flashtool (go to the installation directory and open the folder drivers/) (note: if you have Windows 8.1 64bit you need to disable Driver Signature check: Link)
- Download SuperSU and put on your SD card (do not unzip) ( http://download.chainfire.eu/supersu )
Note: There might be problems with large SD cards (32GB and bigger). You can also put the files on your internal storage: Follow steps 5-7 after step 11.
- Download latest Z1C-lockeddualrecovery(...)flashable.zip and put on your SD card (do not unzip) ( http://nut.xperia-files.com/ )
- Download z1c-44-uk.system.flashable.zip and put on your SD card (do not unzip) ( https://drive.google.com/file/d/0B8n...it?usp=sharing | mega mirror )
- Download SO-02F_14.1.H.1.281_docomo.ftf and put it in the installation directory of flashtool in the folder firmwares/ ( http://dl.weeaboo.com/Z1Compact/SO-0...281_docomo.ftf | share-online mirror | mega mirror )
- Open flashtool, select Flash => Flashmode and flash SO-02F_14.1.H.1.281_docomo.ftf (select Wipe [Check ALL] and Exclude [Check TA, BASEBAND, FOTA])
- Wait atleast 30 seconds then power off your phone, hold volume down and plug in your USB cable (your phone will boot in flashmode)
- After flashtool flashed the firmware successfully, remove the cable and power on the phone (will take some time) and go to Settings => 'About phone' and press 7 times on 'Android Build'. This will unlock the Developer options in Settings. Enable USB debugging under Developer options and check 'Unknown sources' under Security.
- Now flash C6903_14.1.G.534_ianford10_UK Unbranded_modified.ftf in flashmode (boot phone in flashmode again) (select Exclude [Uncheck ALL] and Wipe should be empty) ( https://drive.google.com/file/d/0B8n...it?usp=sharing | mediafire mirror | share-online mirror )
- Start your phone normally and plug in your USB cable (screen will be black, this is normal and it will stay like that until you finish step 16)
- Download and extract Z1C-lockeddualrecovery(...)installer.zip. Then run install.bat and select option 3 [Installation on unrooted ROM] ( http://nut.xperia-files.com/ )
Note: This is actually a different file as the one you downloaded on step 6. You're supposed to run this one here on your computer.
- After the process is finished and you get a confirmation that your device is rooted, hold Volume Up and hold the power button. After the phone vibrated 3 times it will shut down. (This is force power off)
- Flash D5503_14.3.A.0.681_Generic_UK-nosystem.ftf in flashmode (boot phone in flashmode again) (select Wipe [Uncheck ALL] and Exclude [Uncheck ALL]) ( http://www.mediafire.com/download/g1...K-nosystem.ftf | mega mirror )
- Go to the Recovery Menu. To do that, power off your phone. Then power it on again. After the vibrate and the green LED turns on, hold Volume Up (LED will turn violet). PhilZ Touch recovery will open.
- Try to flash SuperSU zip. If it doesn't work, switch to TWRP recovery (Volume Down) and try there.
- Now format /system (located under Mounts & Storage) (Important: Do NOT reboot until advised so or you will have to start again)
- Do a factory reset in the Recovery Menu
- Install the following files in this order (Important) (see steps 5 - 7)
- Optional: Update to the latest firmware with this guide: http://forum.xda-developers.com/show....php?t=2688933
- Reboot your phone
- Congratulations, your phone is now rooted (bootloader still locked)
DRM keys Backup
Now since your phone is rooted you can proceed with backing up your DRM keys (TA partition). Follow these steps:
- Enable USB debugging on your phone (go to Settings => 'About phone' and press 7 times on 'Android Build'. This will unlock the Developer options in Settings. Enable USB debugging under Developer options and check 'Unknown sources' under Security.)
- Download Backup TA and start Backup-TA.bat ( http://forum.xda-developers.com/show....php?t=2292598 )
- Select Option 1 (Backup) to backup your TA partition
- After the process succeded your backup will be in the folder backup/ (Make a backup of the backup!)
- Congratulations, you have now a backup of your DRM keys. You can also use Backup TA to restore your TA partition. It is recommend to have the same firmware when restoring as you had when you backed it up (see here: http://forum.xda-developers.com/show...&postcount=299 )
Now if you have a backup of your DRM keys you are ready to unlock the bootloader. You need to have an unlocked bootloader to install Custom Roms, test builds, etc.
Make a backup because your SD card will be formatted!
Follow this guide to unlock the bootloader: http://forum.xda-developers.com/show....php?t=2440597
Yes, it also works for Z1 Compact, all the steps are the same. You can skip installing the drivers since you should already have them from the steps above.
Relock bootloader only
If you want to relock your bootloader (e.g. for downloading official sony updates in Sony Update Service) you can do so with flashtool. This only works if you already unlocked the bootloader with the official method.
Note: This does not restore the DRM keys. If you have a warranty issue you should restore your TA parition (which will relock your bootloader and restore DRM keys) with Backup TA.
- Open flashtool
- Click on the BLU icon
- Connect your phone in flashmode (hold volume down and plug in your USB cable)
- Flashtool will ask you about the device model, choose Sony XPERIA Z1 (if Z1 compact is not in the list)
- Flashtool will read your IMEI and your unlock code. Check if those are correct (compare unlock code with the one you received by email from Sony when you unlocked the bootloader)
- Flashtool will save the unlock code in its program folder under custom/mydevices.
- Click "Lock bootloader" (-> If you want to unlock it again, repeat the steps (it will automatically detect that your bootloader is locked))
- How do I power off my phone if the screen is blank or the phone is not responding? (Force power off)
- Hold Volume Up and then hold the power button. After the phone vibrated 3 times it will shut down.
- My Antivirus detects flashtool as malware?
- That's a false positive. flashtool is not malware.
- How can I verify if my bootloader is locked/unlocked?
- Type in phone *#*#7378423#*#* and go to Service Info => Configuration. If bootloader is unlocked it will say: "Bootloader unlocked: Yes". If it says something else like "Bootloader unlock allowed: Yes", it means the bootloader is locked.
- I am currently on firmware x, can I still follow this guide?
- Yes, it does not matter which firmware you come from.
- How to remove recovery and root?
- Simply flash an official firmware ftf in flashtool. Wipe userdata is not required, but recommend.
Questions from old guide:
- Is my language still available after flashing this English firmware?
- Yes, (almost) all languages should be available.
- After flashing docomo firmware, my phone is not recognized anymore?
- Boot the phone up normally and let Windows install the drivers (thanks AnDroiD178)
- I don't like KitKat (4.4), what can I do to get on JellyBean (4.3) rooted?
- On Step 7, download this file instead: http://dl.weeaboo.com/Z1Compact/z1c-....flashable.zip | share-online mirror => Use this file for step 21.1
- For step 16, use the following file: D5503_14.2.A.1.114_Generic UK-nosystem.ftf (same flashing options)
- Note: do not mix 4.3 and 4.4
- You can find the hashes here: http://forum.xda-developers.com/show....php?t=2688933
- My browser saved the ftf files as *.zip. Is it ok to just rename them to .ftf?
- Yes, as long as the hashes are correct.
- I finished the guide but I still have some leftovers of DoComo (apps, sheep sound)?
- You probably did not do a factory reset or wipe /system. Check out this post: http://forum.xda-developers.com/show...&postcount=103 and http://forum.xda-developers.com/show...&postcount=110
- I don't want to flash the UK firmware, are there any other firmwares?
- You can replace the file on step 21.1 with a firmware from here: http://forum.xda-developers.com/show....php?t=2688933
- At the end of the guide, flash the ftf file also found within that link (select Wipe [Uncheck Data] and Exclude [Uncheck ALL])
- I can't access the flashable files in recovery, there are error messages in recovery "can't mount"?
- Check out this post: http://forum.xda-developers.com/show...2&postcount=95 and this http://forum.xda-developers.com/show....php?t=2671998
- Flashtool does not recognize the firmwares, even though I put it into the correct folder?
- Make sure the files have the correct hashes:
- SHA1: 365C185A3D5B8DA64B8B84ECBEE62DD882739E4A / MD5: 259221BCEEB54F3AD7F9721111E0EF1D
- C6903_14.1.G.534_ianford10_UK Unbranded_modified.ftf
- SHA1: 273A6A618BD7ACDAF4066F8AD66A5F925C88AC19 / MD5: CFE9703BC519894948BD5B9F05E0A1B9
- SHA1: 5ADE48599414BE47A0A7DD1BCB37C0F5518F7CCB / MD5: 5D1BDD44DF531280984B60E810A87FFA
- SHA1: FB594821FBEA030657CA5D048DE2593194F18DF8 / MD5: 148BDD3BEAEDE850CAF085ED82518FF9
- Why is the rooting procedure so damn complicated?
- If the bootloader is locked, the device can only be rooted with an exploit. But the exploit known working for the Z1 Compact does not work on current firmwares, so you first need to flash an old firmware to perform the exploit.
- How do I install the Z1 Compact USB drivers? There is no exe file?
- You need to install the drivers in device manager. If you don't know how to do that, here is a guide: http://www.sevenforums.com/tutorials...e-manager.html
- I can't install the Z1 Compact drivers because my phone doesn't boot?
- There are 3 possible solutions
- a) Flash Sony stock rom to make the phone boot
- b) Install Z1 Compact from Flashtool (same as step 4, just search in the list for Z1C)
- c) Skip installing drivers until step 11 and install it then
- I can not install dualrecovery, Windows says it's unable to install MTP drivers?
- Try changing the USB port on your computer.
- I can not install dualrecovery, it says "Waiting for device to connect"?
- Reboot your phone and try a few times again (thanks D_R_Z_87)
- Check your device manager if everything is all right ( http://forum.xda-developers.com/show...2&postcount=51 ) (thanks marcolorenzo)
- You might have forgot to check USB debugging as advised on step 11. (thanks Riyal)
- You might have wiped the user partiton on step 12 because you check the wrong options (make sure to uncheck all under Wipe) (thanks Riyal)
Many thanks to:
- All the great devs that made these tools