How to port CM12/CM12.1 lollipop based Rom for Kitkat


How to port CM12/CM12.1 lollipop based Rom for Kitkat 

Unpack both boot.img Stock & cm12/cm12.1
  • Use Stock zImage(Kernel) With Cm12 ramdisk
  • stock/ramdisk/ueventd.rc
  • compare lines of both ramdisk/default.prop then
    Replace those line from stock boot.img/ramdisk/default.prop to cm12 boot.img/ramdisk/default.prop........
    1. ro.secure=*
    2. ro.allow.mock.location=*
    3. ro.debuggable=*


Now, port system folder...
replace stock to port...
  • firmware from system/etc
  • libMali.so from system/lib
  • libcamdrv.so from system/lib
  • libcamalgo.so from system/lib
  • libcameracustom.so from system/lib

Edit build.prop by notepad++..

  • Change dpi,
    ro.sf.lcd_density=*** (as ur Stock build.prop)
  • Rotation as ur device.
    ro.sf.hwrotation=*** (use 0 or 180 as ur device)
META-INF folder:

Open meta-inf folder & locate updater-script META-INF\com\google\android, then open it with Notepad++
just change system & data (if available) block mounting point as ur device,
Compare mmcblk0p* with ur stock Rom Zip
  • format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/system");
  • format("ext4", "EMMC", "/dev/block/mmcblk0p7", "0", "/data");
  • mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
#Now zip it & flash with Philz recovery 6.59
Best of luck,, Happy Porting

Share this

Related Posts

Previous
Next Post »

15 comments

comments
August 16, 2015 at 11:58 AM delete

Kya ye cwm recovery se install ho sakta h...?

Reply
avatar
August 20, 2015 at 8:25 AM delete

Plz Tell How To Fix Bugs.All Lollipop Roms Gives System UI Force Close After Reboot

Reply
avatar
August 21, 2015 at 4:38 PM delete

do you have video tutorial for this sir? can i request for this video tutorial for this part

______________PART______________________________

How to port CM12/CM12.1 lollipop based Rom for Kitkat
Unpack both boot.img Stock & cm12/cm12.1

Use Stock zImage(Kernel) With Cm12 ramdisk
stock/ramdisk/ueventd.rc
compare lines of both ramdisk/default.prop then
Replace those line from stock boot.img/ramdisk/default.prop to cm12 boot.img/ramdisk/default.prop........
1. ro.secure=*
2. ro.allow.mock.location=*
3. ro.debuggable=*
____________________________END______________________________________________

thank you sir... I want to try it my self.... its big appreciate for the video tutorial.. thank you.. and god bless

Reply
avatar
August 22, 2015 at 3:30 AM delete

this guide made by me lol,, all copied

Reply
avatar
August 24, 2015 at 6:07 AM delete

Try dont changing anything in build.prop

Reply
avatar
October 5, 2015 at 10:50 AM delete

I would like to get link to a CM12.1 ROM, not custom like the OctOS because i prefer PURE CM12.1.
I saw there are build for Wiko Rainbow & Darkmoon but the updater-script don't work for me. But i can flash OctOS without problem...

Reply
avatar
December 14, 2015 at 1:33 PM delete

Unpack both boot.img Stock & cm12/cm12.1

we have stock rom, butt where is cm12 rom to unpack please help???

Reply
avatar
March 5, 2016 at 3:54 AM delete

how to port this rom for s duos

Reply
avatar
February 26, 2017 at 1:50 AM delete

can you suggested custom rom for samsung galaxy gt i9060i..

Reply
avatar
September 16, 2017 at 9:27 PM delete

Can i make fir my micromax a096 mtk 6582 running lollipop

Reply
avatar