[ROM][OFFICIAL][onyx] CyanogenMod 13.0 for Oneplus X

Search This thread

easych1ller

Member
Jun 6, 2015
14
0
Seems I fked up my phone with todays nightly update. I dont have backup, at least cannot find one via CM bootloader.
How can I recover or it's gone?

Not having a backup is never a good idea for important data. When you are not familiar with Nandroid Backups than
try at least something like seafile or syncthing!

You probably didnt flash the bootloader? You can try dirtyflash an old cm.zip release to recover your data
or your have to wipe and refer to this thread some posts ago..

Its a decision taken by the OEM , nothing much can be done on my side with this incompatability .

Steps for smooth upgrade :-
-> Nandroid backup your current CM in twrp .
-> Wipe System,Data,Cache.
-> Flash OOS 3.1.3.zip followed by twrp recovery for MM Bootloader[Do your research :3] .
-> Wipe System,Data,Cache again.
-> Restore Nandroid.
-> Flash tomorrow's nightly.
 

Johannes s

Member
Jul 16, 2014
7
0
Yes I know, I have had backups in past but this was working flawlessly so I cleaned some files to save spcace, guess backups were one of them.
Right now it seems I cant access to TWRP only CM recovery or smth similar
 

Jude Aranha

Senior Member
May 15, 2015
774
1,654
Queens, NYC
Comprehensive guide to Update to latest Nightly based on Marshmallow Bootloader

Its a decision taken by the OEM , nothing much can be done on my side with this incompatability .

Steps for smooth upgrade :-
-> Nandroid backup your current CM in twrp .
-> Wipe System,Data,Cache.
-> Flash OOS 3.1.3.zip followed by twrp recovery for MM Bootloader[Do your research :3] .
-> Wipe System,Data,Cache again.
-> Restore Nandroid.
-> Flash tomorrow's nightly.

Hi Ashwin :)
As the next nightly requires us to be on the MM bootloader, I'd like to post my comprehensive guide like i had posted here, on this thread. I hope to ease many users pains with this.

Download Oxygen OS 3.1.3 full ROM
Download MM based unofficial TWRP
Downloaded Modded SuperSU if you want root (Skip this if you won't stay on OOS3 and would like to move to CM's newest nightly 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

67Qyd8A.jpg


- Delete the entire first line that starts with getprop
- Now it should look like this

gf7xsq3.jpg


- 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 nightly, please download it separately and keep it in your SD Card/Internal for later use.

Assuming you are using official TWRP 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
- Flash the MM based unofficial TWRP via TWRPs Image flash.
- Boot into this newly flash TWRP before booting into system so that it doesn't overwrite it
- Boot into OOS 3 once, complete the initial setup, when you reach the home screen, reboot back to recovery.
- Now wipe system, data, cache & dalvik/art cache.
- Flash the Latest nightly 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 CM nightly.

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 @joshwinAranha
Happy flashing!!
 
Last edited:

pravakarthami

Senior Member
Oct 16, 2012
115
38
Darjeeling
Hi Ashwin :)
As the next nightly requires us to be on the MM bootloader, I'd like to post my comprehensive guide like i had posted here, on this thread. I hope to ease many users pains with this.

Download Oxygen OS 3.1.3 full ROM
Download MM based unofficial TWRP
Downloaded Modded SuperSU if you want root (Skip this if you won't stay on OOS3 and would like to move to CM's newest nightly 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 nightly, please download it separately and keep it in your SD Card/Internal for later use.

Assuming you are using official TWRP 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 reboot to system
- Complete the initial setup
- Goto settings, unlock developer options by tapping 7 times on build number in about phone
- Enable advanced reboot
- Then reboot to bootloader
- Flash the MM based unofficial TWRP via fastboot
- 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 nightly 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 CM nightly.

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 @ JoshwinAranha.

Happy flashing!!
Thanks bro now I am on latest nightly...... thanks for the help
 

maxl96

Senior Member
Apr 7, 2011
129
16
What if I flash OOS 3.1.3 via ABD Sideload and restore my Backup afterwards?
Why wouldn't this work the Bootloader should get upadet this way?
 

Kurt Krummbein

Senior Member
Jul 19, 2011
575
416
OnePlus X
OnePlus 3T
What if I flash OOS 3.1.3 via ABD Sideload and restore my Backup afterwards?
Why wouldn't this work the Bootloader should get upadet this way?

Think it's not a question how to install OOS3.1.3, it's when ... after takeing backup ;).
Then new TWRP (without reboot between!), the reboot to (new) recovery, cleanup, restore system, flash new image, reboot.
Remember, one reboot too much might need complete reflash of all, including old bootloader.

Gtz
Kurt
 

maxl96

Senior Member
Apr 7, 2011
129
16
Okay I just forget it then..
Maybe I will go to OOS sometimes when I still use this phone any longer...

I was lucky because I upgraded to todays nightly and it wouldn't boot..
I just booted into TWRP and dirty flashed older rom and it worked again xD
 

piotrpan

Senior Member
Feb 20, 2012
156
34
But bottomline it ends up having a clean install so no update path without losing/wiping all data unless restoring with titanium etc, correct?

Gesendet von meinem ONE E1003 mit Tapatalk
 

Kurt Krummbein

Senior Member
Jul 19, 2011
575
416
OnePlus X
OnePlus 3T
But bottomline it ends up having a clean install so no update path without losing/wiping all data unless restoring with titanium etc, correct?

Gesendet von meinem ONE E1003 mit Tapatalk

No, if you do it like ashwin007 described, you end up with your unchanged data:

1. Nandroid-Backup, system and data
2. Wipe System, caches and data
3. Flash OOS 3.1.3
4. Flash MM-Bootblock enabled TWRP
5. Reboot to TWRP
6. Wipe System, caches and data
7. Restore system and data from backup
8. Flash cm13-NIGHTLY 20161011+
9. Boot and enjoy

Gtz
Kurt

P.S.: I'm on CM13-20161011 now :)
 
  • Like
Reactions: Danj1

maxl96

Senior Member
Apr 7, 2011
129
16
Ohh thats fairly easy then..
What was the part with file editing in NPP?
And why do I need to flash the special recovery after OOS 3.1.3?
 

ccaappton

Member
May 29, 2013
27
7
Its a decision taken by the OEM , nothing much can be done on my side with this incompatability .

Steps for smooth upgrade :-
-> Nandroid backup your current CM in twrp .
-> Wipe System,Data,Cache.
-> Flash OOS 3.1.3.zip followed by twrp recovery for MM Bootloader[Do your research :3] .
-> Wipe System,Data,Cache again.
-> Restore Nandroid.
-> Flash tomorrow's nightly.

Hi, Ashwin. Could you help to extract the bootloader from OOS zip, and repackage it together with the new twrp into a single flashable zip? The steps in the list looks too long for us noobs to follow:)
 
  • Like
Reactions: deepss1

Jude Aranha

Senior Member
May 15, 2015
774
1,654
Queens, NYC
Ohh thats fairly easy then..
What was the part with file editing in NPP?
And why do I need to flash the special recovery after OOS 3.1.3?

Custom recoveries have a different device name, hence they give an error when we flash official ROMs, in this case OOS3 ,hence I guided users to remove the check so that the flashing can go smoothly.

Special recovery because up until now we were using the Lollipop Bootloader, couple weeks ago OnePlus released sources for Marshmallow bootloader and the CM Nightlies have been rebased to it. Hence we are using an updated recovery that will work on this updated bootloader.

Bear in mind that older TWRP wont boot on newer Bootloader and vice versa.
 
  • Like
Reactions: senpai9973

Jude Aranha

Senior Member
May 15, 2015
774
1,654
Queens, NYC
No, if you do it like ashwin007 described, you end up with your unchanged data:

1. Nandroid-Backup, system and data
2. Wipe System, caches and data
3. Flash OOS 3.1.3
4. Flash MM-Bootblock enabled TWRP
5. Reboot to TWRP
6. Wipe System, caches and data
7. Restore system and data from backup
8. Flash cm13-NIGHTLY 20161011+
9. Boot and enjoy

Gtz
Kurt

P.S.: I'm on CM13-20161011 now :)

Clean flash once in a while is a good thing :)
What better occasion to clean flash than moving on to a shiny new bootloader.
 

jstsmblaz

Senior Member
Dec 1, 2015
64
2
The ones who did the research already: can you please post links for OOS 3.1.3 and MMBootblock enabled TWRP
Tnx

Poslano z mojega ONE E1003 z uporabo Tapatalk
 

SORF

Senior Member
Feb 7, 2012
107
26
Custom recoveries have a different device name, hence they give an error when we flash official ROMs, in this case OOS3 ,hence I guided users to remove the check so that the flashing can go smoothly.

Special recovery because up until now we were using the Lollipop Bootloader, couple weeks ago OnePlus released sources for Marshmallow bootloader and the CM Nightlies have been rebased to it. Hence we are using an updated recovery that will work on this updated bootloader.

Bear in mind that older TWRP wont boot on newer Bootloader and vice versa.


Apologies for the basic queries below, but for the sake of completion:

1. Can we flash any of the many other ROMs in the OPX forums with the updated, modded TWRP?

