[GUIDE] Back up DRM Keys & unlock/relock Bootloader (Noob proof) - Xperia Z1 Compact General

This is a step by step tutorial on how to back up your DRM keys (TA Partition, to revert to factory state in case of warranty issue) and unlock the bootloader. After unlocking the bootloader you will lose your DRM keys so it's good to make a backup of it (it's optional though). Basically no DRM keys means no warranty and unlocked bootloader means no warranty. Read also here for additional info: http://forum.xda-developers.com/showthread.php?t=2292598
Make sure to read the 'Questions' (bottom of the post) if you encounter any problems!
Rooting
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/showthread.php?t=2784900
Old method:
Follow these steps, after that you will have an unbranded UK KitKat (4.4) firmware with root access (if you rather want JellyBean 4.3, check out 'Questions' down below). Thanks to Darkimmortal for the steps (I added some steps and made it easier to follow).
Take a backup of your phone because it will be wiped!
Video:
Video by @shem2409
Contribute to this thread: http://forum.xda-developers.com/showthread.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/0B8nLbtP1HtINcENMbjdSdnJteDA/edit?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-02F_14.1.H.1.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/0B8nLbtP1HtINbkdUX0hwQk9BN3M/edit?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/g1mahcm5y8cax2q/D5503_14.3.A.0.681_Generic_UK-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)
z1c-44-uk.system.flashable.zip
Z1C-lockeddualrecovery(...)flashable.zip
UPDATE-SuperSU-v1.(...).zip
Optional: Update to the latest firmware with this guide: http://forum.xda-developers.com/showthread.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/showthread.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/showpost.php?p=52745293&postcount=299 )
Unlocking bootloader
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/showthread.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))
Questions
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.
Click to expand...
Click to collapse
My Antivirus detects flashtool as malware?
That's a false positive. flashtool is not malware.
Click to expand...
Click to collapse
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.
Click to expand...
Click to collapse
I am currently on firmware x, can I still follow this guide?
Yes, it does not matter which firmware you come from.
Click to expand...
Click to collapse
How to remove recovery and root?
Simply flash an official firmware ftf in flashtool. Wipe userdata is not required, but recommend.
Click to expand...
Click to collapse
Questions from old guide:
Is my language still available after flashing this English firmware?
Yes, (almost) all languages should be available.
Click to expand...
Click to collapse
After flashing docomo firmware, my phone is not recognized anymore?
Boot the phone up normally and let Windows install the drivers (thanks AnDroiD178)
Click to expand...
Click to collapse
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-43-uk.system.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/showthread.php?t=2688933
Click to expand...
Click to collapse
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.
Click to expand...
Click to collapse
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/showpost.php?p=50797018&postcount=103 and http://forum.xda-developers.com/showpost.php?p=50871970&postcount=110
Click to expand...
Click to collapse
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/showthread.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])
Click to expand...
Click to collapse
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/showpost.php?p=50744982&postcount=95 and this http://forum.xda-developers.com/showthread.php?t=2671998
Click to expand...
Click to collapse
Flashtool does not recognize the firmwares, even though I put it into the correct folder?
Make sure the files have the correct hashes:
SO-02F_14.1.H.1.281_docomo.ftf
SHA1: 365C185A3D5B8DA64B8B84ECBEE62DD882739E4A / MD5: 259221BCEEB54F3AD7F9721111E0EF1D
C6903_14.1.G.534_ianford10_UK Unbranded_modified.ftf
SHA1: 273A6A618BD7ACDAF4066F8AD66A5F925C88AC19 / MD5: CFE9703BC519894948BD5B9F05E0A1B9
D5503_14.3.A.0.681_Generic_UK-nosystem.ftf
SHA1: 5ADE48599414BE47A0A7DD1BCB37C0F5518F7CCB / MD5: 5D1BDD44DF531280984B60E810A87FFA
z1c-44-uk.system.flashable.zip
SHA1: FB594821FBEA030657CA5D048DE2593194F18DF8 / MD5: 148BDD3BEAEDE850CAF085ED82518FF9
Click to expand...
Click to collapse
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.
Click to expand...
Click to collapse
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/97061-driver-install-device-manager.html
Click to expand...
Click to collapse
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
Click to expand...
Click to collapse
I can not install dualrecovery, Windows says it's unable to install MTP drivers?
Try changing the USB port on your computer.
Click to expand...
Click to collapse
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/showpost.php?p=50573132&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)
Click to expand...
Click to collapse
Many thanks to:
Darkimmortal
RyokoN
[NUT]
DooMLoRD
All the great devs that made these tools
raph84

A short question, because for people like me, that never had a Sony device before, it's confusing.
If i unlock the boot-loader, the DRM keys are lost and some Sony integrated programs don't work anymore. That's clear.
But is it possible after bl unlock to restore the keys and have the boot loader unlocked ? Or will it relock immediately ?
Another another unclarified thing is the flash back and forth thing for rooting. This is done in the tuts with country/regions specific firmwares.
How do I know, what's the right fw for my device, if I want to restore to stock ? And where can I dl stock fw for my country/region ?

scorpio16v said:
A short question, because for people like me, that never had a Sony device before, it's confusing.
If i unlock the boot-loader, the DRM keys are lost and some Sony integrated programs don't work anymore. That's clear.
But is it possible after bl unlock to restore the keys and have the boot loader unlocked ? Or will it relock immediately ?
Another another unclarified thing is the flash back and forth thing for rooting. This is done in the tuts with country/regions specific firmwares.
How do I know, what's the right fw for my device, if I want to restore to stock ? And where can I dl stock fw for my country/region ?
Click to expand...
Click to collapse
It's also my first sony phone and when doing this procedure yesterday I was very confused so I thought I'll make an easy guide
I don't know if it's possible to restore the keys after unlocking, I don't think so though. Afaik if you restore the TA partition (including the keys) it will also lock your bootloader again. The reason to back up the keys is that in case you have a problem and need to send your phone for repair (warranty) you can reset your phone back to factory state (Locked bootloader).
Yes the flashing procedure is confusing but it is required because the root exploit only works on that firmware. There is no problem in using the UK firmware. I don't know where to download stock firmwares though.
By the way can you elaborate what exactly is confusing? So I can try to make the guide better!

zxz0O0 said:
It's also my first sony phone and when doing this procedure yesterday I was very confused so I thought I'll make an easy guide
I don't know if it's possible to restore the keys after unlocking, I don't think so though. Afaik if you restore the TA partition (including the keys) it will also lock your bootloader again. The reason to back up the keys is that in case you have a problem and need to send your phone for repair (warranty) you can reset your phone back to factory state (Locked bootloader).
Yes the flashing procedure is confusing but it is required because the root exploit only works on that firmware. There is no problem in using the UK firmware. I don't know where to download stock firmwares though.
By the way can you elaborate what exactly is confusing? So I can try to make the guide better!
Click to expand...
Click to collapse
there are a few other stock firmwares in z1c general section, it is not possible to restore drm keys after unlocking if not done before

This ftf files are 3 big files, should both be downloaded? like 800-900 Mb x 3 . + the firmware. ? correct.

xhizors said:
This ftf files are 3 big files, should both be downloaded? like 800-900 Mb x 3 . + the firmware. ? correct.
Click to expand...
Click to collapse
Yes, correct. You need all of these files.

zxz0O0 said:
Yes, correct. You need all of these files.
Click to expand...
Click to collapse
Okej,loaded then, just rename the zips to ftf i guess?

xhizors said:
Okej,loaded then, just rename the zips to ftf i guess?
Click to expand...
Click to collapse
No. The ftf files are for flashing with flashtool, while the zip are for flashing in the recovery. You don't have to rename anything (otherwise it would be stated in the guide).
Edit: If the files get saved as zip files by your browser you should rename them to ftf. Check if the hashes are correct.

Hi zxz0O0,
Thanks for writing this up, even though it's essentially a rewrite of Darkimmortals tutorial.
Please be aware that this is not quite "Noob proof" yet!
As someone who hasn't flashed an Android phone since 2011, I ran into a few issues / concerns:
a) "Install fastboot & flashmode drivers from Flashtool"
Depending on the operating System (for me: Windows 8.1 x64), Driver Signature check needs to be disabled in order to do that.
b) Zips to SD-Card: It's worth pointing out that "put it on your SD Card" literarilly means "Copy the ZIP to the root of your SD Card". I wasn't sure (should I unzip it? What to do with it?)
c) It would make sense to add the flashing instructions before the "flash..." statement.
I was smart enough to read the full instructions, yet I can imagine some people to read "flash C6903 (...)"... okay. Click flash, continue reading: "select Wipe [Uncheck ALL]" oh no!
d) "Run Z1C-lockeddualrecovery(...)installer.zip's install.bat"
In order to do that, you need adb-tools (the bat would just throw "File not found" errors), possibly also extract the content of the ZIP to the ADB-Tools directory (that's what I did).
e) "Now format /system"
Afraid to do the wrong thing, I read this six times and checked Darkimmortals instructions "Factory reset and clear for rom installation" [this appeared a bit more clear]
The actual steps are called
1: "Wipe Data/Factory Reset"
2: "Clean to Install a New ROM"
Note that I stopped after "Congratulations, your phone is now rooted (bootloader still locked)"
I just wanted Root for some tools and am quite happy with the factory Rom (want to keep my DRM Keys and Warranty).
Thanks!
raph

zxz0O0 said:
No. The tft files are for flashing with flashtool, while the zip are for flashing in the recovery. You don't have to rename anything (otherwise it would be stated in the guide).
Click to expand...
Click to collapse
Hey.
I fixed it, but still have problem, after step 11. when i should start the phone, its all black, i cant se anything on screen.
I guess it should be black, next problem.
When installing the lockeddualrecovery it copies the files, and then step 2 back to promt. ?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

I managed to root my Z1C with that guide, though I had to try the install.bat for the recovery multiple times (not your fault, of course) and it was irritating that the screen stays black during the flashing steps. At first I thought that I messed something up.
I ran into another problem and it's woth mentioning: The recovery refused to boot my 64GB microSD formatted with exFAT. It works flawlessly in Android, but recovery didn't like it. I had one 8GB FAT-formatted lying around and with that there was no problem.
I don't know if 64GB or exFAT was the problem, but it's worth mentioning in the guide, I guess.

XQC said:
I managed to root my Z1C with that guide, though I had to try the install.bat for the recovery multiple times (not your fault, of course) and it was irritating that the screen stays black during the flashing steps. At first I thought that I messed something up.
I ran into another problem and it's woth mentioning: The recovery refused to boot my 64GB microSD formatted with exFAT. It works flawlessly in Android, but recovery didn't like it. I had one 8GB FAT-formatted lying around and with that there was no problem.
I don't know if 64GB or exFAT was the problem, but it's worth mentioning in the guide, I guess.
Click to expand...
Click to collapse
i tried like 10 times and got the picture i added in my last post ?
i used this ( Z1C-lockeddualrecovery2.7.85-BETA.installer.zip )

raph84 said:
[..]
a) "Install fastboot & flashmode drivers from Flashtool"
Depending on the operating System (for me: Windows 8.1 x64), Driver Signature check needs to be disabled in order to do that.
b) Zips to SD-Card: It's worth pointing out that "put it on your SD Card" literarilly means "Copy the ZIP to the root of your SD Card". I wasn't sure (should I unzip it? What to do with it?)
c) It would make sense to add the flashing instructions before the "flash..." statement.
I was smart enough to read the full instructions, yet I can imagine some people to read "flash C6903 (...)"... okay. Click flash, continue reading: "select Wipe [Uncheck ALL]" oh no!
d) "Run Z1C-lockeddualrecovery(...)installer.zip's install.bat"
In order to do that, you need adb-tools (the bat would just throw "File not found" errors), possibly also extract the content of the ZIP to the ADB-Tools directory (that's what I did).
e) "Now format /system"
Afraid to do the wrong thing, I read this six times and checked Darkimmortals instructions "Factory reset and clear for rom installation" [this appeared a bit more clear]
The actual steps are called
1: "Wipe Data/Factory Reset"
2: "Clean to Install a New ROM"
[...]
Click to expand...
Click to collapse
Thanks for your suggestions. You are right, the rooting process is almost the same as Darkimmortals (same method). I added some steps though and tried to make it more clear.
a) Thanks for that. I'll add it to the first post.
b) Added, thanks.
c) Don't really agree with that, it should be common sense to read one whole step.
d) Actually you don't have to install anything. The needed files are inside the folder files/
e) The steps in the recovery menu are called Mounts & Storage -> format /system and Wipe Data/Factory Reset -> Wipe Data/Factory Reset
xhizors said:
Hey.
I fixed it, but still have problem, after step 11. when i should start the phone, its all black, i cant se anything on screen.
I guess it should be black, next problem.
When installing the lockeddualrecovery it copies the files, and then step 2 back to promt. ?
Click to expand...
Click to collapse
It's not installing root correctly. Which OS are you using? Try starting again from step 1 and follow each step exactly.

zxz0O0 said:
Thanks for your suggestions. You are right, the rooting process is almost the same as Darkimmortals. I added some steps though and tried to make it more clear.
a) Thanks for that. I'll add it to the first post.
b) Added, thanks.
c) Don't really agree with that, it should be common sense to read one whole step.
d) Actually you don't have to install anything. The needed files are inside the folder files/
e) The steps in the recovery menu are called Mounts & Storage -> format /system and Wipe Data/Factory Reset -> Wipe Data/Factory Reset
It's not installing correctly. Which OS are you using? Try starting again from step 1 and follow each step exactly.
Click to expand...
Click to collapse
I manage to fix it, i open the install.bat and made everything manual, and no its rooted .
I think its because i have swedish windows 7, maybe.

