[Q] How to restore Xperia XA2 stock boot image? - Sony Xperia XA2 Questions & Answers

Hi!
I have a problem with my new Sony Xperia XA2. When I got my new phone I decided to flash LineageOS 16.0 (the unofficial build from LuK1337), however the Lineage-build is not the problem. I got the problem when I tried to flash TWRP and Magisk, and I've realised that I did it too quick.
Here's what I did:
0. Unlocked bootloader
1. Booted TWRP
2. Flashed LineageOS
3. Flashed GAPPS.
4. Flashed Magisk.
So far, so good. This worked.
5. Decided to flash TWRP to get rid of the standard recovery.
6. Now both the standard recovery and TWRP seems to be gone.
Is there a way to revert to the standard recovery? I've tried to download FlashTool and XperiFirm, and I've downloaded the correct stock image for my Xperia XA2 Dual (H4113), but I cannot get it to only flash the bootloader.
My understanding is that the recovery and bootloader resides on the same partition. Is this correct?
When I try to flash the bootloader with FlashTool, I get an error stating that the device is identifying as H3113, which is the single-sim-version.
Thank you for the help!

I managed to get my phone working again by using Emma, as I had managed to soft-brick my phone. The bootloader said that the phone was corrupt, and turned off after 5 seconds. Using Emma and the bundled USB-C-USB-A-cable did the trick for me.
Now I'm going to install TWRP once more, and hopefully I'll manage it correctly this time.

My understanding is that we cannot install TWRP as a replacement recovery on this device because there is no true recovery partition. It's part of the boot partition. Hopefully someone will come along and correct me if I'm wrong.

You can install twrp on a/b devices. However, it installs to /boot. Thus every upgrade kills it. Which really sucks as lineage recovery sucks bad.

hjahre said:
Hi!
I have a problem with my new Sony Xperia XA2. When I got my new phone I decided to flash LineageOS 16.0 (the unofficial build from LuK1337), however the Lineage-build is not the problem. I got the problem when I tried to flash TWRP and Magisk, and I've realised that I did it too quick.
Thank you for the help!
Click to expand...
Click to collapse
Hello,
sorry for the delay.
You can use EMMA to flash back the stock firmware, however if you don't want your data lost, use flashtool ( http://flashtool.net ) and make sure your userdata is Wipe Excluded

what is the trick of USB-C-USB-A
Hello friend, what is the trick of USB-C-USB-A, can you explain it, because I can not get flashtools to work on my sony xa2, explain me the trick please

cristianrb said:
Hello friend, what is the trick of USB-C-USB-A, can you explain it, because I can not get flashtools to work on my sony xa2, explain me the trick please
Click to expand...
Click to collapse
There's really no trick to it. Just plug the cable bundled with the phone and plug it into your PC.
My problem was that I've got a Macbook Pro that only have USB-C ports. When I tried a cable with USB-C connectors in both ends, my phone would not let me flash from my computer. When I used the bundled cable and a USB-hub it worked as it should

Related

stuck on twrp

i bricked my moto z play. i somehow after many days got twrp on the phone. since the phone is encrypted i had many issues. anyway got it installed. my system as far as i could tell did not exist. i put sept.zip on a flash drive and connected it and it was there under usb otg. so i installed it. the fie appears to be on the system. (i saw it in the files twrp has). but i cannot get it to work. i reboot it. and back to twrp. PLEASE HELP!!!!
I think you need to flash the official software through fastboot and get back to stock Nougat somehow. Try booting into fastboot iff you can do that its not bricked. Bricked means when the phone is off and doesnt respongd or switch on at all.
Iff. you can get into fastboot you can reinstall the official nougat software and there are guides somewhere on this forum how to do that.
You have twrp, download and install the rom from here https://forum.xda-developers.com/moto-z-play/development/rom-nov-patch-npns26-118-22-2-8-t3717037
You'll lose everything on your phone, but if it's not booting now anyway....
punkerEVO said:
You'll lose everything on your phone, but if it's not booting now anyway....
Click to expand...
Click to collapse
Usually it is not necessary to lose anything.
First: use twrp to do backup of data. Don't forget data/media which is not included, there are your photos.
Second: flash the ROM you want, but omit the command "erase userdata". Then your data should (!) survive.

