[GUIDE][PORT]How to Port LolliPop and MarshMallow Based ROMs on Any Device[Qualcomm]

Do you think this Guide is Useful


  • Total voters
    159
Search This thread

VigneshS007

Senior Member
Jul 25, 2014
809
494
Chennai
Samsung Galaxy S24 Ultra
Hey Guyzzz...... I am Here to provide you the Guide on How to port Lollipop ROMs and MarshMallow ROMs on any Device
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 !
Some Basic things u need to Know before Porting
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 folder

Now 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
and paste from port

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
to base /base/system/etc/permissions

now go to port/system/etc/init.d
and copy

Code:
00banner
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
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=
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
Code:
ui_print (" ur text");
and save it


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 .dat

Now enter command
Code:
./rimg2sdat my_new_system.img

Now u can see system.new.dat

Now just zip the ROM and flash

Downloads

Click here for sdat2img.py

Click here for make_ext4fs

Click here for rimg2sdat​

Now Download all these tools and paste it to ur base and port rom directory then follow instructions to port lollipop roms

Credits

@xpirt
@adityaupreti for guide​
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:

adityaupreti

Senior Member
Mar 30, 2015
2,641
6,895
Mumbai
aditheking.github.io

Carlyle_f

Senior Member
Jan 22, 2014
611
382
Cape Town
I ported ressurection remix 5.6 for the Moto G 2014 to my LG G3 Beat using an official CM13 base and it bootloops with this guide

Sent from my LG-D722 using Tapatalk
 
Jun 8, 2015
18
4
24
Dhanbad
I want to port rom for my Spice MI 445 MSM8610 clone of moto e.
I found many custom rom for moto e but didn't know how to port them for my device.

Sent from my Spice Mi-445 using xda Forums PRO
 

adityaupreti

Senior Member
Mar 30, 2015
2,641
6,895
Mumbai
aditheking.github.io
I want to port rom for my Spice MI 445 MSM8610 clone of moto e.
I found many custom rom for moto e but didn't know how to port them for my device.

Sent from my Spice Mi-445 using xda Forums PRO

Sry bt u can't port Roms from moto e to ur device

---------- Post added at 06:20 PM ---------- Previous post was at 06:19 PM ----------

the same here, bootlooping..

kindly give some base ROM info and port ROM info
Also tell base ROM device and port device
Base name port name
 

yakie47

Account currently disabled
Feb 19, 2012
106
20
GB
meettomy.site
i'm porting samsung touchwiz A500fu rom to the chinese version one samsung A5000 base rom, the phone boots up but stuck in samsung boot screen for ever
 

MyAnand13

Senior Member
Apr 11, 2014
51
6
Hey Guyzzz...... I am Here to provide you the Guide on How to port Lollipop ROMs and MarshMallow ROMs on any Device
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 !
Some Basic things u need to Know before Porting
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


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 folder

Now 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
and paste from port

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
to base /base/system/etc/permissions

now go to port/system/etc/init.d
and copy

Code:
00banner
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
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=
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
Code:
ui_print (" ur text");
and save it


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 .dat

Now enter command
Code:
./rimg2sdat my_new_system.img

Now u can see system.new.dat

Now just zip the ROM and flash

Downloads

Click here for sdat2img.py

Click here for make_ext4fs

Click here for rimg2sdat​

Now Download all these tools and paste it to ur base and port rom directory then follow instructions to port lollipop roms

Credits

@xpirt
@adityaupreti for guide​
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​


When I use command ./sdat2img.py system.transfer.list system.new.dat system.img it shown no such file or directory.
 

Carlyle_f

Senior Member
Jan 22, 2014
611
382
Cape Town
  • Like
Reactions: MyAnand13

Top Liked Posts

  • There are no posts matching your filters.
  • 81
    Hey Guyzzz...... I am Here to provide you the Guide on How to port Lollipop ROMs and MarshMallow ROMs on any Device
    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 !
    Some Basic things u need to Know before Porting
    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 folder

    Now 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
    and paste from port

    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
    to base /base/system/etc/permissions

    now go to port/system/etc/init.d
    and copy

    Code:
    00banner
    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
    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=
    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
    Code:
    ui_print (" ur text");
    and save it


    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 .dat

    Now enter command
    Code:
    ./rimg2sdat my_new_system.img

    Now u can see system.new.dat

    Now just zip the ROM and flash

    Downloads

    Click here for sdat2img.py

    Click here for make_ext4fs

    Click here for rimg2sdat​

    Now Download all these tools and paste it to ur base and port rom directory then follow instructions to port lollipop roms

    Credits

    @xpirt
    @adityaupreti for guide​
    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​
    7
    Reserved for faq
    7
    Reserved

    For windows.... Use this Tool http://sourceforge.net/projects/ext2read/files/


    Credits: @neonkat for sharing
    4
    Bro I want for to port on windows
    3
    Hey Guyzzz...... I am Here to provide you the Guide on How to port Lollipop ROMs and MarshMallow ROMs on any Device
    Step 2 :
    decompress ext4 img to output folder

    Now 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

    while running this command, I am getting error

    raj@raj-VirtualBox:/media/sf_share/port$ sudo mount -t ext4 -o loop system.img output
    mount: mount point output does not exist

    same error for base rom too.

    Please help.

    Please try this:

    Code:
    $ sudo mkdir /media/mntpoint
    $ sudo mount -t ext4 -o loop system.img /media/mntpoint

    Sent from my LG-D722 using Tapatalk