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

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
Click to expand...
Click to collapse
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​

Reserved for faq

Reserved
For windows.... Use this Tool http://sourceforge.net/projects/ext2read/files/
Credits: @neonkat for sharing

Cool gonna try it out, thanks man

Bro I want for to port on windows

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?

adityaupreti said:
Reserved for faq
Click to expand...
Click to collapse
Bro please tell me how to do this in windows

neelsolanki said:
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?
Click to expand...
Click to collapse
If it meet same specs u can port rom
---------- Post added at 09:29 PM ---------- Previous post was at 09:28 PM ----------
salahXDA6805 said:
Bro please tell me how to do this in windows
Click to expand...
Click to collapse
Soon update thread with Windows

adityaupreti said:
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
Click to expand...
Click to collapse
Been looking for this too, thanks for this, will try soon.
[Q]
Is there any most practical way to compare 2 device spec?

NeoLogY said:
Been looking for this too, thanks for this, will try soon.
[Q]
Is there any most practical way to compare 2 device spec?
Click to expand...
Click to collapse
Try 91mobiles.com and compare mobiles there u can see the similarities and differences. ... or gsmarena [emoji6] [emoji571] [emoji571] [emoji571]
........Press Thanks .......

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

the same here, bootlooping..

Is it almost the same process on windows?

Carlyle_f said:
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
Click to expand...
Click to collapse
This is where debugging process happen. Log is your best friend now.
yakie47 said:
the same here, bootlooping..
Click to expand...
Click to collapse

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

Eklavya Prasad said:
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
Click to expand...
Click to collapse
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 ----------
yakie47 said:
the same here, bootlooping..
Click to expand...
Click to collapse
kindly give some base ROM info and port ROM info
Also tell base ROM device and port device
Base name port name

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

VigneshS007 said:
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​
Click to expand...
Click to collapse
When I use command ./sdat2img.py system.transfer.list system.new.dat system.img it shown no such file or directory.

Bro need for windoes

MyAnand13 said:
When I use command ./sdat2img.py system.transfer.list system.new.dat system.img it shown no such file or directory.
Click to expand...
Click to collapse
Try python sdat2img.py system.transfer.list system.new.dat system.img
Sent from my LG-D722 using Tapatalk
---------- Post added at 10:40 AM ---------- Previous post was at 10:40 AM ----------
salahXDA6805 said:
Bro need for windoes
Click to expand...
Click to collapse
Google cgwyn
Sent from my LG-D722 using Tapatalk

Related

[WIP] Building CM9 for xt910 RAZR

