Hey watup guys shivasai here and today i'm gonna teach you how to port cyanogenmod based custom roms from android one (1st gen) to your generic mtk(Mt6582) in a simple and easy way that even a beginner can understand and can start porting the roms.
This method works for most of the roms but i cannot assure some roms will boot.you will need to have cyanogenmod 12.1/13 rom for your device,stable ones recommended.if you don't have one you can port it from here - cm12.1 // cm13.You can get the port roms here - Androidone
if you want to learn normal cm porting head over - Here.
Porting Method:
-Open stock rom and your port rom in two different windows.
-Delete the following files from stock rom and replace from port rom.
- system/addon.h
- system/Apps
- system/fonts
- system/framework
- system/media
- system/priv-apps
- system/build.prop
-copy and paste /bin &/lib &etc/permissions from port to stock but don't replace anything.
-Copy and replace lib/ linandroidserver.so , libandroidruntime.so , libandroidfw.so , libmedia_jni.so --from port to stock cm.
-Merge extra files in vendor folder from sprout
-copy and replace bin/ app_process32 ,applypatch ,bootanimation ,dalvikvm32 ,drmserver ,mdnsd ,mediaserver ,serfaceflinger from port to stock cm.
- Edit build.prop lines 1. ro.sf.hwrotation=180 or 0 2. ro.sf.lcd_density=whatever you like.
And this is it you will successfully be able to boot the roms.
consider visiting funkteck.in
Credits:
Shiva Sai
Yazad Madan
Kishan P patel
suhail dongri
Sai Krishna
Ayush Rai
Team SPT.