Breaking News
recent

How To Port Different ROMSto Your Device

For Begineers & Advanced Users
Almost Any Device to Any Device!***
Many people have requested me to share the method which I
am using to port roms..
THIS IS THE SIMPLEST AND FASTEST WAY TO PORT ROMS!!!
*You will need:
** A Brain
* *Patience
* *Windows XP/7/8
**Notepad++
**a compression program (WinZip or 7zip and etc)
*** Bootimg Unpack/Repack Tools for Windows!
* *Stock ROM
* *And a Little Respect!!
So now Lets Begin...
**the ROM you want to port to your phone (let’s call it
the "Port ROM")
**a ROM designed for your phone (let’s call it"Base
ROM")
Here it goes!
find a ROM that is designed for the same CPU type,
CyanogenMod 11/12.1 ROM should work, but you’ll have to make
sure your phone can handle the ROM Also, your Port ROM's original Phone
should have the same RESOLUTION with that of your phone's.
Step 1.You will need:
**Notepad++
**a compression program (WinZip or 7zip and etc)
**the ROM you want to port to your phone (let’s call it
the "Port ROM")
**a ROM designed for your phone (let’s call it"Base
ROM")
**Replace these from your Stock ROM to the ROM u want to
PORT!! Lets Call it "PORT"
This guide may mention some files or directories that aren’t
present in your particular ROM; don’t worry, just carry on.
Step 2.On your PC, extract the .ZIP files containing the two
ROMs, and navigate to /system/app in your extracted
Port ROM and copy stk.apk, vpnservices.apk,
camera.apk, and bluetooth.apk into a temporary
directory somewhere else on your PC.
Step 3.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 4.From your Base ROM, copy /system/lib/
libandroid_runtime.so to the system/lib/ directory of
your Port ROM, overwriting the file.
Step 5.Next up, move the .APKs you copied earlier back into
the /system/app directory of your Port ROM.
Step 6.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 7.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 8.Navigate to /system/etc/permissions and do that
same copy-paste dance one more time.
Step 9.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 10.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 11.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).
Now, if you desire, you can update any apps you require, or
add any tools like BusyBox or SuperSU.
And that’s it! Your base ROM is now ready to be zipped & installed on your device via cwm/twrp recoveries. 
DOWNLOAD LINK
Credits @SHIVAM
Unknown

Unknown

No comments:

Post a Comment

Tech Ninjaz™. Powered by Blogger.