Work in Progress, this not work for now
Hi guys,
So, for now i'm trying to build CM9 from source for xt910.
Before starting a Huge thanks to
STS-dev-team (droidhive.com) (droidth3ory / hashcode / dhacker29)
For their huge work to add spyder into cm9 & aokp.
Now the hard stuff
i won't make another tutorial on how sync cm9 repo etc... i lead you to this thread which worked well for me.
http://forum.xda-developers.com/showthread.php?p=27722264
Follow everything and you will be able to build cm9.
What you need for spyder
so you need to download few folder from STS-dev-team github
https://github.com/STS-Dev-Team
Here's the list of what i dowloaded from 'em:
- https://github.com/STS-Dev-Team/android_local_STS (which is the local_manifest you have to replace)
Code:
put into :
.repo/local_manifext.xml
- https://github.com/STS-Dev-Team/android_device_motorola_spyder (file needed to build spyder)
Code:
put into :
devices/motorola/spyder
- https://github.com/STS-Dev-Team/android_hardware_ti_omap4xxx (hardware file for OMAP4xxx)
Code:
put into :
hardware/OMAP4XXX (replace the existing one)
- https://github.com/STS-Dev-Team/android_vendor_motorola_spyder (vendor file for spyder)
Code:
put into :
vendor/motorola/spyder
- https://github.com/Hashcode/android_hardware_ti_wpan (hardware file needed)
Code:
put into :
hardware/wpan
- https://github.com/Hashcode/android_hardware_ti_camera (hardware file needed)
Code:
put into :
hardware/camera
How to
Once you synced up cyanogen repo download and place all the file above.
then do:
Code:
curl -L -o .repo/local_manifest.xml -O -L https://raw.github.com/STS-Dev-Team/android_local_STS/ics/local_manifest.xml
once finished you'll have to edit this file : device/motorola/spyder/extract-files.sh to make it work with xt910 (just replace it by the file attached
Ok, now you can start trying to build:
Code:
make clean && make clobber
lunch
(choose cm_spyder, 5 for me)
make bacon -j4
Now my error
my building stop with this error
Code:
make: *** No rules to build target « out/target/product/spyder/obj/STATIC_LIBRARIES/libhostapdcli_intermediates/libhostapdcli.a », needed for « out/target/product/spyder/obj/EXECUTABLES/tiap_cu_intermediates/LINKED/tiap_cu ». Stop.
i tried to google it but nothing helped me.
So here we are, if someone have any ideas tips knowledge to share, you're welcome.
Nice! Keep your hard work! Congrats!
Into what path are you putting them into? I had problems compiling if the path contained any spaces or some other special characters.
Check the listing of the Makefile, it will execute some special commands and if those have spaces it will as well fail.
private files under the system/bin is much less, so the error is inevitable.
PS:My English is not very good
---------- Post added at 02:27 AM ---------- Previous post was at 02:08 AM ----------
Reference cdma xt912 extract-files.sh file, executed once, and then to private files the gsm xt910 does not exist shielding to name the difference between rename the file.
Note, divided into two:
1, copy the file
2, spyder-vendor-blobs.mk file creation
Must make the appropriate match to modify.
brainwash123 said:
Into what path are you putting them into? I had problems compiling if the path contained any spaces or some other special characters.
Check the listing of the Makefile, it will execute some special commands and if those have spaces it will as well fail.
Click to expand...
Click to collapse
Well, check the OP i edit it with path.
mapleshadow said:
private files under the system/bin is much less, so the error is inevitable.
PS:My English is not very good
---------- Post added at 02:27 AM ---------- Previous post was at 02:08 AM ----------
Reference cdma xt912 extract-files.sh file, executed once, and then to private files the gsm xt910 does not exist shielding to name the difference between rename the file.
Note, divided into two:
1, copy the file
2, spyder-vendor-blobs.mk file creation
Must make the appropriate match to modify.
Click to expand...
Click to collapse
Exactly, that's why i attached a new extract_files.sh, working for xt910, i only removed missing files, but we may need to add other files.
Yes, you need to add the missing files.
Hi guys, i'm actually builing for 20mn now without error, so i think it's on good way, but don't yeld victory too fast, i have to test the build after that.
Anyway i'll update OP to make it easier and with all the new file & script i added.(probably monday, little busy for weekend )
Stay tuned
Damned computer crashed, dont use it while building
sevenup30 said:
Damned computer crashed, dont use it while building
Click to expand...
Click to collapse
Lol
Are you going to post this as a rom or just leave it as a guide? Be nice to try it but then I need more motivation to learn to build
Sent from my XT910 using xda premium
MarkyG82 said:
Lol
Are you going to post this as a rom or just leave it as a guide? Be nice to try it but then I need more motivation to learn to build
Sent from my XT910 using xda premium
Click to expand...
Click to collapse
i had to add somes files, but for now > bootloop. Try to figure it out
edit:: Ok problem with audio, it can found it because of lib.
I tried replace most part of the lib, it fix display issue but logcat is not wirking anymore :s
i think we have to rework a lot the work done by STS dev team before compile. monday i'll upload the build if someone want to try something with it.

[Dev][CM7.2] Help

Hi all!
I was bored to wait for ICS update. So, I decided to try compilinig CM7.2.
N.B: It's the first rom i compile from source! I'm doing it just for fun and learn how to compile a rom
What I've done:
-Compiled generic CM (with the instruction "lunch full-eng");
-Packed it with Supercharged Kernel;
Now i need some help to create the META-INF folder.
I noticed that with the compiled generic rom came also a folder called "utility" in which I found the update-binary.
P.s.: I hope also this thread will be helpfull for some other new devs
Please help him, I really like to see a cyano7 on U, please... Vai Vaste!!
Vaste92 said:
Hi all!
I was bored to wait for ICS update. So, I decided to try compilinig CM7.2.
N.B: It's the first rom i compile from source! I'm doing it just for fun and learn how to compile a rom
What I've done:
-Compiled generic CM (with the instruction "lunch full-eng");
-Packed it with Supercharged Kernel;
Now i need some help to create the META-INF folder.
I noticed that with the compiled generic rom came also a folder called "utility" in which I found the update-binary.
P.s.: I hope also this thread will be helpfull for some other new devs
Click to expand...
Click to collapse
Could u gimme put up ur github sources fr use?
y dont u just make ota package directly?
bharat_goku said:
Could u gimme put up ur github sources fr use?
y dont u just make ota package directly?
Click to expand...
Click to collapse
Uhm. Now i'll try to upload on github!
With make otapackage it gave me error!
Whoaaa!!!! Superb.!!! man! Anyone help him!!!
Krappabel! KeiranFTW! Brains! Come here xD
Sent from my ST25i using xda app-developers app
Vaste92 said:
Uhm. Now i'll try to upload on github!
With make otapackage it gave me error!
Click to expand...
Click to collapse
whats the error? could gimme a log ?
bharat_goku said:
whats the error? could gimme a log ?
Click to expand...
Click to collapse
Here's the log:
Code:
grep: build/target/board/generic/recovery.fstab: File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
make: *** Nessuna regola per generare l'obiettivo "otapackage". Arresto.
to translate: File o directory non esistente--> File or directory does not exist
Nessuna regola per generare l'obiettivo "otapackage". --> No rule to generate the objective "otapackage."
Vaste92 said:
Here's the log:
Code:
grep: build/target/board/generic/recovery.fstab: File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
find: "out/target/common/docs/gen": File o directory non esistente
make: *** Nessuna regola per generare l'obiettivo "otapackage". Arresto.
to translate: File o directory non esistente--> File or directory does not exist
Nessuna regola per generare l'obiettivo "otapackage". --> No rule to generate the objective "otapackage."
Click to expand...
Click to collapse
ok i dont understand **** outta this,send me ur git repo sometime i'll look into it as i get time..
Vaste92 said:
Hi all!
I was bored to wait for ICS update. So, I decided to try compilinig CM7.2.
N.B: It's the first rom i compile from source! I'm doing it just for fun and learn how to compile a rom
What I've done:
-Compiled generic CM (with the instruction "lunch full-eng");
-Packed it with Supercharged Kernel;
Now i need some help to create the META-INF folder.
I noticed that with the compiled generic rom came also a folder called "utility" in which I found the update-binary.
P.s.: I hope also this thread will be helpfull for some other new devs
Click to expand...
Click to collapse
So you didn't make configuration for the phone, just build the generic CM?
bharat_goku said:
ok i dont understand **** outta this,send me ur git repo sometime i'll look into it as i get time..
Click to expand...
Click to collapse
I didn't menaged to sync all the work with git.
By the way, I managed to install the .zip file. But, obviusly, the device do not boot.
For all who wan't to see my work I've uploaded the .zip file in Google drive, so just PM me and I'll send the link
Vaste92 said:
I didn't menaged to sync all the work with git.
By the way, I managed to install the .zip file. But, obviusly, the device do not boot.
For all who wan't to see my work I've uploaded the .zip file in Google drive, so just PM me and I'll send the link
Click to expand...
Click to collapse
Vaste, let me understand, you took zImage and system, you merged them in a zip and you flashed it??? Of course so it doesn't boot.
But have you got the META-INF folder or have you only got update binary??
If you havn't got META-INF you can download this.
Now we need a Dev or a Cook that take a look of system and zImage and let we now if they're OK; then he has to take updater script and with Notepad++ write the Updater script...
I don't think that it's so hard... Please.
I'm trying to make an Updater script but I never made one, so.....
And anyway I can't now if there is some thing wrong in the rom....
Vitophone said:
Vaste, let me understand, you took zImage and system, you merged them in a zip and you flashed it??? Of course so it doesn't boot.
But have you got the META-INF folder or have you only got update binary??
If you havn't got META-INF you can download this.
Now we need a Dev or a Cook that take a look of system and zImage and let we now if they're OK; then he has to take updater script and with Notepad++ write the Updater script...
I don't think that it's so hard... Please.
I'm trying to make an Updater script but I never made one, so.....
And anyway I can't now if there is some thing wrong in the rom....
Click to expand...
Click to collapse
You can use Rom kitchen (dxin somthng)
Sent from my ST25i using xda premium
For What???
Vaste Alredy made the updater script so now the rom can be installed but it doesn't boot.
I think that the problem is in to system folder, I took a look to the rom and META-INF is OK, kernel's OK to I think (he took Xperia supercharged and with Championswinner kernel kitchen he made from elf a boot.img and then he renamed it to zImage), so the problem is in system folder...
Please, jitin02 take a look, I can give you the link of the zip if vaste is offline...
If you have zImage from supercharged kernel share it!
Inviato dall'unica vera custom rom per xperia U,la supercharged!
Vitophone said:
For What???
Vaste Alredy made the updater script so now the rom can be installed but it doesn't boot.
I think that the problem is in to system folder, I took a look to the rom and META-INF is OK, kernel's OK to I think (he took Xperia supercharged and with Championswinner kernel kitchen he made from elf a boot.img and then he renamed it to zImage), so the problem is in system folder...
Please, jitin02 take a look, I can give you the link of the zip if vaste is offline...
Click to expand...
Click to collapse
I think your missing a major point here,
Its not a CM based kernel :\
Anyway pm me the link..
I will pm you the link so Gek can get the kernel and you can help us, really
Thankyou
Sent from my ST25i using xda app-developers app
Vitophone said:
For What???
Vaste Alredy made the updater script so now the rom can be installed but it doesn't boot.
I think that the problem is in to system folder, I took a look to the rom and META-INF is OK, kernel's OK to I think (he took Xperia supercharged and with Championswinner kernel kitchen he made from elf a boot.img and then he renamed it to zImage), so the problem is in system folder...
Please, jitin02 take a look, I can give you the link of the zip if vaste is offline...
Click to expand...
Click to collapse
Yes, you are right, the problem is in "the system folder". He built the generic CM, not a configured for this phone. It never will boot so.
Sent from my ST25i using xda premium
Vitophone said:
I will pm you the link so Gek can get the kernel and you can help us, really
Thankyou
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Please share link?
GEKTHEBOSS said:
If you have zImage from supercharged kernel share it!
Inviato dall'unica vera custom rom per xperia U,la supercharged!
Click to expand...
Click to collapse
please share also to me.
thx

