Xperia XA2 - Installing TWRP & Rooting - Sony Xperia XA2 Guides, News, & Discussion

<Mod Edit>
Content removed and thread closed.

Does not work
Unlocked Boot Loader so i get the warning on phone boot. Loaded TWRP. Fine.
Load Magisk - Fails.
! Unable to mount partitions
- unmounting partitions
Updater process ended with ERROR: 1
Cant restore from TWRP, fails. Cant restore from Xperia assist becuase the boot loader is unlocked. Cant flash from EMMA - detects the device but wont find any software for it. Phone is a nice paperweight now. Any ideas?
***********EDIT*********** E-mailed Sony about no software being available in EMMA - They just replied back advising they've fixed the issue. Hopefully restoring it to working order now.

hello

Currrr said:
Unlocked Boot Loader so i get the warning on phone boot. Loaded TWRP. Fine.
Load Magisk - Fails.
! Unable to mount partitions
- unmounting partitions
Updater process ended with ERROR: 1
Cant restore from TWRP, fails. Cant restore from Xperia assist becuase the boot loader is unlocked. Cant flash from EMMA - detects the device but wont find any software for it. Phone is a nice paperweight now. Any ideas?
***********EDIT*********** E-mailed Sony about no software being available in EMMA - They just replied back advising they've fixed the issue. Hopefully restoring it to working order now.
Click to expand...
Click to collapse
use newflasher to flash to the stock rom and xperifirm to get the firmware, just remove userdata file to prevent it from being wiped

davidhozic said:
use newflasher to flash to the stock rom
Click to expand...
Click to collapse
Flashtool also works and already comes with Xperifirm integrated.
It's pretty easy to put the phone in flash mode (VOL Down and plug in USB), so you can flash whatever you want.
Bricking this thing forever is a really hard task with the A/B system and integrated flash mode.

schmatzler said:
Flashtool also works and already comes with Xperifirm integrated.
It's pretty easy to put the phone in flash mode (VOL Down and plug in USB), so you can flash whatever you want.
Bricking this thing forever is a really hard task with the A/B system and integrated flash mode.
Click to expand...
Click to collapse
I'm pretty sure the only way you can brick it if you are trying... and even then it's hard.. complete opposite of huawei

Related

[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

Need Urgent Help, Phone not powering

Alright so where i'm at now is basically the aftermath of a failed attempt to install a cyanogen unofficial rom for my phone.
I have a p9 lite VNS-L23 dual sim and well basically, i unlocked the bootloader and i rooted it with twrp and installed superuser using the srk tool. Everything worked fine up to this point until i booted into recovery, cleared cache and data etc to do a clean install and the install failed with an error code 7.
I thought doing a twrp backup before the flash was effective but because it didnt take any length of time, i sort of thought it definitely wasnt a full backup but i didnt pay it any attention and tried to flash it anyway since iv'e never had probs flashing anything with other of the phones ive had before which was my main mistake.
Usb debugging was enabled before trying to flash. I thought it failed because i didnt change my file system but i had no idea how to do that so i avoided it and tried to install a newer version of twrp to see if the rom would work with the updated version instead. When flashing the twrp img file, it asked where i wanted to install and i think i selected bootloader instead of boot cause there were only 2 options.
After than finished and i chose to restart in recovery, recovery never loaded. I was getting erecovery but that couldnt help me either. I was just stuck with no os and a phone stuck on the bootscreen. I tried to unbrick my phone by installing the update file for the international version firmware which i downloaded which was the only one not to fail after trying 2 others before it before realizing the error i was making. I read online that it would restore my phone back to ofw and that was great considering i had no os installed. Now, after the update, i think i reached like 100% then it went blank. I tried to wait a couple seconds to see if it was rebooting but nothing happened. tried all button combinations with and without the charger for varying lengths of time but no luck. I hear a sound when its connected to my laptop tho so idk if that matters. Its a bit frustrating right now and i have no clue how to fix this problem and i havent even had the phone for a long time. If someone. anyone can help me, id more than appreciate it
So far, nothing is responding to anything. No lights, no vibrations and i dont see anything when it conencts to my laptop, my laptop just makes the connected sound. I see Fastboot 2.0 detected but the srk tool cannot detect any emulators or devices :/ im so depressed at this point. More or less just bought the ****.
Sounds bad, try using the dload method and if that doesn't work you are ******.
What is the output of "fastboot devices"
vidra said:
Sounds bad, try using the dload method and if that doesn't work you are ******.
What is the output of "fastboot devices"
Click to expand...
Click to collapse
its the dload method that has me in this mess. It didnt reboot from the upgrade and since then i think ive been in fastboot mode. I get a response with the fastboot devices cmd and i manage to flash the boot, recovery and system of the stock firmware but still no luck. Think my only option is to use dc phoenix but i cant buy credits for that
bessonster said:
its the dload method that has me in this mess. It didnt reboot from the upgrade and since then i think ive been in fastboot mode. I get a response with the fastboot devices cmd and i manage to flash the boot, recovery and system of the stock firmware but still no luck. Think my only option is to use dc phoenix but i cant buy credits for that
Click to expand...
Click to collapse
Have you tried flashing MM with dload?
vidra said:
Have you tried flashing MM with dload?
Click to expand...
Click to collapse
not getting to the upgrade screen with dload, the phone restarts but nothing on screen. I can use fastboot only to flash and unlock bootloader, check specifications but thats it. I flashed the stock image which is mm thru fastboot but no luck. I read that i might wait for my battery to drain since my battery isnt rly made to be removable. Can i still use dload without any on screen response?
Have you also tried flashing vendor, cust ... partitions ?
vidra said:
Have you also tried flashing vendor, cust ... partitions ?
Click to expand...
Click to collapse
Fastboot doesnt flash certain img's such as xloader etc, no vendor img included inside the update but i doubt i'd be able to flash it anyway, but i flashed everything i was allowed to incl. cust, boot, recovery, system, cache, . Everything else is giving error: command not allowed. I've hit a brick wall so far til my battery drains or i take it to a repair shop which is i guess, last resort. Can't seem to find help anywhere on the internet, nothing returns anything to the screen.
Looks like a hard brick, take it to an official repair shop. But remember: unlocking the bootlader does NOT void the warranty.

PSA: Ticwatch E&S factory reset

This is just a friendly notice for Ticwatch E&S users. If you do anything that resets the watch back to default, it seems the device needs to boot to the stock recovery before it will boot back into the system. The only way to do this after flashing TWRP is to reboot to the bootloader and and run 'fastboot boot StockRecovery_TicwatchE.img' with the image file from the root thread by @EpicLPer. Normally, this wouldn't be a big deal but this could be an issue if you do this away from a PC where you can run fastboot.
This is also a big problem if you screw up and flash a broken TWRP and can't reboot into the bootloader. I was working on a recovery procedure for this but screwed the pooch on that too so I'm going to see if I can RMA the dead watch.
BackCheck said:
This is just a friendly notice for Ticwatch E&S users. If you do anything that resets the watch back to default, it seems the device needs to boot to the stock recovery before it will boot back into the system. The only way to do this after flashing TWRP is to reboot to the bootloader and and run 'fastboot boot StockRecovery_TicwatchE.img' with the image file from the root thread by @EpicLPer. Normally, this wouldn't be a big deal but this could be an issue if you do this away from a PC where you can run fastboot.
This is also a big problem if you screw up and flash a broken TWRP and can't reboot into the bootloader. I was working on a recovery procedure for this but screwed the pooch on that too so I'm going to see if I can RMA the dead watch.
Click to expand...
Click to collapse
You can flash the stock recovery and all other stuff via the Flash Tool. You don't have to RMA a dead flashed watch, you can recover 99% of all the bricks you do via that. But you'll have to ask @Luxios for that as I don't know how to correctly use it
He's also trying to make a hacked bootloader which allows you to boot into recovery and fastboot directly from the watch without ADB.
EpicLPer said:
You can flash the stock recovery and all other stuff via the Flash Tool. You don't have to RMA a dead flashed watch, you can recover 99% of all the bricks you do via that. But you'll have to ask @Luxios for that as I don't know how to correctly use it
He's also trying to make a hacked bootloader which allows you to boot into recovery and fastboot directly from the watch without ADB.
Click to expand...
Click to collapse
Flash Tool is a mighty powerful tool, alright. I couldn't find a good scatter file so in a caffeine deprived state I tried to cobble one together. I may have damaged the preloader. It does show up in device manager but it is different that the VCOM preloader device that was showing. Now it totally crashes Flash Tool too. I'm still working on it but since I have a second watch now, I might just RMA this one and start over.
Again, if anyone has a good scatter file please post it. I found one after the fact but I get errors and it's for another MT2601 device, not the Ticwatch.
The good news is I found if you power down the watch and hold the power button on boot you'll get a long vibrate. If you release the button and hit it 3 or 4 times during the vibrate you'll be in the bootloader.
Anyone have stock or even custom working system.img and boot.img?
great
thank you very much man, i was blocked in twrp recovery after a factory reset, and now i should have installed stock recovery, thanks to your post .

[OP6T] fastboot erase persist

Hello ALL!
I normally don't message much because usually I can find most of my problems can be fixed by searching threads online. However, this particular case for me has been exhausting because through trial and error I have been unsuccessful in getting my 6T to boot into any rom normally.
I went from a stock T-Mobile to International version to LOS. The reason I did what I did was because I could get a IMEI or SIM to register on LOS. That worked fine on OOS 9.0.11. but as soon a I flash the latest LOS, no sim, bootloader, or IMEI detection.
I was rooted and unlocked. Now I am neither.
While on LOS, someone on another forum suggested to erase the persist partition and reflash to get the sim imei back so the phone would get service, when the phone rebooted it still didn't work and then the second time it rebooted it always gets stuck on the boot screen and never boots into the OS.
I tried to repair and reflash but was unsuccessful.
Since doing all of that, Ive reflashed using msm tool and although that was successful for OOS 9.0.11 and T-Mobile stock rom. It gets stuck on the boot screens for both.
I flashed LOS on A & B so I don't have a stock recovery.
I can't ADB anymore. I can only seem to connect via FASTBOOT but cannot seem to flash anything because the BOOTLOADER is now LOCKED.
How can I get this phone back to its original state? What ever the persist partition is. Removing it had made the phone non-bootable.
What can I do to fix? I greatly appreciate any help to get the phone operational again.
Thank you all!
https://forum.xda-developers.com/oneplus-6t/how-to/rom-stock-fastboot-roms-oneplus-6t-t3862516
- Go to the thread linked above and download the latest OOS (.13) stable.
- Download latest Magisk.
- Have the latest TWRP .img downloaded and on-hand, you will use a few times as well as the installer .zip.
- Be sure to have adb/fastboot installed.
***BACK UP DATA, YOUR PHONE WILL BE WIPED. INTERNAL SD AS WELL***
***BACK UP DATA, YOUR PHONE WILL BE WIPED. INTERNAL SD AS WELL***
***BACK UP DATA, YOUR PHONE WILL BE WIPED. INTERNAL SD AS WELL***
- Put your phone into fastboot mode (reboot to bootloader).
- Go to the folder you downloaded in the first step and run the "flash all.bat".
- Ignore errors. If it's get stuck for more than 45 seconds, just hit enter to keep it going.
- OOS will boot. Go to settings, enable developer setting, enable advanced reboot and reboot bootloader again.
- Use "fastboot boot 'twrp-file-name'.img" to boot into TWRP.
- In TWRP, go to Reboot and changed the boot partition to the one NOT CURRENTLY enabled. In other words, switch boot partitions.
- Reboot bootloader.
- Go to the folder you downloaded in the first step and run the "flash all.bat" again.
- OOS will boot. Go to settings, enable developer setting, enable advanced reboot and reboot bootloader again.
- Use "fastboot boot 'twrp-file-name'.img" to boot into TWRP again.
- Move Magisk installer and TWRP installer from steps two and three onto the internal memory of your device.
- Flash TWRP, reboot recovery to make sure it sticks.
- Flash Magisk for root.
- Wipe dalvik and reboot system.
You will have the latest stable OOS on both partitions at this point! I literally just did this yesterday. Good luck!
..Cory.. said:
https://forum.xda-developers.com/oneplus-6t/how-to/rom-stock-fastboot-roms-oneplus-6t-t3862516
- Go to the thread linked above and download the latest OOS (.13) stable.
- Download latest Magisk.
- Have the latest TWRP .img downloaded and on-hand, you will use a few times as well as the installer .zip.
- Be sure to have adb/fastboot installed.
***BACK UP DATA, YOUR PHONE WILL BE WIPED. INTERNAL SD AS WELL***
***BACK UP DATA, YOUR PHONE WILL BE WIPED. INTERNAL SD AS WELL***
***BACK UP DATA, YOUR PHONE WILL BE WIPED. INTERNAL SD AS WELL***
- Put your phone into fastboot mode (reboot to bootloader).
- Go to the folder you downloaded in the first step and run the "flash all.bat".
- Ignore errors. If it's get stuck for more than 45 seconds, just hit enter to keep it going.
- OOS will boot. Go to settings, enable developer setting, enable advanced reboot and reboot bootloader again.
- Use "fastboot boot 'twrp-file-name'.img" to boot into TWRP.
- In TWRP, go to Reboot and changed the boot partition to the one NOT CURRENTLY enabled. In other words, switch boot partitions.
- Reboot bootloader.
- Go to the folder you downloaded in the first step and run the "flash all.bat" again.
- OOS will boot. Go to settings, enable developer setting, enable advanced reboot and reboot bootloader again.
- Use "fastboot boot 'twrp-file-name'.img" to boot into TWRP again.
- Move Magisk installer and TWRP installer from steps two and three onto the internal memory of your device.
- Flash TWRP, reboot recovery to make sure it sticks.
- Flash Magisk for root.
- Wipe dalvik and reboot system.
You will have the latest stable OOS on both partitions at this point! I literally just did this yesterday. Good luck!
Click to expand...
Click to collapse
Thank you but how can I flash if my bootloader is locked? Everything I try fails.
I guess the real question is: How can I get the phone to turn on OEM UNLOCK so I can fastboot unlock the Bootloader if it wont boot up the OS?
Is there a way to fix it via the msmdownload tool? Custom file maybe? I've tried the files 9.0.11 & 12 OOS files and all I get is the boot screen white ball logo circling the red ball - stuck in loop and same with stock t-mobile rom.
My friend, sounds like you need to restore your EFS partitions
... I'm trying to figure out how the hell you successfully flashed MSM tool in EDL mode and not have ALL your partitions restored. That tool is supposed to literally write the phone as it came out of the box. Also I think there are different MSM tools for each device respectively, you did use the T-Mobile one right?
Causical said:
My friend, sounds like you need to restore your EFS partitions
... I'm trying to figure out how the hell you successfully flashed MSM tool in EDL mode and not have ALL your partitions restored. That tool is supposed to literally write the phone as it came out of the box. Also I think there are different MSM tools for each device respectively, you did use the T-Mobile one right?
Click to expand...
Click to collapse
My thoughts exactly. So, when it was on LOS I erased the persist partition and that really messed things up. So yes, how can I restore the partition back with a locked bootloader? Every time I've used MSM tool it fixes everything. This time no such luck. I flashed 9.0.11 & 12 and then I did the T-Mobile version. All only boot to the boot screen and hang. In doing so, I wasn't thinking if that failed and it locks the bootloader, then what? I saw an old video somewhere on a oneplus 2 or 3 where the person used the msm tool 3.0 and fixed a bricked locked bootloader phone. Similar to the fastboot method of reformatting. In the msm tool folder he had all the image files for all the partitions not sure if that the same thing as msm tool 4.0 with just one ops image file?
Anyway, is there a way to unlock the bootloader without booting into the OS? Or a way to restore the partitions via msm tool?
defcondoc said:
My thoughts exactly. So, when it was on LOS I erased the persist partition and that really messed things up. So yes, how can I restore the partition back with a locked bootloader? Every time I've used MSM tool it fixes everything. This time no such luck. I flashed 9.0.11 & 12 and then I did the T-Mobile version. All only boot to the boot screen and hang. In doing so, I wasn't thinking if that failed and it locks the bootloader, then what? I saw an old video somewhere on a oneplus 2 or 3 where the person used the msm tool 3.0 and fixed a bricked locked bootloader phone. Similar to the fastboot method of reformatting. In the msm tool folder he had all the image files for all the partitions not sure if that the same thing as msm tool 4.0 with just one ops image file?
Anyway, is there a way to unlock the bootloader without booting into the OS? Or a way to restore the partitions via msm tool?
Click to expand...
Click to collapse
Try this and tell me if it works.
Have you tried this dudes stuff? https://forum.xda-developers.com/oneplus-6t/how-to/op6t-collection-unbrick-tools-t3914746
... Not even sure what it is really, just says collection of unbrick tools.
_Masked_ said:
Try this and tell me if it works.
Click to expand...
Click to collapse
Yes, I did try that. That is what I just flashed with the msm tool. Gets stuck on the OOS boot animation.
Causical said:
Have you tried this dudes stuff? https://forum.xda-developers.com/oneplus-6t/how-to/op6t-collection-unbrick-tools-t3914746
... Not even sure what it is really, just says collection of unbrick tools.
Click to expand...
Click to collapse
Looks like the MSM tool. I'm going to give 9.0.13 a try but I'm thinking I may have the same problem.
Causical said:
Have you tried this dudes stuff? https://forum.xda-developers.com/oneplus-6t/how-to/op6t-collection-unbrick-tools-t3914746
... Not even sure what it is really, just says collection of unbrick tools.
Click to expand...
Click to collapse
Tried 9.0.13. Still gets stuck on OOS boot animation screen. There's got to be something to flash to fix this.
So you're booting EDL mode then flashing the MSM tool that exactly matches the way your phone came stock? At this point I would discontinue trying to convert it to international or upgrade the OS to a more recent version or any of that. I would focus on strictly flashing it to exactly the way you bought it.
Causical said:
So you're booting EDL mode then flashing the MSM tool that exactly matches the way your phone came stock? At this point I would discontinue trying to convert it to international or upgrade the OS to a more recent version or any of that. I would focus on strictly flashing it to exactly the way you bought it.
Click to expand...
Click to collapse
Yes. I did flash the stock T-Mobile ROM via the MSM tool. Freezes at the pink T-Mobile boot screen. Pretty sure the partitions need to be fixed but I thought the MSM tool would do that? I guess not. Is there a more advanced MSM tool where I can see what's being partitioned or is the MSM tool not doing any partitioning and that's why the phone is having the boot problem?
defcondoc said:
Yes. I did flash the stock T-Mobile ROM via the MSM tool. Freezes at the pink T-Mobile boot screen. Pretty sure the partitions need to be fixed but I thought the MSM tool would do that? I guess not. Is there a more advanced MSM tool where I can see what's being partitioned or is the MSM tool not doing any partitioning and that's why the phone is having the boot problem?
Click to expand...
Click to collapse
I know this is a stupid question but have you tried a factory reset in recovery mode? I know its a stupid question but I did not see it asked or noted.
Scott said:
I know this is a stupid question but have you tried a factory reset in recovery mode? I know its a stupid question but I did not see it asked or noted.
Click to expand...
Click to collapse
No stupid questions and I don't mind repeating answers to questions. I have tried that, but it does nothing. I get wipe cache or reboot to fastboot or reboot to recovery. When I choose system wipe, it takes 1 second to finish. It reboots and it gets stuck on the boot screen. Ever since persist partition was deleted it just freezes on startup and now that the bootloader is locked I cant seem to get anything to work. MSM tool I thought was supposed to fix this sort of thing but it has failed. Someone must know a way to get back into the OS so I can turn on OEM Unlock.
How do you know your bootloader is locked?
Causical said:
How do you know your bootloader is locked?
Click to expand...
Click to collapse
Fastboot says bootloader is locked. Shows it on the fastboot screen. Wont let me transfer any files from pc to phone. I can start the transfer process but it fails.
defcondoc said:
Fastboot says bootloader is locked. Shows it on the fastboot screen. Wont let me transfer any files from pc to phone. I can start the transfer process but it fails.
Click to expand...
Click to collapse
So you're able to enter EDL mode with a locked bootloader? How do you know your computer is seeing your device in EDL mode?
I'm going to place this here for myself for now. I'm just trying to understand your situation a little better, but this is just for later.... maybe, depending on your answer. https://forum.xda-developers.com/an...how-to-reboot-to-edl-fastboot-t3394292/page12
ALSO; If you don't mind can you link the thread that contains the original discussion where your problem began?
Causical said:
So you're able to enter EDL mode with a locked bootloader? How do you know your computer is seeing your device in EDL mode?
I'm going to place this here for myself for now. I'm just trying to understand your situation a little better, but this is just for later.... maybe, depending on your answer. https://forum.xda-developers.com/an...how-to-reboot-to-edl-fastboot-t3394292/page12
ALSO; If you don't mind can you link the thread that contains the original discussion where your problem began?
Click to expand...
Click to collapse
The point of EDL is to get around any restrictions or issues with the device, so yes, you can boot to EDL while locked. Your link will not help much because he can already get to EDL. Not to mention he will have no ADB access. Whatever he does, he has to fix it in EDL.
OP: Are you up and running yet? I am willing to try copying out my partition and sending to you.
Let me know...
---------- Post added at 08:12 PM ---------- Previous post was at 08:08 PM ----------
Wait, I just realized that my persist.img would not work because he has no way to flash it.
Nevermind.

Stuck on Bootloop and Flashtool doesn't work...any XDA superheroes out there?

I followed step by step: https://clickitornot.com/install-twrp-recovery-and-root-sony-xperia-x-compact/
(the xda guides lingo was hard to understand and follow, I'm a noob at rooting sony phones. I don't have previous knowledge so I followed the above)
-Got stuck in TWRP recovery mode after following the link posted.
-Looked into it and read something about a boot.img missing?
-Downloaded boot.img from here: https://forum.xda-developers.com/x-compact/how-to/stock-8-0-root-recovery-t3747479
-Flashed recovery on boot_32.img via TWRP, now screen stays at white Sony logo. Cannot go into TWRP at all, computer doesn't recognize phone and Sony flash tools does not recognize phone.
I just need this phone to root and turn on so I can get my old photos and conversation back. :crying:
Been stuck for 12 hours...any help is much appreciated!
1 - what do you ultimately want, rooted stock rom, custom rom, or...?
2 - what was the state of your phone when you started, (fully stock, which fw version, etc)?
3 - Did you do anything else to it besides flashing twrp and flashing boot.img?
levone1 said:
1 - what do you ultimately want, rooted stock rom, custom rom, or...?
2 - what was the state of your phone when you started, (fully stock, which fw version, etc)?
3 - Did you do anything else to it besides flashing twrp and flashing boot.img?
Click to expand...
Click to collapse
1. Anything, I simply just need it to work so I can use a software to get my lost data. In order to get my data back the phone needs to be rooted under the prerequisites for the Dr. Fone software.
2.Fully stock android 8.0
3. No, it was fine and I went through dozens of threads and youtube tutorials. It kept going into TWRP exclusively until I flashed boot.img now it just boot loops or crashes on the white sony screen.
(BTW, my phone finally has been recognized by Flash Tools (Emma). I have updated it via Emma but it has done absolutely nothing.
ThisAintEz said:
1. Anything, I simply just need it to work so I can use a software to get my lost data. In order to get my data back the phone needs to be rooted under the prerequisites for the Dr. Fone software.
2.Fully stock android 8.0
3. No, it was fine and I went through dozens of threads and youtube tutorials. It kept going into TWRP exclusively until I flashed boot.img now it just boot loops or crashes on the white sony screen.
(BTW, my phone finally has been recognized by Flash Tools (Emma). I have updated it via Emma but it has done absolutely nothing.
Click to expand...
Click to collapse
So the whole Emma process completed successfully, but the phone still won't boot? That's strange, because Emma usually overrides everything, (including your userdata, I think, so if you wanted to save it, that may have been the wrong thing to do). If all you did was flash a bad boot img, then re-flashing stock fw should solve the problem, but you might lose your data with Emma, so Androxyde Flashtool might be better choice, since it gives you the option.
Did you unlock the bootloader? If not, then nothing is going to work. If you did, then it will be easy to get the phone booted again...
levone1 said:
So the whole Emma process completed successfully, but the phone still won't boot? That's strange, because Emma usually overrides everything, (including your userdata, I think, so if you wanted to save it, that may have been the wrong thing to do). If all you did was flash a bad boot img, then re-flashing stock fw should solve the problem, but you might lose your data with Emma, so Androxyde Flashtool might be better choice, since it gives you the option.
Did you unlock the bootloader? If not, then nothing is going to work. If you did, then it will be easy to get the phone booted again...
Click to expand...
Click to collapse
The phone itself has been factory reset (long story short x compact said my password was incorrect and factory reset, itself after numerous tries, even though I only have one password) so I know my info is gone but the software can get the most of the things I want.
Yes, boot loader is unlocked. I have basically rooted it but the last step of actually getting to use it is out of reach.
ThisAintEz said:
The phone itself has been factory reset (long story short x compact said my password was incorrect and factory reset, itself after numerous tries, even though I only have one password) so I know my info is gone but the software can get the most of the things I want.
Yes, boot loader is unlocked. I have basically rooted it but the last step of actually getting to use it is out of reach.
Click to expand...
Click to collapse
For TWRP recovery, you need to flash via fastboot. I wasn't clear what you were saying about how you did it before. You should,
- Download TWRP img file (there is official TWRP for xc, so download the latest from TWRP site)
- Open command prompt in the directory you downloaded it to
- Connect the phone in fastboot mode, (power off > hold volume up while connecting cable and don't let go of the button until you see blue led)
- Type
Code:
fastboot flash recovery (name of file).img
Then you can boot into recovery by powering off, and holding volume down while powering on. Then do a reset in recovery.
Now you'll need to flash a boot img...
You said it was stock 8.0, but do you know if it was the latest update? (fw ending in. 118) If so, and if your system files are still intact, then you should be able to download this - https://mega.nz/#!14VkzCCB!GK-KEv0A-ZyhysXc1-IusyJjJEB-D5ZWOLm1DRt31tA - (it's a boot img), and flash it with fastboot. So,
- Download the boot img file
- Open a command prompt in the directory you downloaded it
- Connect the phone in fastboot mode, (power off > hold volume up while connecting cable and don't let go of the button until you see blue led)
- Type in command prompt,
Code:
fastboot flash boot (name of file).img
- Reboot
I'm assuming that since you used Emma already that you have drivers installed, so should work. If the commands complete successfully, but your phone still doesn't boot, then probably system is messed up, and you'll have to flash a new rom.
levone1 said:
For TWRP recovery, you need to flash via fastboot. I wasn't clear what you were saying about how you did it before. You should,
- Download TWRP img file (there is official TWRP for xc, so download the latest from TWRP site)
- Open command prompt in the directory you downloaded it to
- Connect the phone in fastboot mode, (power off > hold volume up while connecting cable and don't let go of the button until you see blue led)
- Type
Code:
fastboot flash recovery (name of file).img
Then you can boot into recovery by powering off, and holding volume down while powering on. Then do a reset in recovery.
Now you'll need to flash a boot img...
You said it was stock 8.0, but do you know if it was the latest update? (fw ending in. 118) If so, and if your system files are still intact, then you should be able to download this - https://mega.nz/#!14VkzCCB!GK-KEv0A-ZyhysXc1-IusyJjJEB-D5ZWOLm1DRt31tA - (it's a boot img), and flash it with fastboot. So,
- Download the boot img file
- Open a command prompt in the directory you downloaded it
- Connect the phone in fastboot mode, (power off > hold volume up while connecting cable and don't let go of the button until you see blue led)
- Type in command prompt,
Code:
fastboot flash boot (name of file).img
- Reboot
I'm assuming that since you used Emma already that you have drivers installed, so should work. If the commands complete successfully, but your phone still doesn't boot, then probably system is messed up, and you'll have to flash a new rom.
Click to expand...
Click to collapse
Thank you, the good news is I can finally get back into TWRP, so that's a relief! I appreciate you for saving me there!
I followed the instructions with the boot.img with the following script
max download size of 536870912 bytes
sending 'boot' (17220 KB)...
OKAY [ 0.556s]
writing 'boot'...
OKAY [ 0.113s]
finished. total time: 0.673s
But I'm back to square one with the screen prompt "your devices has been unlocked and cant be trusted. Your device will boot in 5 sec" with the Sony white screen back to the "your device has been unlocked" screen and then it freezes at the Sony white screen. The only way i can turn off my phone from here is Power button + volume up
ThisAintEz said:
Thank you, the good news is I can finally get back into TWRP, so that's a relief! I appreciate you for saving me there!
I followed the instructions with the boot.img with the following script
max download size of 536870912 bytes
sending 'boot' (17220 KB)...
OKAY [ 0.556s]
writing 'boot'...
OKAY [ 0.113s]
finished. total time: 0.673s
But I'm back to square one with the screen prompt "your devices has been unlocked and cant be trusted. Your device will boot in 5 sec" with the Sony white screen back to the "your device has been unlocked" screen and then it freezes at the Sony white screen. The only way i can turn off my phone from here is Power button + volume up
Click to expand...
Click to collapse
So now you can just decide if you want to go the route of stock rom or custom. Quickest choice to get the phone booted would probably be Omni or something. Just download the rom, download the oem file, and flash in fastboot. Check the Omni threads in "Roms" forum... If you wanted to go stock, I would suggest Androxyde Flashtool, but would be a few more steps... Or you could try Emma again...
levone1 said:
So now you can just decide if you want to go the route of stock rom or custom. Quickest choice to get the phone booted would probably be Omni or something. Just download the rom, download the oem file, and flash in fastboot. Check the Omni threads in "Roms" forum... If you wanted to go stock, I would suggest Androxyde Flashtool, but would be a few more steps... Or you could try Emma again...
Click to expand...
Click to collapse
I tried Emma again but my phone is still frozen on the white Sony screen. I checked out the ROM threads but the "download weekly" links are down for both Pie 9.0 and Oreo 8.1
ThisAintEz said:
I tried Emma again but my phone is still frozen on the white Sony screen. I checked out the ROM threads but the "download weekly" links are down for both Pie 9.0 and Oreo 8.1
Click to expand...
Click to collapse
Strange - I wonder what's going on... I might have a zip I can upload. Meanwhile, maybe try Lineage - https://forum.xda-developers.com/x-compact/development/rom-lineageos-16-0-xperia-x-compact-t4080903
levone1 said:
Strange - I wonder what's going on... I might have a zip I can upload. Meanwhile, maybe try Lineage - https://forum.xda-developers.com/x-compact/development/rom-lineageos-16-0-xperia-x-compact-t4080903
Click to expand...
Click to collapse
Thank you for your help! I checked out the thread but I'm not advanced enough to understand the steps without it being written out as I'm still new to this. Is their any links or tutorials you would recommend? My apologies!
ThisAintEz said:
Thank you for your help! I checked out the thread but I'm not advanced enough to understand the steps without it being written out as I'm still new to this. Is their any links or tutorials you would recommend? My apologies!
Click to expand...
Click to collapse
- Download the zip - https://drive.google.com/open?id=14iXmvLOMXLoZdJoCahcRhBzbUr1Eu7gw (There are 2 options, just pick one - one's a little newer)
- Copy to phone's SD card
- Boot to recovery
- Choose "wipe data/factory reset"
- Choose "install", and select the zip file you downloaded
- Reboot
There are more options, but I think you want to just get the phone to boot at this point. You can do more later if you want...
BTW - what is happening when you flash with Emma? I haven't seen it ever flash successfully, but not work on the phone. Are you getting errors?
levone1 said:
- Download the zip - https://drive.google.com/open?id=14iXmvLOMXLoZdJoCahcRhBzbUr1Eu7gw (There are 2 options, just pick one - one's a little newer)
- Copy to phone's SD card
- Boot to recovery
- Choose "wipe data/factory reset"
- Choose "install", and select the zip file you downloaded
- Reboot
There are more options, but I think you want to just get the phone to boot at this point. You can do more later if you want...
BTW - what is happening when you flash with Emma? I haven't seen it ever flash successfully, but not work on the phone. Are you getting errors?
Click to expand...
Click to collapse
Much appreciated! I will try that out soon. Regarding Emma it seems pretty useless, unless I'm missing something. Every time I use it, it says it's successful but nothing changes.
LEVONE1 YOU ARE THE MAN!!! I cannot thank you enough! It worked! You made my day, I appreciate your patience and willingness to help a stranger out even when you didn't have to!
ThisAintEz said:
LEVONE1 YOU ARE THE MAN!!! I cannot thank you enough! It worked! You made my day, I appreciate your patience and willingness to help a stranger out even when you didn't have to!
Click to expand...
Click to collapse
Glad to hear it... It's been done for me more than once, so....
Maybe your happy with Lineage, but if you're feeling ambitious, you can start messing around with Androxyde Flashtool, and getting back to stock, and you can try my eXistenZ port - https://forum.xda-developers.com/x-compact/themes/existenz-xc-t3867917 - I think eXistenZ is the best rom for this phone, (probably for Sony phones overall). The downside is that it is based on stock, so no updates since 2018 for XC...
The processes are a bit more complicated, so might take some time / learning to get it down, but with TWRP, you can always make a quick backup, and flash right back to where you were any time...
levone1 said:
Glad to hear it... It's been done for me more than once, so....
Maybe your happy with Lineage, but if you're feeling ambitious, you can start messing around with Androxyde Flashtool, and getting back to stock, and you can try my eXistenZ port - https://forum.xda-developers.com/x-compact/themes/existenz-xc-t3867917 - I think eXistenZ is the best rom for this phone, (probably for Sony phones overall). The downside is that it is based on stock, so no updates since 2018 for XC...
The processes are a bit more complicated, so might take some time / learning to get it down, but with TWRP, you can always make a quick backup, and flash right back to where you were any time...
Click to expand...
Click to collapse
Will do. Cheers!

Categories

Resources