2. What is the benefit of the new bootloader for this build of CM, there isn't even a stable build yet?

Thanks
 
  • Like
Reactions: fatmonk913

Top Liked Posts

  • There are no posts matching your filters.
  • 295
    logo-cid.png


    CyanogenMod is a free, community built, aftermarket firmware distribution of Android 6.0.x(MM), which is designed to increase performance and reliability over stock Android for your device.

    Code:
    #include 
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about features included in this ROM
    * before flashing it! YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.

    Unofficial build of CyanogenMod 13 (Android 6.0.x) for the onyx

    What doesn't work

    • Report With Logs.


    What works

    • Boot
    • WiFi
    • Hotspot
    • Audio
    • RIL (DUAL-SIM)
    • Bluetooth
    • proximity sensor
    • Gestures
    • Camera
    • SDCard
    • Mobile network
    • GPS
    • SELINUX Enforcing
    • Tri State keys
    • FM Radio
    • Ambient Display


    Source code:
    Device tree
    Kernel
    Vendor

    Download
    Install instructions:

    • Wipe data and cache
    • Flash the cm-13.x-xxx-UNOFFICIAL-onyx.zip
    • Reboot
    • boot into recovery mode
    • Install gapps if you want
    • Reboot

    Credits:-
    Oneplus for their clean source
    CM Team
    MasterAwesome
    @h2o64
    @squid2 for helping me ANY TIME....

    XDA:DevDB Information
    CyanogenMod 13.0, ROM for the OnePlus X

    Contributors
    ashwin007, MasterAwesome
    ROM OS Version: 6.0.x Marshmallow
    ROM Kernel: Linux 3.4.x

    Version Information
    Status: Stable

    Created 2015-12-27
    Last Updated 2016-04-28
    115
    Finally !
    Nightlies Enabled !!! You'll be getting builds from the next build cycle ! @Lord Boeffla , you might want to check it out :p

    http://review.cyanogenmod.org/#/c/133582/
    84
    Changelogs:

    Code:
    20-02-2016:
              Fixed FM Radio.
              Fixed Ambient Display.
              Merged in upstream rb1.10 kernel.
              Synced with latest CM changes.
    
    07-02-2016:
               Fixed the wonky behaviour of tristate keys
               Fixed the HW buttons, now it works the OOS way.(The order is back-home-recents)
               A new Gestures control app implemented for controlling tri-state key behaviour and HW keys behaviour(ATM it doesn't work)
               Merged OOS 2.2.0 kernel (100% battery bug seems to be fixed,needs more testing though)
               Merged Upstream CAF (rb1.9)
               
    31-01-2016:
               Fixed tri-state keys
               Fixed double tap2wake
               SELinux Enforcing,so total security(in layman terms)
               Upstream CAF Merges (rb1.8)
               Upstream Prima merged
               Updated adreno blobs from bacon(you might feel a performance improvement) ,report if not
               Updated widevine blobs.
    21-01-2016:
                Fixed the low quality in camera.(photos and videos               
                are way better that it was in the previous build
               (Snap is still in beta stage, google cam should work fine  ATM.)
    20-01-2016:
                Fixed GPS(Takes some time to lock though)
                Fixed the UI/UX jitter (A 7k bump in Antutu score,I get around 48k),phone feels really snappy now.
                Fixed the speaker-mic issues.
                Merged in CAF tag LA.BF.1.1.3-00810-8x74.0.
    
    03-01-2016:
                Fixed Camera,Mobile Data,SDCard
                Prima driver updated to LA.BF.1.1.3_rb1.6
    
    27-12-2015:
               Initial Release
               Kernel rebased to CAF TAG LA.BF.1.1.3-00610-8x74.0
               Added Kernel support for f2fs (ROM can run f2fs in userdata partition)
               Prima Wlan driver tag LA.BF.1.1.3_rb1.5 release
    58
    Yeah CM forked our repos and have requested us to work on it,I'll be working on cm13 .ATM my sources are no way near nightlies. I expect to get done in a span of 1-2 months. I'll be releasing builds until then.
    58
    New build guys

    Changelog:
    *updated to OOS 2.2.0-x blobs,so 30FPS video with sultan's mod.
    *using updated bacon GPS hal.
    *merged in rb1.10 CAF kernel
    *fully functional hw key swapping
    *fully functional configurable tri-state keys(4 modes)
    *increased haptic feedback to stock levels,might feel more receptive.
    *support for f2fs on cache partition
    *fixed torch tile vanishing.
    *boot optimisations for quicker boot.

    Links:in OP

    Sent from my ONE E1003 using Tapatalk