How to perfectly install Android 6.0 Marshmallow on Xperia S (LT26i)

Installing Android Marshmallow on Xperia S is a little bit complicated if you do not have basic knowledge of CMD (Command prompt) commands. But not to worry, I’m right here to help you with that.

After installing the rom on my Xperia S, it run pretty smooth. So, feel free to try it out, if you want to.


  1. A PC
  2. Rooted Xperia S
  3. TWRP recovery installed 
  4. Fastboot / ADB folder
  5. Pure AOSP Marshmallow rom [Download]
  6. (Optional) Stock ftf firmware [Download]  (if you want to revert to stock rom)

Also read about Installing TWRP 3.0.0 on Sony Xperia S LT26i (nozomi) and MIUI 7 for Sony Xperia S (Lt26i)


Note: Before you go about installing any custom rom to your device, you should consider making a backup of your current rom just in case you mess something up. Make a backup of your SDcard content too.

Read how to flash nAOSP Lollipop (5.0, 5.1) Rom On Xperia S LT26i

Disclaimer: your use of this guide is strictly at your own risk just in case something goes wrong and your device gets damaged. I or Leakite will not be held responsible, but you.

Step One: Reboot your device to TWRP recovery

Step Two: Go to Mount and uncheck all the checked options

Read how to flash OneOfaKind lightweight Marshmallow rom on Xperia S

Steep Three: Connect the device to PC using a USB cable, then launch CMD from your ADB / Fastboot directory

Step Four: Type in the following commands

adb shell 

fdisk /dev/block/mmcblk0 



(First cylinder) -> You have to enter the start cylinder of partition 14 as read in partition table earlier.
(Last cylinder) -> Here, check the end cylinder of partition 15. Mine was 954240. The subtraction then looked like this: 954240-16384= 954238. So, I entered 937856 here.



adb push /tmp/’ should be the name of your downloaded Marshmallow rom. If you renamed it, effect the change in the command above before you hit Enter button.
Now, we’re done with the hard part. Let’s go ahead and install the rom now.
To install, select the Install option in TWRP recovery to commence the installation. Once done, reboot device to system.
First boot takes a while, so be patient and wait for it.
IMPORTANT: To revert all the changes made to your device’s partition, you will have to flash a stock ftf firmware. After flashing, if you’re still unable to mount your sdcard, go to Settings > storage and format the sdcard. This will fix it.
To go back to previous rom, just restore the backup you made previously.
That’s all!
See my screenshots below:

37 Responses to “How to perfectly install Android 6.0 Marshmallow on Xperia S (LT26i)”
  1. Edmar Tadeu Simon January 30, 2016
  2. Marvellous Matthew February 10, 2016
  3. Collins Edim February 10, 2016
  4. Maak Kaam March 10, 2016
  5. Collins Edim March 12, 2016
  6. Maak Kaam March 13, 2016
  7. Collins Edim March 13, 2016
  8. Collins Edim March 13, 2016
  9. Maak Kaam March 13, 2016
  10. Collins Edim March 13, 2016
  11. Maak Kaam March 13, 2016
  12. Collins Edim March 13, 2016
  13. Maak Kaam March 14, 2016
  14. Collins Edim March 14, 2016
  15. Maak Kaam March 23, 2016
  16. Collins Edim March 23, 2016
  17. Maak Kaam March 25, 2016
  18. Collins Edim March 26, 2016
  19. Maak Kaam March 27, 2016
  20. Collins Edim March 28, 2016
  21. karthik reddy May 20, 2016
  22. Collins Edim May 20, 2016
  23. karthik reddy May 21, 2016
  24. Collins Edim May 23, 2016
  25. Anonymous June 19, 2016
  26. Collins Edim June 20, 2016
  27. harikesh subramanian July 14, 2016
  28. Collins Edim July 14, 2016
  29. Arunkumar Gunasekar August 13, 2016
  30. Collins Edim August 13, 2016
  31. Arunkumar Gunasekar August 14, 2016
  32. Collins Edim August 14, 2016
  33. Arunkumar Gunasekar August 17, 2016
  34. Arunkumar Gunasekar August 17, 2016
  35. Shanu Baba October 19, 2016
  36. lmeen Qadeer Matalam November 9, 2016
  37. Collins Edim November 9, 2016

Leave a Reply

Your email address will not be published. Required fields are marked *