zxz0O0 said:
Thanks for your suggestions. You are right, the rooting process is almost the same as Darkimmortals (same method). I added some steps though and tried to make it more clear.
a) Thanks for that. I'll add it to the first post.
b) Added, thanks.
c) Don't really agree with that, it should be common sense to read one whole step.
d) Actually you don't have to install anything. The needed files are inside the folder files/
e) The steps in the recovery menu are called Mounts & Storage -> format /system and Wipe Data/Factory Reset -> Wipe Data/Factory Reset
It's not installing root correctly. Which OS are you using? Try starting again from step 1 and follow each step exactly.
Click to expand...
Click to collapse
I couldn't get root with the Z1C-lockeddualrecovery2.7.85-BETA and after like 200 times, I found the issue!!!
When opening the install.bat (right click --> edit) go to this line "if "!menu_decision!" != "3" ("
Then change the != "3" to == "3" (replace the ! with a =
That's what did it for me! :good: (after hours of trying :silly

What was the exact error that you didn't get root? It shouldn't be necessary to change anything (I used 2.7.84-BETA though).

zxz0O0 said:
What was the exact error that you didn't get root? It shouldn't be necessary to change anything (I used 2.7.84-BETA though).
Click to expand...
Click to collapse
Something like "! - was unexpected at this time". I just couldn't make sense of it as I'm not familiar with commands. But when I opened install.bat from the 2.7.81 and compared it to 2.7.85, that's when I found the little error

i cannot enter in recovery mode....can you explain when and what i have to press

blackjackalmiaobo said:
i cannot enter in recovery mode....can you explain when and what i have to press
Click to expand...
Click to collapse
Check step 16. You should start the phone normally (press power button). Then the phone will vibrate slightly. After that the LED will turn green. If the LED is green you should hold Volume UP button. The LED will turn violet and you will enter the recovery menu.
If the phone does not vibrate at start, check if the phone is even off (force phone off: Hold Volume Up and then hold the power button. After the phone vibrated 3 times it will shut down, if nothing happens the phone is already off). If the phone vibrates but no green light and you get a boot loop you did something wrong and should start again from step 1.

How can I install the drivers? I've downloaded the zipped file but not sure what to do with it. I've extracted the files but where should they be placed? When placing them in the Drivers folder in the Flashtool I still get the "No drivers installed" error when putting the phone in flashmode. Never had this issue on my Z1 so not sure how to go about it.

Related

[TUTORIAL][GUIDE][HOW TO] Flash Factory Images || Unroot || Relock bootloader

Heya Nexus 6 Users,
In this thread, I'll help you to flash factory images on your nexus 6. This process will wipe your device, so please BACKUP YOUR DATA before going through the flashing process.​
You can backup your data from some well-known apps from Play Store
- Titanium Backup (Root)
- Super Backup (Non-root)
- Helium (Non-root) etc
I am not responsible if anything goes wrong.
Click to expand...
Click to collapse
​
Step 1 : Pre-requisite
==> Setup your workspace by following step two from this (Credits @xBeerdroiDx)
==> For MAC users, you can follow this thread (Credits @AshtonTS)
==> For Linux users, you can follow this thread (Credits @bloodychaos)
Step 2 : Downloading Factory Images
==> You can find Nexus 6(shamu) factory images from here.
Step 3 : Extracting Factory Images
==> Extract the archive you downloaded (First extract shamu-XXXXX.tgz and then extract shamu-XXXXX.tar). You can use WinRaR or 7z etc. It should look like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Step 4 : Unlock the bootloader
==> Follow this thread. (Credits @xBeerdroiDx)
Step 5 : Flashing
==> Method 1 : (Short and Sweet)
- Power off your phone.
- Boot it in fastboot(bootloader mode) by pressing and holding Power Button + Volume Down at the same time.
- Connect your phone to your PC through your USB cable.
- Execute the flash-all.bat script (for Windows) or flash-all.sh(for MAC and LINUX) in the folder where you extracted the factory images.
**!!** For MAC: You'll have to edit the flash-all.sh, and add "./" before every fastboot command.
(For windows users)
- Wait for everything to flash.
- After everything finished, select "Recovery" using the volume buttons.
- When a small dead Android appears, press Power Button + Volume UP.
- Select "Wipe data/factory data reset"
- Reboot. Your phone should be stock.
==> Method 2 : (Long, but works always)
- Extract the image-shamu-XXXXXX.zip somewhere easy to access (On C:/image-shamu-XXXXXX for example).
- In the same folder, from the original archive, extract "bootloader-shamu-moto-XXXXXX.img" (rename it to bootloader.img) and "radio-shamu-XXXXXX.img" (rename it to radio.img). You will have the following files:
- Power off your phone.
- Boot it in fastboot(bootloader mode) by pressing and holding Power Button + Volume Down at the same time.
- Connect your phone to your PC through your USB cable.
- Open a CMD window.(By pressing shift key + right mouse click at same time)
- Type the following commands, in this order (If you have a different folder, change the path)
Code:
fastboot flash bootloader C:/image-shamu-XXXXXX/bootloader.img
fastboot reboot-bootloader
fastboot flash radio C:/image-shamu-XXXXXX/radio.img
fastboot reboot-bootloader
fastboot flash system C:/image-shamu-XXXXXX/system.img
fastboot flash userdata C:/image-shamu-XXXXXX/userdata.img
(Note: this command will wipe your device (including /sdcard), EVEN if your bootloader is already unlocked.)
fastboot flash boot C:/image-shamu-XXXXXX/boot.img
fastboot flash recovery C:/image-shamu-XXXXXX/recovery.img
fastboot erase cache
fastboot flash cache C:/image-shamu-XXXXXX/cache.img
- After everything finished, select "Recovery" using the volume buttons.
- When a small Android appears, press Power Button + Volume UP.
- Select "Wipe data/factory data reset"
- Reboot. Your phone should be stock.
(Credits @abaaaabbbb63)
(Credits @Chirag_Galani for testing it )
Please consider downloading a free/paid version of my ANDROID APP
Hit thanks if you appreciate my efforts and if this thread helped you at any moment
Video Guides
Thanks Anuj Patel
For Windows:
For MAC:
>> Quick FAQs <<
Q1. Do I need to root the device before flashing?
Ans. NO
Q2. Will I loose device root status after flashing?
Ans. YES
Q3. Do I need to unlock bootloader before flashing?
Ans. YES
Q4. Can I skip any of the above steps in any method?
Ans. NO
Q5. Do I need to tick USB Debugging in Developer options before flashing?
Ans. NO (Answer corrected by @samersh72)
Q6. My device is not detected in my PC. What should I do?
Ans. Reinstall the drivers properly.
Q7. Can I root my device after flashing process?
Ans. YES
Q8. Which method is recommended for me?
Ans. Method 2 if you are not expert in flashing.
Q9. What will be my device status after flashing?
Ans. Stock Android with bootloader unlocked
Q10. My device is taking time to boot up. What should I do now?
Ans. Wait for 10-15 mins before thinking of reflashing.
Q11. My phone has 3GB RAM, can I flash factory images directly without using PC?
Ans. NO
Q12. How many times can I flash my device?
Ans. More than 0
Q13. Will I loose my data after flashing?
Ans. YES
Q14. I have some other query...
Ans. Please post it in Q&A section.
Q15. I am noob in all this. I am flashing for the very first time. Can you provide me support online via any software?
Ans. Follow each step as mentioned in first post. You'll be 100% successful.
Q16. What will be status of bootloader after flashing?
Ans. Unlocked
Q17. What is fastboot mode?
Ans. Bootloader mode.
Q18. Can I take screenshot of my bootloader mode using power+volume down?
Ans. NO
Q19. Any other easy way to flash?
Ans. If there was, I would have mentioned it.
Q20. Do you recommend me using toolkits to do this job?
Ans. NO
Q21. Can I connect my device over the air and flash it from PC?
Ans. NO
Q22. I don't have my device USB right now. Can I flash using other compatible USB cable?
Ans. YES
Q23. I have installed the drivers properly, still it's not recognized by my PC?
Ans. Use other USB port
Q24. How do I relock bootloader after flashing? (For 5.0.X)
Ans. Follow this. (Credits @BRKotucs)
Q25. I am having problems with unzipping the file. Can you help me?
Ans. Read this (Credits @av8rdude)
Q26. I am unable to get into stock recovery, what should I do?
Ans. Read this (Credits @jj14 and @WMguy)
Q27. It shows 32GB storage for 64GB storage device after flashing, where is my 32GB lost ?
Ans. Read this (Credits @efrant)
Q28. I need some information on adb and fastboot, what are those commands ?
Ans. Read this (Credits @rootSU)
Q29. Will I get OTA updates from Google after successfully completing any of the above methods ?
Ans. YES (Do not root or alter any system files)
Q30. I want to relock the bootloader after flashing? (For 5.1.X)
Ans. Follow this. (Credits @Evolution_Freak)
Q31. Can I flash back to Android version 5.0.1 if I'm on Android version 5.1?
Ans. NO
//Reserved
If you want me to include anything in OP or in second post, please quote me on this thread with needed information.
I have not been able to get the flash-all method to work on lollipop on my Nexus 6 or Nexus 5. I always get those sig, storage or no system errors. The long method has worked fine for me though.
Evo_Shift said:
I have not been able to get the flash-all method to work on lollipop on my Nexus 6 or Nexus 5. I always get those sig, storage or no system errors. The long method has worked fine for me though.
Click to expand...
Click to collapse
You need to follow long method for this. Even I was facing sig storage errors. I followed long method, it works flawlessly
Hi!
I have a suggestion. Instead of constantly updating the thread for every factory image that might be released in the future, you might want to replace things like "lrx21o" to a more universal name, so users aren't confused about it.
Also, try using this link for the factory images. It links directly to the shamu ones:
https://developers.google.com/android/nexus/images#shamu
Anyways, good job!
My Sprint Nexus 6 has a submenu in settings for updating profile and PRL. Would this still be there if I use the Factory Images or is that an addition Sprint made to their phones? Thanks
njd.sina said:
My Sprint Nexus 6 has a submenu in settings for updating profile and PRL. Would this still be there if I use the Factory Images or is that an addition Sprint made to their phones? Thanks
Click to expand...
Click to collapse
Yep, that's built in. I've flashed the factory image multiple times and those settings are built in.
nice guide....
Q9. Do I need to tick USB Debugging under Developer options before flashing ?
Ans. YES
Click to expand...
Click to collapse
Ans. NO
when i get to the dead android power+VOL UP doesnt do anything... it just reboots and has been booting for the last 10 mins. i had to do the long method also, the flash all file stopped at system.img also
bdubs4200 said:
when i get to the dead android power+VOL UP doesnt do anything... it just reboots and has been booting for the last 10 mins. i had to do the long method also, the flash all file stopped at system.img also
Click to expand...
Click to collapse
+1
I fixed this by following instructions above, replacing recovery.img with latest twrp then booting into twrp to do factory reset.
After doing factory reset power off phone and then reboot. Fixed my issue
5.0.1 is being released!
Can you flash the stock firmware onto the Att branded version with the bloat ware and effectively make it a google play edition?
veritas2884 said:
Can you flash the stock firmware onto the Att branded version with the bloat ware and effectively make it a google play edition?
Click to expand...
Click to collapse
Take a look at this thread here http://forum.xda-developers.com/showthread.php?t=2947581 in case you haven't.
Sent from my Nexus 6 using Tapatalk
Kind of a neat freak here:
I know dalvik is dead, but are there still any caches to wipe to make things perfectly clean after flashing?
BRKotucs said:
Take a look at this thread here http://forum.xda-developers.com/showthread.php?t=2947581 in case you haven't.
Sent from my Nexus 6 using Tapatalk
Click to expand...
Click to collapse
I had not seen this. Thank you for the redirect!
The archive for the Nexus 6 I downloaded looks different. When I unpacked the tar file I only have this file shamu-lrx21o-factory-e028f5ea
How do I flash it? I'm a noob at adb commands
jae2014 said:
The archive for the Nexus 6 I downloaded looks different. When I unpacked the tar file I only have this file shamu-lrx21o-factory-e028f5ea
How do I flash it? I'm a noob at adb commands
Click to expand...
Click to collapse
Unzip that as well.
i followed the instructions in this thread. went back to stock, then when i rooted again. the bootloader was still unlocked and the phone was still rooted. how can i completely go back to stock. im having issues with the phone and need to take it to the store.
thanks
stas333 said:
i followed the instructions in this thread. went back to stock, then when i rooted again. the bootloader was still unlocked and the phone was still rooted. how can i completely go back to stock. im having issues with the phone and need to take it to the store.
thanks
Click to expand...
Click to collapse
What exactly did you do?
Flashing the images is good enough to go back to stock, then relock the boot loader to finish up the task.
Sent from my Nexus 7 using Tapatalk

GUIDE: How to install Sony's Concept Software(Android 6.0.1), root, recovery, Xposed

Hello, a couple of days ago I wanted to upgrade to Marshmallow but I couldn't find a proper detailed guide to do it, so in this thread I'm gonna show you how to install latest Sony's Concept 3027(latest version), how to unlock the bootloader, how to install TWRP, how to root your phone, and how to install Xposed.
I made this coming from stock 5.1.1, but it should work for other ROMs and versions too (You must be rooted though).
During this process, you will wipe your phone and unlock your bootloader, so make backups of everything you need.
Let's begin:
0- Make sure your bootloader is locked, and can be unlocked. To check this, go to dialer app, press *#*#7378423#*#*, service info->configuration, under "Rooting status", "bootloader unlock allowed" should say yes. Notice that at the top of your screen says IMEI, note that number down, you will need it later.
1- First of all, download all the necessary files:
ftf file(ROM v.3606): https://cloud.mail.ru/public/48SH/AyETJ63bw
SuperSU 2.76: https://download.chainfire.eu/969/SuperSU/UPDATE-SuperSU-v2.76-20160630161323.zip
TWRP Recovery 3.0.2-0: https://dl.twrp.me/z3c/twrp-3.0.2-0-z3c.img.html
Xposed Material apk: http://forum.xda-developers.com/devdb/project/dl/?id=19668&task=get
Xposed installer v86(sdk23-arm): http://dl-xda.xposed.info/framework/sdk23/arm/xposed-v86-sdk23-arm.zip
Flashtool: http://www.flashtool.net/downloads.php
Fastboot driver: dl-developer.sonymobile.com/drivers/downloadinf_v1.01.zip
TA backup tools: https://github.com/DevShaft/Backup-TA/releases
BACKUP TA PARTITION
Make sure to be rooted before proceeding. You won't be able to backup TA properly without root!
2- Unzip the TA backup tools downloaded in step 1.
3- Connect your phone to the computer. Run backup-ta.bat.
4- Follow the instructions.
INSTALL THE ROM
5- Now, install Flashtool. Once installed, go to "C:\Flashtool\drivers" and install flashmode and fastboot drivers(You will need to disable driver signature verification on windows 8/8.1/10).
6- Take the ftf file previously downloaded and move it to "C:\Users\username\.flashTool\firmwares
7- Open Flashtool, click on Flash device->Flashmode. The ftf should appear on the list. Check Wipe APPS_LOG and USERDATA. Click Flash and follow the instructions. If it asks to use a script, click no.
8- This process may take a while, be patient.
9- Boot your phone normally, you should be on Concept version 3606.
10- Go to Settings->About device-> Software update.
11-If there is an update available, take it. Your phone will reboot and install the update. Repeat this step until you don't have any more updates.
Okay, until now you have installed latest unmodified Sony's Concept ROM, if you don't need root or Xposed, that's it, you have finished!
UNLOCK THE BOOTLOADER
Warning: Unlocking your bootloader voids your warranty and makes you lose some stuff, as detailed here: http://forum.xda-developers.com/z3-compact/general/loss-drm-keys-t2890936
So make sure to make the TA backup in order to recover those things when you relock your bootloader in the future, if you want.
12- To begin, you need your IMEI number, that you noted in step 0.
13- Go to this webpage: http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
14- Select Xperia Z3 Compact, click Continue, enter your email address
15- Click the link they sent you via email. Enter your IMEI, click Submit.
16- At the bottom of the page there will be a code, similar to "fastboot -i 0x0fce oem unlock 0xA8873D989C26BBBB", copy it.
17- You need to install the android SDK now, if you don't have it installed, or don't know how, there are plenty of guides on the web.
18- Open it, make sure to install "Google USB Driver Packager".
19- Go to "C:\Program Files\Android\sdk\extras\google\usb_driver" and copy the Fastboot driver downloaded in step 1.
20- Turn off your phone. Press the volume up button, and while doing this, connect the phone to your computer. It should boot into fastboot mode.
21- In your PC, go to "C:\Program Files\Android\sdk\platform-tools". Hold shift, and right click inside the folder. Click "Open command window here".
22- Type "fastboot devices" in the command window. See if your device shows up. If not, you did something wrong with your drivers, make sure that your SDK installation is correct.
23- Now copy the line you copied in step 13. Hit enter.
24- Your bootloader is now unlocked. Reboot your phone, it will wipe all your data, so you have a fresh install of the system.
INSTALL RECOVERY
25- Enter again into fastboot mode. That means, turn off your phone, hold volume up, and connect it to your PC.
26- Copy the TWRP Recovery downloaded in step 1 to "C:\Program Files\Android\sdk\platform-tools".
27- Rename it to "twrp.img".
28- Open a command window.
29- Type "fastboot flash recovery twrp.img".
30- That's it, now you have TWRP installed.
ROOT PHONE
31- Copy "SuperSU 2.76" downloaded in step 1 to your phone.
32- Enter Recovery mode.(Easiest way is: enter fastboot, use volume keys until "recovery mode" is selected and press the power button to enter it.)
33- Click Install, search for "SuperSU 2.76-2", swipe to confirm. Reboot your phone.
34- Done, you are now rooted!
INSTALL XPOSED
35- Copy "Xposed installer" and "Xposed apk" to your phone.
36- Enter Recovery mode.
37- Install "Xposed installer"
38- Reboot.
39- Install "Xposed apk.
40- You finished!
This is the end of the guide. Hope everything went fine for you. Feel free to post your doubts, if any! Cheers
Big thanks to:
-russel5 for the ftf file
-jozinek for his useful info
-Chainfire for SuperSU
-rovo89 for Xposed
-twrp team
@systemallica - Thanks for doing this - can you fix the link for step 1 and then I'll give it a go.
simonwil said:
@systemallica - Thanks for doing this - can you fix the link for step 1 and then I'll give it a go.
Click to expand...
Click to collapse
Sorry, my bad, should be working now!
I followed the script and it all worked fine - thanks for putting it together.
Thanks @systemallica for the very detailed guide!
Is there a way to modify some of your steps for who, like me, has already unlocked the bootloader? Just to avoid the relock-unlock and make the procedure shorter.
ps. actually I'm on concept 2157 from @jenkins-84 (http://forum.xda-developers.com/z3-compact/development/rom-t3232674).
What?
You let the people unlock their bootloader without any warning about the TA partition?
If you lose the DRM keys you can't get them back forever, do you know?
This is what you lose without DRM keys:
http://forum.xda-developers.com/z3-compact/general/loss-drm-keys-t2890936
You HAVE TO backup your TA partition before unlocking and the only way is following these instructions:
http://forum.xda-developers.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343
I really hope nobody has followed your guide without doing so
cattolicboy said:
Thanks @systemallica for the very detailed guide!
Is there a way to modify some of your steps for who, like me, has already unlocked the bootloader? Just to avoid the relock-unlock and make the procedure shorter.
ps. actually I'm on concept 2157 from @jenkins-84 (http://forum.xda-developers.com/z3-compact/development/rom-t3232674).
Click to expand...
Click to collapse
I am not sure as I am not familliar with Jenkins-84 ROM, you can always try and let us now though.
istux said:
What?
You let the people unlock their bootloader without any warning about the TA partition?
If you lose the DRM keys you can't get them back forever, do you know?
This is what you lose without DRM keys:
http://forum.xda-developers.com/z3-compact/general/loss-drm-keys-t2890936
You HAVE TO backup your TA partition before unlocking and the only way is following these instructions:
http://forum.xda-developers.com/z3-compact/general/how-to-root-backup-drm-keys-t3013343
I really hope nobody has followed your guide without doing so
Click to expand...
Click to collapse
You are totally right!! How the **** I forgot that?!
Sorry guys, I added it to the guide now.
systemallica said:
I am not sure as I am not familliar with Jenkins-84 ROM, you can always try and let us now though.
You are totally right!! How the **** I forgot that?!
Sorry guys, I added it to the guide now.
Click to expand...
Click to collapse
Add a warning too.
Losing the TA partion can affect the warranty in some countries!
istux said:
Add a warning too.
Losing the TA partion can affect the warranty in some countries!
Click to expand...
Click to collapse
I did, thanks for the feedback.
DRM fix
On Marshmallow 2157 and 2178 I managed to get back the DRM features without Keys by installing this.
I am not sure if it works with your method, but you can try.
If you already lost your TA partition (and keys), you need to do the following:
1) Relock the bootloader: Connect your phone in flash mode (press volume down when connecting the USB cable). Click the BLU icon, then click Relock.
2) Install a Kitkat ftf with TA partition included (23.0.1.A.5.77): Use Flashtool to install the ROM in flash mode (volume down). If it asks to use a script, click no.
You must wipe data (check APPS_LOG and USERDATA boxes), otherwise the method will fail!
3) Unlock the bootloader again (Click the BLU icon in Flashtool, then click Unlock).
4) Install Androplus kernel V19c with TWRP recovery here (most newer kernels/recoveries do not work!): Connect in Fastboot mode (volume up), then flash the boot.img from the zip.
5) Go into recovery (press volume up during boot when the notification light goes on).
6) Flash the Marshmallow ROM by jenkins-84.
7) Flash the drm restore zip V2 (the old version).
8) Wipe data and reboot to system.
If you tried the new DRM restore V3 (without the complicated method of flashing Kitkat first) please report back whether it works for you on Marshmallow!
Before/After:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bmatthias said:
Before/After:
Click to expand...
Click to collapse
Excuse me, but I don't get how you manage to take the two pictures in almost exact same position, while in the meantime doing the drm tweak
cattolicboy said:
Excuse me, but I don't get how you manage to take the two pictures in almost exact same position, while in the meantime doing the drm tweak
Click to expand...
Click to collapse
It is not the same position I tried to have the same conditions for comparison. Second picture was done after drm restore.
Hi I have a problem with loading recovery
systemallica said:
Hello, a couple of days ago I wanted to upgrade to Marshmallow but I couldn't find a proper detailed guide to do it, so in this thread I'm gonna show you how to install latest Sony's Concept 3027(latest version), how to unlock the bootloader, how to install TWRP, how to root your phone, and how to install Xposed.
I made this coming from stock 5.1.1, but it should work for other ROMs and versions too (You must be rooted though).
During this process, you will wipe your phone and unlock your bootloader, so make backups of everything you need.
Let's begin:
0- Make sure your bootloader is locked, and can be unlocked. To check this, go to dialer app, press *#*#7378423#*#*, service info->configuration, under "Rooting status", "bootloader unlock allowed" should say yes. Notice that at the top of your screen says IMEI, note that number down, you will need it later.
1- First of all, download all the necessary files:
ftf file(ROM): https://mega.nz/#!hNUG0D4C!vLWdsP-N0f9KNH3I7YKHz1dWcfBsEUP07ZvJXHCk_aQ
SuperSU 2.65: https://download.chainfire.eu/752/SuperSU/BETA-SuperSU-v2.65-20151226141550.zip
TWRP Recovery: https://dl.twrp.me/z3c/twrp-2.8.7.0-z3c.img.html
Xposed apk: forum.xda-developers.com/attachment.php?attachmentid=3383776&d=1435601440
Xposed installer v79: forum.xda-developers.com/attachment.php?attachmentid=3580247&d=1450386638
Flashtool: http://www.flashtool.net/downloads.php
Fastboot driver: dl-developer.sonymobile.com/drivers/downloadinf_v1.01.zip
TA backup tools: https://github.com/DevShaft/Backup-TA/releases
BACKUP TA PARTITION
2- Unzip the TA backup tools downloaded in step 1.
3- Connect your phone to the computer. Run backup-ta.bat.
4- Follow the instructions.
INSTALL THE ROM
5- Now, install Flashtool. Once installed, go to "C:\Flashtool\drivers" and install flashmode and fastboot drivers(You will need to disable driver signature verification on windows 8/8.1/10).
6- Take the ftf file previously downloaded and move it to "C:\Users\username\.flashTool\firmwares
7- Open Flashtool, click on Flash device->Flashmode. The ftf should appear on the list. Check Wipe APPS_LOG and USERDATA. Click Flash and follow the instructions. If it asks to use a script, click no.
8- This process may take a while, be patient.
9- Boot your phone normally, you should be on Concept version 2157.
10- Go to Settings->About device-> Software update.
11- You should have an update available, take it. Your phone will reboot and install the update. Repeat this step until you don't have any more updates.
Okay, until now you have installed latest unmodified Sony's Concept ROM, if you don't need root or Xposed, that's it, you have finished!
UNLOCK THE BOOTLOADER
Warning: Unlocking your bootloader voids your warranty and makes you lose some stuff, as detailed here: http://forum.xda-developers.com/z3-compact/general/loss-drm-keys-t2890936
So make sure to make the TA backup in order to recover those things when you relock your bootloader in the future, if you want.
12- To begin, you need your IMEI number, that you noted in step 0.
13- Go to this webpage: http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
14- Select Xperia Z3 Compact, click Continue, enter your email address
15- Click the link they sent you via email. Enter your IMEI, click Submit.
16- At the bottom of the page there will be a code, similar to "fastboot -i 0x0fce oem unlock 0xA8873D989C26BBBB", copy it.
17- You need to install the android SDK now, if you don't have it installed, or don't know how, there are plenty of guides on the web.
18- Open it, make sure to install "Google USB Driver Packager".
19- Go to "C:\Program Files\Android\sdk\extras\google\usb_driver" and copy the Fastboot driver downloaded in step 1.
20- Turn off your phone. Press the volume up button, and while doing this, connect the phone to your computer. It should boot into fastboot mode.
21- In your PC, go to "C:\Program Files\Android\sdk\platform-tools". Hold shift, and right click inside the folder. Click "Open command window here".
22- Type "fastboot devices" in the command window. See if your device shows up. If not, you did something wrong with your drivers, make sure that your SDK installation is correct.
23- Now copy the line you copied in step 13. Hit enter.
24- Your bootloader is now unlocked. Reboot your phone, it will wipe all your data, so you have a fresh install of the system.
INSTALL RECOVERY
25- Enter again into fastboot mode. That means, turn off your phone, hold volume up, and connect it to your PC.
26- Copy the TWRP Recovery downloaded in step 1 to "C:\Program Files\Android\sdk\platform-tools".
27- Rename it to "twrp.img".
28- Open a command window.
29- Type "fastboot flash recovery twrp.img".
30- That's it, now you have TWRP installed.
ROOT PHONE
31- Copy "SuperSU 2.65" downloaded in step 1 to your phone.
32- Enter Recovery mode.(Easiest way is: enter fastboot, use volume keys until "recovery mode" is selected and press the power button to enter it.)
33- Click Install, search for "SuperSU 2.65", swipe to confirm. Reboot your phone.
34- Done, you are now rooted!
INSTALL XPOSED
35- Copy "Xposed installer" and "Xposed apk" to your phone.
36- Enter Recovery mode.
37- Install "Xposed installer"
38- Reboot.
39- Install "Xposed apk.
40- You finished!
This is the end of the guide. Hope everything went fine for you. Feel free to post your doubts, if any! Cheers
Big thanks to:
-russel5 for the ftf file
-jozinek for his useful info
-Chainfire for SuperSU
-rovo89 for Xposed
-twrp team
Click to expand...
Click to collapse
in command line error :cannot load recovery twrp.img and I am connected in command line
Is this tutorial for windows users or can it be used with Linus or Ubuntu. Thanks
When a new update appears, you must again do all the steps?
Man, i love you <3
Nice guide! You might want to add an extra warning on step 2 ensuring they are rooted before proceeding. If I remember correctly, backupTA will run even if you aren't rooted but it won't copy the partition over. Some people who don't read/pay attention might think they backed it up when they actually didn't.
systemallica said:
Hello, a couple of days ago I wanted to upgrade to Marshmallow but I couldn't find a proper detailed guide to do it, so in this thread I'm gonna show you how to install latest Sony's Concept 3027(latest version), how to unlock the bootloader, how to install TWRP, how to root your phone, and how to install Xposed.
I made this coming from stock 5.1.1, but it should work for other ROMs and versions too (You must be rooted though).
During this process, you will wipe your phone and unlock your bootloader, so make backups of everything you need.
Let's begin:
0- Make sure your bootloader is locked, and can be unlocked. To check this, go to dialer app, press *#*#7378423#*#*, service info->configuration, under "Rooting status", "bootloader unlock allowed" should say yes. Notice that at the top of your screen says IMEI, note that number down, you will need it later.
1- First of all, download all the necessary files:
ftf file(ROM): https://mega.nz/#!hNUG0D4C!vLWdsP-N0f9KNH3I7YKHz1dWcfBsEUP07ZvJXHCk_aQ
SuperSU 2.65: https://download.chainfire.eu/752/SuperSU/BETA-SuperSU-v2.65-20151226141550.zip
TWRP Recovery: https://dl.twrp.me/z3c/twrp-2.8.7.0-z3c.img.html
Xposed apk: forum.xda-developers.com/attachment.php?attachmentid=3383776&d=1435601440
Xposed installer v79: forum.xda-developers.com/attachment.php?attachmentid=3580247&d=1450386638
Flashtool: http://www.flashtool.net/downloads.php
Fastboot driver: dl-developer.sonymobile.com/drivers/downloadinf_v1.01.zip
TA backup tools: https://github.com/DevShaft/Backup-TA/releases
BACKUP TA PARTITION
2- Unzip the TA backup tools downloaded in step 1.
3- Connect your phone to the computer. Run backup-ta.bat.
4- Follow the instructions.
INSTALL THE ROM
5- Now, install Flashtool. Once installed, go to "C:\Flashtool\drivers" and install flashmode and fastboot drivers(You will need to disable driver signature verification on windows 8/8.1/10).
6- Take the ftf file previously downloaded and move it to "C:\Users\username\.flashTool\firmwares
7- Open Flashtool, click on Flash device->Flashmode. The ftf should appear on the list. Check Wipe APPS_LOG and USERDATA. Click Flash and follow the instructions. If it asks to use a script, click no.
8- This process may take a while, be patient.
9- Boot your phone normally, you should be on Concept version 2157.
10- Go to Settings->About device-> Software update.
11- You should have an update available, take it. Your phone will reboot and install the update. Repeat this step until you don't have any more updates.
Okay, until now you have installed latest unmodified Sony's Concept ROM, if you don't need root or Xposed, that's it, you have finished!
UNLOCK THE BOOTLOADER
Warning: Unlocking your bootloader voids your warranty and makes you lose some stuff, as detailed here: http://forum.xda-developers.com/z3-compact/general/loss-drm-keys-t2890936
So make sure to make the TA backup in order to recover those things when you relock your bootloader in the future, if you want.
12- To begin, you need your IMEI number, that you noted in step 0.
13- Go to this webpage: http://developer.sonymobile.com/unlockbootloader/unlock-yourboot-loader/
14- Select Xperia Z3 Compact, click Continue, enter your email address
15- Click the link they sent you via email. Enter your IMEI, click Submit.
16- At the bottom of the page there will be a code, similar to "fastboot -i 0x0fce oem unlock 0xA8873D989C26BBBB", copy it.
17- You need to install the android SDK now, if you don't have it installed, or don't know how, there are plenty of guides on the web.
18- Open it, make sure to install "Google USB Driver Packager".
19- Go to "C:\Program Files\Android\sdk\extras\google\usb_driver" and copy the Fastboot driver downloaded in step 1.
20- Turn off your phone. Press the volume up button, and while doing this, connect the phone to your computer. It should boot into fastboot mode.
21- In your PC, go to "C:\Program Files\Android\sdk\platform-tools". Hold shift, and right click inside the folder. Click "Open command window here".
22- Type "fastboot devices" in the command window. See if your device shows up. If not, you did something wrong with your drivers, make sure that your SDK installation is correct.
23- Now copy the line you copied in step 13. Hit enter.
24- Your bootloader is now unlocked. Reboot your phone, it will wipe all your data, so you have a fresh install of the system.
INSTALL RECOVERY
25- Enter again into fastboot mode. That means, turn off your phone, hold volume up, and connect it to your PC.
26- Copy the TWRP Recovery downloaded in step 1 to "C:\Program Files\Android\sdk\platform-tools".
27- Rename it to "twrp.img".
28- Open a command window.
29- Type "fastboot flash recovery twrp.img".
30- That's it, now you have TWRP installed.
ROOT PHONE
31- Copy "SuperSU 2.65" downloaded in step 1 to your phone.
32- Enter Recovery mode.(Easiest way is: enter fastboot, use volume keys until "recovery mode" is selected and press the power button to enter it.)
33- Click Install, search for "SuperSU 2.65", swipe to confirm. Reboot your phone.
34- Done, you are now rooted!
INSTALL XPOSED
35- Copy "Xposed installer" and "Xposed apk" to your phone.
36- Enter Recovery mode.
37- Install "Xposed installer"
38- Reboot.
39- Install "Xposed apk.
40- You finished!
This is the end of the guide. Hope everything went fine for you. Feel free to post your doubts, if any! Cheers
Big thanks to:
-russel5 for the ftf file
-jozinek for his useful info
-Chainfire for SuperSU
-rovo89 for Xposed
-twrp team
Click to expand...
Click to collapse
Hi
So I have a problem with instaling twrp.img via android sdk
I see the phone in command line when I tape in command
line" fastboot devices" but when I tape next command
" fastboot flash recovery twrp.img" I see only failed:cannot
flash recovery twrp.img. My bootloader is correctly Open
sure because Ibefore I had using cm11, 12, 12,1 aosp too
and without problems. Do you have any idea or advise
what's the problem?
Thank's for everything ideas.
mirecek11 said:
in command line error :cannot load recovery twrp.img and I am connected in command line
Click to expand...
Click to collapse
Make sure twrp.img is in the directory you're executing cmd from.
pphone said:
Is this tutorial for windows users or can it be used with Linus or Ubuntu. Thanks
Click to expand...
Click to collapse
The only difference for Ubuntu would be the way to install Flashtool (Google it) and how to install adb and fastboot (since you can easily do it with apt-get).
ilogabcn said:
When a new update appears, you must again do all the steps?
Click to expand...
Click to collapse
Just flash the FTF without flashing userdata in Flashtool, re-flash TWRP, and (optionally) root.
Your bootloader won't magically re-lock, and your TA keys won't spontaneously make their way back onto your device for you to back them up.
mirecek11 said:
Hi
Click to expand...
Click to collapse
What does 'fastboot devices' say?
It might be a driver issue, though since you're on Windows that's hard as hell to fix. Try another PC, or boot up Ubuntu from an USB key.
Thanks for this thread mate, you're clearing up a lot of confusion people have been having regarding concept M.
someone755 said:
Thanks for this thread mate, you're clearing up a lot of confusion people have been having regarding concept M.
Click to expand...
Click to collapse
Thanks to you for solving people's doubts! I just made this thread in order to help some people so I'm glad it's being useful

[Guide] Flash Stock Rom Asus Zenfone 2 ZE551ML

Hey Guys. This guide will help you if
1. If Using Custom Rom and want to revert to latest stock rom.
2. If Stock Rom got corrupted or became laggy.
3. You want to reinstall stock rom.
Warning:
1. Method 1 require unlocked bootloader. If you want to unlock then go Here . Method 2 doesn't. Don't worry.
2. This will clean your phone just like new phone.
3. First read the post twice carefully then proceed.
4. ALL .bat FILES TO BE RUN IN FASTBOOT MODE ONLY, IF YOU DON'T KNOW ABOUT FASTBOOT MODE THEN GOOGLE "HOW TO GET FASTBOOT MODE IN ASUS ZENFONE 2
5. I may change name of files in folder. Use common sense to identify them.
Pre-requisites:
1. Charge your phone atleast 60%.
2. Backup any important data you might not wanna loose to either sd card or usb drive or pc.
3. Copy the rom zip in the sd card of your phone. (The one with size in GB)
4. Android USB Driver should be installed already, if it is not then install all drivers in the "Drivers Folder".
5. Enable USB Debugging.
For that go to "Settings" ,Scroll to bottom goto "about", goto "Software Information", tap "Build number" upto 7 times or till it
says "You are a developer now". Then go to "Settings" you will find "Developer Options", open it and enable "USB Debugging"
4. Common sense, patience.
Download Link:
For Method 1
Click here Android Filehost
Download these folders: TWRP, STOCK RECOVERY, STOCK ROM, DRIVERS
For Method 2
https://forum.xda-developers.com/zenfone2/general/z008-z00a-z00d-z00x-raw-fw-collection-t3448966
Procedure:
METHOD 1​Step 1. Flash TWRP recovery if not installed by using "TWRP.bat" (Given in twrp folder) in fastboot mode or bootloader mode whatever you call it.
Step 2. Go to Twrp recovery then choose "wipe" then choose "Advance wipe" and tick everything except "SD card or external sd card". then swipe to wipe.
Step 3. Go to fastboot/bootloader mode and flash stock recovery running appropriate .bat file. It is given in "Stock Recovery" folder.
Step 4. When the command executes from the above step, Go to "recovery" by pressing volume down button, then press "power" button.
Step 5. You will see a dead android logo. Nothing else. Then go to stock recovery options.
If you don't know how then use following methods
Method 1:
When you see a dead android bot with an error press and hold power button, then (while holding power button) quickly press Vol up and release and then release power button..
Method 2:
Go to fastboot mode. Connect your device and open command prompt there. Then Type
Code:
fastboot erase cache
Step 6: You should see stock recovery options. Then choose "Update from sd card" and select the rom zip you pasted in SD card.
(If you don't have sd card, then paste rom in internal memory and don't tick "internal storage" in twrp in step 2) But micro
sd is preferable.
Step 7: Wait. Your phone may take 20-30 or more minutes. So leave it on charging.
METHOD 2​Step 1: Download and Install all drivers given in download folder. Download RAW firmware for your phone. See above in download links.
Step 2: Install "ASUS FLASH TOOL"
Step 3: Go to fastboot/bootloader mode on your phone. Run asus flash tool, select your phone model and browse for the raw firmware. Check wipe all data. And start the process.
Step 4: Wait for program to say successful. If it takes more than 30 minutes. Disconnect your phone and check phone if rom installed or not.
If this process does not work. Then switch methods.
If you have any questions, problems .. Just Comment it.
Every Suggestion welcomed. Also you can join telegram group to get help and help others.
MOD EDIT: LINK REMOVED
If the guide works for you or you want to thank me for development of tools then you can donate me via
Paypal paypal.me/KapilTapsi (You can donate any amount, It will be of great help)
FAQ
1. Having problems with device connection? like waiting for device.
Sol. Make sure you have enabled USB Debugging (Not applicable for BL Unlocking and TWRP Flashing)
Uninstall all drivers previously installed on computer(every driver of any device)
Reboot your computer. And then install all drivers given in the driver folder.
If the problem persists, try different computer and different usb cable.
2. Facing permission denied in fastboot mode or while running script files.
Sol. Try disabling your lock screen security to none.
File Credits:
1. RealYoti
Would it not be easier to get the stock raw image and just flash it with the asus flash tool?
Sent from my ASUS_Z00A using Tapatalk
kenbo111 said:
Would it not be easier to get the stock raw image and just flash it with the asus flash tool?
Click to expand...
Click to collapse
Thanks for suggestion. But the reasons​ are
First thing is stock raw image of latest version is very difficult to find.
Second thing sometime asus flash tool stops responding. So you have to wait again for 30 minutes. Also it doesn't show progress sometimes.
Kapil Tapsi said:
Thanks for suggestion. But the reasons​ are
First thing is stock raw image of latest version is very difficult to find.
Second thing sometime asus flash tool stops responding. So you have to wait again for 30 minutes. Also it doesn't show progress sometimes.
Click to expand...
Click to collapse
No offense meant. But the entire collection of raw files are here: https://forum.xda-developers.com/showthread.php?t=3448966
As long as you have the correct drivers (which you need for your process too) the AFT will get the job done in one easy step.
Sent from my ASUS_Z00A using Tapatalk
kenbo111 said:
No offense meant. But the entire collection of raw files are here: https://forum.xda-developers.com/showthread.php?t=3448966
As long as you have the correct drivers (which you need for your process too) the AFT will get the job done in one easy step.
Click to expand...
Click to collapse
It is a guide only. Users are free to choose from where to download. Thats it. I only shared my collection.
E: footer wrong
E: footer wrong
Installation aborted
I need your help!
I follow the instructions in Method 1 but the device give me this error message when I try to update via SD-card...
May I know whats the solution?
Rom used: Fastboot Rom WW-4.21.40.327
Thank you very much!
kenbo111 said:
No offense meant. But the entire collection of raw files are here: https://forum.xda-developers.com/showthread.php?t=3448966
As long as you have the correct drivers (which you need for your process too) the AFT will get the job done in one easy step.
Sent from my ASUS_Z00A using Tapatalk
Click to expand...
Click to collapse
Thanks, finally got it
Hey...when I get to part 6 I get this Error >>
footer is wrong
signature verification failed
installation aborted
Hey..I also Tried Flashing with the method 2 it was installing but i got an error after
Man, this thread saved my ass. thank you for all your time all!
I have the Asus Zenfone 2 ZE551ML with sound issues, (it's only when the phone rings that the speaker works) and I put it into recovery mode to wipe cache/data, but it got stuck while doing that and I forced it off. But now, it's stuck at the Asus Boot logo with the rotating icon underneath.
Please help!!!!
Hello, my 551ml has stock LP, it's rooted with bootloader unlocked and Xposed installed. If I want to install the latest MM with through the raw flashing tool, should I install the MM bootloader first or it is included into the raw file? Thank
just trying to revert back to locked bootloader and stock recovery once I have wiped all data with twrp and go to bootloader how do I actually flash stock rom noob thanks
stevegtrlmk said:
just trying to revert back to locked bootloader and stock recovery once I have wiped all data with twrp and go to bootloader how do I actually flash stock rom noob thanks
Click to expand...
Click to collapse
use asus flash tool
damn my asus flash tool says error flashing image failure.... (remote not allowed to flash this partion)
ow btw i already bricked it cause it only does boot fastboot lol no more android
how do i flash it back again i need to send the phone back to amazon by 18/05 lol i mean i can just send it back and say also that it wouldnt boot cause i tried to reset it to get my touchscreen to work but yeah lol dont want them to refuse my retour
No way to simple flash the stock rom through/keeping twrp in the device, like I do with other Custom Roms?
Ok. humm, in AFT, it recognize my phone. (there is no OS on it), i choose the good model, i choose the good firmware, but i got this error in a box
"Can't open file 'SERIALNUMBER_frp_request_server_log.txt' (error 5:denied access)" i can only press OK
and now the button under "state" is red and under description, it's " check the detected serial number failure (not found the device of "SERIALNUMBER") "
you understand the i've replace the real serial number by SERIALNUMBER in those lines.
Anyone ever had this problem?
euphrodil said:
Ok. humm, in AFT, it recognize my phone. (there is no OS on it), i choose the good model, i choose the good firmware, but i got this error in a box
"Can't open file 'SERIALNUMBER_frp_request_server_log.txt' (error 5:denied access)" i can only press OK
and now the button under "state" is red and under description, it's " check the detected serial number failure (not found the device of "SERIALNUMBER") "
you understand the i've replace the real serial number by SERIALNUMBER in those lines.
Anyone ever had this problem?
Click to expand...
Click to collapse
Try manual flashing then. Not the aft flashing
Sent from my MI MAX 2 using Tapatalk
Kapil Tapsi said:
Try manual flashing then. Not the aft flashing
Sent from my MI MAX 2 using Tapatalk
Click to expand...
Click to collapse
Ok thanks, i'll look for a thread that explain this.
euphrodil said:
Ok thanks, i'll look for a thread that explain this.
Click to expand...
Click to collapse
did you find any?
i want to remove the lineageos and install latest stock LP but i have no clue how to do it

[GUIDE] All-In-One noob friendly guide for xperia X (Root/Bootloader/Rom)

[UPDATE]: USE THIS ONLY FOR NOUGAT 7 OR 7.1! THERE IS A DIFFERENT GUIDE FOR ANDROID OREO!
https://forum.xda-developers.com/xperia-x/how-to/root-xperia-x-f5122-android-n-34-2-2-47-t3594502 (Written by YasuHamed, not me!)
If you are not interested in android Oreo, or you want to go back to Nougat, this guide is still valid! [End of Update]
This is a guide for newbies or for people that are simply confused. If you have any questions, you can always ask me, and I will reply. but please make sure you haven't made mistakes and do not ask about things that are already stated here. Let's go!
BEFORE DOING ANYTHING, NOTES
-make sure you have installed ADB : https://forum.xda-developers.com/showthread.php?t=2588979
-make sure ADB can read your phone with the correct drivers installed. If you have trouble with that, read "DRIVERS" section
!It is absolutely necessary to install the drivers correctly!
-Backup your stuff if you have any, you will need to delete everything from the phone
-Enable USB debugging
-Note: some of these instructions apply to Windows OS only!
-Note: links to downloads have been shortcutted as much possible to make it easier for you!
-Find some stock roms here! https://forum.xda-developers.com/xperia-x/how-to/sonyx-f5121-downgrade-8-0-0-to-7-1-1-to-t3754986
(Credit: HEKER510)
-Warning: you will lose your warranty!
-I am not responsible for any damage done to your device.
BACKUP DRM KEYS (OR WORKAROUND)
You may want to unlock your bootloader. If you unlock it without backing up the DRM keys, you will lose them. I did that mistake and I regret it. If you already did, there is an alternative solution, skip to step 8.
1) If you are running android 7 nougat, you will need to downgrade to MM. If you are running MM, skip to step 7.
2) You will need to wipe everything before rolling back, so if you have any data back it up
3) Download any stock MM 6.0.1 firmware for the xperia X. You can find one here : https://mega.nz/#!1xRj2CYS Decryption key: !qBVi7yky8AL84eUF3bpTTGQ2YmN0ePCjc-eSDZGIZCI
Watch out: if you have the dual SIM model, F5122, you need to download accordingly!
For more firmwares, check "BEFORE DOING ANYTHING"
4) Download the latest flashtool: http://www.flashtool.net/downloads.php
Upon installation, tick on fastboot, flashmode drivers! If it didn't ask you, go to the installation folder and run Flashtool-drivers.exe. Please read "DRIVERS" section!
5) Flash the .tft file
How to flash?
0. Go to "C:\Users\[Your PC Name]\.flashTool\firmwares" , and put your firmware .ftf file in there!
1. Open Flashtool and click on the lightning bolt icon (first one from the left)
2. In the prompt, choose flashmode.
3. Under firmware, click on the version you put (It should probably only be one option)
4. Under wipe , tick everything. Under the others, do not make any changes.
5. Click "Flash"
6. When the popup appears, connect your device. It needs to be powered off, and connected while you are holding the
"volume down" button.
7. Wait for it to finish.
8. Done. Boot up the device, it might take some time to open so don't worry.
Click to expand...
Click to collapse
6)If your phone bootloops, try flashing again or a different firmware and make sure you followed the steps correctly.
7) Once your phone successfully boots android MM, use Dirtycow to get your DRM keys out: https://forum.xda-developers.com/crossdevice-dev/sony/universal-dirtycow-based-ta-backup-t3514236
8) If you unlocked the bootloader before backing up your keys, you can use DRM kernel fix. You can get it here: https://forum.xda-developers.com/xperia-x/development/kernel-drm-fix-nougat-t3530849 Before using it check out the custom rom that includes this fix and other things.
UNLOCK BOOTLOADER
This is relatively easy and you can follow official sony instructions to do it.
1) Go to your phone settings, developer options, and enable OEM unlock
"But there is no developer options!" -Go to the bottom of your settings, system, about phone, and tap multile times on "Build Number", also at the bottom.
Click to expand...
Click to collapse
2) If you haven't already , install ADB fastboot and configure drivers (Link on top )
3) Follow the steps on the Sony website to get your unlock code: https://developer.sonymobile.com/unlockbootloader/email-verification/
4) After unlocking, a warning message on boot is normal!
INSTALL RECOVERY
Installing TWRP on your xperia X is very important, since you can flash zips and img files so easily, plus wipe, backup and other features.
1) Download the TWRP .img file: https://androidfilehost.com/?w=files&flid=197369 (Credit: eagleeyetom )
2) Make sure you have USB debugging enabled
3) Open your downloaded twrp folder
4) Run CMD in that folder (shift + right click inside the folder, Open CMD here )
5) Connect your Xperia X to your PC
6) Type these lines:
adb reboot bootloader
fastboot flash recovery recovery.img [where recovery.img is your twrp file name]
fastboot reboot
7) If no errors, twrp is now installed. Once your phone boots , turn it off,. To access TWRP recovery hold power button and volume down button until the TWRP menu appears.
STOCK ROM, ROOT
If you just want to root and not interested in additional features and tweaks, you can simply flash SU through TWRP to get your phone rooted.
Note: Current best stock ROM available: 7.1.1 (252) - better features than older ver, and good battery life.
0) Install your desired stock firmware using the exact same previous instructions, (under DRM section) with flashtool.
1) Download SuperSu
Or magisk, using YasuHamed guide mentioned on top, but I have not tested with anything other than Oreo 8.0
Use magisk if you want more stability / root features (like hide root from apps, modules )
2) copy it anywhere on your phone
3) Run TWRP
4) Tap on install
4) Flash the file
5) Reboot, you are now rooted
6) Insert your DRM keys if you have them
Custom ROMS
After unlocking the bootloader and installing TWRP this is the best way to go in order to get full root, tweaks.
https://forum.xda-developers.com/xperia-x/development/rom-xperia-x-pexorom-v1-0-0-f5122-f5121-t3590552
^ This is a very good custom ROM made by prmk74. You can see its features in his thread.
1) Download the rom and copy it to your phone
2) Run TWRP
note: It is recommended to wipe dalvik, cache, data ( your storage partition doesn't need to be wiped)
3) Tap install, find your downloaded file and execute
note: It is recommended to wipe dalvik, cache, data ( your storage partition doesn't need to be wiped)
4) Follow on-screen instructions, do not stop the booting after finishing the installation, it will take some time
5) Insert your DRM keys if you have them
6) For those who lost their keys: Now the functions like vivid image mode are working properly.
DRIVERS
For Windows 8/8.1/10 users, how to solve driver problems:
1) Press the Windows key + R together and in the ‘Run’ box type: shutdown.exe /r /o /f /t 00
– Now make the following selections to boot into the Start Up Setting Screen: Troubleshoot > Advanced options > Start Up Settings > Restart
– Then, when the machine restarts, select number 7 i.e. “Disable driver signature enforcement”. Your machine will start with Driver signing enforcement disabled until the next reboot.
B) Now you can install the Flashtool drivers. Go to the flashtool install location and run the drivers.exe again, check fastboot and flashmode
– Windows will warn that the driver is not signed and will require you to confirm the installation.
– Once the installation is complete, reboot the machine
TO CONCLUDE:
This is what you may want to do to get the most out of your new xperia x:
1) Backup DRM
2) Unlock BL
3) Install TWRP
4) Flash Persian (or a different rom) through TWRP (And subscribe to the thread so you receive updates)
5) Restore DRM
Notes:
None of the links, tools are of my work, I'm just writing a guide for my fellow XX owners
^^ this guide is so really good :3. I post flash script for someone dont know how to find it ^^
unzip it in this position.
C:\Users\[user-name]\.flashTool\mydevices
max26292 said:
^^ this guide is so really good :3. I post flash script for someone dont know how to find it ^^
unzip it in this position.
C:\Users[user-name]\.flashTool\mydevices
Click to expand...
Click to collapse
Thanks!
Thanks for this, I need some help!
All was fine until I tried flashing the recovery, comes back "partition unknown" error. I was unable to bring the device up under an adb device only as a fastboot device.
34.0.A.1.264_R3A firmware.
Different official sony driver (Sony bootloader guide driver didn't work)
Device now hangs on the Sony logo after boot messgae warning "OEM bootloader unlocked, device not trusted," any help would be appreciated.
brianx87 said:
Thanks for this, I need some help!
All was fine until I tried flashing the recovery, comes back "partition unknown" error. I was unable to bring the device up under an adb device only as a fastboot device.
34.0.A.1.264_R3A firmware.
Different official sony driver (Sony bootloader guide driver didn't work)
Device now hangs on the Sony logo after boot messgae warning "OEM bootloader unlocked, device not trusted," any help would be appreciated.
Click to expand...
Click to collapse
These USB drivers are very annoying to work with. I got mine to finally work using a program called ADB driver installer. http://adbdriver.com/downloads/ Choose automated installation and try what I said. I believe it should fix your problem, after installing the drivers reboot and flash again.
Other than that, I have to ask are you 1000% sure you used the exact commands?
I saw another thread someone mistook
"flash recovery recovery.img" for "flash recovery.img"
"recovery" should be included before the recovery file name
brianx87 said:
Thanks for this, I need some help!
All was fine until I tried flashing the recovery, comes back "partition unknown" error. I was unable to bring the device up under an adb device only as a fastboot device.
34.0.A.1.264_R3A firmware.
Different official sony driver (Sony bootloader guide driver didn't work)
Device now hangs on the Sony logo after boot messgae warning "OEM bootloader unlocked, device not trusted," any help would be appreciated.
Click to expand...
Click to collapse
Why didn't the sony guide work? It worked for me. Just so you know, the "device cant be trusted" message is appearing on everyones' phones after unlocking the bootloader, it's not a problem or something
the part of restoring DRM is skipped,
please xplain
YasuHamed said:
the part of restoring DRM is skipped,
please xplain
Click to expand...
Click to collapse
I know, as I said there is room for improvement. The reason I did not include it is because I never did it myself, so I don't want to write something wrong or something that could lead to problems. I write something only if I am 100% sure. If anyone of you is kind to offer that piece so the guide is complete I will be glad
FoxTheLegend said:
Why didn't the sony guide work? It worked for me. Just so you know, the "device cant be trusted" message is appearing on everyones' phones after unlocking the bootloader, it's not a problem or something
Click to expand...
Click to collapse
Ok I figured out what I did wrong and was able to amend another issue I edited out of this post.
brianx87 said:
Ok I figured outwhat I did wrong (able to boot into the os and warning message no longer an issue ) and the issue I am now facing is that twrp is hanging on the boot screen. Is this version of twrp built to a specific version of android?
Click to expand...
Click to collapse
What do you mean hanging? the twrp logo frozen?
FoxTheLegend said:
What do you mean hanging? the twrp logo frozen?
Click to expand...
Click to collapse
Working now, used a previous version of twrp by mistake. Using latest build works fine now, have to wait to get home from work to proceed with the rest, annoying procedures this stuff but your guide is great.
brianx87 said:
Working now, used a previous version of twrp by mistake. Using latest build works fine now, have to wait to get home from work to proceed with the rest, annoying procedures this stuff but your guide is great.
Click to expand...
Click to collapse
Thanks, Im glad to it works now
FoxTheLegend said:
I know, as I said there is room for improvement. The reason I did not include it is because I never did it myself, so I don't want to write something wrong or something that could lead to problems. I write something only if I am 100% sure. If anyone of you is kind to offer that piece so the guide is complete I will be glad
Click to expand...
Click to collapse
thank you for the answer sir
i am unable to find any twrp that work for my F5122, it always bricks and i have to reset.
is there any twrp recovery image that works correctly with f5122?
YasuHamed said:
thank you for the answer sir
i am unable to find any twrp that work for my F5122, it always bricks and i have to reset.
is there any twrp recovery image that works correctly with f5122?
Click to expand...
Click to collapse
Hmm.. Did you try the one from the poison thread? I myself have still the old version installed (not 3 or 3.1) if I find it on my pc I will share it with you
FoxTheLegend said:
Hmm.. Did you try the one from the poison thread? I myself have still the old version installed (not 3 or 3.1) if I find it on my pc I will share it with you
Click to expand...
Click to collapse
I have to modified kernel
all i want is to boot it via fastboot command
for example i have the rooted kernel SU installed (but battery drain is high) so i what wana do is flashing kernel with all securities OFF and then with twrp image i will do
Code:
fastboot boot twrp.img
i will boot the X in to twrp and i will flash SUPERSU via twrp.
thanks all
YasuHamed said:
I have to modified kernel
all i want is to boot it via fastboot command
for example i have the rooted kernel SU installed (but battery drain is high) so i what wana do is flashing kernel with all securities OFF and then with twrp image i will do
i will boot the X in to twrp and i will flash SUPERSU via twrp.
thanks all
Click to expand...
Click to collapse
I see, but don't you want to figure out why it's not working normally? Noone has reported a similar problem
FoxTheLegend said:
I see, but don't you want to figure out why it's not working normally? Noone has reported a similar problem
Click to expand...
Click to collapse
since there is no offcial twrp for X out yes and only DORA (XA) is available) even XA don't work for X
so either twrp 2.8, 3.0 or 3.1 any should just boot in order to let us flash superSU.
YasuHamed said:
since there is no offcial twrp for X out yes and only DORA (XA) is available) even XA don't work for X
so either twrp 2.8, 3.0 or 3.1 any should just boot in order to let us flash superSU.
Click to expand...
Click to collapse
=-= try to use this command fastboot flash recovery [your_recovery_name].img
I use f5122 and flash successfull twrp 3.0.2 and 3.1. with this, i flash some kernel and rom without any problem.
Everything is working good for me now, the only issue now is restoring the DRM keys, has anyone found a credible source for doing this on this device?
How can I be sure I have a full root? I can't seem to be able to uninstall some of the bloatware only disable it!
brianx87 said:
Everything is working good for me now, the only issue now is restoring the DRM keys, has anyone found a credible source for doing this on this device?
How can I be sure I have a full root? I can't seem to be able to uninstall some of the bloatware only disable it!
Click to expand...
Click to collapse
Well titanium backup can assure you but I don't see why you wouldn't have full root... You need an app uninstaller to uninstall bloatware, it can't be done through the settings you know that right

[BEGINNERS GUIDE][Lollipop 5.1.1 .236] Root,Backup TA, UBL, Install Recovery

NOTE: DON'T HOLD ANYONE RESPONSIBLE IF SOMETHING GOES WRONG DURING THE PROCESS!
This thread contains full information you might need for rooting, backing up TA partition, unlocking bootloader, installing custom recovery, installing custom rom etc.
Some notes below, read them
-I try to keep this thread clean so people have easier time navigating. @derjango has ALOT of info and fixes on his THREAD which is related to this one, give it a read
-Read comments if you have problems. You may find answer and fix there by other users. I wrote this thread few months after I did these steps to my phone so I likely made mistakes (e.g. I forgot or got some steps wrong). If you do see those mistakes or have problems that nobody else has, feel free to ask in comments.
-We will use legit rooting methods and not those sketchy one click root apps
-These instructions may apply for other z line devices but you will have to find ftf files for your own device
-Written for 14.6.A.1.236 firmware but it will work on any version that you have currently.
0. PREPARATIONS
Backup all your data (photos, videos, contacts etc.)
Fully charge your battery
Enable USB debugging
Download the following:
Latest XperiaCompanion from HERE (for drivers mainly)
Sony flashtool from HERE
Follow THIS thread to install adb drivers
Navigate to your C:\Flashtool\drivers and run Flashtool-drivers
Select Flashmode drivers, Fastboot drivers and Xperia Z1 Compact drivers and click install
Now download THIS and THIS and put it in C:\Users\username\.flashTool\firmwares
(Windows 8/8.1/10 users can try - THIS fix if you can't install flashtool drivers)
1. FLASHING .108 FIRMWARE
1.1. Run Flashtool and click on lightning button, make sure flashmode is selected and hit Ok
1.2. In left window click on + symbol until you find 14.4.A.0.108
1.3. Under wipe check both options
1.4. Click Flash
1.5. Wait
1.6. Follow the on screen instructions
(You can release vol- when you see activity in flashtool window)
(If you get device disconnected just unplug phone and repeat all from step 1.1)
1.7. Don't touch anything until blue progress bar disappears. You should see Device disconnected> Device connected in flash mode.
(Don't worry if bar gets stuck near end just let it do it's thing)
1.8. Disconnect phone and reboot
1.9. Done!!!
(Do only basic setup, we won't be staying on this rom for long)
2. ROOTING .108 FIRMWARE
2.1. Make sure USB debugging is enabled
2.2. Download THIS Easy Root Tool by zxz0O0
2.3. Unzip and run install.bat
2.4. Download SuperSu apk form HERE put it in internal storage and install it.
2.5. Update binary normally.
2.6. Done!!! You should have root now.
(Download Root Checker to make sure you do)
3. TA PARTITION BACKUP
(NOTE: This is absolutely not necessary and is only needed if you plan to go back to stock firmware AND use BionZ, X-Reality and Music ID/Gracenote. TA partition and DRM keys stored inside get erased when you unlock bootloader.
3.1 Download THIS Backup TA v9.11 by DevShaft
3.2. Extract and run Backup-TA.bat. You should see backup>TA backup.zip in main folder where you extracted
3.3. Backup whole folder to cloud since you can't flash someone's else backup if you loose yours
3.4. Done!!!
(Read linked thread for useful information and FAQ)
4. UNLOCKING BOOTLOADER
4.1. Dial *#06# on your device. You will see your IMEI code
4.2. Go HERE and scroll to bottom
4.3. Under select device select Z1 Compact and enter your IMEI code
4.4. Check the 2 boxes and click on submit. You will get your unlock code. Copy it to clipboard
4.5. Run Flashtool again and click on "BLU" button
4.6. Connect phone in flashmode.
4.7. When prompted, enter your unlocking code that you copied form SONY website
4.8. Click unlock.
(Follow any instructions that flashtool gives you. I don't remember if there are any after this)
4.9. Done!!! Your bootloader is unlocked!
5. FLASHING RECOVERY
This is how I did it. You can try to skip step 5.2. If it doesn't work try again following all steps
5.1. Download THIS TWRP by 115ek and extract recovery image in new folder
5.2. Run Flashtool and flash 14.6.A.1.236 just like you did with .108 in first step (If you have problems here see THIS comment)
5.3. Now without rebooting or disconnecting your phone flash THIS open bootloader with flashtool just like you flashed system ftf-s.
5.4. Disconnect your phone and press volume up and connect your data cable. You should see blue led.
5.5. Now enter that folder where you extracted recovery image and press shift and right click in empty window area and select Open Command window here (Powershell for windows 10 users should work fine I think. Never used it)
5.6. Type "fastboot flash recovery recovery.img" and hit enter.
5.6 Done!!! You should have your recovery now.
To reboot to recovery first disconnect your phone and hold volume down and power button. Release power button when phone vibrates but keep holding volume down until you see twrp logo.
AND THAT IS IT
Now that you have your recovery and unlocked bootloader you can flash whatever roms, kernels, mods that you want for your phone.
Thanks to:
derjango for his thread mentioned above
munjeni For supplying open bootloader ftf and for giving me support with my problems
Androxyde For Flashtool
Snoop05 For ADB driver tool
zxz0O0 For Root tool And PRF Creator tool
DevShaft For Backup TA tool
115ek For TWRP
[NUT] For XZDualRecovery
kulvertti For SuperSu Dummy
Placeholder
I'm really struggling to get past unlocking the bootloader and starting to get quite confused.
Sony Companion is up to date.
Flashtool installed and used to flash .108 firmware.
Device is rooted using Easyroot tool.
Supersu installed and binary updated.
When I go to run BLU in Flashtool it prompts me to connect my device whilst holding the volume-down button (so flash mode). A couple of seconds after doing that it prompts me to re-connect the device whilst holding the volume-up button (so fastboot mode), but nothing happens. Blue LED is on the device, but Flashtool does absolutely nothing.
When I check Flashtool-driver it does fail to install the AndroidUsbDeviceClass driver, but when I run the 15-second ADB Installer it completes successfully - plus I was able to flash the firmware earlier so I don't see why I'd now have a driver issue.
Any ideas? It's starting to drive me crazy.
Here is what you can try.
Connect your phone to pc and in command prompt type adb reboot bootloader or hold vol+ and connect your phone
Your phone will be booted to fastboot now
Now type fastboot devices
You should see
XXXXXXXXXblabla fastboot
If you see this that means that your phone is recognized in fastboot by your pc.
If you see <waiting for device> or something else go to your device manager while still in fastboot
IIRC you should see under other devices something like saXXXX or something
You can tell me what exactly it says or you can fix it yourself by googling that number and adding fastboot driver and update it manually through device manager
If you decide to do it yourself make sure you link me website where you link me thread where you found driver and write down instructions so other people can see it
If you have any other problems feel free to reply
Also i just noticed that i didn't include that you lose ta partition when ubl and since you don't have ta backup make sure you make one. You never know when you might need it
Ok, thanks for that I definitely had a problem with driver installation so followed the steps in this video - https://www.youtube.com/watch?v=fcz4o6fpDGc
Now I am a bit stuck on flashing recovery.
5.2. Run Flashtool and flash 14.6.A.1.236 just like you did with .108 in first step --- do I also check both options under Wipe? will this not remove root?
5.3. Now without rebooting or disconnecting your phone flash THIS just like you did with system ftf-s. --- not sure what I'm meant to do here
Glad you fixed that problem
Flash that file through flashtool just like you flashed system ftf
Also yes that will remove root but we had that root only to backup ta and unlock bootloader. Since you unlocked bootloader and you install twrp you can easily root any rom
I get the "'fastboot' is not a recognised ..." error when trying to flash recovery - using Windows PowerShell as I'm on Win10.
EDIT: running CMD then moving to the location of where ADB was installed and contains Fastoot.exe worked.
Thanks for the guide!
scanz said:
I get the "'fastboot' is not a recognised ..." error when trying to flash recovery - using Windows PowerShell as I'm on Win10.
Click to expand...
Click to collapse
That means you don't have fastboot drivers installed. Here is temporary fix that got me out of frustrating situations when i can't install drivers systemwise
https://mega.nz/#F!aBoUXI5Q!RmxLAO638aHNJKLwo00Hew
If it downloads as zip first unzip it and run command prompt/powershell in that folder or in powershell type cd and drag that folder, that should do the same.
fastboot will now be recognised as command
this also includes adb drivers
Just wondering, I'm trying to get Magisk running after finishing the steps in your guide, but it does not pass any of the SafetyNet checks - even basicIntegrity check comes back false. Have you any ideas or experience with this? If so perhaps you could include it as part of the guide
If you get cts fasle that means you flashed rom that comes with supersu preinstalled. You could try installing rom without magisk and removing su then flashing mahgisk.
Not sure about integrity tho. I heard that xposed can cause problems with that.
colaigor said:
5.3. Now without rebooting or disconnecting your phone flash THIS with flashtool just like you flashed system ftf-s.
Click to expand...
Click to collapse
I get this:
23/015/2018 22:15:07 - INFO - Selected Bundle for Sony Xperia Z1 Compact(D5503). FW release : 1. Customization : openbootloader
23/015/2018 22:15:07 - INFO - Preparing files for flashing
23/015/2018 22:15:07 - INFO - Please connect your device into flashmode.
23/015/2018 22:15:08 - INFO - Opening device for R/W
23/015/2018 22:15:08 - INFO - Device ready for R/W.
23/015/2018 22:15:08 - INFO - Reading device information
23/015/2018 22:15:08 - INFO - Unable to read from phone after having opened it.
23/015/2018 22:15:08 - INFO - trying to continue anyway
23/015/2018 22:15:08 - INFO - Phone ready for flashmode operations.
23/015/2018 22:15:08 - INFO - Opening TA partition 2
23/015/2018 22:15:08 - INFO - Start Flashing
23/015/2018 22:15:08 - INFO - No loader in the bundle. Searching for one
23/015/2018 22:15:13 - INFO - Processing loader.sin
23/015/2018 22:15:13 - INFO - Checking header
23/015/2018 22:15:13 - ERROR - Processing of loader.sin finished with errors.
23/015/2018 22:15:13 - INFO - Ending flash session
23/015/2018 22:15:13 - ERROR - null
23/015/2018 22:15:13 - ERROR - Error flashing. Aborted
23/015/2018 22:15:14 - INFO - Device connected in flash mode
Click to expand...
Click to collapse
Are you sure you installed flashtool and other drivers? I can't think of any other cause for this problem right now
I flash 14.6.A.1.236 without problems using flashtool, so drivers should be ok; maybe why I'm using a Mac istead Windows?
_Pano_ said:
I flash 14.6.A.1.236 without problems using flashtool, so drivers should be ok; maybe why I'm using a Mac istead Windows?
Click to expand...
Click to collapse
Found this boot bridge for mac users. you may try it and see if it works. Can't really tell you anything about drivers on mac since i never touched one.
Also mega file may be corrupted. You can try downloading from this comment where i downloaded openbl from
Do you have windows machine to try flashing ?
yes, I try tomorrow using Windows 10, thanks
colaigor said:
Found this boot bridge for mac users. you may try it and see if it works. Can't really tell you anything about drivers on mac since i never touched one.
Also mega file may be corrupted. You can try downloading from this comment where i downloaded openbl from
Do you have windows machine to try flashing ?
Click to expand...
Click to collapse
ok, I flash .236 linked in your first post and then without rebooting or disconnecting the device I flash openbootloader and I see:
24/020/2018 09:20:14 - INFO - Closing TA partition
24/020/2018 09:20:14 - INFO - Ending flash session
24/020/2018 09:20:14 - INFO - Flashing finished.
24/020/2018 09:20:14 - INFO - Please unplug and start your phone
24/020/2018 09:20:14 - INFO - For flashtool, Unknown Sources and Debugging must be checked in phone settings
24/020/2018 09:20:16 - INFO - Device connected in flash mode
24/022/2018 09:22:15 - INFO - Selected Bundle for Sony Xperia Z1 Compact(D5503). FW release : 1. Customization : openbootloader
24/022/2018 09:22:15 - INFO - Preparing files for flashing
24/022/2018 09:22:15 - INFO - Please connect your device into flashmode.
24/022/2018 09:22:15 - INFO - Device connected in flash mode
24/022/2018 09:22:16 - INFO - Using Gordon gate drivers version 3.1.0.0
24/022/2018 09:22:16 - INFO - Opening device for R/W
24/022/2018 09:22:16 - INFO - Device connected in flash mode
Click to expand...
Click to collapse
that's all? 1 second flash?
_Pano_ said:
that's all? 1 second flash?
Click to expand...
Click to collapse
Sorry for late answer.
Does it work? I don't remember how much it took to flash tbh
colaigor said:
Sorry for late answer.
Does it work? I don't remember how much it took to flash tbh
Click to expand...
Click to collapse
yes, after various attempts: after flashing .236 I had to disconect and reconnect the phone in order to flash openbootloader; otherwise it doens't flash
thank you for these tutorials..I now have a rooted z1compact lollipop 5.11 locked bootloaders..My question is how can I debloat my phone..I want to uninstall other system apps that I don't need and I want to install xposed on my own..sorry I am newbie
xjhayar09 said:
thank you for these tutorials..I now have a rooted z1compact lollipop 5.11 locked bootloaders..My question is how can I debloat my phone..I want to uninstall other system apps that I don't need and I want to install xposed on my own..sorry I am newbie
Click to expand...
Click to collapse
You can download Titanium backup from playstore and delete all that you dont need and keep what you nees. Also you can find twrp flashable script that deletes all bloatware. Just sreach xperia lolipop debloat script on xda.

Categories

Resources