[OnePlus X Original Android Development] Jude Aranha:
Guide for flashing latest Sultanxda's CM build [23rd October]

Hi Everyone.

As the latest build & recovery requires us to be on the MM bootloader, I'd like to post my comprehensive guide like i had posted here, on this thread with some changes. I hope to ease many users pains with this.

Download Oxygen OS 3.1.3 full ROM

Download MM based unofficial TWRP (Skip this and download Sultan's updated TWRP if you prefer)

Downloaded Modded SuperSU if you want root (Skip this if you won't stay on OOS3 and would like to move to the latest Sultanxda's CM build directly.)

You will require a PC with WinRAR & Notepad++, because as we are running custom ROMs the zip will give an error 7 saying that The package is for OnePlus, this is an onyx, we need to remove that.

Don't worry, its super easy.

- Download the OOS3 zip, copy it to your PCs desktop

- Open it with winRAR, dont extract it, just open it

- There will be a META-INF folder, open it

- Then open com, then google, then android, there will be 2 files here, updater-binary & updater script

- Double click on updater-script

- It will ask which app to use to open the file, then select to open with Notepad++ (designate it from its installed directory if it isn't visible in the initial list)

- The file will look like this

- Delete the entire first line that starts with getprop

- Now it should look like this

- Now press Ctrl+S to save the file and close the window

- WinRAR will ask weather to update changes in the archive, say yes to that

- Let it finish its job

- Done !

Moving on the the flashing now...

As we are going to switch bootloaders, you cannot just flash or OTA update the latest build, please download it separately and keep it in your SD Card/Internal for later use.

Assuming you are using official TWRP/Sultans OLD with your older CM13 now,

- Copy the modded OOS3 zip into your Device

- Boot into TWRP recovery

- Wipe system, data, cache & dalvik/art cache

- Flash the modified OOS3 zip

- Let it complete

- After it completes, press the wipe cache/dalvik button below

- Now Install the MM TWRP or Sultans Updated TWRP via TWRP's Image Flashing method.

- Boot into this newly flash TWRP before booting into system so that it doesn't overwrite it

- Now wipe system, data, cache & dalvik/art cache.

- Flash the Latest build along with your choice of Gapps and anything else you use.

- After its all complete, press the wipe cache/dalvik button below

- Then reboot to system and enjoy your updated Bootloader running the latest Sultanxda's CM build.

Some Clarifications,

1. Why am I not using this method which is shorter and easier ?

Simply because I have not tested it, I used the above method and it worked without a single hiccup. Besides, that method has a significant amount of risk compared to this. I have seen some reports of users unable to boot or screwing their devices while doing that. As always, your choice. As of yet, all who have used my above method have had a 100% success rate.

2. The MM based TWRP's changelog says that the device name issue was fixed, what gives ?

Again, I have not tested this, also if you are reading this, chances are you are on the OLD Bootloader, hence if you directly flash that MM TWRP, it WILL NOT boot, because its LP bootloader based.

3. Will this wipe my data ? Any way to keep it intact ?

Yes, the process will wipe your data and you will have to start from scratch.

For restoring, you can use Titanium backup to restore individual apps, or you can restore you backed-up /data partition. Again, I haven't tested this, and i very strongly recommend that you perform a clean flash because this is a huge update.

Best of luck to everyone who attempts, may Lord DuARTe stay on your side :p

Feel free to revert back to me regarding any issues or clarifications, telegram will be better. My username on telegram is @ mellogang_unite

Happy flashing!!