@Maurice5813 I didn't really get the last step, should I make a zip of the port rom or the base rom?
Ok, Could I take any ROM as my 'port ROM' or is it supposed to be device specific? Could I take a Ressurection Remix ROM based on mm which was ported to my device by someone else as my base and Lineage OS 14.1 (of any device) as my 'port'?In the last step you just have to make a zip of BASE Rom(since we did all the replacing with base rom)...which is consisting of these folders
META-INF
System
boot.img or data.img (if it is present)
file_contexts (if it is present)
Ok, Could I take any ROM as my 'port ROM' or is it supposed to be device specific? Could I take a Ressurection Remix ROM based on mm which was ported to my device by someone else as my base and Lineage OS 14.1 (of any device) as my 'port'?
STEP1:
Take any clean CM7, CM9, CM10, CM11, AOKP or AOSP Android 4.4 ROM which is running on your device as Base ROM.
STEP2:
Make a New Folder on your desktop, name it "Project - (Name of Your Device)". This is our Working Folder.
SETP3:
Inside that folder, Create 2 more folders. One Named "BASE" and one Named "PORT"
STEP4:
STEP5:
STEP6:
Delete addon.d, app, Framework, Fonts, Media and priv-app (if there is one) folder inside System Folder of Base ROM.
STEP7:
Now copy the addon.d, app, Framework, Fonts, Media and priv-app (if there is one) folders inside System Folder of Port rom to the Base rom System folder.
STEP8:
Now Go back to Base Rom folder. Navigate to etc folder (BASE/System/etc) and open init.d folder.
STEP9:
Open init.d Folder (if there is one, if not skip to step 11) in Base ROM and Delete everything except 00banner.
STEP10:
Navigate to init.d folder in Port Rom (PORT/System/etc/init.d). Copy all the files inside of init.d folder of Port Rom to Base Rom. Don't Copy the 00Banner!
STEP11:
Open permissions folder of Base Rom (BASE/System/etc/permissions). Do the same in the Port Rom.
STEP12:
Pay Close Attention!!! Open permissions folder of Port Rom (PORT/System/etc/permissions). Copy all the permission files to Base Rom's permission folder except for :
STEP13:
Now open build.prop file using Notepad++ and make changes to these of Base Rom that you want.
ro.build.id=
ro.build.display.id=
ro.build.date=
ro.build.date.utc=
ro.build.user=
Change ro.product.locale.language and ro.product.locale.region if you need different language.
STEP14:
In build.prop file change these to same as Port Rom build.prop values:
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
STEP15:
You've done it! Now all we have to do is to make it into a flashable ZIP. Pay close Attention!
SELECT META-INF, system,file_contexts(if it is one) boot.img, data(if it is one).
Right Click and Select Add to Archive..
Select the Zip button.
Type the Name (Don't delete ".zip" at the end).
Click OK when ready..
STEP3:
Inside lib folder search for these libs:
libandroid_runtime.so
libandroid_servers.so
libmedia_jni.so
Once you find each, copy them to the lib folder of Base Rom. Right-click lib folder of Base Rom, select paste, and click the box in the lower left corner. Now "Click Move and Replace"