Hey Guyzzz...... I am Here to provide you the Guide on How to port Lollipop ROMs and MarshMallow ROMs on any Device
Some Basic things u need to Know before Porting
1st extract ur base cm,aosp,etc rom on one folder
2nd extract ur Port rom in one folder
Now you can see
Now we need to decompress .dat to ext4 img
Open terminal and
Now enter this command
Now we will mount system.img
Enter this command
Now go to output folder and now u can see all folder and apk like a KitKat rom
Now do the same with port rom
Delete some folders from base
and paste from port
Now copy some important permissions and init.d files
to base /base/system/etc/permissions
now go to port/system/etc/init.d
and copy
to base/system/etc/init.d
Now open the build.prop of both ROMS. Replace the values infront of following
lines in base from port
change frm port to base
base/system/build.prop
port/system/build.prop
Edit meta inf
Now go to metainf/com/google/android
And open updater-script with notepad++
And u can add
and save it
Now we need to again compress rom
Now enter this command
Now u can see ur system_new.img
Now enter command
Now u can see system.new.dat
Now just zip the ROM and flash
Now Download all these tools and paste it to ur base and port rom directory then follow instructions to port lollipop roms
If I forgot anyone PM me
A Thanks on our Posts will be Helpful For OUR Efforts ..... Please.....
If u have any queries in Porting.....AdityaUpreti and Me are always here to help you......
New Year Gift For You Guyz
First Guide on XDA to port ROMs above 5.0.2 (Qualcomm Processor)
Code:
KEEP THESE POINTS IN MIND
This guide wont make you a full fledged dev.
It teaches you the basics of porting ROMS.
If anything happens to your device I AM NOT RESPONSIBLE for IT ! try it on your own risk !
Code:
The rom which you want to port for your device is named here as [B]PORT[/B]
The rom which is already working for your device is called here as [B]BASE[/B]
Download Some Necessary Files From this Post
1st extract ur base cm,aosp,etc rom on one folder
2nd extract ur Port rom in one folder
Now you can see
boot.img
file_contexts
META-INF
system.new.dat (compressed /system)
system.patch.dat
system.transfer.list
Step 1:
Ubuntu guide Now we need to decompress .dat to ext4 img
Open terminal and
Now enter this command
Code:
./sdat2img.py system.transfer.list system.new.dat system.img
By running this command u can see a system.img
Step 2 :
decompress ext4 img to output folderNow we will mount system.img
Enter this command
Code:
sudo mount -t ext4 -o loop system.img output/
Now go to output folder and now u can see all folder and apk like a KitKat rom
Now do the same with port rom
Step 3:
Now we will port Delete some folders from base
Code:
base/system/app
base/system/fonts
base/system/framework
base/system/media
base/system/priv-app
Code:
port/system/priv-app
port/system/app
port/system/fonts
port/system/framework
port/system/media
Now copy some important permissions and init.d files
Code:
port/system/etc/permissions
platform.xml
handheld_core_hardware.xml
handheld_hardware.xml
now go to port/system/etc/init.d
and copy
Code:
00banner
Now open the build.prop of both ROMS. Replace the values infront of following
lines in base from port
change frm port to base
Code:
ro.build.id=
ro.build.display.id=
ro.build.version.release=
ro.product.model=
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
port/system/build.prop
Edit meta inf
Now go to metainf/com/google/android
And open updater-script with notepad++
And u can add
Code:
ui_print (" ur text");
Now we need to again compress rom
Now enter this command
Code:
./make_ext4fs -T 0 -S file_contexts -l 1073741824 -a system system_new.img output/
Now u can see ur system_new.img
Step 4:
now we need to compress it back to .datNow enter command
Code:
./rimg2sdat my_new_system.img
Now u can see system.new.dat
Now just zip the ROM and flash
Downloads
Now Download all these tools and paste it to ur base and port rom directory then follow instructions to port lollipop roms
If I forgot anyone PM me
A Thanks on our Posts will be Helpful For OUR Efforts ..... Please.....
If u have any queries in Porting.....AdityaUpreti and Me are always here to help you......
Stay Blessed ....... Happy New Year 2K16
Last edited: