New best and shortest porting method for porting custom roms / 2017 - Android Builders Collective

HI GYz AFTER A BIG EXPERIENCE ABOUT PORTING I GOING TO SHARE MY EXPERIENCE ABOUT PORTING ANY CUSTOM ROM
BEFORE PORTING YOU NEED SOME TOOLS
1. cygwin and kitchen
Click to expand...
Click to collapse
or
2.
MTK DROID TOOL
7zip
Click to expand...
Click to collapse
NOTEPAD ++
Click to expand...
Click to collapse
(needed or any other text editing software )
THATS IT
Now start porting
At fist make two folder take name as port-rom and another folder as stock-rom
Extract the port rom into port-rom folder
now make a folder for Mtk dorid tool or if you are using kitchen then learn how to use kitchen from another thread
Now extract the stock boot,img using kitchen or Mtk droid tool cut every thing extracted into the stock-rom folder
Now extract the port boot.img
copy the stock kernel or zimage into the extracted port boot.img
Now copy the init/uventd.so file from stock boot.img and copy it to port init/ folder and replace it .......
now repack the port boot.img and pest it to port-rom folder and replace it
now boot.img is ported now time too look into meta-inf folder
Open META-INF/com/google/android
And look for updater-script
open it using notepad++
and look for two line format("ext4", "EMMC", "/dev/block/mmcblk0p6", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p6", "/system",
"max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc");
Change the red marked line according to your device mount point or else use this line
/[email protected]
Click to expand...
Click to collapse
If you are using "/[email protected]" this line then flashing process is
wipe every thing and format dara
reboot to revory and install the zip
Now all doen zip the port rom and install the zip
TADA the Rom ported for your device
CLICK ME TO learn HOW to make patch
GIVE a thumbs up :good: if it is help full

What should I do if this is the line of my Meta-Inf
"format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");"
"mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");"

chris721 said:
What should I do if this is the line of my Meta-Inf
"format("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "0", "/system");"
"mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");"
Click to expand...
Click to collapse
------------------------------------------------------------------
noh you have to find your mount point

santo80s said:
Can you port MIU for nexus 6?
Sent from my Nexus 6 using XDA-Developers Legacy app
Click to expand...
Click to collapse
--------------------------------------------------------
you can port all type of rom using this method
just after that you have to fix the bugs

@pritam dutta
S8 rom not boot at s7e.
it's stuck at start (samsung s7edge logo)
Any body can give me any solution please

mdrobiulhasan said:
@pritam dutta
S8 rom not boot at s7e.
it's stuck at start (samsung s7edge logo)
Any body can give me any solution please
Click to expand...
Click to collapse
-------------------------------------------------------------------------------------
Give me details of your device mean MTK, KERNEL AND SOME OTHER
AND FROM WHICH DEVICE YOU PORTING:fingers-crossed: then i can help u

pritam dutta said:
-------------------------------------------------------------------------------------
Give me details of your device mean MTK, KERNEL AND SOME OTHER
AND FROM WHICH DEVICE YOU PORTING:fingers-crossed: then i can help u
Click to expand...
Click to collapse
My Device is
Galaxy S7 EDGE
MODEL SM-G935FD
EXYNOS 8890 PROCESSOR
KERNEL IS BELOW
kernel/boot
AND I WANT TO PORT
GALAXY S8 PLUS
MODEL SM-G955F/FD
EXYNOS 8895 PROCESSOR
can you have look please

mdrobiulhasan said:
My Device is
Galaxy S7 EDGE
MODEL SM-G935FD
EXYNOS 8890 PROCESSOR
KERNEL IS BELOW
kernel/boot
AND I WANT TO PORT
GALAXY S8 PLUS
MODEL SM-G955F/FD
EXYNOS 8895 PROCESSOR
can you have look please
Click to expand...
Click to collapse
----------------------------------------------------------------------------------------------------
bro in comment section this difficult to reply to your comment just post in my fb group that's easy for help u :: here :fingers-crossed: because i did not check the email every time i hope u can understand:angel:

Can you start telegram group. its much easy to communicate!

Can I use this thread to port Paranoid Android to my Device Lenovo P2?

i want android 8.0 costom rom for lyf water 11.
plz help

pritam dutta said:
HI GYz AFTER A BIG EXPERIENCE ABOUT PORTING I GOING TO SHARE MY EXPERIENCE ABOUT PORTING ANY CUSTOM ROM
BEFORE PORTING YOU NEED SOME TOOLS
or
(needed or any other text editing software )
THATS IT
Now start porting
At fist make two folder take name as port-rom and another folder as stock-rom
Extract the port rom into port-rom folder
now make a folder for Mtk dorid tool or if you are using kitchen then learn how to use kitchen from another thread
Now extract the stock boot,img using kitchen or Mtk droid tool cut every thing extracted into the stock-rom folder
Now extract the port boot.img
copy the stock kernel or zimage into the extracted port boot.img
Now copy the init/uventd.so file from stock boot.img and copy it to port init/ folder and replace it .......
now repack the port boot.img and pest it to port-rom folder and replace it
now boot.img is ported now time too look into meta-inf folder
Open META-INF/com/google/android
And look for updater-script
open it using notepad++
and look for two line format("ext4", "EMMC", "/dev/block/mmcblk0p6", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p6", "/system",
"max_batch_time=0,commit=1,data=ordered,barrier=1,errors=panic,nodelalloc");
Change the red marked line according to your device mount point or else use this line
If you are using "/[email protected]" this line then flashing process is
wipe every thing and format dara
reboot to revory and install the zip
Now all doen zip the port rom and install the zip
TADA the Rom ported for your device
CLICK ME TO learn HOW to make patch
GIVE a thumbs up :good: if it is help full
Click to expand...
Click to collapse
Hhhhhhhhh porting is like that ! Lol
Sent from my SM-G955F using Tapatalk

Related

[Q] How can I convert a Stock ROM to CWM?

I want to build an own ROM, well at least try.
After few experiments -with different success- I modded existing custom ROMs.
Now I want to release an own modded ROM and for that I need a CWM-version of Stock ROM OR -better- Ho I can convert StockROM to CWM-zip.
Rodsengard said:
I want to build an own ROM, well at least try.
After few experiments -with different success- I modded existing custom ROMs.
Now I want to release an own modded ROM and for that I need a CWM-version of Stock ROM OR -better- Ho I can convert StockROM to CWM-zip.
Click to expand...
Click to collapse
I think after you extract and mod system.rfs you should use dsixda kitchen to make the rom and add the boot.img file to zip file created then use CWM to Install the rom
The most important thing is after u have created your system,boot.img and other folder if u added a new folder in your base rom then u need to make a updater script .B-)
Sent from my GT-S5830 using xda premium
Yea but still if I place extracted system rfs AND boot.img from CSC how do I get a running updatescript, respectively what has to be in such an update script?
Don´t tell me "just place metainf folder from out of any other rom into it", cuz in that early dev-phase the metainfs of all other roms are useless, cuz they are almost ext4 and the "just extracted stock" isn´t ext4 so the metainfs of the other ROMs won´t work. ^^
Anyone else to help here?
from some Update-script i think you should do those step:
Remember end each script with ";"
Code:
unmount ("/system")[COLOR="red"];[/COLOR]
1-Format all system like you install new Windows
Code:
format("[COLOR="red"]ext4[/COLOR]", "EMMC", "/dev/block/stl[COLOR="Red"]12[/COLOR]")
Change the red with right values: rfs,ext2,3,4(file system), 12 or 13 or 14( system,data,cache partition)
With ext4 you must have a kernel support ext4
2-After format you have to mount them to copy files
Code:
mount("[COLOR="red"]ext4[/COLOR]", "EMMC", "/dev/block/stl[COLOR="red"]12[/COLOR]", "/[COLOR="red"]system[/COLOR]")
3-Extract files from zip to ROM
Code:
package_extract_dir("[COLOR="red"]system[/COLOR]", "/[COLOR="red"]system[/COLOR]")
extract system folder in ZIP to /system
Do same thing to data, cache if you have them in ZIP.
4-Fix permission
nah i dont know to much about this
You have to change permission to right state if not i dont know what happen next
Code:
set_perm([COLOR="Red"]0[/COLOR], [COLOR="red"]0[/COLOR], [COLOR="red"]0777[/COLOR], "[COLOR="red"]/system/bin/a2sd[/COLOR]")
Set permission to one file or one folder(not its contain)
Code:
set_perm_recursive ([COLOR="red"]0[/COLOR], [COLOR="red"]0[/COLOR], [COLOR="red"]0755[/COLOR], [COLOR="red"]0644[/COLOR], "[COLOR="red"]/system[/COLOR]")
Set permission to it and all thing in it
5- Link file
ahh hard to know
You should ask someone else but me
Code:
symlink [COLOR="red"]busybox[/COLOR] [COLOR="red"]SYSTEM:xbin/zcip[/COLOR]
6- Unmount partition
Code:
unmount("[COLOR="Red"]/system[/COLOR]")
And if you have your own boot.img
Code:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
This is really basic. So may be it wont work
For advance: update-script syntax - A guide for ROM devs, modders, and themers
Anyone: how to compile kernel for fit? I almost give up cause i dont know much about linux, I tried samsugn source but my device never boot. If anyone could help this Noob, Noob 's very thank you
Thank you very much. This should be helpful

[9001][CWM] The making of ... an ODIN package with CWM [2012-05-17] XXKQE added

Hi all,
Not sure whether anyone ever created this, whether it already exists, or even whether it's useful, but nevertheless I **proudly** present to you:
Building an ODIN package using a cwm-installable script!
If you want to do it using ADB (either through dos or cygwin), please go to this topic:
The making of ... an ODIN installable package
Simple, single step, effective and based on the original files of XXKPS (adsp.mbn, amss.mbn, cache.img.ext4, preload.img.ext4) running this zip will create an Odin package.
It takes only 6 to 7 minutes to build the file!
It does not include the cache or preload of your ROM (so your data is safe when distributing these files as far as I know!!).
This way you can easily share any ROM you have created by combining parts of other ROMs. For instance, if you installed Cranium ROM, added Feamod to it, did the 14-button mod and added the ICS mod too - build the Odin md5 zip with this package and share your custom modded ROM with the community!!
Download
XXKPS or XXKPS - thanks broodPlank!
XXKPU - thanks broodPlank!
XXKQ1 - thanks broodPlank!
XXKQ7 - thanks broodPlank!
XXKQB or XXKQB - thanks broodPlank!
XXKQE - thanks broodPlank!
XXKQI - thanks broodPlank!
DXLD3 - thanks [FONT=&quot]somboons!
[/FONT] ** Please upload this file to mirrors and post them when available
Instructions
Please make sure you have installed Feamod Recovery
Build your ROM, add all mods, make it the way you want to share it
Check whether the internal sdcard has enough space (at least 2 GB)
Copy the zip to your internal or external sdcard
Reboot into recovery (Poweroff, then press Vol-Up and Poweron)
Select "install zip from sdcard" and browse to the location you used in step 4
Select the zip... it will start building the Odin package immediately
Please allow the system to build the zip in step 7 - this will take several minutes!
Other Stock ROMs
Like broodPlank did, you can also make a CWM installer for Odin packages that create other Stock ROMs:
Download BuildOdinCWM-noBaseRom.zip
Download the Stock ROM of your choice
Extract the following files from the Stock ROM:
adsp.mbn
amss.mbn
cache.img.ext4
preload.img.ext4
Click to expand...
Click to collapse
Zip all files and folders back up and ready
If you want to use another name for your new Odin package, please replace "MyOdinpack" with whatever name you like the following files in the scripts folder:BuildOdin.sh
MD5Odin.sh​(make sure to use a text editor that can handle Unix files like Notepad++ or UltraEdit)
Please share your new creations, like broodPlank did
Enjoy!!
Regards,
Nika.
If anyone has an idea how to check from a shell or cwm script:
* Check for free diskspace
* Check for files already available, to avoid overwrite (preferably with choice to remove or backup files)
It would be much appreciated. If you have seen cwm script on other devices that can do that kind of stuff, just let me know and I'll check them out myself
Regards,
Nika.
that's very helpful and should save time spent on transferring cwm backup to pc and doing everything manually but u should've just added it to the OP of the other "making of an odin file" thread, we'd still pump up ur thanks meter u don't have to worry . opening new threads for every lil thing just causes pollution (no hard feelings)
rayiskon said:
that's very helpful and should save time spent on transferring cwm backup to pc and doing everything manually but u should've just added it to the OP of the other "making of an odin file" thread, we'd still pump up ur thanks meter u don't have to worry . opening new threads for every lil thing just causes pollution (no hard feelings)
Click to expand...
Click to collapse
I really don't care about the thanks meter, trust me. I decided to do it this way to avoid making the other thread too complex. Will add a reference in the OP of the other thread though and one in this to make sure others know where to go if they want to do this through adb...
Very nice! This will save me allot of time . Very nice post again nikagl, you make allot of handy scripts!
Hey, I made the XXKPU version (because I'm using XXKPU now for broodROM RC3) of your awesome flashable:
http://www.mediafire.com/?4c7y7p9o43uhj68
broodplank1337 said:
Hey, I made the XXKPU version (because I'm using XXKPU now for broodROM RC3) of your awesome flashable:
http://www.mediafire.com/?4c7y7p9o43uhj68
Click to expand...
Click to collapse
Thanks! Added it to OP. Just wondering, would it make a difference? What are these files for anyway (adsp.mbn, amss.mbn, cache.img.ext4 and preload.img.ext4? There's hardly any difference as far as I can see (mounted ext4)
Still thinking of making a tool that converts the actual cwm files others post (ie. the actual system files) into an Odin package directly but didn't yet find a way to create an ext4 file other than by dd-dumping it
nikagl said:
Thanks! Added it to OP. Just wondering, would it make a difference? What are these files for anyway (adsp.mbn, amss.mbn, cache.img.ext4 and preload.img.ext4? There's hardly any difference as far as I can see (mounted ext4)
Still thinking of making a tool that converts the actual cwm files others post (ie. the actual system files) into an Odin package directly but didn't yet find a way to create an ext4 file other than by dd-dumping it
Click to expand...
Click to collapse
I have no clue what adsp.mbn, amss.mbn and preload.img.ext4 are for but I know that cache.img.ext4 has the CSC Configuration inside, I tweaked the sec_csc.zip file and inserted custom apps, it worked
Changed the updater script to this (commented lines because this is a test)
# assert(getprop("ro.product.device") == "GT-P1000" ||
# getprop("ro.build.product") == "GT-P1000" ||
# getprop("ro.product.device") == "GT-I9000" ||
# getprop("ro.build.product") == "GT-I9000" ||
# getprop("ro.product.device") == "SC-02B" ||
# getprop("ro.build.product") == "SC-02B" ||
# getprop("ro.product.device") == "GT-I9003" ||
# getprop("ro.build.product") == "GT-I9003" ||
# getprop("ro.product.device") == "GT-I9001" ||
# getprop("ro.build.product") == "GT-I9001"
# );
ui_print("*** Mounting /system and /data... ***");
show_progress(0.250000, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p17", "/data");
ui_print("*** Installing CSC Data... ***");
show_progress(0.500000, 0);
# mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
# package_extract_dir("system", "/system");
ui_print("*** Installing Additional Apps... ***");
show_progress(0.750000, 0);
package_extract_dir("data", "/data");
show_progress(0.1000000, 0);
ui_print("*** Unmounting /system and /data... ***");
unmount("/system");
unmount("/data");
ui_print("Done...");
Click to expand...
Click to collapse
Installs CSC and 2 extra apps
I will test it first after a stock install but if it works fine I will integrate it into broodROM RC3, so I can add extra apps without having them to be system apps
And for creating .ext4 files, if you use DiskInternals Linux Reader you can save it as .img but if you just choose .img.ext4 and verify the file afterwards it seems to be an correct file (haven't tested it tho)
Uploading both packages to sourceforge.net
edit:
http://sourceforge.net/projects/bro...ckage in CWM/BuildOdinCWM-nikagl.zip/download
and
http://sourceforge.net/projects/bro...in CWM/BuildOdinCWM_XXKPU-nikagl.zip/download
Those mbn should be modem binaries.
Sent from my GT-I9001 using XDA App
Made a new one for XXKQ1
http://sourceforge.net/projects/bro...in CWM/BuildOdinCWM_XXKQ1-nikagl.zip/download
All versions can be found here:
https://sourceforge.net/projects/broodrom/files/Build Odin package in CWM/
broodplank1337 said:
Made a new one for XXKQ1
http://sourceforge.net/projects/bro...in CWM/BuildOdinCWM_XXKQ1-nikagl.zip/download
All versions can be found here:
https://sourceforge.net/projects/broodrom/files/Build Odin package in CWM/
Click to expand...
Click to collapse
added them
nikagl said:
added them
Click to expand...
Click to collapse
Good I think sourceforge is a really nice host for such things, always location near you for whole europe
broodplank1337 said:
Good I think sourceforge is a really nice host for such things, always location near you for whole europe
Click to expand...
Click to collapse
Agree although i wonder how long they will allow it as these are not really sources...
nikagl said:
Agree although i wonder how long they will allow it as these are not really sources...
Click to expand...
Click to collapse
Yeh, I had that in mind to, but there are many roms and (actually closed source) files hosted on sourceforge. They don't seem to care that much
Can't you just create a backup and flash it with odin?
Sent from my GT-I9001 using xda premium
FlorisNL said:
Can't you just create a backup and flash it with odin?
Sent from my GT-I9001 using xda premium
Click to expand...
Click to collapse
nope it's not that easy, its still easy tho. use the CWM method or dump/tarball/md5sum the partitions yourself
broodplank1337 said:
nope it's not that easy, its still easy tho. use the CWM method or dump/tarball/md5sum the partitions yourself
Click to expand...
Click to collapse
Well... I guess it should be possible, but it will take just as long and you'll need to move the files, rename them, replace some with the stock (empty) files to avoid data into the odin package, and add the others. Then tar/md5 them and in the end you'd have the Odin package... sounds to me the cwm-method from this thread is much easier
nikagl said:
Well... I guess it should be possible, but it will take just as long and you'll need to move the files, rename them, replace some with the stock (empty) files to avoid data into the odin package, and add the others. Then tar/md5 them and in the end you'd have the Odin package... sounds to me the cwm-method from this thread is much easier
Click to expand...
Click to collapse
Yup, thats true. I will use this method for my Custom Rom
Sent from my GT-I9001 using xda premium
I have deodexed XXQ1 atm, if i follow this post, i can have a md5 Odin file to share XXQ1 Deodexed with others?
PD: The file called "MyOdinpack.tar.md5" into BuildOdin folder, its the md5 image to flash via Odin?
alexis! said:
I have deodexed XXQ1 atm, if i follow this post, i can have a md5 Odin file to share XXQ1 Deodexed with others?
PD: The file called "MyOdinpack.tar.md5" into BuildOdin folder, its the md5 image to flash via Odin?
Click to expand...
Click to collapse
Yep thats the package

Add kernel cm10(no zip) question

HI..... my question is ... how i put this kernel(http://forum.xda-developers.com/showthread.php?t=1823671) in cm10 ...... i want that my build when finshided say kernel:francoblabblabala
thanks
You can manually put it in the ZIP and modify the updater-script to flash this to /dev/block/platform/sdhci-tegra.3/by-name/LNX.
sgt. Meow said:
you can manually put it in the zip and modify the updater-script to flash this to /dev/block/platform/sdhci-tegra.3/by-name/lnx.
Click to expand...
Click to collapse
thanks for the answer..... I don't wanna flash the kernel in recovery or something like that,,,,
i want build my rom whit that kernel........ You know how?
I have make 1 build...... And now i'm going to made some modifications and one is the kernel...... I hope put my rom over here..... Thanks my friend for the answer
You can put it in the ROM ZIP too if that's what you were asking.
But how?? Thanks
Sent from my Nexus 7 using xda app-developers app
Just put the boot.img in the ROM ZIP and edit the updater-script to include these lines:
Code:
mount("ext4", "EMMC", "/dev/block/platform/sdhci-tegra.3/by-name/APP", "/system");
assert(getprop("ro.product.device") == "grouper" || getprop("ro.build.product") == "grouper" ||
getprop("ro.product.device") == "tilapia" || getprop("ro.build.product") == "tilapia");
run_program("/sbin/sh", "-c", "mkdir /system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
unmount("/system");
assert(package_extract_file("boot.img", "/dev/block/platform/sdhci-tegra.3/by-name/LNX"));
That's how Franco does it. You could also try dd'ing the contents of boot.img to /dev/block/platform/sdhci-tegra.3/by-name/LNX, but I don't know the exact syntax for that. You can check other kernel ZIPs and see how they install the kernel in recovery. Add the boot.img to your ROM ZIP and then edit the updater-script to include the required lines. That should do it!
Thanks you are great!!! I think that if a want add .apk is something similar??
Sent from my Nexus 7 using xda app-developers app
Yes, but for apps you don't have to change anything in the updater-script.
sgt. meow said:
Yes, but for apps you don't have to change anything in the updater-script.
Click to expand...
Click to collapse
OK ITS JUST PUT THE APPS IN SYSTEM/APP AND GIVE PERMISSIONS?
i hope don't be a fastidious man..... but you know some build.prop tweaks?? i'm copy a few tweaks for internet but......tweaks(build.prop) really makes better the performance and the battery? or just are lie?
to edit the zip of cm10, i will uncompress and edit and compress again?
thanks!!
If you are on Ubuntu, just drag and drop the files you need. And I don't think tweaks really help a lot. Just my opinion though.
alonsoch said:
to edit the zip of cm10, i will uncompress and edit and compress again?
thanks!!
Click to expand...
Click to collapse
No need. Just open the zip via Winrar and edit the file.

[Q] Update.zip script wrong error! help!!

Hi!
I have a problem with my update.zip. Now my zip file has a jar file, xml file, and an apk file. in meta-inf folder : com/android/google/ updater-binary and updater-script. I copied the updater-binary from other rom for my device. Now, I wanna put my jar file to system/framework, put the xml file to system/etc/premissions and put the apk file to data/app. I wrote script but it only puts jar file to system/framework, not all files.
I flashed it in all recoveries, no abort. so how to fix ?
here is my updater-script file :
Code:
run_program("/sbin/busybox", "mount", "/system");
package_extract_file("com.playstation.playstationcertified.xml", "system/etc/premissions");
package_extract_file("com.playstation.playstationcertified.jar", "/system/framework");
mount("yaffs2", "MTD", "userdata", "/data");
package_extract_file("psmobile.apk", "data/app");
ui_print("message");
ui_print("message");
yashade2001 said:
Hi!
I have a problem with my update.zip. Now my zip file has a jar file, xml file, and an apk file. in meta-inf folder : com/android/google/ updater-binary and updater-script. I copied the updater-binary from other rom for my device. Now, I wanna put my jar file to system/framework, put the xml file to system/etc/premissions and put the apk file to data/app. I wrote script but it only puts jar file to system/framework, not all files.
I flashed it in all recoveries, no abort. so how to fix ?
here is my updater-script file :
Code:
run_program("/sbin/busybox", "mount", "/system");
package_extract_file("com.playstation.playstationcertified.xml", "system/etc/premissions");
package_extract_file("com.playstation.playstationcertified.jar", "/system/framework");
mount("yaffs2", "MTD", "userdata", "/data");
package_extract_file("psmobile.apk", "data/app");
ui_print("message");
ui_print("message");
Click to expand...
Click to collapse
You should add your recovery mount points too!!! or you want to just download a CWM flashable zip files from one of the forum
Techix18 said:
You should add your recovery mount points too!!! or you want to just download a CWM flashable zip files from one of the forum
Click to expand...
Click to collapse
What and how?
Galaxy Nexus cihazımdan Tapatalk 4 ile gönderildi
yashade2001 said:
What and how?
Galaxy Nexus cihazımdan Tapatalk 4 ile gönderildi
Click to expand...
Click to collapse
First download a custom rom for your device then open the updater script.The updater script will show a line called format('ext4'...... Dev block/.......) which is actually for your device recovery mount points and write the line in your own updater script with the reference of the other updater script.
Click Thanks if i helped!
Techix18 said:
First download a custom rom for your device then open the updater script.The updater script will show a line called format('ext4'...... Dev block/.......) which is actually for your device recovery mount points and write the line in your own updater script with the reference of the other updater script.
Click Thanks if i helped!
Click to expand...
Click to collapse
Ok i do that everytime. But i wanna make UNIVERSAL update. Zips.
Sent from my Galaxy Nexus using Tapatalk 4.
yashade2001 said:
Ok i do that everytime. But i wanna make UNIVERSAL update. Zips.
Sent from my Galaxy Nexus using Tapatalk 4.
Click to expand...
Click to collapse
If you want to make update zips,i suggest you to go download the flashable zip in XDA forums becuase those flashable zips support anything
Click Thanks if i helped!

How to make patch/[noob friendly]

HERE IS MY PORTING TECHNIQUE : CLICK ME
WHY WE NEED PATCH
Porting a ROM lot of bugs are coming
and using a patch we can fix them easily because we do not have to flash the whole ROM again
Click to expand...
Click to collapse
This tutorial show you how to make patch ::
At first make a folder name patch ::
Next step ::
Copy META-INF folder from any other working ROM of your device
Click to expand...
Click to collapse
Open the meta-imf/com/google/
Click to expand...
Click to collapse
Next Step ::
In this step you need notepad++ :fingers-crossed:
open the updater-script and delete all the lines
Click to expand...
Click to collapse
And then add this lines ::
Code:
ui_print("Mounting System...");
mount("ext4", "EMMC", "[COLOR="Red"]/dev/block/mmcblk0p6[/COLOR]", "/system");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("extract boot.img");
package_extract_file("boot.img", "/dev/bootimg");
The red line depend upon your mount point of your device
NEXT STEP ::
now create a system folder in the patch folder and Next steps i hope you can understand
Place the files you want with proper address
And zip the file and flash it
You can find a example zip bellow :: :victory:
Give a tums up if it is helpful :good:
Thank u sir! i will try soon on MIUI
I don't understand how to make patch
Pleas bro I don't understand the method can't you repeat me with details pleas and if you can do an exemplary

Categories

Resources