Tuesday, 29 December 2015

How To Port A Rom For Your Device

First Of All Make Sure The Rom Which You Want To Port For Your Device Is For The Same CPU Type, Board , Also Make Sure The Resolution Of The Rom Should Be Same As Of Your Device And Your Device Must Be Capable Of Handling The Android Version You Want To Port

You Will Need:-

1.Notepad++
2.WinRar Or WinZip
3.Base Rom (The ROM which already works on your device)
4.Port Rom (The Rom which you want to work on your device)

If You Don't Find Some Of The Directories As Shown In My Roms Than Don't Panic Just Move On!

STEP 1:-

Extract Both The Port.zip and Base.zip files Containing Both The Roms And Navigate To /system/app In The Extracted Port.zip ROM And Copy stk.apk, vpnservices.apk, camera.apk, and bluetooth.apk Into A Temporary Folder Somewhere On Your Pc

STEP 2:-

Now, Delete The Following Folders From Your Port ROM And Replace Them With The Ones From Your Base ROM: /data, /system/app, /system/framework, /system/fonts and /system/media.

STEP 3:-

From Your Base ROM, Copy /system/lib/libandroid_runtime.so To The system/lib/ Directory Of Your Port ROM, Overwriting The File.

STEP 4:-

Next Up, Move The .APKs You Copied Earlier Back Into The /system/app Directory Of Your Port ROM.

STEP 5:-

Open up /system/lib in your Port ROM and copy all the files and folders. Paste them into the Base’s /system/lib directory, replacing all. Then go back to the Port ROM and delete the /system/lib folder, and replace it with the /system/lib folder from the Base ROM.

STEP 6:-

Next, navigate to the /system/etc/init.d folder in the Port ROM and do the same copy-from-Port, paste-to-Base, delete-from-Port, copy-from-Base, paste-to-Port shuffle as before.

STEP 7:-

Navigate to /system/etc/permissions and do that same copy-paste dance one more time.

STEP 8:-

open system/build.prop from both the port and the base ROM in Notepad++. Update the Base build.prop to match the values for “ro.build.description=” and “ro.build.fingerprint=” from your Port. Now save the Base build.prop, exit Notepad++, and copy the Base build.prop into the Port ROM, overwriting the Port build.prop.

STEP 9:-

In Notepad++, open \META-INF\com\google\android\updater-script from both your base and port ROMs. Edit the Port’s script to be like the Base’s updater-script: specifically, change, edit, or add the sections for permissions, ui_prints, asserts, run_programs, and installing the kernel. Don’t change any of the symlinks. In the Port script, make sure that the ‘format’ values are appropriate for your device (compare them to the Base script).

STEP 10:-

Finally, make sure that your kernel is specifically for your device.

And that’s it! Your base ROM is now ready to be zipped and Flashed on your device




2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. You are Provided CyanoGen Mod 12.1 For Mmx A311 Fully Stable Bugless Download links in the Description in YOUTUBE then i am downloaded it and flashed in my mobile after clearing CACHE,DALVIK CACHE, FACTORY RESET, SYSTEM RESET but in the installation process of Rom It shows error and Installation Failed

    ReplyDelete