Welcome to all android developers, porters and users you can find your needed

Sunday 26 March 2017

[GUIDE] How to port Custom Rom for MTK6572 JellyBean

Porting Guide for Jellybean MTK6572

Note: it must be same MTK6572 and same Jellybean

What do you need:

  • Stock rom
  • Port rom (must be MTK6572 android 4.2.2)
  • 7zip
  • notepad++
  • apktool
  • knowledge about porting
  • Brain
Step 1: Stock and Port rom
  • Create a 2 folder name it as stock and port
  • Extract your stock rom place in stock folder same as port rom place in port folder
Step 2: bin Folder copy and replace the following files
  • dnsmasq
  • vold
  • sdcard
if you got a bug in sdcard mounting delete and replace whole bin folder
or if you got a bootloop try to copy and replace all files in bin folder

Step 3: etc folder delete and copy the following folder and files
  • firmware
  • dhcpcd
  • fmr
  • permissions
  • security
  • wide-dhcpv6
  • wifi
  • apns-conf.xml
  • vold.fstab
  • vold.fstab.nand
  • vold.fstab.fat.nand
Step 4: lib folder delete and copy the following folder
  • hw
  • modules
  • soundfx
Step 5: copy and replace the following files in lib folder
  • libaudio.a2dp.default.so
  • libaudio.primary.default.so
  • libaudiocompensationfilter.so
  • libaudiocustparam.so
  • libaudioeffect_jni.so
  • libaudioflinger.so
  • libaudio-resampler.so
  • libaudiosetting.so
  • libaudioutils.so
  • liba3m.so
  • libacdk.so
  • libaudioflinger.so
  • libc.so
  • libcam.camadapter.so
  • libcam.campipe.so
  • libcam.camshot.so
  • libcam.client.so
  • libcam.paramsmgr.so
  • libcam.utils.so
  • libcam_camera_exif.so
  • libcamalgo.so
  • libcamdrv.so
  • libcamera_client.so
  • libcamera_metadata.so
  • libcameracustom.so
  • libcameraservice.so
  • libexif.so
  • libfeatureio.so
  • libfrsdk.so
  • libft.so
  • libgoggles_clientvision.so
  • libgui.so
  • libimageio.so
  • libja3m.so
  • libcustom_nvram.so
  • libsensorservice.so
  • libvcodecdrv.so
  • libdpframework.so
  • libinput.so
  • libsync.so
Step 6: usr folder
  • usr - delete and replace
Step 7: Open build.prop search line or add
  • ro.sf.lcd_density=160 (for 3.5 inch) 240 (for 4.0 inch)
  • ro.sf.hwrotation=0 (for fix rotation)
Step 7: META-INF folder
You can use the META-INF of Port rom
Open META-INF / com/google / android / updater-script and edit this line
Your mount point must be mmcblk0p4 for system like this:
  • format("ext4", "EMMC", "/dev/block/mmcblk0p4");
  • mount("ext4", "EMMC", "/dev/block/mmcblk0p4", "/system");
Your mount point must be mmcblk0p6 for data like this:
  • mount("ext4", "EMMC", "/dev/block/mmcblk0p6", "/data");
Step 8: boot and logo
  • Replace your stock Boot.img and logo.bin to port rom
Common bug: sdcard not mounting or reverse mount
How to fix:
1. decompile framework-res.apk
2. on res/xml folder find storage_list.xml and edit in notepad++
3. there is sdcard0 at sdcard1 just interchange the 0 change it as 1 and the 1 change it as 0
4. Recompile
if you got a bootloop prepare your original framework-res.apk from Port rom
Share:

0 comments:

Post a Comment

Contact

Name

Email *

Message *

Total Pageviews

Use the Translator

Reports

If you find a post and have dead link please comment and I will reupload

All Chipset

Blog Archive

Theme Support

Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.