[RECOVERY][UNOFFICIAL][TWRP] For Sony Xperia T3 D5103 (seagull)

Hi guys, I decided to start modding this smartphone, now that I have a computer capable of compiling in a few hours.
I ported TWRP 3.0, based on Omni 6.0 source to this device. There are a few things not working and I need other people's help and feedback.
READ FULL GUIDE AND NOTES BEFORE FLASHING!!!
-Necessary steps:
Unlock bootloader. Here's a guide from Sony
-How to install:
1)From computer, open a terminal (Linux and MacOS) or command prompt (Windows) where you saved the file (download below). (Linux And MacOS. On Linux you'll need to flash with sudo) or where you have the platform-tools (Windows)
2)Poweroff your phone.
3)Boot into bootloader by pressing Volume+ button while connecting the usb cable into the usb port (the usb cable has to be inserted into the computer's port too, to successfully boot into fastboot)
4)With unlocked bootloader, type fastboot flash recovery twrp_3.0.2-0-seagull-UNOFFICIAL.img, if you renamed the files, substitube "twrp_3.0.2-0-seagull-UNOFFICIAL.img" with your file name or the directory where you saved the file.
5)When you see the OK message from fastboot, disconnect your phone.
6)Press Power, Volume+ and Volume- untile the phone vibrates.
7)Release Volume+ key. When you see the Sony logo appear, wait 3-4 seconds and then release Power button.
8)You should see TWRP bootscreen after a few seconds
-What's working:
Almost all. I could succesfully flash GApps and Root packages from this recovery, Backup, Restore and Wipe partitions. Settings work fine. Terminal and File manager work.
-What's NOT working:
Can't read files MicroSD or USB-OTG, can't browse in them and can't wipe. Investigating about it.
-Download:
(GDrive) Version 3.0.2-1
(AFH) Version 3.0.2-1
-Source and guide to build:
https://github.com/EmaMaker/device-sony-seagull/tree/twrp-3.0
Changelog:
30/04/2018: I think I fixed the screen problem by using the Lollipop kernel instead of the Marshmellow one
Thanks Everyone
Cool, although upon booting into recovery the screen isn't operating normally, similar to what happens when flashing the fxp lollipop. Might be because I'm on stock ROM/kernel though.
What do you mean with "isn't operating normally"? The screen only displays coloured bands? If so, it should have be fixed, maybe only the download link is wrong. Tell me, I'll fix in a minute
EmaMaker said:
What do you mean with "isn't operating normally"? The screen only displays coloured bands? If so, it should have be fixed, maybe only the download link is wrong. Tell me, I'll fix in a minute
Click to expand...
Click to collapse
Yes, sorry for not being more specific xD, I'm indeed getting the white-grey bands on screen.
---------- Post added at 11:25 AM ---------- Previous post was at 11:10 AM ----------
It's possible it's the lollipop kernel that's to blame, since I've had the same problem with other lollipop builds.
Fixed
Download link fixed with working version
EmaMaker said:
Download link fixed with working version
Click to expand...
Click to collapse
Will try it and report back ?
Tried the updated one, still no luck. It could be just my device though.
Try the one from AFH. I really don't know why. The 3.0.2-1 version works on both my two seagulls
EmaMaker said:
Try the one from AFH. I really don't know why. The 3.0.2-1 version works on both my two seagulls
Click to expand...
Click to collapse
Tried both versions, so it's probably my device.
(However, if it is it's fine, since I do have working twrp.)
Does this build require an updated bootloader to allow access to the "recovery" partition?
I've got a T3 with a successfully unlocked bootloader, but fastboot gives an error (something about a missing partition table) when I try flashing anything to recovery.
Google tells me that Sony released an updated bootloader some time ago which ought to make a recovery partition available, but I cannot find any active links or instructions for downloading and installing it anywhere,
Don't know
goosnarrggh said:
Does this build require an updated bootloader to allow access to the "recovery" partition?
I've got a T3 with a successfully unlocked bootloader, but fastboot gives an error (something about a missing partition table) when I try flashing anything to recovery.
Google tells me that Sony released an updated bootloader some time ago which ought to make a recovery partition available, but I cannot find any active links or instructions for downloading and installing it anywhere,
Click to expand...
Click to collapse
One of my two seagulls came back from assistance and I tried to flash TWRP on it without any problems. I don't know if it had an updated bootloader or what, but the firmware was stock
goosnarrggh said:
Does this build require an updated bootloader to allow access to the "recovery" partition?
I've got a T3 with a successfully unlocked bootloader, but fastboot gives an error (something about a missing partition table) when I try flashing anything to recovery.
Google tells me that Sony released an updated bootloader some time ago which ought to make a recovery partition available, but I cannot find any active links or instructions for downloading and installing it anywhere,
Click to expand...
Click to collapse
In order to flash recovery, you first need to download and install the Emma flashtool and restore your phone through it. That will add a recovery partition so you can flash twrp. (The Emma flash tool supports only the D5103 model of the T3 as far as I know)
I tink you will have the same as the eagle (m2) device, you need to update your bootloader and then flash recovery...
EmaMaker said:
Hi guys, I decided to start modding this smartphone, now that I have a computer capable of compiling in a few hours.
I ported TWRP 3.0, based on Omni 6.0 source to this device. There are a few things not working and I need other people's help and feedback.
READ FULL GUIDE AND NOTES BEFORE FLASHING!!!
-Necessary steps:
Unlock bootloader. Here's a guide from Sony
-How to install:
1)From computer, open a terminal (Linux and MacOS) or command prompt (Windows) where you saved the file (download below). (Linux And MacOS. On Linux you'll need to flash with sudo) or where you have the platform-tools (Windows)
2)Poweroff your phone.
3)Boot into bootloader by pressing Volume+ button while connecting the usb cable into the usb port (the usb cable has to be inserted into the computer's port too, to successfully boot into fastboot)
4)With unlocked bootloader, type fastboot flash recovery twrp_3.0.2-0-seagull-UNOFFICIAL.img, if you renamed the files, substitube "twrp_3.0.2-0-seagull-UNOFFICIAL.img" with your file name or the directory where you saved the file.
5)When you see the OK message from fastboot, disconnect your phone.
6)Press Power, Volume+ and Volume- untile the phone vibrates.
7)Release Volume+ key. When you see the Sony logo appear, wait 3-4 seconds and then release Power button.
8)You should see TWRP bootscreen after a few seconds
-What's working:
Almost all. I could succesfully flash GApps and Root packages from this recovery, Backup, Restore and Wipe partitions. Settings work fine. Terminal and File manager work.
-What's NOT working:
Can't read files MicroSD or USB-OTG, can't browse in them and can't wipe. Investigating about it.
-Download:
(GDrive) Version 3.0.2-1
(AFH) Version 3.0.2-1
-Source and guide to build:
https://github.com/EmaMaker/device-sony-seagull/tree/twrp-3.0
Changelog:
30/04/2018: I think I fixed the screen problem by using the Lollipop kernel instead of the Marshmellow one
Thanks Everyone
Click to expand...
Click to collapse
Hi
I'm playing with my old Xperia T3 recently and I was able to unlock bootloader and install your TWRP on my device. I'm able to boot into recovery with the method you described. But since my power buton is in a quite bad condition, I'm looking for another way to boot into twrp. I rooted my Xperia with Magisk and I tried to enter recovery from it, but the phone just rebooted. The same happend when I tried to enter recovery from terminal. What can be the cause? Is there any other reliable way to boot into your twrp?
Cheers
Lord Sithek said:
Hi
I'm playing with my old Xperia T3 recently and I was able to unlock bootloader and install your TWRP on my device. I'm able to boot into recovery with the method you described. But since my power buton is in a quite bad condition, I'm looking for another way to boot into twrp. I rooted my Xperia with Magisk and I tried to enter recovery from it, but the phone just rebooted. The same happend when I tried to enter recovery from terminal. What can be the cause? Is there any other reliable way to boot into your twrp?
Cheers
Click to expand...
Click to collapse
Maybe you can try by holding down the volume down button when rebooting, it may work.
In other case, I think the only option is fixing the button
Best regards
EmaMaker said:
Maybe you can try by holding down the volume down button when rebooting, it may work.
In other case, I think the only option is fixing the button
Best regards
Click to expand...
Click to collapse
Oh, thx for your reply, I didn't expect it really after so many days This method doesn't work, unfortunately. But I won't bother fixing the power button, actually Ive just being using my old Xperia for testing purposes only. But thank you anyway :good:
Regards
Sent from my mido using XDA Labs
Boot loop
Lord Sithek said:
Hi
I'm playing with my old Xperia T3 recently and I was able to unlock bootloader and install your TWRP on my device. I'm able to boot into recovery with the method you described. But since my power buton is in a quite bad condition, I'm looking for another way to boot into twrp. I rooted my Xperia with Magisk and I tried to enter recovery from it, but the phone just rebooted. The same happend when I tried to enter recovery from terminal. What can be the cause? Is there any other reliable way to boot into your twrp?
Cheers
Click to expand...
Click to collapse
my device is d5102 xperia t3
So i followed these steps as per instructed after unlock boot loader.
i got ok message from fastboot
but now its not booting up
and not even boot into recovery ( i tried to boot into recovery mode as per the steps but each time it just vibrate 3 times and then after 2 seconds again it will vibrates 3 times , i don't get even sony logo or boot screen or error)
device dead ?
completely help less , please help if possible !:crying:
sushil lad said:
my device is d5102 xperia t3
So i followed these steps as per instructed after unlock boot loader.
i got ok message from fastboot
but now its not booting up
and not even boot into recovery ( i tried to boot into recovery mode as per the steps but each time it just vibrate 3 times and then after 2 seconds again it will vibrates 3 times , i don't get even sony logo or boot screen or error)
device dead ?
completely help less , please help if possible !:crying:
Click to expand...
Click to collapse
Sorry bro, I don't own this device anymore and I truly don't remember the procedure...
Sent from my SM-T720 using XDA Labs
sushil lad said:
Boot loop
my device is d5102 xperia t3
So i followed these steps as per instructed after unlock boot loader.
i got ok message from fastboot
but now its not booting up
and not even boot into recovery ( i tried to boot into recovery mode as per the steps but each time it just vibrate 3 times and then after 2 seconds again it will vibrates 3 times , i don't get even sony logo or boot screen or error)
device dead ?
completely help less , please help if possible !:crying:
Click to expand...
Click to collapse
same me too

ZUK Z2 treble rom problem

I tried to flash treble oreo rom on ZUK Z2, however I accidently flashed vendor to factory instead of factory to vendor. Because of that, although I can use my phone normally, my computer and TWRP recovery doesn't recognize my phone. So, I can't flash any new rom or copy new file to my phone through computer. Is there any way to restore my phone into its original state? I've searched through my fourms but i wasn't able to get any clear answer. (Sorry for bad english, i'm not an native englsih speaker)
alpha2016 said:
I tried to flash treble oreo rom on ZUK Z2, however I accidently flashed vendor to factory instead of factory to vendor. Because of that, although I can use my phone normally, my computer and TWRP recovery doesn't recognize my phone. So, I can't flash any new rom or copy new file to my phone through computer. Is there any way to restore my phone into its original state? I've searched through my fourms but i wasn't able to get any clear answer. (Sorry for bad english, i'm not an native englsih speaker)
Click to expand...
Click to collapse
Try flashing the official twrp. Maybe it'll solve your problem.
Go through the same steps but with the right zip this time.
Problem solved
I completely changed the computer and USB cables and iy worked my computer finally recognized the phone and Twrp also recogbized partition. Thanks

Rooting Xa1 Plus (G3412) - Recovery problem

Hello community!!
This is my first post here ^^
So I'm trying to root my g3412. After struggling to find drivers for S1 Fastboot, I successfully unlocked my bootloader (via Flashtool) . The only thing left is to flash the TWRP recovery and root it.
But I'm experiencing some weird problems.
When I'm trying to flash the recovery using ADB everything seems ok but when i try to turn on my phone it bootloops between the "your phone cannot be trusted" message and the Sony logo. After i freaked out for a couple of hours i found out that the only way to overcome this loop is to flash a fresh stock rom via FlashTool.
I'm back at step 1 and i can't really find a way to flash the recovery so i can continue my rooting process..
Also I think i found out while searching that g3412 doesn't have a stock recovery, so i guess that has to be considered as well.
Any ideas??
Thank you all in advance!!
You better change your handset...
Well i'm sorry to say but you can't root xperia xa1 plus,. the reason is there is no working TWRP for this mobile... I've tried almost every boot img on internet, none of them worked.... you better change your handset.. as there will be no TWRP img in future...

G4 only boots to TWRP

I recently dug out my old G4 to see if I can repurpose it for anything or just have it as a back up.
It's an H815 European variant with unlocked bootloader. When I last used it I had it running a custom ROM but when I got a new phone I wiped it somehow with TWRP (this is a few years ago so I can't remember).
Now whenever I turn it on, it boots into TWRP. If from TWRP I choose reboot to system, it boots to TWRP.
I tried to install a ROM but it wouldn't, giving the error "this ROM is for P1,G4,H815 (or something like that), your device is .".
So, I edited the ROM metadata and took out the device requirements and it installed fine, as did GAPPs & SuperSU, but still it only boots to TWRP. I've flashed bootloaders, kernels, god knows what else, but it only boots to TWRP. That's it.
I also tried to return it to stock using these: https://forum.xda-developers.com/g4/general/guide-lg-g4-stock-firmware-to-stock-kdz-t3107848 but it had errors connecting to servers and never installed anything.
I'm aware that I won't be able to recover anything on the device and that's fine! I just want to boot it with ANY ROM, and I'd be grateful for any help! Thanks!
mrmrchoice said:
I recently dug out my old G4 to see if I can repurpose it for anything or just have it as a back up.
It's an H815 European variant with unlocked bootloader. When I last used it I had it running a custom ROM but when I got a new phone I wiped it somehow with TWRP (this is a few years ago so I can't remember).
Now whenever I turn it on, it boots into TWRP. If from TWRP I choose reboot to system, it boots to TWRP.
I tried to install a ROM but it wouldn't, giving the error "this ROM is for P1,G4,H815 (or something like that), your device is .".
So, I edited the ROM metadata and took out the device requirements and it installed fine, as did GAPPs & SuperSU, but still it only boots to TWRP. I've flashed bootloaders, kernels, god knows what else, but it only boots to TWRP. That's it.
I also tried to return it to stock using these: https://forum.xda-developers.com/g4/general/guide-lg-g4-stock-firmware-to-stock-kdz-t3107848 but it had errors connecting to servers and never installed anything.
I'm aware that I won't be able to recover anything on the device and that's fine! I just want to boot it with ANY ROM, and I'd be grateful for any help! Thanks!
Click to expand...
Click to collapse
Go to thw official TWRP thread and flash the latest preview TWRP version.
Sent from my OnePlus 6T using XDA Labs
Try latest rom and one by one different rom. It's rom related issue. Don't worry, it'll be okay.

Categories

Resources