GUIDE: How to install Sony's Concept Software(Android 6.0.1), root, recovery, Xposed - Xperia Z3 Compact General

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

Related

[GUIDE] Back up DRM Keys & unlock/relock Bootloader (Noob proof)

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.

[GUIDE] How to * Unlock * Flash TWRP * Root * OnePlus X [Including Oxygen 3.1.3]

Notice: Rooting your device will break OTAs because they require an unmodified system, so you might want to check for updates before rooting your X. However, there is a workaround:
Boot into TWRP via step 5E below, but DO NOT flash it (step 5D)!!
Do a backup of your completely stock, unrooted ROM
Root the device by flashing SuperSU...zip
When an OTA hits, you can get it by doing this:
Boot into TWRP again without flashing it (same as step 1 above)
Restore your stock, unrooted ROM (from step 2 above)
Apply the update from stock recovery
Backup the unmodified ROM with the update if you want, then re-root as above.
Note: You will lose any changes, mods or app data since you did the backup, but hey, at least the OTA is applied.
If you get stuck with an update that won't flash and you haven't backed-up your unrooted ROM as above, look here:
[Guide] How to Install OTA's with TWRP, and please hit thanks for @SpiritBreak3r :good:
_____________________​
Disclaimer: Rooting does not void the OnePlus X’s warranty, though damaging your hardware (i.e., burning up your CPU by overclocking, hardbricking the device) will. You proceed at your own risk! I accept no responsibility for what you do with your phone. Follow the directions closely, and the odds are you will succeed without any trouble. If you are not sure what you are doing, do some more research before you try. If you get confused with terminology, try looking here for answers or Google it. If you get stuck, post a question in the thread—we're here to help you.
Preliminary steps​
1. Make sure that your phone is always charged above 50%!!!
Running out of battery in the middle of flashing something could brick your phone.
2. Make sure that your computer can properly communicate with the device:
We will be issuing commands to the phone from your PC via the USB cable using Android’s SDK tools, in particular ADB and fastboot. If you have not done so already, you must install the following on your Windows computer for this to work:
Java runtime
The Universal Android ADB Driver for Windows.
SDK tools for Android (alternately just ADB & fastboot). Remember where this is installed on your harddrive for later!
You can verify the connection between your PC and phone by running the following procedure:
A. With the phone booted normally, connect it to your computer with the USB cable.
B. Enable Android debugging by going to Settings > About phone and tapping on “Build number” 7 times.
C. Go to Settings > Developer options and check “Android debugging”. A dialogue box will appear asking you to authorize your computer’s RSA fingerprint. Click “Always allow...”
{
"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"
}
D. Open a command prompt in Windows and navigate to the folder where you put SDK tools for Android (ADB & fastboot) above.
E. Type the following command:
Code:
adb devices
You should get a return like this:
If you cannot get the connection to work:
1. Check your USB connection, then verify that Android debugging is enabled in settings and that your computer’s RSA fingerprint has been authorized.
2. Still not working? Open Device Manager in Windows and make sure that you don’t have a yellow exclamation point next to something like “Android Device” or “One.” This would indicate a driver problem that must be resolved. Try re-installing the Universal Android ADB Driver for Windows, and make sure to restart your computer. Once you’ve rebooted, if you still have a yellow triangle, right-click on the device and select “Update Driver Software,” then “Search automatically for updated driver software.”
3. If you still have a yellow exclamation point, then try forcing the driver to install:
In Device Manager, right-click on the device and select “Update Driver Software.”
Select “Browse my computer for driver software”
Select “Let me pick from a list of device drivers on my computer”
Select “ADB Interface” from the list
Select manufacturer “Google”
Select “Android Testing Interface Version xxx”
Click “Next.” If you get a warning, select “Yes” to continue and wait for the driver to install properly.
3. Know how to enter “fastboot mode” on the OnePlus X
To root the device, you must be competent at booting it into fastboot mode. There are two ways to accomplish this:
Power off the phone. Then simultaneously hold down the volume up & power buttons until it vibrates. When done correctly, you will see the words “Fastboot Mode” on a black screen. If not, you dumb-thumbed it, and the device will boot normally into Android. Power off the device and try again.
With the phone running Android normally and Android debugging enabled (see above), open a command prompt in Windows, navigate to the folder where you installed SDK tools (ADB & fastboot) and type:
Code:
adb reboot bootloader
Rooting the OnePlus X​
There are three essential steps to rooting the device:
Unlock the bootloader
Flash or boot into TWRP custom recovery [For OxygenOS 3.1.3 use TWRP blu_sp★rk r175]
Flash SuperSU...zip from recovery [For OxygenOS 3.1.3 use SuperSU v2.78 SR1 beta]
However, we're going to add a few more to protect your data and device in case something gets borked.
1. Backup your phone’s data
Unlocking the bootloader will involve doing a factory reset resulting in the loss of all accounts, emails, texts, apps and app data, pictures, music, etc. on the device. Move anything you need to keep onto your PC or a cloud service like DropBox.
2. Unlock the bootloader
2A.Go into Developer Options and enable bootloader unlocking
2B. Boot the device into fastboot mode. (Simultaneously hold down the volume up & power buttons until it vibrates.) You should see a black screen with the words “Fastboot Mode”.
2C. Plug in the USB cable.
2D. Verify that your device is connected with this command:
Code:
fastboot devices
You should get a return like the image above under Preliminary Steps
2E. Unlock the bootloader using the following commands:
Code:
fastboot oem unlock
The device will unlock the bootloader, erase all user data and reboot itself into Android. You will have to set up everything from scratch.
3. Re-enable Android debugging
3A. Re-enable Developer options by going to Settings > About phone and tapping on “Build number” 7 times.
3B. Go to Settings > Developer options. Check “Android debugging” and re-authorize your computer’s RSA fingerprint.
4. Download SuperSU zip
4A. Head over to Chainfire’s CF-Root thread and download the SuperSU access management tool from the “CWM / TWRP / MobileODIN installable ZIP” link. It will probably called something like UPDATE-SuperSU-v2.XX.zip. This zip file will root your device and install the SuperSU access management app in one smooth motion. Hit the thanks button for Chainfire or donate to his Paypal account and buy him a Coke.
NOTE: For OxygenOS 3.1.3 use SuperSU v2.78 SR1 beta
4B. Copy UPDATE-SuperSU-v2.XX.zip to your phone’s SD card.
5. Flash TWRP custom recovery
5A. Download TWRP recovery.
NOTE: For OxygenOS 3.1.3 use TWRP blu_sp★rk r175
5B. Place file you downloaded above to the location where you installed SDK tools (ADB & fastboot).
5C. Boot the device into fastboot mode and connect it to your computer with the USB cable.
5D. In this step, we will replace your stock recovery with TWRP recovery.
Note: This step is optional. If you want to root but preserve stock recovery, skip straight ahead to step 5E below. Thanks @rockuppl for the reminder. :good:
Open a command prompt in Windows and navigate to the folder where you installed SDK tools (ADB & fastboot). Type the following commands:
Code:
fastboot flash recovery twrp-3.0.0-0-onyx.img
5E. Reboot into TWRP recovery with the following command.
Code:
fastboot boot twrp-3.0.0-0-onyx.img
You should now see the custom recovery you just flashed, not the stock recovery.
6. Backup your stock ROM before making any changes
In TWRP press “Backup.” <--- See how simple this is???
Don’t be a noob—backup your device!!! Right now we don't have stock boot debuggable image files for the OnePlus X, so borking your device could leave you with a nice paperweight until we do. :crying: Restoring from a backup in recovery is easy, and only works if you've backed-up first
7. Root the device
7A. The device should still be in recovery from step 6 above. Go back to the main menu and press “Install,” find UPDATE-SuperSU-v2.XX.zip on the SD card, then flash it.
7B. Reboot the phone. It is now rooted!
7C. Go to the app drawer and open SuperSU. Update the binary if prompted. Its icon looks like this:
7D. Download and install Root Checker from the Play Store to verify that you have root access.
Yes I already own the phone and I see the bootloader unlock switch in dev options. I also checked the stock recovery which gives options to flash files from phone memory or otg. So it must be fairly easy. But I still don't want to risk it without it being tried and tested. If there were a custom recovery I could have also backed up the factory image. Only choice is to wait and see I guess
I could try today evening... will update here.
@CafeKampuchia
Is it ok to flash supersu.zip with stock recovery.
Before flashing supersu.zip, will unlock bootloader . Will follow the guide from oneplue two procedure to unlock..
Flashing supersu is safe on hundreds of devices, but I don't have the X so I can't say one way or the other.
I tried the OnePlus One tutorial to unlock bootloader and root it thanks to this guide.
When it comes to install TWRP, adb tells me it's ok but when I boot into recovery, it's the "official" one that show up.
Even from this recovery, I tried to install the SuperSU.zip, but it keeps telling me it failed, so I think I'll just wait for someone to do it correctly
Knockys said:
I tried the OnePlus One tutorial to unlock bootloader and root it thanks to this guide.
When it comes to install TWRP, adb tells me it's ok but when I boot into recovery, it's the "official" one that show up.
Even from this recovery, I tried to install the SuperSU.zip, but it keeps telling me it failed, so I think I'll just wait for someone to do it correctly
Click to expand...
Click to collapse
I wouldn't try flashing a recovery for another device, especially if the stock recovery isn't available.
I'm surprised that supersu wouldn't flash from stock, though.
CafeKampuchia said:
I wouldn't try flashing a recovery for another device, especially if the stock recovery isn't available.
I'm surprised that supersu wouldn't flash from stock, though.
Click to expand...
Click to collapse
Well I thought that TWRP was for all devices and I already went to the stock one before installing TWRP without success to flash SuperSU.
But apprently, installing TWRP the way I did wasn't the right way because I still boot to the stock recovery :/
Knockys said:
I tried the OnePlus One tutorial to unlock bootloader and root it thanks to this guide.
When it comes to install TWRP, adb tells me it's ok but when I boot into recovery, it's the "official" one that show up.
Even from this recovery, I tried to install the SuperSU.zip, but it keeps telling me it failed, so I think I'll just wait for someone to do it correctly
Click to expand...
Click to collapse
Hi, after unlocking bootloader, you are not able to update/flash supersu.zip from stock recovery? right?
if it so, then we need to wait for custom recovery to flash root.
Thanks.
Knockys said:
Well I thought that TWRP was for all devices and I already went to the stock one before installing TWRP without success to flash SuperSU.
But apprently, installing TWRP the way I did wasn't the right way because I still boot to the stock recovery :/
Click to expand...
Click to collapse
No, TWRP is definitely not for every device. You have to use the version made for your specific device.
CafeKampuchia said:
No, TWRP is definitely not for every device. You have to use the version made for your specific device.
Click to expand...
Click to collapse
My bad then ahah
mjose said:
Hi, after unlocking bootloader, you are not able to update/flash supersu.zip from stock recovery? right?
if it so, then we need to wait for custom recovery to flash root.
Thanks.
Click to expand...
Click to collapse
Yes it fails on stock recovery, we'll have to wait for a custom one indeed...
Hi, finally its available in oneplus forum
https://forums.oneplus.net/threads/...om-recovery-root-take-efs-backup-more.401713/
Thanks.
mjose said:
Hi, finally its available in oneplus forum
https://forums.oneplus.net/threads/...om-recovery-root-take-efs-backup-more.401713/
Thanks.
Click to expand...
Click to collapse
THIS WORKS! But beware using the recovery imagine provided there as in is in Mandarin, not English. Other than that it works fine! Already rooted
Savya said:
THIS WORKS! But beware using the recovery imagine provided there as in is in Mandarin, not English. Other than that it works fine! Already rooted
Click to expand...
Click to collapse
Hey i need your help, i installed the custom recovery in Mandarin but i don't understand anything! Could you please tell me where i should go in this recovery to wipe dalvik cache and flash super su? Step by step? Thanks!
Works for me too ! I'll try to install Xposed now ahah !
Hope they'll release TWRP in English soon !
EDIT : Xposed installed and working ! For those who don't know how to do, see here
mjose said:
Hi, finally its available in oneplus forum
https://forums.oneplus.net/threads/...om-recovery-root-take-efs-backup-more.401713/
Thanks.
Click to expand...
Click to collapse
I'll update the OP, but I won't make it a noob friendly guide until we have an English TWRP from a known/trusted developer.
Edit: I tried thanking your post, but I'm out of thanks for the day--8 post limit
CafeKampuchia said:
I'll update the OP, but I won't make it a noob friendly guide until we have an English TWRP from a known/trusted developer.
Edit: I tried thanking your post, but I'm out of thanks for the day--8 post limit
Click to expand...
Click to collapse
I've requested the OP for an English version and hopefully he'll post a link soon.
And that's okay you can thank me later xD
Savya said:
I've requested the OP for an English version and hopefully he'll post a link soon.
And that's okay you can thank me later xD
Click to expand...
Click to collapse
I have english version repacked from original source
https://www.dropbox.com/s/zypo7b41lvj0r2h/en-recovery-twrp-onyx-.img?dl=0
ukanth said:
I have english version repacked from original source
https://www.dropbox.com/s/zypo7b41lvj0r2h/en-recovery-twrp-onyx-.img?dl=0
Click to expand...
Click to collapse
Just flashed it now!
Confirmed that its working and its in English!
Thanks a ton mate!
Also do i have your permission to post your link in the oneplus forums? As there are many users there too waiting for an english version.
@ukanth : shared the recovery on my post on the OP forums
https://forums.oneplus.net/threads/...om-recovery-root-take-efs-backup-more.401713/

[REF] [ROOT] [RECOVERY] [BOOT LOADER] Metro PCS LG K7 LGMS330 [Guide For Dummies]

I have not been on this site since posting my guide, i do want to let any future people reading this know that, I am not a professional. everything in this guide is using stuff from other peoples threads.... this thread is just step by step directions on how i rooted (and installed TWRP on) MY lg k7 (MetroPCs). Also i had to root before i unlocked the boot loader. Which is not safe, you should probably unlock the boot loader before you root, but i couldn't figure out how to unlock it without root access.
I AM NOT RESPONSIBLE FOR ANY THING THAT HAPPENS TO YOUR DEVICE!
YOU AND ONLY YOU CAN BE HELD RESPONSIBLE​
~BACK UP FILES ON PC, YOUR PHONE WILL BE RESET TO FACTORY SETTINGS DURING THIS TUTORIAL~
Step One: Enable Dev Options
A) open settings>about phone>software info then tap "Build Number" really fast about 10 times
B) open settings>Developer Options, then check the box labeled "Enable OEM Unlock", and the box Labeled "USB Debugging"
Step Two: Install Android SDK/ADB/USB drivers
A) go to http://developer.android.com/sdk/index.html in your browser, and click download...
B) go to https://www.microsoft.com/net/default.aspx in your browser, and click the big blue button that says .NET
Framework 4.6.1 or X.X.X depending on when your reading this...
C) go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html scroll down until you get to the first box, labeled Java SE Development Kit 8u91 or XuXX Depending on when your reading this, then find your OS (ex: Windows x86, Mac OS, Linux, Etc..), then select the download link
Step Three: Installing LG K7's USB Driver's
A) unlock your phone
B) plug your phone into you Computer via USB
C) pull down your notifications, Tap on the USB icon which should be labeled "Media Device (MTP)," "Send Images (PTP)," or "Charge Phone"
D) if a dialogue box pops up asking to install drivers tap install, if not proceed to step E
1) Your PC should ask you if you want to auto run, Either auto run or open the folder and run LG_PC_Programs.exe then proceed to Step Four
E) select "Media Device (PTP)," if not already selected
1) click the three vertical dots next to the magnify glass in the upper right hand corner, select install pc drivers, then tap install
Step Four: Installing Java SE
A) return to the folder where you downloaded the files in step two, install the file which contains the word java in it
Step Five: Installing Microsoft .NET 4 Framework
A) now in the same folder as step four, install the with the name "NDP461-KB3102438-Web," the name might be different then mine depending on when you are reading this
B) if it is already installed it will notify you and you can proceed to the next step
Step Six: Installing Android Studio 2.0 (SDK/ADB Drivers)
A) in the download folder from step four & five, double click the remaining file, the name should contain the words "android", and "studio" in it
B) when the dialogue box opens requesting admin rights, select allow
C) click next
D) click next
E) make sure all boxes are checked and click next
F) read the license agreement, (unless your the 99.9% that doesn't) click i agree
G) you may click next or choose where you'd like to install android studio, and where you'd like to install SDK, for this tutorial i will change make a new folder in my docs named SDK then change the SDK install dir to My Docs
H) click next
I) it will take a moment to install so just wait
(note: the progress bar will fill up, then reset, as it is installing in two separate locations)
J) when finished, click next
K) uncheck the box and click finish
Step Seven: Root your device
(Note: I rooted before i unlocked my boat loader, as i could not get it to boot into boot loader mode until i rooted it)
A) go to http://www.kingroot.net/wap on your android device and download the apk file
B) go to settings>security and check the box labeled "Unknown Sources"
C) install the apk
Video tutorial for king root here: https://www.youtube.com/watch?v=tG_ruuTPVpU
(Not my channel or video)
D) open the king root app
E) make sure you have a charged battery or your phone is plugged in as the rooting process time may vary (better safe then sorry)
F) swipe up until you see a "TRY IT" button click it
G) under "Root Access not available" tap "Get Now
H) do not turn off your phone
I) when it is done you can tap optimize now if you wish, otherwise close the app
Step Eight: Replacing KingRoot with SuperSU ~ W0lfDroid Method
A) go to http://www.w0lfdroid.com/2015/05/How-to-Remove-Replace-KingUser-KingRoot-with-SuperSU.html
B) scroll down until you see the word "download:" (should be right above the related posts
C) click on the "new link" next to "Replace_Kingroot_With_SuperSU.zip"
D) extract the .zip so that the "MRW" folder is on your internal storage
(Easiest way is to download it on PC and open up your k7 in "my computer" and select internal storage and drag the MRW folder inside the .zip there)
E) go to google play and search "terminal emulator for android" or use this link if your reading this on your phone https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
F) install the first one, or use this link if your reading this on your phone https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
G) open terminal emulator
H) type "su" without the quotations
(everything typed in the terminal is case sensative)
I) type "sh /sdcard/mrw/root.sh" without the quotations
J) you might see a few errors, that is fine
K) wait until it says finished
L) when SU opens, select "update" "install" or what ever pops up
M) when it asks to uninstall, uninstall it, it is not uninstalling SuperSU it is uninstalling Kingroot,
O) if 30 minutes pass and it is still uninstalling then exit the app and then reboot the phone
DO NOT STOP HERE ~ YOU HAVE TO UNLOCK THE BOOTLOADER, and OPTIONALLY FLASH TWRP
Step Nine: Unlocking The Bootloader
A) refer to step one and double check the OEM unlock is enabled and USB debugging is turned on
(If not then please enable them)
B) search quick boot on the google play store download the first app it should be a circle with a lightening bolt
C) open quick boot
D) when asked to "allow root access?" tap allow
E) if an add pops up close it with the ex in one of the corners
F) tap on the word boot loader
G) at the top of your phone you should see " * Welcome To Fast Boot Mode : "
H) now go to your SDK dir, in my case it is C:\Users\USER\Documents\SDK
I) hold shift, then right click on the "platform-tools" folder, then select "open command window here"
J) in the CMD window type "fastboot devices" - without quotations
(everything is case sensative)
K) then type "fastboot oem unlock" - without quotations
L) then type "fastboot getvar unlocked" if that doesn't work try "fastboot getvar" or "fastboot getvar unlock" to confirm if it is unlocked
(if non of the getvar commands work you did something wrong, and i wont be able to help you, but if you followed the tutorial you shouldn't have any issues as these are the exact steps i took)
M) then type "fastboot reboot"
LEAVE THE CMD OPEN OR YOU WILL HAVE TO REPEAT steps H-I
Step Ten: Flashing TWRP
A) go to http://forum.xda-developers.com/general/general/qa-metro-pcs-lg-k7-lgms330-t3331678 and click on the latest download for twrp for me it is BETA1
if the links on that page dont work then use the links here http://forum.xda-developers.com/showpost.php?p=66282525&postcount=42
B) extract the download into your SDK folder on your PC
C) in the sdk CMD window from Step nine
D) type "fastboot devices" - without qoutation
E) ~optional, HIGHLY RECOMENDED~
1)type fastboot "boot twrp-image-3.img" - this will boot up twrp WITHOUT flashing it, just so you can make sure everything is working right
in my case it was twrp-image-3.img check your twrp file name and replace fastboot boot twrp-image-3.img with
fastboot boot INSERT YOUR FILE NAME HERE.img
2)in twrp tap reboot>bootloader
F) when bootloader mode opens back up
G) type "fastboot flash twrp-image-3.img" or "fastboot boot INSERT FILE NAME HERE.img" depending on your file name
H) when finished flashing type "fastboot reboot"
Step eleven
A) follow instructions on step one
B) the reason you must do this is because when you flash TWRP it erases your entire phone and resets it
Congrats you have Successfully Rooted, Unlocked Your Bootloader, and Flashed TWRP, to your LG K7
Well done, my friend. Well done indeed.
[QUOTE
Congrats you have Successfully Rooted, Unlocked Your Bootloader, and Flashed TWRP, to your LG K7[/QUOTE]
is this ok with the gapps 5.1 instsall .zip for twrp install or should i use a different? also, do you have a suggested camera app? awesome thread btw. Nevermind simple twrp install fixed everything.
I have tribute 5 and can't access bootloader or install SuperSU.....always fails.
How can I get this to work?
Today backup important files you need!
Is this a real method BC everybody having problems rooting this device so I ask can u make a video and add screenshots
Sent from my LG-D800 using Tapatalk
I can confirm this method works. The only different thing i did was purchase Supersume pro from playstore. Worked like it said it would. The Ls675 is rootable. But no bootloader unlock or bootloader at all for that matter. Im running MS330 with TWRP full root and have twrp backups and fastboot flashable backups via flashfire....
---------- Post added at 02:28 AM ---------- Previous post was at 02:20 AM ----------
https://mega.nz/#!CRAVWAyI!QIbo20-0ZnVqlREs7ZXF66aB_Eh3UjCEMVQbLuP1Zec
https://mega.nz/#!zBoxGIQR!buXvorPkA14Vr2Idn7uhNPHanOL6wbvcEav3MhRdjv8
https://mega.nz/#!yQBg1ayC!r3qvWfLjCAKg0e8t91J1IEtae8_EwhvYTXjawv7b_2A
Screen shots of root, flashfire backups, and device info
While it does work I can find no method using the buttons to get into twrp all the instructions I find for recovery fail so I can only boot back to it after the phone boots, thus it's worthless at this point. Also the command is fastboot flash recovery imgagename.img and you'll need to remove kingroot from administrators to uninstall.
Anyone else been able to boot directly into twrp from the off position?
zgauthier8286 said:
I can confirm this method works. The only different thing i did was purchase Supersume pro from playstore. Worked like it said it would. The Ls675 is rootable. But no bootloader unlock or bootloader at all for that matter. Im running MS330 with TWRP full root and have twrp backups and fastboot flashable backups via flashfire....
---------- Post added at 02:28 AM ---------- Previous post was at 02:20 AM ----------
https://mega.nz/#!CRAVWAyI!QIbo20-0ZnVqlREs7ZXF66aB_Eh3UjCEMVQbLuP1Zec
https://mega.nz/#!zBoxGIQR!buXvorPkA14Vr2Idn7uhNPHanOL6wbvcEav3MhRdjv8
https://mega.nz/#!yQBg1ayC!r3qvWfLjCAKg0e8t91J1IEtae8_EwhvYTXjawv7b_2A
Screen shots of root, flashfire backups, and device info
Click to expand...
Click to collapse
can you please help me i have 2 MS330 that are bricked
callihn said:
While it does work I can find no method using the buttons to get into twrp all the instructions I find for recovery fail so I can only boot back to it after the phone boots, thus it's worthless at this point. Also the command is fastboot flash recovery imgagename.img and you'll need to remove kingroot from administrators to uninstall.
Anyone else been able to boot directly into twrp from the off position?
Click to expand...
Click to collapse
Try to do the factory hard reset trick but say no at the second screen. I haven't tried it out yet but I've been reading around several sites and that's a possible solution
zgauthier8286 said:
Try to do the factory hard reset trick but say no at the second screen. I haven't tried it out yet but I've been reading around several sites and that's a possible solution
Click to expand...
Click to collapse
Just reboots. Think we're going to have to change something? Boot image? Kernel?
callihn said:
Just reboots. Think we're going to have to change something? Boot image? Kernel?
Click to expand...
Click to collapse
I'm no developer by any means but I have Linux and windows on my laptop. I'm familiar with kernel building on bunt and have the source code for MS330 on my laptop. I have a backup of my boot img as well. If you can get to fastboot u can probably flash my boot img if you want me to send it. I have recovery img as well which is twrp. Let me know if you have any ideas on what u need or i can do as far as possibly doing a fresh build kernel later tonight and getting a zImage out of it
Does anyone know a way to successfully root this phone? Not just recover?
Sent from my LGMS330 using Tapatalk
callihn said:
Just reboots. Think we're going to have to change something? Boot image? Kernel?
Click to expand...
Click to collapse
Of other interest 5.1 is very dendent on Google apps and move app updates to the system via TB or Link2SD fails more than it succeeds, shows they moved but app inaccessible afterwards hence brick. Mine went down trying to integrate play services and reinstalling from adb didn't help. FYI if you relock the BL it'll lock the phone with a security error too. Moving play services causes unending error screens so you can't really see if it's done moving, but I waited a good 5 minutes before reboot. Issue on fails could have been the system not being r/w. Needless to say backup, backup, backup as I hadn't because I've never had a serious issue doing that and considered it a trivial task. Anyone had good success with integrating updates and cache? Anyone restored from twrp yet?
JayCouture.com said:
Does anyone know a way to successfully root this phone? Not just recover?
Sent from my LGMS330 using Tapatalk
Click to expand...
Click to collapse
Yes! Just follow the instructions here:
http://forum.xda-developers.com/showpost.php?p=66456635&postcount=1
zgauthier8286 said:
I'm no developer by any means but I have Linux and windows on my laptop. I'm familiar with kernel building on bunt and have the source code for MS330 on my laptop. I have a backup of my boot img as well. If you can get to fastboot u can probably flash my boot img if you want me to send it. I have recovery img as well which is twrp. Let me know if you have any ideas on what u need or i can do as far as possibly doing a fresh build kernel later tonight and getting a zImage out of it
Click to expand...
Click to collapse
Can you figure out why we can't boot to recovery via hardware buttons? That's critical for tinkering and testing on the go since I always have my phone but not my laptop for booting into recovery with adb. Not sure exactly where to look, probably start with a search for the words "recovery" and "safe mode" for the buttons and "security error" in the boot.img files.
callihn said:
Can you figure out why we can't boot to recovery via hardware buttons? That's critical for tinkering and testing on the go since I always have my phone but not my laptop for booting into recovery with adb. Not sure exactly where to look, probably start with a search for the words "recovery" and "safe mode" for the buttons and "security error" in the boot.img files.
Click to expand...
Click to collapse
If your rooted u can dl a reboot recovery app on the play store I have one that works like a charm. But im gonna take a look through Linux at the kernel options using make menu_config and see if there's anything I can see in there.
zgauthier8286 said:
I'm no developer by any means but I have Linux and windows on my laptop. I'm familiar with kernel building on bunt and have the source code for MS330 on my laptop. I have a backup of my boot img as well. If you can get to fastboot u can probably flash my boot img if you want me to send it. I have recovery img as well which is twrp. Let me know if you have any ideas on what u need or i can do as far as possibly doing a fresh build kernel later tonight and getting a zImage out of it
Click to expand...
Click to collapse
im having a problem w the security 9 error boot loop. only seem to b able to get it into download mode , not bootloader or recovery. would your boot and recovery img's help me at all ya think ? thanks !
goitalone said:
I have tribute 5 and can't access bootloader or install SuperSU.....always fails.
How can I get this to work?
Click to expand...
Click to collapse
Thanks again. For anyone that has a soft bricked LG K7 see this man! He brought my S#!? To life through teamveiwer. Thanks again. From my LG K7.
Maybe just my experience, but regarding step 10. I had to have the twrp image in SDK>platform tools, also when you get to fastboot flash twrp-image-3.img, I couldn't get it to work, until I typed it as fastboot flash recovery twrp-image-3.img. Hope this helps anyone else getting errors during this part. Thanks for the writeup.

[Guide] Safe bootloader unlock, restore DRM, custom recovery, root, bootloader relock

** DISCLAIMER: I AM NOT A DEV AND THIS IS MY HOBBY. I ASSUME NO RESPONSIBILITY IF THIS BREAKS YOUR DEVICE **​
The following is tested on model E6553. This may work for the dual sim model too but I have not verified it. Do not flash the ftf and kernel files intended for one model onto another.​
I am not taking credit for any of the tools and kernels here. They are all developed by others. I am only telling you how to use them.
Credits: @zxz0O0, @tobias.waldvogel
0- Prerequisites
You need to have a functioning installation of adb and fastboot tools. You need to have proper Sony drivers installed on your PC to detect your phone when it is connected to the PC. You should be able to flash an ftf file using flashtool. If any of these sound unfamiliar to you, stop reading, go learn about them, and then come back.
1- How to unlock your bootloader without losing the DRM keys
Sony has designed this phone such that if you unlock your bootloader you lose your TA partition PERMANENTLY which includes some of the Xperia features and licenses that have to do with image processing etc. forever. You will also no longer receive OTAs. So in theory, without a copy of this TA partition (which is unique to each device and cannot be copied over from another) unlocking the bootloader results in an irreversible loss of some of your phone's features. Relocking the bootloader will not bring them back.
A hack exists that allows you to backup the TA partition before you unlock the bootloader. This backup will make the process completely reversible so if you ever need to send the tablet to Sony for repair or just want to return it to its original state you have a way. Follow these instructions carefully:
1.0- Before you begin keep in mind that this procedure, especially the unlocking step, completely erases your tablet. Disable myXperia and remove your google account before proceeding. The following will likely not work well with encryption.
1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the Customized NL ftf that you can get from here.
1.2- Enter service Mode by dialing *#*#7378423#*#* -> Service info -> configuration, and make sure the device is unlockable.
Also check -> Service Tests -> Security and you will see a bunch of "active" and "OK" attributes. You can take screenshots for your reference.
1.3- Turn on usb debugging mode on your phone.
1.4- Download iovyroot zip v0.4 or higher from here.
1.5- Unzip this zip file into a folder of your choice and open a command terminal there.
1.6- Connect the phone which is now in USB debugging mode to your PC and answer yes when the phone asks to authorize the PC to access it in USB debugging mode. You can check that the PC indeed sees the phone by running this command
Code:
adb devices
1.7- Run the following command:
Code:
tabackup
1.8- VERY IMPORTANT: Make sure the command completes with no errors. If all goes well you will have a file with a name like TA-05052016.img (the name may be different for you) with a size of 2MB in your folder.
1.9- Save this file in a very safe place. Save it on your hard disk, AND email it to yourself, AND put it on your google drive. If you lose this file you can never reverse the bootloader unlocking process.
1.10- Reboot the device.
1.11- Now you can unlock the bootloader. Follow the instructions at Sony's official website at http://developer.sonymobile.com/unlockbootloader Also save your unlock code that you obtain in this step somewhere. You may need it some day.
1.12- Reboot the device and it will briefly enter recovery and then start the phone initial setup.
1.13- (Optional) you can easily verify that your bootloader is unlocked by entering the fastboot mode, obtaining any boot image, and running the following command to boot your tablet with that image:
Code:
fastboot boot boot.img
1.14- (Optional) you can see that the DRM keys are erased from your tablet by repeating step 1.2 but this time you will see a bunch of errors under Service Tests -> Security.
1.15- As a side effect of unlocking the bootloader you lose the ability to receive OTA updates. Clean flash a Marshmallow ftf to continue. For this tutorial I used Marshmallow 6.0 E6553_Customized HK_1294-9654_32.1.A.1.185_R7C (the latest firmware at the time of this writing.)
2- How to emulate DRM keys and/or root and/or add recovery after unlocking the bootloader.
A hack exists that can emulate the DRM keys:
2.1- Extract the boot image from the 32.1.A.1.185 marshmallow ftf that you installed in step 1.15. Here are the steps to take:Open the ftf file with 7-zip or any zip program that you have at your disposal
Look for a file called kernel.sin and extract it.
Start flashtool and from Tools menu choose Sin Editor.
Select the kernel.sin that you extracted in the previous step and hit Extract data.
Flashtool will create a file called kernel.elf which you will use in the next step.​2.2- Download rootkernel_v4.42_Windows_Linux.zip (or a higher version) from http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 and unzip it in a folder of your choice.
2.3- Copy the kernel.elf that you got in step 2.1 to this folder. If you want root, follow this guide through to section 5 place SuperSU 2.71 (or higher) in this folder as well. Make sure the name of the SuperSU zip starts with letters "SuperSU". The latest SuperSU can be obtained from: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133 (The rootkernel tool has a bug in its built-in SuperSU integration. See: http://forum.xda-developers.com/showpost.php?p=67485478&postcount=838)
2.4- Open a command terminal in this folder and run the rootkernel script. Your command should look similar to this:
Code:
rootkernel.cmd kernel.elf boot-patched.img
When prompted, answer as follows:- Sony RIC is enabled. Disable? [Y/n] Y (if you want root plus write access)
- Install TWRP recovery? [Y/n] Y (if you want to have recovery)
- Install busybox? [Y/n] Y (if you want busybox. It is very useful)
- Found SuperSU-v2.71-20160331103524.zip. Install? [Y/n] Y (if you want root)
- Install DRM fix? [Y/n] Y (if you want DRM emulation)​This will create a new kernel image called boot-patched.img which you will now flash on your phone.
2.5- Boot the phone in the fastboot mode and flash your patched image using the following fastboot command:
Code:
fastboot flash boot boot-patched.img
2.6- (Optional) You can reboot the phone and see that the DRM keys are indeed retrieved by repeating step 1.2. You can also open settings -> display, and look under Image Enhancement. If the DRM emulation is successful you will see this.
3- How to flash a custom or stock kernel
3.0- If you have already flashed the patched kernel in part 2 you will skip this part.
3.1- Whether you want to use a custom kernel or stock, and whether you have done the DRM patch described above or not, to flash a boot image (i.e. kernel) on your phone you need to restart the tablet in fastboot mode.
3.2- To flash the kernel use this command:
Code:
fastboot flash boot [I]name_of_your_kernel[/I]
You will replace name_of_your_kernel with whatever your kernel is called (e.g. boot.img, kernel.elf, etc.)
4- How to add and use recovery
4.1- Recovery is added to your kernel in step 2.4.
4.2- To enter recovery reboot the phone and touch the volume up key when the LED turns yellow during the boot splash screen.
5- How to root
5.1- Place SuperSU 2.71 zip (or higher) on the phone's sdcard. The latest SuperSU can be obtained from: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
5.2- Reboot to recovery and flash the zip file.
6- How to relock bootloader and return it to original factory state
6.0- To relock the bootloader along with restoring the DRM keys the phone must have unmodified stock firmware.
6.1- Repeat step 1.1
6.2- Repeat steps 1.3, 1.4, and 1.5
6.3- Copy the TA backup image that you had obtained in section 1 in the iovyroot folder and use the tarestore command to flash the TA partition back onto the phone. The command will look similar to this:
Code:
tarestore TA-05052016.img
Make sure the command completes with no error. If it fails the first time try again. Reboot the phone. Your bootloader is now locked and your DRM keys restored.
6.4- (Optional) You can verify that you are back to the original locked state by repeating step 1.2.
Whoa Great
---------- Post added at 01:32 AM ---------- Previous post was at 12:50 AM ----------
najoor said:
** DISCLAIMER: I AM NOT A DEV AND THIS IS MY HOBBY. I ASSUME NO RESPONSIBILITY IF THIS BREAKS YOUR DEVICE **​The following is tested on model E6553. This may work for the dual sim model too but I have not verified it. Do not flash the ftf and kernel files intended for one model onto another.​I am not taking credit for any of the tools and kernels here. They are all developed by others. I am only telling you how to use them.
Credits: @zxz0O0, @tobias.waldvogel
0- Prerequisites
You need to have a functioning installation of adb and fastboot tools. You need to have proper Sony drivers installed on your PC to detect your phone when it is connected to the PC. You should be able to flash an ftf file using flashtool. If any of these sound unfamiliar to you, stop reading, go learn about them, and then come back.
1- How to unlock your bootloader without losing the DRM keys
Sony has designed this phone such that if you unlock your bootloader you lose your TA partition PERMANENTLY which includes some of the Xperia features and licenses that have to do with image processing etc. forever. You will also no longer receive OTAs. So in theory, without a copy of this TA partition (which is unique to each device and cannot be copied over from another) unlocking the bootloader results in an irreversible loss of some of your phone's features. Relocking the bootloader will not bring them back.
A hack exists that allows you to backup the TA partition before you unlock the bootloader. This backup will make the process completely reversible so if you ever need to send the tablet to Sony for repair or just want to return it to its original state you have a way. Follow these instructions carefully:
1.0- Before you begin keep in mind that this procedure, especially the unlocking step, completely erases your tablet. Disable myXperia and remove your google account before proceeding. The following will likely not work well with encryption.
1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the UK Generic ftf that you can get from here.
1.2- Enter service Mode by dialing *#*#7378423#*#* -> Service info -> configuration, and make sure the device is unlockable.
Also check -> Service Tests -> Security and you will see a bunch of "active" and "OK" attributes. You can take screenshots for your reference.
1.3- Turn on usb debugging mode on your phone.
1.4- Download iovyroot zip v0.4 or higher from here.
1.5- Unzip this zip file into a folder of your choice and open a command terminal there.
1.6- Connect the phone which is now in USB debugging mode to your PC and answer yes when the phone asks to authorize the PC to access it in USB debugging mode. You can check that the PC indeed sees the phone by running this command
Code:
adb devices
1.7- Run the following command:
Code:
tabackup
1.8- VERY IMPORTANT: Make sure the command completes with no errors. If all goes well you will have a file with a name like TA-05052016.img (the name may be different for you) with a size of 2MB in your folder.
1.9- Save this file in a very safe place. Save it on your hard disk, AND email it to yourself, AND put it on your google drive. If you lose this file you can never reverse the bootloader unlocking process.
1.10- Reboot the device.
1.11- Now you can unlock the bootloader. Follow the instructions at Sony's official website at http://developer.sonymobile.com/unlockbootloader Also save your unlock code that you obtain in this step somewhere. You may need it some day.
1.12- Reboot the device and it will briefly enter recovery and then start the phone initial setup.
1.13- (Optional) you can easily verify that your bootloader is unlocked by entering the fastboot mode, obtaining any boot image, and running the following command to boot your tablet with that image:
Code:
fastboot boot boot.img
1.14- (Optional) you can see that the DRM keys are erased from your tablet by repeating step 1.2 but this time you will see a bunch of errors under Service Tests -> Security.
1.15- As a side effect of unlocking the bootloader you lose the ability to receive OTA updates. Clean flash a Marshmallow ftf to continue. For this tutorial I used Marshmallow 6.0 E6553_Customized HK_1294-9654_32.1.A.1.185_R7C (the latest firmware at the time of this writing.)
2- How to emulate DRM keys and/or root and/or add recovery after unlocking the bootloader.
A hack exists that can emulate the DRM keys:
2.1- Extract the boot image from the 32.1.A.1.185 marshmallow ftf that you installed in step 1.15. Here are the steps to take:
Open the ftf file with 7-zip or any zip program that you have at your disposal
Look for a file called kernel.sin and extract it.
Start flashtool and from Tools menu choose Sin Editor.
Select the kernel.sin that you extracted in the previous step and hit Extract data.
Flashtool will create a file called kernel.elf which you will use in the next step.​2.2- Download rootkernel_v4.42_Windows_Linux.zip (or a higher version) from http://forum.xda-developers.com/xperia-z5/development/root-automatic-repack-stock-kernel-dm-t3301605 and unzip it in a folder of your choice.
2.3- Copy the kernel.elf that you got in step 2.1 to this folder. If you want root, place SuperSU 2.71 (or higher) in this folder as well. Make sure the name of the SuperSU zip starts with letters "SuperSU". The latest SuperSU can be obtained from: http://forum.xda-developers.com/apps/supersu/2014-09-02-supersu-v2-05-t2868133
2.4- Open a command terminal in this folder and run the rootkernel script. Your command should look similar to this:
Code:
rootkernel.cmd kernel.elf boot-patched.img
When prompted, answer as follows:
- Sony RIC is enabled. Disable? [Y/n] Y (if you want root plus write access)
- Install TWRP recovery? [Y/n] Y (if you want to have recovery)
- Install busybox? [Y/n] Y (if you want busybox. It is very useful)
- Found SuperSU-v2.71-20160331103524.zip. Install? [Y/n] Y (if you want root)
- Install DRM fix? [Y/n] Y (if you want DRM emulation)​This will create a new kernel image called boot-patched.img which you will now flash on your phone.
2.5- Boot the phone in the fastboot mode and flash your patched image using the following fastboot command:
Code:
fastboot flash boot boot-patched.img
2.6- (Optional) You can reboot the phone and see that the DRM keys are indeed retrieved by repeating step 1.2. You can also open settings -> display, and look under Image Enhancement. If the DRM emulation is successful you will see this.
3- How to flash a custom or stock kernel
3.0- If you have already flashed the patched kernel in part 2 you will skip this part.
3.1- Whether you want to use a custom kernel or stock, and whether you have done the DRM patch described above or not, to flash a boot image (i.e. kernel) on your phone you need to restart the tablet in fastboot mode.
3.2- To flash the kernel use this command:
Code:
fastboot flash boot [I]name_of_your_kernel[/I]
You will replace name_of_your_kernel with whatever your kernel is called (e.g. boot.img, kernel.elf, etc.)
4- How to add and use recovery
4.1- Recovery is added to your kernel in step 2.4.
4.2- To enter recovery reboot the phone and touch the volume up key when the LED turns yellow during the boot splash screen.
5- How to relock bootloader and return it to original factory state
5.0- To relock the bootloader along with restoring the DRM keys the phone must have unmodified stock firmware.
5.1- Repeat step 1.1
5.2- Repeat steps 1.3, 1.4, and 1.5
5.3- Copy the TA backup image that you had obtained in section 1 in the iovyroot folder and use the tarestore command to flash the TA partition back onto the phone. The command will look similar to this:
Code:
tarestore TA-05052016.img
Make sure the command completes with no error. If it fails the first time try again. Reboot the phone. Your bootloader is now locked and your DRM keys restored.
5.4- (Optional) You can verify that you are back to the original locked state by repeating step 1.2.
Click to expand...
Click to collapse
Very usefull step by step guide.. But is there is any method to root phone without unlocking Bl? Quite curious to know from you.
arokososoo said:
Whoa Great
---------- Post added at 01:32 AM ---------- Previous post was at 12:50 AM ----------
Very usefull step by step guide.. But is there is any method to root phone without unlocking Bl? Quite curious to know from you.
Click to expand...
Click to collapse
Not yet, atleast for my Dual SIM Version.
njaya95 said:
Not yet, atleast for my Dual SIM Version.
Click to expand...
Click to collapse
So you mean there is a way to root single sim version without unlocking BL?
Thanks ú so much! this is well writen, i will try this when i get the time to do a fresh install. Cheers mate
@arokososoo
Please, in the future never quote long OP and any other long posts. This is very annoying for mobile and desktop users to scroll to the next post. Thanks.
Sent from my Sony E6553 using XDA Labs
I wonder if E6533 can use this guide
Got as far as going to the sony website, there's no mention of phones that can be unlocked there and for some reason Ive got bootloader unlock allowed no, even with a sim free phone and my xperia turned off.....bummer
Stoneybridge said:
Got as far as going to the sony website, there's no mention of phones that can be unlocked there and for some reason Ive got bootloader unlock allowed no, even with a sim free phone and my xperia turned off.....bummer
Click to expand...
Click to collapse
I also unlocked my Z3+, although it wasn't supported. I just picked Z4 Tablet since it is the "nearest" one. Worked Got MM rooted now.
How long did that take on your devices? 1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the UK Generic ftf that you can get from here.
I am waiting for half an hour now...
Spoiler
Trilliard said:
How long did that take on your devices? 1.1- Start by clean flashing any 28.0.A.8.266 firmware, For this tutorial I used the UK Generic ftf that you can get from here.
I am waiting for half an hour now...
Spoiler
Click to expand...
Click to collapse
I can't see your picture, but I assume you have that stucking at modem/system ?
If so, downgrade Flashtool to 0.9.19
Well i got a soft brick, but was able to restore it trough Sony Companion. Here is the picture on another hoster http://fs5.directupload.net/images/160529/gr5fpf8t.png dont know on what point it stuck.
Funfact that two germans writting in english
Edit, big thanks version 0.9.19 worked perfect. Cant understand why the newest one doesnt work
Edit 2: System boots up, but when the setup start the process com.android.phone stops instant and if i hit ok the message comes instantly again after about ten times the phone reboot, i cant do anything else... next repair through sony companion and back to stock german 6.0. I´ll stop try it for today.
Trilliard said:
Well i got a soft brick, but was able to restore it trough Sony Companion. Here is the picture on another hoster http://fs5.directupload.net/images/160529/gr5fpf8t.png dont know on what point it stuck.
Funfact that two germans writting in english
Edit, big thanks version 0.9.19 worked perfect. Cant understand why the newest one doesnt work
Edit 2: System boots up, but when the setup start the process com.android.phone stops instant and if i hit ok the message comes instantly again after about ten times the phone reboot, i cant do anything else... next repair through sony companion and back to stock german 6.0. I´ll stop try it for today.
Click to expand...
Click to collapse
Did you forget to wipe?
In a thread i opened in Q&A a user said that even though service info reported bl unlock allowed NO, he managed to unlock it anyways using standard procedure, what do you think?
it seems like Sony RIC is not fully disabled with this patch.
Finally ! Works like a charm in my E6533 (Dual sim) !!! Thanks a lot !!!
Hi thiefxhunter,
How you do this? could you explain us step by step. I like to root my dual sim model.
Thanks.
Hi.. I am stuck in 2.5
My device is unlocked, It is connected in fastboot mode (blue led).
error msg
'Fastboot is not recognised as an internal or external command, operable program or batch file'
Please help me in this.
Solved..
Thanks for this post..
Thanks for this guide, it worked like a charm on my E6553 with 32.2.A.0.224
CorzCorry said:
I also unlocked my Z3+, although it wasn't supported. I just picked Z4 Tablet since it is the "nearest" one. Worked Got MM rooted now.
Click to expand...
Click to collapse
Can you please explain how did you do that? Thanks

[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

Categories

Resources