5,815,095 Members 38,070 Now Online
XDA Developers Android and Mobile Development Forum

[TUTORIAL] Flash CyanogenMod on TWRP

Tip us?
 
Harfainx
Old
(Last edited by Harfainx; 31st January 2014 at 05:07 PM.)
#1  
Harfainx's Avatar
Recognized Contributor - OP
Thanks Meter 607
Posts: 974
Join Date: Apr 2010
Default [TUTORIAL] Flash CyanogenMod on TWRP

For CM11 Nightlies:

Find nightlies here:
http://download.cyanogenmod.com/?device=n1

If you're already on CM 10.2, just wipe cache and dalvik. Flash over your current build.

If you're coming from anything else, wipe cache, dalvik, data, and system. Then flash normally.
If you want gapps, you'll have to flash gapps as well.

No need for any modified files on nightlies. I assume that official stable builds will still be defaulted to flash on stock recovery though.

覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧覧

CM 10.2 Information. Please do not use the following to flash CM11!

This is the method that I used to install CyanogenMod on TWRP.

I have tested this, and it is working perfectly on CM builds:
cm-10.2-WPPH47N-n1
cm-10.2-WPPH50O-n1
I will continue to test and update as new CM builds come out until CM flashes normally on TWRP

覧覧覧覧覧覧覧覧
  • First - Have TWRP as your recovery (2.6.3.1). Don't ask me how to do that.
  • Second - Backup your ROM! Just in-case something breaks, it's not my fault, and I'm not responsible.

覧覧覧覧覧覧覧覧

Now, we begin:

Download the newest CM build for the Oppo N1 from http://www.cyanogenmod.org/hardware/oppo-n1/#images

覧覧覧覧覧覧覧覧

After downloading your CM build from the above link, you'll need to follow these instructions to get setup for flashing in TWRP.

To modify your downloaded CM file, you can use either of the two methods below:

1: You can modify it yourself. It's actually very simple, just one line change.
2: I have attached an already modified updater-script to my post. You can use that and drop it into place (the file inside the zip, not the whole zip).[/b]

YOU ONLY NEED TO USE ONE OF THESE METHODS!

Method 1: To modify the file yourself:
  • First, open your CM zip that you have downloaded.
  • Navigate to the folder: META-INF\com\google\android\
  • Open the updater-script

Remove the first line only! You will remove:
Code:
assert(getprop("ro.product.device") == "N1" || getprop("ro.build.product") == "N1");
Do not remove anything else unless you know exactly what you're doing!
  • If you modified the file within the .zip, just save the file and it should save to the CM zip.
  • If you extracted the .zip, save the file and then go back and rebuild the zip.

Transfer over your newly modified CM.zip file to wherever you can find it on your phone (I drop it straight in the root folder).

覧覧覧覧覧

Method 2: To download my pre-modified updater-script
  • Download my attached file (updater-script.zip)
  • Extract the file inside the zip (there's only one file)
  • Open your CM zip that you have downloaded.
  • Navigate to the folder: META-INF\com\google\android\
  • Simply copy your extracted updater-script from where you extracted it and drop it into the CM zip (It should save after)

Transfer over your newly modified CM.zip file to wherever you can find it on your phone (I drop it straight in the root folder).

覧覧覧覧覧覧覧覧

Reboot into TWRP:

Advanced Wipe ->
Wipe Dalvik Cache, Cache, and Data. ***DO NOT WIPE SYSTEM***

Then install your modified CM file. Please, remember, DO NOTE WIPE SYSTEM.

Reboot system! Done!



I hope this all makes sense...
Basically you download the CM rom
Modify or copy the updater-script into the zip
Then you move the ROM to you phone
Then you go through the above area with wiping and flashing


* Pictures are attached
* Please let me know if there are any problems with this.
* Both versions of CM released so far have identical updater-script files. The .zip that I have attached will work on both builds.
* I will keep updating as needed

Last updated: January 1, 2014
Attached Thumbnails
Click image for larger version

Name:	IMAG1315.jpg
Views:	790
Size:	219.7 KB
ID:	2429585   Click image for larger version

Name:	IMAG1314.jpg
Views:	748
Size:	245.6 KB
ID:	2429586   Click image for larger version

Name:	IMAG1297.jpg
Views:	729
Size:	255.1 KB
ID:	2429587  
Attached Files
File Type: zip updater-script.zip - [Click for QR Code] (2.4 KB, 89 views)
team d3rp

nVidia Shield Tablet Archos Gamepad 2 OUYA Nexus 10 Nexus 7 (2013)
、 OnePlus One HTC One M8 HK (Sprint) Samsung Galaxy S4 (Sprint) 、
ォ 距 ア 覧 サ
ォ Recycled phones: Oppo N1, HTC One M7, HTC EVO 4G LTE, SGS3, HTC EVO 3D, HTC EVO 4G, HTC Hero, HTC Touch Pro 2, LG Rumor 2, + Older サ
ォ Recycled Tablets: Archos Gamepad, Nexus 7 (2012), Archos G9 101, Archos G8 101, Archos 9 PC, Archos 5 (Android) サ
The Following 4 Users Say Thank You to Harfainx For This Useful Post: [ Click to Expand ]
 
Entropy512
Old
#2  
Senior Recognized Developer
Thanks Meter 24,381
Posts: 13,280
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
We're working on fixing TWRP so the asserts work properly.

https://github.com/omnirom/android_b...72580d2#diff-1 broke a lot of things.

https://github.com/omnirom/android_b...54158bc0eae905 allows flashing newer firmwares on older recoveries - but not the other way around.

The short-term fix is a TWRP build made from a 4.3 tree - this is 90% done.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
The Following 2 Users Say Thank You to Entropy512 For This Useful Post: [ Click to Expand ]
 
rayfin
Old
#3  
Senior Member
Thanks Meter 92
Posts: 155
Join Date: Jan 2011

 
DONATE TO ME
@OP: Working with Entropy last night to squash this bug, I flashed his newly built TWRP and was able to go back to ColorOS or CM without issue. https://dl.dropboxusercontent.com/u/...n1_twrp_43.img
Current Devices:
Moto X, Oppo Find 7a, Nexus 7 2013

Past Devices:
HTC Droid DNA, Nexus 7 2012, Acer Iconia A500, Nexus 4, Galaxy Nexus, HTC Incredible

Circle me on Google+
The Following 2 Users Say Thank You to rayfin For This Useful Post: [ Click to Expand ]
 
Harfainx
Old
#4  
Harfainx's Avatar
Recognized Contributor - OP
Thanks Meter 607
Posts: 974
Join Date: Apr 2010
Quote:
Originally Posted by Entropy512 View Post
We're working on fixing TWRP so the asserts work properly.
That's fantastic. I'm glad to hear that it's being work on/working. I suppose fixing TWRP trumps fixing the ROM
team d3rp

nVidia Shield Tablet Archos Gamepad 2 OUYA Nexus 10 Nexus 7 (2013)
、 OnePlus One HTC One M8 HK (Sprint) Samsung Galaxy S4 (Sprint) 、
ォ 距 ア 覧 サ
ォ Recycled phones: Oppo N1, HTC One M7, HTC EVO 4G LTE, SGS3, HTC EVO 3D, HTC EVO 4G, HTC Hero, HTC Touch Pro 2, LG Rumor 2, + Older サ
ォ Recycled Tablets: Archos Gamepad, Nexus 7 (2012), Archos G9 101, Archos G8 101, Archos 9 PC, Archos 5 (Android) サ
 
Entropy512
Old
#5  
Senior Recognized Developer
Thanks Meter 24,381
Posts: 13,280
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by rayfin View Post
@OP: Working with Entropy last night to squash this bug, I flashed his newly built TWRP and was able to go back to ColorOS or CM without issue. https://dl.dropboxusercontent.com/u/...n1_twrp_43.img
BTW, I'd prefer that my personal dropbox not be directly linked. The same file is now an attachment to my post in the TWRP thread.
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
kenjilolip0p
Old
#6  
Senior Member
Thanks Meter 6
Posts: 174
Join Date: Sep 2011
Quote:
Originally Posted by Harfainx View Post
That's fantastic. I'm glad to hear that it's being work on/working. I suppose fixing TWRP trumps fixing the ROM
i have some question can u help me :3

1. this download link is the file you already fix it right ?

Quote:
https://www.4shared.com/download/UPP...N-N1_FIXED.zip - No wait - Direct download link - Full flashable ROM
so i just have to download and flash with TWRP. dont have to fix any else ?

2. This is CM10.2 rom official for N1 work with O-Touch in the back ?
 
Harfainx
Old
#7  
Harfainx's Avatar
Recognized Contributor - OP
Thanks Meter 607
Posts: 974
Join Date: Apr 2010
Quote:
Originally Posted by kenjilolip0p View Post
so i just have to download and flash with TWRP. dont have to fix any else ?

2. This is CM10.2 rom official for N1 work with O-Touch in the back ?
Correct, the very top link in the OP is the full ROM. You can download the full ROM and flash it in TWRP. It's already fixed and ready to go.

So far that has been the only ROM to come out from Oppo for CM. It contains most of the ColorOS features that work. "Knock" to wake (double-tap), screen off gestures, camera orientation, etc. I'm almost positive that the back touch-pad was working. I haven't been on CM in a little bit though. I'm still working on making changes to ColorOS, and updating as I go.
team d3rp

nVidia Shield Tablet Archos Gamepad 2 OUYA Nexus 10 Nexus 7 (2013)
、 OnePlus One HTC One M8 HK (Sprint) Samsung Galaxy S4 (Sprint) 、
ォ 距 ア 覧 サ
ォ Recycled phones: Oppo N1, HTC One M7, HTC EVO 4G LTE, SGS3, HTC EVO 3D, HTC EVO 4G, HTC Hero, HTC Touch Pro 2, LG Rumor 2, + Older サ
ォ Recycled Tablets: Archos Gamepad, Nexus 7 (2012), Archos G9 101, Archos G8 101, Archos 9 PC, Archos 5 (Android) サ
 
Entropy512
Old
#8  
Senior Recognized Developer
Thanks Meter 24,381
Posts: 13,280
Join Date: Aug 2007
Location: Owego, NY

 
DONATE TO ME
Quote:
Originally Posted by Harfainx View Post
Correct, the very top link in the OP is the full ROM. You can download the full ROM and flash it in TWRP. It's already fixed and ready to go.

So far that has been the only ROM to come out from Oppo for CM. It contains most of the ColorOS features that work. "Knock" to wake (double-tap), screen off gestures, camera orientation, etc. I'm almost positive that the back touch-pad was working. I haven't been on CM in a little bit though. I'm still working on making changes to ColorOS, and updating as I go.
Camera orientation is handled by the camera HAL blobs.

CM does have back touchpad support but it's wonky (which is why omni hasn't merged it yet, we're still discussing whether to completely rearchitect it or just fix it.)
*so much sig updating needed*

My Github profile - Some Android stuff, some AVR stuff

An excellent post on "noobs vs. developers"

A few opinions on kernel development "good practices"

Note: I have chosen not to use XDA's "friends" feature - I will reject all incoming "friend" requests.

Code:
<MikeyMike01> Smali is a spawn of hell
<shoman94> ^^^ +!
Code:
<Entropy512> gotta be careful not to step on each other's work.  :)
<Bumble-Bee> thats true
<jerdog> compeete for donations
 
xpamiceftk
Old
#9  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Dec 2010
good work

Sent from my M045 using XDA Premium 4 mobile app
 
fesar
Old
#10  
fesar's Avatar
Member
Thanks Meter 6
Posts: 99
Join Date: Mar 2005
Location: Paris

 
DONATE TO ME
Default Except root it works

Hi,

I tried everything and it works. But the root is not working well. I tried installing SuperSu.zip as well as apk nothing works. Any thoughts ?

Francis.
Regards,
Francis

Samsung Galaxy S III


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes