FORUMS
Remove All Ads from XDA

 View Poll Results: Do you think this Guide is Useful

Yes OffCourse
 
120 Vote(s)
77.42%
Not Bad
 
35 Vote(s)
22.58%

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

813 posts
Thanks Meter: 489
 
Post Reply Email Thread
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 PORT 
The rom which is already working for your device is called here as BASE
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
Quote:

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
The Following 81 Users Say Thank You to VigneshS007 For This Useful Post: [ View ] Gift VigneshS007 Ad-Free
1st January 2016, 08:36 AM |#2  
adityaupreti's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 6,908
 
More
Reserved for faq
The Following 7 Users Say Thank You to adityaupreti For This Useful Post: [ View ] Gift adityaupreti Ad-Free
1st January 2016, 08:36 AM |#3  
VigneshS007's Avatar
OP Senior Member
Flag Chennai
Thanks Meter: 489
 
More
Reserved
For windows.... Use this Tool http://sourceforge.net/projects/ext2read/files/


Credits: @neonkat for sharing
The Following 7 Users Say Thank You to VigneshS007 For This Useful Post: [ View ] Gift VigneshS007 Ad-Free
1st January 2016, 11:32 AM |#4  
CedArctic's Avatar
Senior Member
Thanks Meter: 1,774
 
More
Cool gonna try it out, thanks man
1st January 2016, 02:00 PM |#5  
salah6805's Avatar
Senior Member
Thanks Meter: 88
 
More
Bro I want for to port on windows
The Following 4 Users Say Thank You to salah6805 For This Useful Post: [ View ] Gift salah6805 Ad-Free
1st January 2016, 02:22 PM |#6  
neelsolanki's Avatar
Senior Member
Flag palanpur
Thanks Meter: 222
 
More
Finally its here . search lot fr this.. Btw dz guide ll work on snapdragon 810.. E.g. i use 1+2 so . can i port another sp810 roms?
1st January 2016, 03:55 PM |#7  
salah6805's Avatar
Senior Member
Thanks Meter: 88
 
More
Quote:
Originally Posted by adityaupreti

Reserved for faq

Bro please tell me how to do this in windows
1st January 2016, 03:59 PM |#8  
adityaupreti's Avatar
Senior Member
Flag Mumbai
Thanks Meter: 6,908
 
More
Quote:
Originally Posted by neelsolanki

Finally its here . search lot fr this.. Btw dz guide ll work on snapdragon 810.. E.g. i use 1+2 so . can i port another sp810 roms?

If it meet same specs u can port rom

---------- Post added at 09:29 PM ---------- Previous post was at 09:28 PM ----------

Quote:
Originally Posted by salahXDA6805

Bro please tell me how to do this in windows

Soon update thread with Windows
The Following 2 Users Say Thank You to adityaupreti For This Useful Post: [ View ] Gift adityaupreti Ad-Free
1st January 2016, 08:16 PM |#9  
NeoLogY's Avatar
Senior Member
Thanks Meter: 133
 
More
Quote:
Originally Posted by adityaupreti

If it meet same specs u can port rom

---------- Post added at 09:29 PM ---------- Previous post was at 09:28 PM ----------



Soon update thread with Windows

Been looking for this too, thanks for this, will try soon.
[Q]
Is there any most practical way to compare 2 device spec?
2nd January 2016, 03:25 AM |#10  
VigneshS007's Avatar
OP Senior Member
Flag Chennai
Thanks Meter: 489
 
More
Quote:
Originally Posted by NeoLogY

Been looking for this too, thanks for this, will try soon.
[Q]
Is there any most practical way to compare 2 device spec?

Try 91mobiles.com and compare mobiles there u can see the similarities and differences. ... or gsmarena

........Press Thanks .......
The Following 2 Users Say Thank You to VigneshS007 For This Useful Post: [ View ] Gift VigneshS007 Ad-Free
6th January 2016, 05:11 AM |#11  
Carlyle_f's Avatar
Senior Member
Flag Cape Town
Thanks Meter: 384
 
Donate to Me
More
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
Post Reply Subscribe to Thread

Tags
port android 5.1.1, port android 6.0, port lollipop, port marshmallow

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes