[GUIDE] Flashing Tutorial 2021 for legacy Xperia devices - Sony Xperia M

I got recently an Xperia M (C1905) with stock, and trying to install a decent firmware (even official ones) seems like a daunting task due to most of the threads here being archived. So this is a self guide (for me) for whoever needs to install a new ROM. Although the LineageOS has a very thorough guide, for a device that is not maintained anymore, many xda-ers might find this one helpful.
I'll cover 2 main topics: Unlocking the bootloader, Flashing TWRP and a custom ROM
Prerequisites
I'm assuming you have a computer (preferably a linux) that has already fastboot and adb.
Unlocking the Bootloader
Spoiler
It's a straightforward task, just head to Sony's website for developpers and follow the guidelines (get your IMEI and request a code)
Another way to unlock your BL is through the flashtool (apparently it's more recommended) but it's tough to estimate till when it will be supported. Ideally Xperifirm comes preinstalled with flashtool, but it didn't have firmware for my devices (Xperia M).
I also got a bootloop after I unlocked the bootloader, it wouldn't continue past the splash screen. My guess is that the data partition needed a format after unlocking the BL.
TWRP
Spoiler
There is no structure info on xda or twrp's website, but after lurking around a bit on the forum, I managed to boot into TWRP.
Get the latest TWRP from their website
Boot your phone into fastboot
Flash the twrp image through fastboot
Code:
fastboot flash boot twrp-3.0.2-0-nicki.img
Reboot into recovery by pressing the volume up button after powering it on
Connect through adb, and flash the FOTA Kernel (this step is recommended by twrp team and devs here). The FOTA Kernel you can get it from this post(it's the same as the twrp image you flashed through fastboot).
Code:
dd if=/sdcard/twrp.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
Once you flash the FOTA Kernel, you can format data.
There are plenty of ROMs that are still available, check the list below, once you download the zip file put it on your sdcard (through adb)
Now, wipe system, cache, dalvik, data, and install your favorite ROM
Reboot and enjoy
I had this weird error where I couldn't flash the recovery through fastboot (error: "Couldn't parse partition size '0x')
So tried to use
Code:
fastboot flash:raw boot twrp-3.0.2-0-nicki.img
and it worked.
You can watch this video if you are feeling unsure (Although it skips the steps where you should install the FOTA Kernel)
List of ROMs that still work (2021)
Spoiler
Obviously I didn't test all of them, but the links still exist.
Resurrection Remix (Official website)
Resurrection Remix (CodeZero)
LineageOS (unofficial)
CypherOS
AOSP
Plenty more on androidfilehost
References:
Install LineageOS on nicki | LineageOS Wiki
wiki.lineageos.org
[ROM] [7.1.2] [OMS] [OFFICIAL] [Nicki] Resurrection Remix Nougat v5.8.5 [25/09/2017]
About Resurrection Remix ROM Changelog Installation Downloads and useful links Donations About Resurrection Remix ROM Resurrection Remix the ROM has been based on CM,slim.omni and original Remix ROM builds, this creates an...
forum.xda-developers.com
[ROM] [7.1.2] [OMS] [OFFICIAL] [Nicki] Resurrection Remix Nougat v5.8.5 [25/09/2017]
About Resurrection Remix ROM Changelog Installation Downloads and useful links Donations About Resurrection Remix ROM Resurrection Remix the ROM has been based on CM,slim.omni and original Remix ROM builds, this creates an...
forum.xda-developers.com
[ROM][7.1.2] CypherOS 3.6.3 Macchiato [AOSCP][Nicki][10/06/2017]
This is Cypher. An extension to pure Android. Cypher tries to maintain the purity of Android while offering useful features for users. The goal is to give the highest level of performance whilst achieving simplicity. /* * Your warranty is...
forum.xda-developers.com
[ROM][7.1.2] CypherOS 3.6.3 Macchiato [AOSCP][Nicki][10/06/2017]
This is Cypher. An extension to pure Android. Cypher tries to maintain the purity of Android while offering useful features for users. The goal is to give the highest level of performance whilst achieving simplicity. /* * Your warranty is...
forum.xda-developers.com
[ROM] [7.1.2] [OMS] [OFFICIAL] [Nicki] Resurrection Remix Nougat v5.8.5 [25/09/2017]
About Resurrection Remix ROM Changelog Installation Downloads and useful links Donations About Resurrection Remix ROM Resurrection Remix the ROM has been based on CM,slim.omni and original Remix ROM builds, this creates an...
forum.xda-developers.com
Official Firmwares
If anyone has any official sources for the official FTF firmwares, please post them in the thread, as I couldn't find any.

Hi and thanks for this tutorial in 2021.
I had this old phone(Xperia M C005 - dual SIM) here and decided to install LineageOS on it just for fun and after following this tutorial I was able to do it. Still, I ran into some problems especially because of the FOTA Kernel.
So here are the steps I took if any one is interested or having the same problems I had. But first, I recommend everyone to read the tutorial above. It's very good and this is just to complement it.
******* TWRP ***********
Boot into fastmode (power off the device, press volume down button while connecting the usb cable to a computer and when a blue light shows up below the screen it's in fast boot)
Run the command in your computer to install twrp:
./fastboot flash boot twrp-3.0.2-0-nicki.img
You can disconnect the device.
*******Install custom rom (LineageOS in my case) ***********
Boot into TWRP by pressing the power button and volume up button at the same time and release when the sony logo shows up. The menu where your are supposed to swip right can be unresponsive for some reason(maybe still loading something). Wait for like a minute and it should behave normally.
Go to Advanced->Sideload
Send the custom rom, FOTAKernel, Gapps and Dual SIM patch to the device with the following command(replace *location* with the path of every file):
./adb push *location* /sdcard
Go to the TWRP terminal and run the following command:
dd if=/sdcard/FOTAKernel.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
After, install the custom rom(wipe data just to be sure), followed by the dual SIM patch and Gapps
You can reboot after that. Wait patiently for lineage OS to start. It will stay at the boot screen for like 10 minutes.

marcosandreeo said:
Hi and thanks for this tutorial in 2021.
I had this old phone(Xperia M C005 - dual SIM) here and decided to install LineageOS on it just for fun and after following this tutorial I was able to do it. Still, I ran into some problems especially because of the FOTA Kernel.
So here are the steps I took if any one is interested or having the same problems I had. But first, I recommend everyone to read the tutorial above. It's very good and this is just to complement it.
******* TWRP ***********
Boot into fastmode (power off the device, press volume down button while connecting the usb cable to a computer and when a blue light shows up below the screen it's in fast boot)
Run the command in your computer to install twrp:
./fastboot flash boot twrp-3.0.2-0-nicki.img
You can disconnect the device.
*******Install custom rom (LineageOS in my case) ***********
Boot into TWRP by pressing the power button and volume up button at the same time and release when the sony logo shows up. The menu where your are supposed to swip right can be unresponsive for some reason(maybe still loading something). Wait for like a minute and it should behave normally.
Go to Advanced->Sideload
Send the custom rom, FOTAKernel, Gapps and Dual SIM patch to the device with the following command(replace *location* with the path of every file):
./adb push *location* /sdcard
Go to the TWRP terminal and run the following command:
dd if=/sdcard/FOTAKernel.img of=/dev/block/platform/msm_sdcc.1/by-name/FOTAKernel
After, install the custom rom(wipe data just to be sure), followed by the dual SIM patch and Gapps
You can reboot after that. Wait patiently for lineage OS to start. It will stay at the boot screen for like 10 minutes.
Click to expand...
Click to collapse
Hey, same thing happened to me, my C2005 still works and I wanna tinker with it. Do you have a link to the dual sim patch?

apbucaneg said:
Hey, same thing happened to me, my C2005 still works and I wanna tinker with it. Do you have a link to the dual sim patch?
Click to expand...
Click to collapse
Hi, sure, here it is: https://forum.xda-developers.com/t/...yanogenmod-13-0.3245573/page-25#post-65104843
I got it fom the post of the LineageOS(https://forum.xda-developers.com/t/...h-oms-patch-for-xperia-m-nicki-c1905.3612243/)

Related

Android 7.0?

I wanted to ask, what is the progress on Android 7.0 Nougat on Xperia 2011 devices? Can we even get it?
[IF YOU'VE COME HERE FOR CM14.1, CLICK HERE]
(you'll need to use cm14 boot.img to flash 14.1, get it from this post)
yes,but source 7.0 now have many bugs,bro can wait 1,2 months to source stable
We have builds of CM14! (only for anzu/Arc/S) However, I haven't tested them and I probably won't soon because CM13 is running just fine and I don't want to screw it up.
Check original post, it has links for all devices.
bsevcenk said:
We have builds of CM14! However, I haven't tested them and I probably won't soon because CM13 is running just fine and I don't want to screw it up.
Click to expand...
Click to collapse
But only for Anzu...
https://basketbuild.com/devs/AdrianDC/LegacyXperia/anzu/cm-14.1 android 7.1 is good !!! Thank's @Adrian DC
Here's a post from the CM13 thread
Link is added to the original post.
I want to install lineage 14.1 on xperia arc s
Im not able to clearly get how to install the lineage 14.1 rom
Can someone help on how to install step by step process
I have some questions on installation process:
1.Is external memory card is required to install the rom ?
2.Should we format the external memory card to primary and umformatted
3.whats should be the min external memery card capacity
4.which boot.img should be flashed to install this rom
5.if i flash the boot.img given with the lineage 14.1 rom(andrian dc) twrp recovery opens up . Is that the correct recovery used to flash this rom
Plz help for step by step process briefly
Note: right now i have succesfully installed cm 13 on this device working perfectly,, i just want to install lineage 14.1 on this device

Android 9 on moto z2 play?

I'm looking for ROM with Android 9 pie for moto z2 play device I tried several methods by GSI I tried the KVT and tried all but no ROMs like Lineage OS and mokee OS, resurrection remix OS and other ROMs work fine but the method by GSI gave fail and all say that date is corrupted wanted to know if it has any ROM available with Android 9 need help installing a GSI on the device someone from the forum can help me.
first of all, you already have bootloader unlocked, from there on out it's simple, just have TWRP recovery, make wipes, then install rom android 8.1 with treble support, after this install img of rom android nine GSI you can try havoc 2.0 and ready, if something comes out more nothing but indicate us in which part you are staying to know how to help you..!!
I did all the processes for an image of GSI system through the ceiling I installed a ROM treble but when r6 to start the device it does not start and I tried to use the base KVT but the device starts giving error in the data system that says to be corrupted or encrypted but it's not
does anyone have any ROM with Android 9.0 running that can pass the rom link or some more effective method to install Android 9.0 on the device
Why did you create so may threads asking for the same thing?

[8Pro] [Development] LineageOS 17.1 source built

Hello all,
Tried to build Los 17.1 from source, build is successful and flashes via TWRP.
Gets stuck at Los bootanimation, if I flash TWRP and switch to a different slot. Device goes back to OOS without any data loss.
Would really appreciate if anyone could help me get this booted.
Source:
Original from @LuK1337 : https://github.com/luk1337
My forked source : https://github.com/areyouanand
Downloads:
https://sourceforge.net/projects/instantnoodlep/files/los/
Note: This thread is only for development queries, please do not flash this just to try los, it doesn't boot.
Edit 1: Rom boots if flashed on slot A, but doesn't resize partitions, so not able to flash gapps.
Edit 2: Gapps flashing issue fixed.
Contributors
@LuK1337 , @Myself5 , @dabug123 , Lineage OS, CarbonROM
ROM OS Version: Android L
ROM Kernel: Linux 4.x
ROM Firmware Required: Unlocked Bootloader
Based On: Lineage
Version Information
Status: Testing
Created 2020-07-10
Last Updated 2020-07-13
areyouanand said:
Hello all,
Tried to build Los 17.1 from source, build is successful and flashes via TWRP.
Gets stuck at Los bootanimation, if I flash TWRP and switch to a different slot. Device goes back to OOS without any data loss.
Would really appreciate if anyone could help me get this booted.
Source:
Original from @LuK1337 : https://github.com/luk1337
My forked source : https://github.com/areyouanand
Downloads:
https://sourceforge.net/projects/instantnoodlep/files/los/
Note: This thread is only for development queries, please do not flash this just to try los, it doesn't boot.
Click to expand...
Click to collapse
I'm not a Developer, but I have many years experience tweaking and flashing all my devices.
One of the first things I try is to format my data in twrp (so factory reset). It's an inconvenience but it usually fixed a bunch of issues for me.
2nd one is making sure I flash to the A partition. Never been a problem on this phone but on my razer phone I could only ever boot LOS on partition A

Lineage os-17.1 TEST BUILD for RMX2076 only for Android-10

Lineage os recovery
Lineage os-17.1 test build
source code
kernel source
Device source code
Flashing guide
Flash los recovery first if that booted for you
Flash the rom without wiping anything.
Its just a test build, so it may boot or not.
If it booted send screenshot here and bugs list.
And if not booted send logs file here.
I dont own the device so I can't test myself.
any pixel experience rom for x50 pro?
there is no custom rom for x50 pro right now but phh's gsi works pretty well fingerprint and fast charging doesn't work in gsi and there is no dc dimming, if your okay with that u can install it, installing instructions are in their respective threads

Question motorola defy android 11

How can i exctract boot.img (for magisk, bootloader unlocked) from updated phone? This model have not twrp or other custom recovery.
As I know this device is like the Motorola G9 Play due to model is XT2083-8, maybe you could contact or try any method to the before mentioned model.
Motorola G9 Play twrp recovery works (zip installing )
mishak750 said:
Motorola G9 Play twrp recovery works (zip installing )
Click to expand...
Click to collapse
any rom tested??? Did you have the dual sim version?
my defy dual sim. i install zip via recovery (magisk).
Rom what i test (install via fastboot) lineage os 19-18(not work nfc) crdroid (android 10).
mishak750 said:
Rom what i test (install via fastboot) lineage os 19-18(not work nfc) crdroid (android 10).
Click to expand...
Click to collapse
Any link to it? Mine is single SIM (XT2083-8), also device processor is SM665, I don't know if there's any difference with SM662.
What link?
mishak750 said:
What link?
Click to expand...
Click to collapse
the link used for recovery and os
twrp part function work (used only for install magisk!!) taken from motorola g9 play branch
lineage os 19
[GSI][12] LineageOS 19.x GSI (A64B/64B)
Background: This is a natural continuation/extension of the LineageOS 18.x GSIs I've been making since 2020. LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and...
forum.xda-developers.com
mishak750 said:
Rom what i test (install via fastboot) lineage os 19-18(not work nfc) crdroid (android 10).
Click to expand...
Click to collapse
Hello.
Is there any community ROM for Defy?
Link?
Thank.
The official Android 11 is RZD 31.13 Security Update about November 2021
Only gsi (treble).
This treble ?
Home
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
Any chance of community rom?
It's a shame, because Defy is one of the few civilian-looking rugged phones...
Android 13 AOSP GSI Rom works.
Generic System Image releases | Platform | Android Developers
developer.android.com
ARM64+GMS gsi_gms_arm64-exp-T1B3.221003.003-9173718-1aa73579.zip
or
ARM64 aosp_arm64-exp-T1B3.221003.003-9173718-7eba5aba.zip
Tested with unlocked bootloader
You can flash system.img and vbmeta.img with fastbootd.
fastboot flash system system.img fastboot flash vbmeta vbmeta.img fastboot -w (wipes all data)
Click to expand...
Click to collapse
Maybe you need this to fix resize system partition error.
fastboot delete-logical-partition product
You can enter fastbootd via stock recovery.
What is fastbootd? How to Enable and Boot?
Google introduced the Android 10 operating system back in September 2019. Android 10 brought in new support for resizable partition which relocates the
www.getdroidtips.com
Edit:
phhusson Android 12 builds works too. (system-squeak-arm64-ab-vndklite-gapps)
Releases ยท phhusson/treble_experimentations
Notes about tinkering with Android Project Treble. Contribute to phhusson/treble_experimentations development by creating an account on GitHub.
github.com
Andy Yan's personal builds // GSI Lineage 20 works
[GSI][12] LineageOS 19.x GSI (A64B/64B)
Background: This is a natural continuation/extension of the LineageOS 18.x GSIs I've been making since 2020. LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and...
forum.xda-developers.com
lineage-20.0-20221109-UNOFFICIAL-gsi_arm64_vS.img

Categories

Resources