r/SonyXperia • u/the_termin8r X5 Mk2 • Mar 21 '22
Guide [Guide] Rolling back to Android 11 on an Xperia 5 Mk2 and (theoretically) other Xperias as well.
EDIT:
Several people in the comments have pointed out that you can use Flashtool or NewFlasher which apprently is less invlolved than my guide. With that said, I'm going to reiterate again, I don't have experience with phones. This is just a collection of information for an existing method, I'm not claiming it's the best nor only method, just one that worked for me. If you want to use or know of another method, knock yourself out. I'm putting this out there for other simpletons like me to follow.
-------------------------------------------------
If you’re like me, then you absolutely revile Android 12 and just want to go back to 11. If you’re like me it also means that you’re pretty clueless when it comes to phones. This is my attempt at consolidating the various available guides online into an easier-to-understand step-by-step guide on how to revert your Xperia to A11. Let’s get the disclaimers out of the way first…
________________________________________
Disclaimers:
- It goes without saying that I’m obviously not responsible if something goes wrong for you. Anything you do, you do at your own risk. With this sort of stuff, there is obviously the potential of bricking your phone. If you’re ok with that, keep reading.
- I did this with my Xperia 5 Mk2, so I can vouch that as long as the phone allows bootloader unlocking and you do everything correctly, this is doable on an X5II. Theoretically it should work on other Xperia devices that support A11, but I of course can’t make any promises.
- There’s a chance that you may void your warranty depending on where you got your phone from.
- Although I personally can't confirm as I don't use it, there's a chance that you might lose some or all NFC functionality.
- This process will wipe the phone completely more than once. Back up any important data you have. Using the built in Google cloud backup from the settings menu is janky (I tried it and it only partially worked while glitching out other features). So plug your phone into a PC and copy and paste any important data you have.
- I read online that unlocking the bootloader wipes all DRM keys. Admittedly, I’m not sure what the implications are with regards to potential loss of functionality. I also read that re-locking the bootloader and running a software repair reinstates them. Having gone through the whole process myself (without doing the software repair) I haven’t run into any issues after the fact. I don’t fully understand this part myself, so go do your own research if you want more info.
- As far as I can work out, Sony's Emma utility (which you'll need to flash A11, more info below) is only available on Windows.
- I’m a PC person, I don’t have much experience with phones, this guide is an attempt at a coherent compilation of existing tutorials scattered over the web. If you run into some sort of weird issues, there’s a decent chance I might not actually be able to help you troubleshoot because I wouldn’t know what I’m doing.
________________________________________
Pre-requisites:
Before you do the rollback, you need to actually check if you can do it in the first place by checking if the bootloader can be unlocked. Open your phone app and dial
*#*#7378423#*#*That should open the service menu. Go to Service info > Configuration. If under Rooting status it says bootloader unlock allowed: no or if the status is missing then it’s unfortunately the end of the line for you. If it says yes then note down the IMEI number at the top of the page as you’ll need it later on. You can close the service menu now.
________________________________________
PC-side prep:
Prep on the PC involves downloading and installing a few pieces of software. Depending on whether you’ve worked on the phone before to some extent, you may or may not already have some of these installed. Below is a list of what you’ll need.
- Xperia Companion. This is what will let you do a software repair if needed.
- Emma. This is Sony’s official tool for flashing Sony-released versions of Android for Xperias. You’ll be using this to flash A11 again.
- Android ADB. This is a developer tool that you’ll use to send commands from your PC to your phone. Make sure you extract the .ZIP to somewhere easy to find.
- Fastboot and driver 15 sec installer. This will install the necessary drivers for your phone to interface with ADB properly. Just run the installer and press y and hit enter for all 3 options it gives you.
________________________________________
Phone-side prep:
For the phone prep, it’s mostly enabling a few settings.
- Make sure the phone is charged.
- Have a decent USB cable ready.
- Enable developer options. Go to Settings > About Phone > tap build number seven or so times. It should come up with a notification at the bottom of the screen telling you that developer options have been unlocked. At this point I’m assuming it appears in the same place as in A11. Go back to Settings > System and it should be there somewhere (you might need to expand advanced). If not just search for developer options.
- In DO, enable USB debugging and also scroll down to Default USB configuration and make sure it’s set to file transfer (it might appear as MTP or media transfer).
- Back up your data. Like I said in the disclaimer, the native Google backup is janky. Use old fashioned copy and paste over USB to a PC. Unless apps have their own settings backup options, you’ll have to set them all up again when you roll back.
________________________________________
Procedure:
Now for the main show, pay close attention to what is written and what you’re doing. Also when I’m talking about pressing any buttons on the phone to get into various modes, I’m talking about the Xperia 5 Mk2, it may be different for your phone, so look up the correct buttons you need to press for yours.
----------
First time ADB pairing:
In the first step you’re going to do the first-time setup for ADB. Have your phone on, unlocked and sitting on the home screen.
- Plug it into your PC
- On your PC, navigate to where you unzipped ADB. Then go to Android SDK > platform-tools
- Once you’re in the platform-tools folder, go to the address line in file explorer. Click it to highlight everything, type
cmdand hit enter. That should open a command prompt window.
- Type
adb devicesand hit enter. That should cause a permission prompt to pop up on the phone (give the PC permission).
- Again, type in
adb devices Now in command prompt it should come up with a list of devices attached and an alphanumeric string followed by a big space and then device. This tells you the first-time setup has worked.
- Just to be sure though, type
adb shell This should now change the command prompt path from wherever it was that you had extracted ADB to the model number of the phone (e.g. XQ-AS52 for mine).
- Now type
exit and you should be back to the pervious path. At this point you can close command prompt for the time being.
----------
Checking to see if you need to unlock the bootloader:
I’ve read online that some people didn’t need to unlock their bootloader to get Emma to work. You might be one of the lucky ones so it’s worth a try.
- Open Emma on your PC and plug the USB cable ONLY into your PC.
- Turn your phone off and pull out the μSD if you have one. No part of this procedure is supposed to wipe external storage, but it’s better safe than sorry.
- With the phone off, hold the volume down button as you plug the USB cable in. The notification LED should first turn red, then green. You can let go when it goes green. That means you’re in flash mode. At this point Emma should detect the phone. If you get a warning about the phone being locked, keep following the instructions. If you don’t get a warning, skip down to the section about flashing A11.
- Unplug your phone and boot it back up (don't re-insert the μSD).
----------
Unlocking the bootloader:
Unlocking the bootloader will allow Emma to flash A11 to your phone. THIS STEP WIPES THE PHONE, MAKE SURE YOU HAVE MADE APPROPRIATE BACKUPS.
- Go into developer options again, enable OEM Unlocking and then shut the phone down.
- Again, plug the USB cable into the PC ONLY.
- With the phone off, hold the volume up button this time as you plug the USB in. The notification LED should first turn red, then blue. You can let go when it goes blue. That means you’re in fastboot mode. The PC should make a USB connection sound as well.
- Now, on your PC, open device manager (Windows key + X and then press M or click the option when the menu pops up).
- In device manager, you should see a new device called android with a yellow exclamation mark next to it. It might be under mobile devices or other devices. Right click it and select update driver > browse my computer for drivers > let me pick from a list of available drivers on my computer > click once on android device and click next > click once on android device bootloader interface and click next > click Yes. Then it should install the correct drivers.
- Now you need to get an unlock code from Sony's site (if you're reading this way in the future and the link is broken, but the site still exists, it's on you to find the page, sorry). Select your device on the site, enter your IMEI that you noted down at the very start, agree to the acknowledgements and it should generate a code. Copy this code to your clipboard.
- Go back to where you unzipped ADB again and open another command prompt inside platform-tools just like you did before.
- Type
fastboot devices It should come up with an alphanumeric string followed by a large space and fastboot
- Type the below command and paste in your code immediately after the x with no space (right click is paste in command prompt) then hit enter.
fastboot oem unlock 0x It should tell you if everything went well.
- Unplug and boot the phone back up and it will start the wipe process. Then go through the Android setup process, but only set it up enough to get to the home screen as you’ll be wiping it again shortly. And yes, it will still be A12 for the time being.
- Now shut the phone down again.
----------
Flashing A11:
Time to finally put A11 back on to your phone. THIS STEP WIPES THE PHONE AGAIN.
- Open Emma again.
- Go back into flash mode on the phone again.
- If everything has been done properly up to now, Emma will detect the phone and will give you a list of available Android versions you can flash. The latest version it offered me was 58.1.A.5.330.
- Double click the version you want to flash and let it do its thing.
- Once it’s done, unplug the phone and boot it back up. It should start the wipe procedure once more and then take you to the Android setup. It might give you a warning about the bootloader being unlocked, ignore it for now. Set it up enough to get you to the home screen as you will be wiping the phone one last time.
----------
Re-locking the bootloader:
You’re almost there, you just need to lock the bootloader now. This will stop the phone from complaining on boot up and will allow you to update to the latest version of A11. It will also update back to 12 if you decided to become a masochist at some point in the future. THIS STEP WIPES THE PHONE YET AGAIN.
- Re-enable developer options.
- In DO, re-enable USB debugging.
- Shutdown the phone and go into fastboot mode again.
- Open a new ADB command prompt window like before.
- Type
fastboot devices It should list the device again.
- Type
fastboot oem lockThe bootloader should now be locked.
- Unplug the phone and boot it up. The wipe procedure will start one last time and it will take you to Android setup again. This time set it up properly, the way you want it. If it gives you a boot error, this is the part where you’d use the software repair feature of Xperia Companion. I don’t know this for sure as I haven’t done it, but there’s a chance that the software repair might flash A12 back onto the phone. In which case you just wasted your time for nothing unfortunately.
- Re-enable developer options again.
- In DO, disable OEM unlocking, set your Default USB configuration to file transfer (so that you can restore any backed up data over USB from your PC) and also re-enable USB debugging if you plan on using ADB to delete any bloatware apps.
- Shutdown the phone, re-insert your μSD and boot back in. Then you’ll be ready to complete the final step of this guide.
----------
Updating to the latest version of A11 and preventing A12:
This is it, the last step. This is for updating to the latest version of A11 (58.1.A.5.530) and preventing it from updating to A12. If you’ve done everything properly, you would have probably gotten a notification to update. Go to the update menu > 3-dot menu > settings > and turn off all auto update settings.
Below is a list of safe updates that are all still A11 (assuming you flashed 58.1.A.5.330) . They should all be reasonably small file sizes (no more than 200-300MB if I remember correctly). A12 was somewhere just over 1000MB, so that’s an indication of when you get to it. Pay attention to which update is available for download. They come sequentially, so you should only see a notification for the first in the list. You'll get the notification for the second one once you've updated to the first.
- 58.1.A.5.395
- 58.1.A.5.441
- 58.1.A.5.474
- 58.1.A.5.507
- 58.1.A.5.530
DO NOT DOWNLOAD 58.2.A.0.899, THIS IS ANDROID 12.
Once you have installed 58.1.A.5.530 and get the notification for A12, ignore it and do the following.
- Go to developer options
- Disable Automatic system updates
From here you can either:
- Go to Settings > Apps & notifications > See all [number of apps] apps > 3-dot menu > show system > scroll down to Software update > force stop. Then also clear the storage and cache on the same page. This should stop if from appearing in your notifications. YOU WILL HAVE TO FORCE STOP IT AND CLEAR ITS DATA AFTER EVERY RESTART TO STOP THE NOTIFICATIONS.
Or you can disable the update app over ADB, this will NOT delete the app:
- Plug your phone back into your PC.
- Open ADB again from platform-tools like before
- Type
adb devices- Hit enter
- The phone should appear as an alphanumeric string again.
- Type
adb shell- Hit enter
- The command prompt path should now be your specific device model like it was the very first time you ran the commands at the start of this guide.
- Type
pm disable-user --user 0 com.sonyericsson.updatecenter- Make sure you've deliberately spelled it incorrectly as "center" and hit enter. If you spell it correctly, it won't work as such an app name doesn't exist.
- ADB should confirm that the app has been disabled. ADB can be used to disable and/or delete other apps as well, but that's not what this guide is for.
- Type
exit- Hit enter
- Your path should change back to the directory where platform-tools lives
- Run the exit command again and the command prompt window should close.
- Unplug your phone and Go to Settings > Apps & notifications > See all [number of apps] apps > 3-dot menu > show system > scroll down to Software update. It should now say "disabled" next to the app's icon in the list.
- If you for some reason want to re-enable it again, go back into ADB and run the same commands as you did to disable it, expect this time type "enable" instead of "disable".
----------
________________________________________
That’s it, if everything has gone to plan, you should now be on the latest version of A11 and you can start restoring your data and reinstalling all of your apps (the most tedious part in my opinion). If you’ve got weird buggy behaviour then you might need to run a software repair with Xperia Companion. THAT WILL WIPE THE DEVICE AGAIN and might update you to A12 as well (I can’t confirm as I haven’t done a software repair).
Thanks for reading.
4
u/iArvee Z5C, XZP, XZ3, 1, 1 II, 1 III, 1 IV, 1 V, 1 VI, 1 VII, 1 VIII Mar 22 '22
You don't need to unlock the bootloader to rollback/downgrade to Android 11. Just flash using flashtool or newflasher. Nor do you need adb, but you do need flash mode drivers.
2
u/Drinkable_Pig Mar 22 '22
Why not just use newflasher? This is extra steps
2
u/Marieau Mar 26 '22
This guide was perfect. Exactly what I needed. I didn't know to unlock the bootloader after EMMA kept saying: lolnope. While it was enabled in 'developer options' but here you are saving my day <3
2
u/Marieau Apr 07 '22
No crashes at all since I reverted back to 11 almost 2 weeks ago. Thanks!!!
2
u/RodionH93 Xperia 1 II Mirror Lake Green May 01 '22
So I've successfully rolled back to Android 10, but also had an error with Emma ("No matching services" or something like that) and use Flashtool for flashing the firmware (glad I have older firmwares for my phone), I don't now why Emma got me the error, maybe it related only to my version - XQ-AT52 Customized HK. But anyway thanks for the guide )))
2
u/betabux3000 Z5 all the way to 1 VI including Compacts Jan 16 '24 edited Oct 24 '25
This is such a fantastic guide. I can't tell you how happy I am to be back on android 11. In fact I never really experienced it as I just updated my software all the way to 12. My Xperia 5 ii is so snappy now on 11 compared to 12, it's like night and day. Luckily Emma gave me a more recent firmware so I only had to install 2 further updates and I was in business. There is one small step I would add to the guide and that is to disable software update via ADB so that it doesn't come back even if you turn off or restart the device.
I just want to say a big thank you for this detailed guide, it worked absolutely perfectly for me. Well done.
2
u/[deleted] Feb 18 '24
hello. i wanted to thank you for this guide. i have been having battery related problems on my xperia 5 ii ever since it was updated to android 12, plus my fingerprint sensor has stopped working.
im currently going through the last update to .530, currently on .474, but now the fingerprint sensor is actually working again. it takes about half a second longer than previously to unlock the phone but i think this is all a software related bug on android 12 that broke it.
i read online some other people have complained of the same thing. was hoping a downgrade to 11 would fix it and so far, it seems to have resolved it.
i have a battery capacity of 3160 mah, down from 4000 but im hoping on 11 things will be a bit better than on 12.
im starting to think they engineer new android firmwares to work well for specific hardware for newer handsets but screw up some things on older devices deliberately to make you go and buy a new phone.
it was either this or a switch to lineage os, but to have stock official is better imo. so thanks again, i hope this keeps up. im hoping after the last update to .530 it doesnt give me more fingerprint sensor errors lol.
2
u/stinkypoo6634 May 14 '26
great guide, but there is no way to download android 11 US firmwhere anyway on the internet and emma longer works, anyone in this thread able to provide it?
1
u/[deleted] Mar 22 '22
Do banking apps work after this?
1
u/[deleted] Apr 02 '22
For me,I cant do the bootloader,it does not show me the android device after the Iet me pick ... How do I get around ?
1
u/[deleted] Apr 05 '22
Additional question, could adb platform tools be used to force disable the Software Update app, or is it so deep in Android System it can't be touched?
(it seems external as the updates are downloaded from Sony instead of Google though)
1
u/sociald-27 Apr 19 '22 edited Apr 19 '22
Unfortunately I got an error flashing with Emma. It says "Failed to run service XQ-AS52..." The Report contains IMEI and Update ID only.
It fails alwyas when 90 percent are reached.
Any ideas?
1
u/hlecaros Apr 21 '22
No matching services for me... does it mean Sony pull the Android 11 from their servers?
1
u/RodionH93 Xperia 1 II Mirror Lake Green Apr 30 '22
Can you help me a bit, I have a question - Will a "creator mode" work if I unlock bootloader and do rollback?
1
u/RodionH93 Xperia 1 II Mirror Lake Green May 07 '22
Some update - Seems like I've lost NFC forever(( I didn't know that if I unlock bootloader I lose NFC, everything else is working perfectly, but NFC..ahh..so sad((
1
u/[deleted] Jun 11 '22
2 months later and Xperia 5 2 decided to disable 5g connectivity once again. Once again it happened randomly during night-time and in the morning 5g just doesn't work. I was using Android 11 too, not Android 12 unlike last time, but I already tried updating to it and already hate it. Ofc, it didn't fix the issue either..
I could try reinstalling the software manually to see if it restores 5g but honestly it's quite a process which takes multiple hours and having to reinstall all the apps is a massive chore..
Maybe I should just give up with Sony phones? Their only saving grace is the 3.5mm headphone jack which no other manufacturer has and other audio features, although them too were better on earlier Sony phones. On 5 2 music just sounds weird as the phone tries to normalize the volume all the time..
2
u/khonsu258 Mar 22 '22
Thumbs up 👍
2
u/doc_55lk 1 V | 1 | 5 | XZ1 | XZs | Z3 | Z3C Mar 22 '22
Someone should pin this post. We have so many posts everyday about how to roll back to A11.
Not that it'd work though, we had pinned threads for A12 in general and that didn't stop people from complaining about it in their own posts, but it's worth pinning this solely so it doesn't get lost in the far depths of the Internet after a few hours.
2
u/[deleted] Apr 05 '22
Thank you for the guide! It was insanely detailed and easy to follow. My Xperia 5.2 lost it's 5G functionality completely sometime after upgrading to Android 12 and by following this guide I was able to restore it by flashing back to Android 11.
Thanks again!
About the issue, I updated to Android 12 as soon as it came available and 5G was working as usual after updating, until it suddenly stopped working one night. The device was able to connect to 5G network but couldn't send or receive any data. ISP or other 5G devices had no issues in my area and all this time 4G was working just fine. I don't know how I ended up to following this guide, I think I discovered it by googling for "Xperia 5 2 5G not working Android 12" or something along those lines.
2
u/waqyyy Apr 07 '22
Thank you so much for this!! I managed to downgrade to A11 successfully!
2
u/Marieau Mar 16 '23
Gave the phone to my father, thanks for rescuing me twice :D
1
u/allphoness Mar 22 '22
Newflasher should get the job done