[Q&A] [GUIDE] [PORT] [ROM] All About Mediatek ROM Porting

Q&A for [GUIDE] [PORT] [ROM] All About Mediatek ROM Porting
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer. Thanks for understanding and for helping to keep XDA neat and tidy! :smile:
after unpack my boot.img with "MTK FirmwareAdapter Tool" i have in the folder:
1- rmdisk (folder)
2- kernel (file)
3- kernel_header (file)
4- ram_disk (file)
5- ram_disk.gz
6- ram_header (file)
Where is the zimage? Where is boot.img-ramdisk folder? How i doing:
"* Now Go back to the Rom folder and Take the boot.img and decompile it with any bootimg-unpack tool!
* Now delete the zimage and rename boot.img-ramdisk to PORT-Ramdisk
* Now Do the Same for Stock boot.img and open the folder named PORT-ramdisk and copy all the fil PORT-
ramdisk to boot.img-ramdisk of your Stock boot.img
* Now Go to boot.img-ramdisk and open init.rc" ?????????
thx
Click to expand...
Click to collapse
Port mtk6592 to mtk6589t
hi i try to port mtk6592 to mtk6589t and not working, you can help me?
Thanks
iphone 6 clone dead
hi i formate iphon6 clone using sp flash tool,now bootloader menu not opening even not charging. what can i do, please advice me.
sorry, i am new here.
I really doubt if this tutorial will work on Tablet Advan T5C.
I really want to Port MIUI Rom to this tablet. However, the developer is very rare for this vendor "Advan" so it's hard to get a Custom ROM.
What ROM of Tablet Vendor which can be ported to this spec?
8 "Inch IPS
MT6582
Mali 400
8 GB ROM
1 GB of RAM
Port MT6589 to MT6577
Thanks for the tutorial on first page.
Im alred try first metod but cellphone restart on CWM scren.
Now a gonna try secound metod.
Useful Post....
Tnx For Share.
teopro said:
after unpack my boot.img with "MTK FirmwareAdapter Tool" i have in the folder:
1- rmdisk (folder)
2- kernel (file)
3- kernel_header (file)
4- ram_disk (file)
5- ram_disk.gz
6- ram_header (file)
Where is the zimage? Where is boot.img-ramdisk folder? How i doing:
"* Now Go back to the Rom folder and Take the boot.img and decompile it with any bootimg-unpack tool!
* Now delete the zimage and rename boot.img-ramdisk to PORT-Ramdisk
* Now Do the Same for Stock boot.img and open the folder named PORT-ramdisk and copy all the fil PORT-ramdisk to boot.img-ramdisk of your Stock boot.img
* Now Go to boot.img-ramdisk and open init.rc" ?????????
thx
Click to expand...
Click to collapse
The zImage is the kernel file. boot.img-ramdisk is the main folder containing the zImage(kernel) and ramdisk, just you need rename the decompiled port boot.img to PORT-ramdisk, and your stock boot.img not rename folder.
I just want to ask how to fix this problem , I ported MT6589 to my MT6577 device, Seems there's no problem in flashing ROM but when its time to boot, it just hangs on the boot logo, it's not even trying to load bootanimation but rather it only flashes a white screen then it reboot to my recovery. Seems like I do something wrong?
My device is mp a818g duo
Kernel:3.4.0
Chipset: MT6577
Hope I receive help
---------- Post added at 03:57 PM ---------- Previous post was at 03:50 PM ----------
teopro said:
after unpack my boot.img with "MTK FirmwareAdapter Tool" i have in the folder:
1- rmdisk (folder)
2- kernel (file)
3- kernel_header (file)
4- ram_disk (file)
5- ram_disk.gz
6- ram_header (file)
Where is the zimage? Where is boot.img-ramdisk folder? How i doing:
"* Now Go back to the Rom folder and Take the boot.img and decompile it with any bootimg-unpack tool!
* Now delete the zimage and rename boot.img-ramdisk to PORT-Ramdisk
* Now Do the Same for Stock boot.img and open the folder named PORT-ramdisk and copy all the fil PORT-
ramdisk to boot.img-ramdisk of your Stock boot.img
* Now Go to boot.img-ramdisk and open init.rc" ?????????
thx
Click to expand...
Click to collapse
When you use android kitchen to decompile your boot.IMG then your kernel will named zimage, but when you use other unpack/repack tool for your boot.IMG, the equivalent of zimage in your decompiled boot.img is the files kernel and kernel header.
Click to expand...
Click to collapse
Xtreme Ornob Thanks
Thanks a lot for this extreame guide about Mediatek rom Porting
what is the tool download link, i am new
When I port by this guide I have problems, from 6582 to 6582
I have logo and then nothing when phone reboots after installing rom
I tried all things
changed kernel from stok to port rom and changed the lines in init.rc in stok rom and have the same result
Can some one help me?
iceman1966 said:
decompile the boot.img rom port and the boot.img of your stock rom. Replace the ramdisk rom port with ramdisk the stock rom. recompile and install the new boot.img.
Click to expand...
Click to collapse
I made that you write to me but situation is the same.
logo and nothing else
How to take the logcat when the phone goes to reboot after flashing the rom ?
I want to see what I made wrong?
query regarding porting from different versions
Hello xda.........i want to know the information about how to port the jellybean rom with kitkat to get kitkat in my phone.............
please explain me how to port to higher versions from our lower version of roms.............
Boot.img
im porting from a device to a device with different SoC.
i have followed instructions on this thread:
http://forum.xda-developers.com/showthread.php?t=2701283
i have done the steps and reached to the step where it says to unpack boot.img. i have unpacked the boot.img in both port and stock only to find the boot.img-ramdisk empty... what should i do now?
I want to know all about Porting
Hi sir Good day.
I want to know how to port a HTC one M8 ROM MTK6572 Chipset. Beacase I came from Samsung Dev. S5830 Galaxy Ace and its hard to understand how to flash ROM's of MTK's Devices. Please Reply Thanks in advance
camera degrades performance
nice tutor, i have sucessfully ported Lewa OS 5.0 rom from Lenovo S920 to my device HDC Galaxy S4 GT-I9500 Clone.
-MTK6589 Quad Core 1.2GHz
-2GB RAM (fake) 1GB RAM (real), 4GB ROM
-5.0inch HD IPS Screen
Display resulotion: 1280*720 pixel display, 320 dpi
GPU : PowerVR SGX 544MP
Build ID : JDQ39.I9500ZSUAMDF
Hardware : UNIVERSAL5410(exynos5) fake, MT6589
Model : GT-I9500
Build number : ALPS.JB2.MP.V1.26
Build date UTC : 20130904-125830
Android v : 4.2.2
Baseband v : MOLY.WR8.W1248.MD.WG.MP.V23.2013/07/25 04:17
Kernel v : 3.4.5 ([email protected]) (gcc version 4.6.x-google 20120106 (prerelease) (GCC))#1 SMP Wed Sep 4 20.55.23 CST 2013
LCD Driver IC : 1-nt35590_hd720_dsi_cmd_truly
all work perfectly but the problem is camera quality really degrades when using Lewa OS. with stock rom my back camera 13MP, when i used custom rom Lewa my back camera only 2MP. i try to instal lenovo super camera, but camera resolution still same only 2MP.
how can i fix it please help me.....!
can you help me I am trying to port the ROM from mt6592 to mt6582 and have problems.
Do you have guide how to make a port from mt6592 to mt6582?
just wanna ask if im doing right,thanks in advance
I am porting custom rom MT6572 to my device MT6582
I decompile boot.img(MT6572) and boot.img(MT6582"stock")
I copy all files from ramdisk(MT6572) and replace it to ramdisk(MT6582" stock)
I edit init.rc and edit what i need to edit and do it like this
#Create Chip Property
on early_property:ro.hardware=mt6572
setprop ro.mtk.hardware mt6582
on early_property:ro.hardware=mt6589
setprop ro.mtk.hardware mt6582
I add and edit those line on the init.rc, am I doing right boss?
Good day Sir,just wanna ask if i am doing right.
I am porting custom rom MT6572 to my device MT6582
I decompile boot.img(MT6572) and boot.img(MT6582"stock")
I copy all files from ramdisk(MT6572) and replace it to ramdisk(MT6582" stock)
I edit init.rc and edit what i need to edit and do it like this
#Create Chip Property
on early_property:ro.hardware=mt6572
setprop ro.mtk.hardware mt6582
on early_property:ro.hardware=mt6589
setprop ro.mtk.hardware mt6582
I add and edit those line on the init.rc, am I doing right boss?

[GUIDE] [LINUX/UBUNTU] Extract/Modify/Rebuild Lollipop ROMs !

Extracting:
1. Download this package: https://tusfiles.net/oaiw9ze20tbl
2. Extract to a folder and chmod 777 -r /path/to/the/folder
3. cd (change directory) to that folder
4. Run prereq.sh
5. Place system.transfer.list and system.new.dat into the folder
6. Open extractor.sh using a text edit program
7. Find the line containing chown command, replace yash:yash with yourusername:yourusername
8. Run extractor.sh
9. Modify contents found in output folder​
Rebuilding:
1. Do above first and then run compress.sh
2. Find the rebuilt system.new.dat and system.transfer.list in sdat folder​
Making it into a ROM:
1. Do above first
2. Find a zip ROM for OnePlus 2 that contains system.transfer.list and system.new.dat
3. Replace it with your rebuilt ones from above mentioned steps
4. Voila! ROM ready!​
NOTE:
The package contains OxygenOS SELinux file contexts in progs subfolder...
So, to modify CM ROMs you need to get file_contexts file from the zip of the ROM and replace the one found in progs subfolder
Credits:
@xpirt
Please mention​
Two questions; Is this a rom kitchen like tool for OxygenOS? Are there any libs or binaries or other dependencies?
I'm a bit busy, but I'll take it for a spin when I can.
Oh one last thing, is there a repo for this?
Ta,
ALQI
Sent from me mobile.
Nice guide
alquimista said:
Two questions; Is this a rom kitchen like tool for OxygenOS? Are there any libs or binaries or other dependencies?
I'm a bit busy, but I'll take it for a spin when I can.
Oh one last thing, is there a repo for this?
Ta,
ALQI
Sent from me mobile.
Click to expand...
Click to collapse
The dsixda kitchen had much more functions then this but you may cknsidet it as a temporary lollipop kitchen with not much extra functionality..
This was like a automation script for me and was a quick one so repo wasn't needed
I have used this script on Ubuntu 64bit and the only extra dependency apart from those included in package are installed by prereq.sh
Btw this is not just for oxygen os it can also be used for any cm or cm based rom here but.do read the note then
Yash98 said:
Extracting:
1. Download this package: https://tusfiles.net/oaiw9ze20tbl
2. Extract to a folder and chmod 777 -r /path/to/the/folder
3. cd (change directory) to that folder
4. Run prereq.sh
5. Place system.transfer.list and system.new.dat into the folder
6. Open extractor.sh using a text edit program
7. Find the line containing chown command, replace yash:yash with yourusername:yourusername
8. Run extractor.sh
9. Modify contents found in output folder​
Rebuilding:
1. Do above first and then run compress.sh
2. Find the rebuilt system.new.dat and system.transfer.list in sdat folder​
Making it into a ROM:
1. Do above first
2. Find a zip ROM for OnePlus 2 that contains system.transfer.list and system.new.dat
3. Replace it with your rebuilt ones from above mentioned steps
4. Voila! ROM ready!​
Click to expand...
Click to collapse
So does this allow you to make ROM's for the OP2 from ROM's based on other devices, or what? Sorry if I'm sort of a noob, I just don't understand what is being done.
Thanks!
Me1256 said:
So does this allow you to make ROM's for the OP2 from ROM's based on other devices, or what? Sorry if I'm sort of a noob, I just don't understand what is being done.
Thanks!
Click to expand...
Click to collapse
You can make ROMs from prebuilt ROMs like OxygenOS or any other built ROM like Exodus, CM12, etc.
Basically modify ROMs without rebuilding from source (which takes a lot of time!)
Sir I downloaded your tool and followed ur guide....But after I run extract.sh there is no files/folders in output folder.Plz reply thankz in advancw
Thank you. I really wanted to extract .dat file..
Sent from my ONE A2003 using Tapatalk
This is a great tool but I wanted to know how to edit the system folder in ubuntu. Like using chmod and chown to pre-root and uninstall some other apps. Can somebody please direct me in that direction.
I go test...

Decrypt/Decode Note 8 OMC/CSC files

I found the csc files in Oreo is encrypted/encoded.
So I decompile the csc.apk and get a class to decode the encoded file.
Then I made a tool to decode/encode the csc file.
Download: can't post a link yet , just search OmcTextDecoder in github and get the download link
Usage:
deocode
Code:
java -jar omc-decoder.jar -i cscfeature.xml -o cscfeature_decoded.xml
or try to decode all .xml files under a directory
Code:
java -jar omc-decoder.jar -i omc -o omc_decoded
encode
Code:
java -jar omc-decoder.jar -e -i cscfeature_decoded.xml -o cscfeature.xml
or try to encode all .xml files under a directory
Code:
java -jar omc-decoder.jar -e -i omc_decoded -o omc_encoded
Source: can't post a link yet , just search OmcTextDecoder in github
This is AMAZING! Thank you
How can I donate you a beer?
Awesome! I have not tried it yet but I have been waiting for someone to finally make a tool for this. Thanks!
it worked for me... i was able to decrypt the files.... unfortunately, i was unable to find a setting that allows me to change the voicemail number dialed when using my T-Mobile sim card.
You should talk to Lou, maybe you could help each other
https://forum.xda-developers.com/tm...carrier-carrier-root-required-t3686535/page38
Is there anything in the file that can enable the cameras shutter sound control in camera app?
Sent from my SM-N950F using Tapatalk
@Kalm_Traveler
vash_h said:
Is there anything in the file that can enable the cameras shutter sound control in camera app?
Sent from my SM-N950F using Tapatalk
Click to expand...
Click to collapse
masri1987 said:
@Kalm_Traveler
Click to expand...
Click to collapse
Thanks for this @masri1987 !!!
@vash_h yep, it is <CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
---------- Post added at 07:09 PM ---------- Previous post was at 07:03 PM ----------
fei-ke said:
I found the csc files in Oreo is encrypted/encoded.
So I decompile the csc.apk and get a class to decode the encoded file.
Then I made a tool to decode/encode the csc file.
Download: can't post a link yet , just search OmcTextDecoder in github and get the download link
Usage:
deocode
Code:
java -jar omc-decoder.jar -i cscfeature.xml -o cscfeature_decoded.xml
encode
Code:
java -jar omc-decoder.jar -e -i cscfeature_decoded.xml -o cscfeature.xml
Source: can't post a link yet , just search OmcTextDecoder in github
Click to expand...
Click to collapse
Thank you so much! I had to manually type out the CSC for my patch by viewing it in CSC app - this would save so much time!
Kalm_Traveler said:
Thanks for this @masri1987 !!!
@vash_h yep, it is <CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
---------- Post added at 07:09 PM ---------- Previous post was at 07:03 PM ----------
Thank you so much! I had to manually type out the CSC for my patch by viewing it in CSC app - this would save so much time!
Click to expand...
Click to collapse
I was thinking this would make life much easier for the next version of the patch
masri1987 said:
I was thinking this would make life much easier for the next version of the patch
Click to expand...
Click to collapse
yes indeed, I was not looking forward to having to do that manually again... only to find out that it was 99% the same as the S8+ 's version.
Very appreciated, but didn't root my phone since Samsung go lived in my country. Haha
Thanks
Hi friend is nice but where are the links?
baloo30310 said:
Hi friend is nice but where are the links?
Click to expand...
Click to collapse
If you read the first post you'll find why there is no link & where to find the download.
Kalm_Traveler said:
Thanks for this @masri1987 !!!
@vash_h yep, it is <CscFeature_Camera_ShutterSoundMenu>TRUE</CscFeature_Camera_ShutterSoundMenu>
---------- Post added at 07:09 PM ---------- Previous post was at 07:03 PM ----------
Thank you so much! I had to manually type out the CSC for my patch by viewing it in CSC app - this would save so much time!
Click to expand...
Click to collapse
AWESOME!! thanks!!
can we modify the CSC file and flash it back to the phone? my phone is not rooted.
vash_h said:
AWESOME!! thanks!!
can we modify the CSC file and flash it back to the phone? my phone is not rooted.
Click to expand...
Click to collapse
Need root access to push back to phone.
shouren04 said:
Need root access to push back to phone.
Click to expand...
Click to collapse
Dam...
Sent from my SM-N950F using Tapatalk
shouren04 said:
If you read the first post you'll find why there is no link & where to find the download.
Click to expand...
Click to collapse
https://github.com/fei-ke/OmcTextDecoder
hi jeannot.
here is the link github. OmcTextDecoder
fei-ke said:
I found the csc files in Oreo is encrypted/encoded.
So I decompile the csc.apk and get a class to decode the encoded file.
Then I made a tool to decode/encode the csc file.
Download: can't post a link yet , just search OmcTextDecoder in github and get the download link
Usage:
deocode
Code:
java -jar omc-decoder.jar -i cscfeature.xml -o cscfeature_decoded.xml
encode
Code:
java -jar omc-decoder.jar -e -i cscfeature_decoded.xml -o cscfeature.xml
Source: can't post a link yet , just search OmcTextDecoder in github
Click to expand...
Click to collapse
thanks for ur awesomeness.. :good: great find, and work...
just attached the cscfeature.xml file for @louforgiveno at his thread, I only do the call recording,, why bother with the little thing when he will hook it up a lot more than me with his find...
goto his thread if u want the file for our N950USQU3CRC2_N950UOYN3CRC2_TMB firmware...
d.cortez said:
it worked for me... i was able to decrypt the files.... unfortunately, i was unable to find a setting that allows me to change the voicemail number dialed when using my T-Mobile sim card.
Click to expand...
Click to collapse
To edit voicemail number, use bk package manager or titanium backup manager to disable VVM....the settings for VVM will disappear and the editable settings will be there,
Alternatively, in the cscfeature.xml you can remove the line that has config VVM....
<CscFeature_Contact_EnableVVM>TRUE</CscFeature_Contact_EnableVVM>
<CscFeature_VoiceCall_ConfigVvm>TRUE</CscFeature_VoiceCall_ConfigVvm>
One of these should do it
You could just edit to FALSE
Hi friend I managed to find and thanks to @ pendor24 for sharing it

Categories

Resources