[Q] Update.zip script wrong error! help!! - General Questions and Answers

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!

Related

[GUIDE] How to make a cwm recovery flashable zip

REQUIREMENTS:
- any file that you want to replace or add to your phone;
- an existing cwm flashable zip file to use as a base - I've attached one below;
- 7-zip;
- Notepad++.
STEPS:
DIRECTORY STRUCTURE:
(1) Download and place the sample.zip anywhere on your desktop;
(2) Right-click on it and choose: "7-Zip / Open archive" [*DO NOT extract; just *Open archive*];
Now you should see two folders: one called "system" and one called "META-INF".
I - FILES AND FOLDERS:
Let's start with the "system" one, so double-click on it:
In there, will go all files that what you want to add or replace to the system. So let's say for example that you want to replace the bootanimation and bootsound. To do so, we have to create sub-directories in the /system/ folder by following this easy method:
- On your desktop, right-click on an empty spot and select "New / Folder" then edit the name to "etc" (no " ") using no CAPS or space at the end;
- repeat the process to make another folder called "media";
- drag those two new empty folders into the /system/ folder of the 7-zip opened archive [just click yes on the popup dialogs];
- now simply drop the two files in their respective place: the sanim.zip file should go in '/system/media' folder and the PowerOn.wav into '/system/etc' folder.
.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now..
/system/app - all the system apps (SystemUI.apk etc)
/system/framework/ -framework-res.apk, twframework-res.apk, android.policy.jar
/system/etc - vold.fstab, PowerOn.wav(bootsound)
/system/media - sanim.zip (bootanimation) (only for custom ROMs)
/system/lib - libraries (*.so)
II - UDATER-SCRIPT
The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.
That's it !!
Congratulations you've done your first CWM patch !!!
NOTE: Always backup your existing system file that you are going to replace by the patch(zip).
Good Guide!!
There are many more here. Check them
EDIT: Added your Post there. As CWM Flashable Zip Guide.
Hope you are Fine with it.
Thnx so much pankaj.........
Great guide man awesome, thanks!
I've got some questions which I believe you can answer:
1. I come from another device's forum [SAMSUNG Galaxy S II I9100] so I'm not sure, will this method work with any device, or at least with mine?
2. What I'm trying to do is to take the nandroid backup I made for the ROM my device is currently running (whole ROM, along with all the MODs, themes & changes I have on it) and convert it into a CWM flashable .zip file, so:
A. Is this even possible with this method?
B. If it is, just to verify that I got it all right up until now: I decompress the 'system.ext4.tar' file from the nandroid' backup folder and then I push the decompressed system folder into the 'sample.zip' file that I've downloaded from this thread, right?
3. I know for a fact (correct me, if I'm wrong) that a nandroid backup doesn't include a backup of the modem (at least not in my device), so how do I add my currently installed modem to the .zip file?
4. What about the recovery and bootloader, how do I add them?
5. What about "cache.ext4.tar" & "data.ext4.tar", are they necessary in any way?
Itzik68 said:
Great guide man awesome, thanks!
I've got some questions which I believe you can answer:
1. I come from another device's forum [SAMSUNG Galaxy S II I9100] so I'm not sure, will this method work with any device, or at least with mine?
2. What I'm trying to do is to take the nandroid backup I made for the ROM my device is currently running (whole ROM, along with all the MODs, themes & changes I have on it) and convert it into a CWM flashable .zip file, so:
A. Is this even possible with this method?
B. If it is, just to verify that I got it all right up until now: I decompress the 'system.ext4.tar' file from the nandroid' backup folder and then I push the decompressed system folder into the 'sample.zip' file that I've downloaded from this thread, right?
3. I know for a fact (correct me, if I'm wrong) that a nandroid backup doesn't include a backup of the modem (at least not in my device), so how do I add my currently installed modem to the .zip file?
4. What about the recovery and bootloader, how do I add them?
5. What about "cache.ext4.tar" & "data.ext4.tar", are they necessary in any way?
Click to expand...
Click to collapse
(1) This method will work with any device as long as the device has custom recovery (CWM).
(2) a. yes, it is possible
b. decompress system.ext4.tar and push all the files/folders in the system folder to the system folder in the sample.zip
You must add the line in BOLD/italic to the META-INF/com/google/android/updater-script file
Code:
run_program("/sbin/busybox", "mount", "/system");
[B][I]delete_recursive("/system");[/I][/B]
package_extract_dir("system", "/system");
This line has to be added only when you want to replace all the system files/folders
otherwise no need to add.
drag updater-script from sample.zip (open via 7zip, do not extract) to the desktop, make modifications, save & then push it back to the same locations in sample.zip
(3) To include modem.bin :
first drag modem.bin & this file to sample.zip
now the directory structure of sample.zip is as follows
FOLDERS - system, META-INF
FILES - modem.bin, flash_image
add following lines to the META-INF/com/google/android/updater-script file
Code:
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
(4) Don't know about bootloader, but for recovery, similar step as above:
drag recovery.img to sample.zip
add these lines to updater-script
Code:
package_extract_file("recovery.img", "/tmp/recovery.img");
run_program("/sbin/busybox", "dd", "if=/dev/zero", "of=/dev/block/mmcblk0p8");
run_program("/sbin/busybox", "dd", "if=/tmp/recovery.img", "of=/dev/block/mmcblk0p8");
run_program("/sbin/busybox", "sync");
run_program("/sbin/busybox", "rm", "-f", "/tmp/recovery.img");
(5) No these files are not needed.
Thanks man, you're awesome!!!
I still have several questions though:
pankaj88 said:
b. decompress system.ext4.tar and push all the files/folders in the system folder to the system folder in the sample.zip
You must add the line in BOLD/italic to the META-INF/com/google/android/updater-script file
Code:
run_program("/sbin/busybox", "mount", "/system");
[B][I]delete_recursive("/system");[/I][/B]
package_extract_dir("system", "/system");
This line has to be added only when you want to replace all the system files/folders
otherwise no need to add.
drag updater-script from sample.zip (open via 7zip, do not extract) to the desktop, make modifications, save & then push it back to the same locations in sample.zip
Click to expand...
Click to collapse
OK, puling / pushing files / folders from / to the .zip / .tar files is no problem, but I don't really get the part with this: "updater-script" file...
1. Let's say I've pulled it:
A. What is this file?
B. How can I open and edit it?
C. You say to add those code lines, but I'm guessing there are already several other code lines in it, where do I add those line? Above something else? Below it? Where?
2. Except for this: "updater-script" file, there are also:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-binary
A. What about those, what are they?
B. Don't they need to be changed as well?
I have more questions about the other parts of your answer, but for now let's live it at that.
I'm really sorry I'm bugging you, but I really like to understand what I'm doing before doing it...
Itzik68 said:
Thanks man, you're awesome!!!
I still have several questions though:OK, puling / pushing files / folders from / to the .zip / .tar files is no problem, but I don't really get the part with this: "updater-script" file...
1. Let's say I've pulled it:
A. What is this file?
B. How can I open and edit it?
C. You say to add those code lines, but I'm guessing there are already several other code lines in it, where do I add those line? Above something else? Below it? Where?
2. Except for this: "updater-script" file, there are also:
META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-binary
A. What about those, what are they?
B. Don't they need to be changed as well?
I have more questions about the other parts of your answer, but for now let's live it at that.
I'm really sorry I'm bugging you, but I really like to understand what I'm doing before doing it...
Click to expand...
Click to collapse
(1) It is updater-script file.
CWM flashes the zip file according to the steps mentioned in this file.
lets say
updater-script contains following lines:
Code:
ui_print("| Writing System |");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
Explanation of all the lines:
first line just print "Writing System"
next, mounts system partition so that files can be copied to it
deletes system folder
extract the system folder in the sample.zip to the device system partition
I hope now you have understand what updater-script is all about
You can use notepad++ to edit this file
(2) All the other files should be left as they are. No need to edit those files.
But their presence is necessary in the sample.zip
(these files serve as signature of the zip file)
Download this updater-script file to study more code.
OK, so now my "updater-script" file is looking like that:
Code:
ui_print("SAMPLE CWM FLASHABLE PACKAGE");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
Is that right so far?
Itzik68 said:
OK, so now my "updater-script" file is looking like that:
Code:
ui_print("SAMPLE CWM FLASHABLE PACKAGE");
run_program("/sbin/busybox", "mount", "/system");
delete_recursive("/system");
package_extract_dir("system", "/system");
run_program("/sbin/busybox", "umount", "/system");
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing modem...");
assert(package_extract_file("modem.bin", "/tmp/modem.bin"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p7", "/tmp/modem.bin"),
delete("/tmp/modem.bin"));
delete("/tmp/flash_image");
Is that right so far?
Click to expand...
Click to collapse
you should study the updater-script file, the link for which I provided in the last reply.
Code:
run_program("/sbin/busybox", "umount", "/system");
this line should come at the last when all the copying & flashing has been done.
It unmount the system partition.
Also you need to set permissions & create symbolic links.
I suggest you to study the updater script file first.
If you found any problem, post here.
pankaj88 said:
you should study the updater-script file, the link for which I provided in the last reply.
Code:
run_program("/sbin/busybox", "umount", "/system");
this line should come at the last when all the copying & flashing has been done.
It unmount the system partition.
Also you need to set permissions & create symbolic links.
I suggest you to study the updater script file first.
If you found any problem, post here.
Click to expand...
Click to collapse
what are symbolic links for? i have studied the updater script you posted.. and did some on my custom rom, both have many symbolic links, what it is for? is it necessary? or just for custom roms?
draiyan said:
what are symbolic links for? i have studied the updater script you posted.. and did some on my custom rom, both have many symbolic links, what it is for? is it necessary? or just for custom roms?
Click to expand...
Click to collapse
for understanding what symbolic links are:
http://en.m.wikipedia.org/wiki/Symbolic_link
it is necessary to have symbolic links for every ROM that you are going to flash via CWM.
Sent from my GT-I9103 using xda app-developers app
pankaj88 said:
- On your desktop, right-click on an empty spot and select "New / Folder" then edit the name to "etc" (no " ") using no CAPS or space at the end;
- repeat the process to make another folder called "media";
- drag those two new empty folders into the /system/ folder of the 7-zip opened archive [just click yes on the popup dialogs];
- now simply drop the two files in their respective place: the sanim.zip file should go in '/system/media' folder and the PowerOn.wav into '/system/etc' folder.
.. If you have more files to add, just follow the logic above; I'm sure you get the idea by now..
/system/app - all the system apps (SystemUI.apk etc)
II - UDATER-SCRIPT
The other folder included in the opened archive is named "META-INF" and all the file in it should be left unchanged.
Click to expand...
Click to collapse
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
baldypal said:
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
Click to expand...
Click to collapse
Try do Mount/System and then flash it. Still if u get some prob, please attach ur cwm zip. Will try to help u buddy.
baldypal said:
So i followed these steps with Phone.apk. Made an "app" folder inside the already existing "system" folder. moved my modified "Phone.apk" inside that folder. put on SD card, reboot recovery, choose to install from zip, choose correct zip, and get...
Error: in /sample.zip
(Status 0)
Installation aborted
Any idea. those are my exact steps, i left nothing out.
Click to expand...
Click to collapse
Do not extract the zip file.
Use "7zip" to open it & make a new folder named as "app" inside the system directory.
Also mount /system in CWM recovery.
Has anyone succeeded in making an update.zip for our device that can be flashed through stock recovery? If yes how to make one?
OK the "mount /system in CWM recovery" is did not do. I did not extract the files. I did use 7zip.
Sent from my Galaxy Nexus
Had the chance to try this last night. Mount /system in CWM didn't allow it either. Same error.
Sent from my Galaxy Nexus using xda app-developers app
I will upload a cwm zip with modified updater script soon.
Sent from my GT-I9103 using xda app-developers app
OP updated with modified "sample.zip".
Thanks !!
somehow i got "installatin aborted"

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] Zip Flashing Fail - Multirom TWRP

Hi Guys,
I've never had this problem before but I can't seem to get any zip files I create to flash through TWRP.
I've compressed them with STORE method in 7zip.
I've double checked everything I put in the update-script file.
and I've tried signing them
My directory tree for the zip is as follows:
Code:
-META-INF
CERT.RSA
CERT.SF
MANIFEST.MF
-com
-google
-android
update-binary
updater-script
-system
-priv-app
SystemUI.apk
My updater-script only has a few lines because I'm still trying to just get it successfully run but it is as follows:
Code:
ui_print("Testing if system can be mounted");
ifelse mount("yaffs2", "MTD", "system", "/system") == "system", ui_print("Mounted!"), ui_print("Mount Failed!");
with of course an extra empty line at the end.
This is a screenshot of my failed flash:
http://www.mediafire.com/convkey/bba3/r0eidwl8ito77uhfg.jpg
I noticed it says "updater-binary" rather than "update-binary" so I tried changing the name and signing the zip again.
After attempting to flash the unsigned and the signed zip this is the message I get:
http://www.mediafire.com/convkey/ed01/5oh5mqyt6lv8lwffg.jpg
No longer says updater-binary but still getting MD5 error and flash is failing everytime.
I was able to flash the Omni rom I even switched my signed SystemUI.apk with the one in the rom and flashed it fine.
I have downloaded update.zip(s) and flashed them fine. But whenever I edit the update-script my self it doesn't do anything .. I've even tried a simple
Code:
ui_print("message");
and it failed.
Not sure what I am doing wrong never had this problem when i was theming for my Lg Revolution way back when .
Also I'm using Notepad++ and eol conversion is set to unix.
Thanks to anyone with answers.
hackn101 said:
Hi Guys,
I've never had this problem before but I can't seem to get any zip files I create to flash through TWRP.
I've compressed them with STORE method in 7zip.
I've double checked everything I put in the update-script file.
and I've tried signing them
My directory tree for the zip is as follows:
Code:
-META-INF
CERT.RSA
CERT.SF
MANIFEST.MF
-com
-google
-android
update-binary
updater-script
-system
-priv-app
SystemUI.apk
My updater-script only has a few lines because I'm still trying to just get it successfully run but it is as follows:
Code:
ui_print("Testing if system can be mounted");
ifelse mount("yaffs2", "MTD", "system", "/system") == "system", ui_print("Mounted!"), ui_print("Mount Failed!");
with of course an extra empty line at the end.
This is a screenshot of my failed flash:
http://www.mediafire.com/convkey/bba3/r0eidwl8ito77uhfg.jpg
I noticed it says "updater-binary" rather than "update-binary" so I tried changing the name and signing the zip again.
After attempting to flash the unsigned and the signed zip this is the message I get:
http://www.mediafire.com/convkey/ed01/5oh5mqyt6lv8lwffg.jpg
No longer says updater-binary but still getting MD5 error and flash is failing everytime.
I was able to flash the Omni rom I even switched my signed SystemUI.apk with the one in the rom and flashed it fine.
I have downloaded update.zip(s) and flashed them fine. But whenever I edit the update-script my self it doesn't do anything .. I've even tried a simple
Code:
ui_print("message");
and it failed.
Not sure what I am doing wrong never had this problem when i was theming for my Lg Revolution way back when .
Also I'm using Notepad++ and eol conversion is set to unix.
Thanks to anyone with answers.
Click to expand...
Click to collapse
It's update-binary. Try this one: https://db.tt/MdWU1rZ8
You can mount /system with this: run_program("/sbin/busybox","mount","/system");
You do not need the signature files in /META-INF
Aerowinder said:
It's update-binary. Try this one: https://db.tt/MdWU1rZ8
You can mount /system with this: run_program("/sbin/busybox","mount","/system");
You do not need the signature files in /META-INF
Click to expand...
Click to collapse
Thanks I renamed it back to update-binary I'm not sure what I did differently but I have one working now.
However I noticed in my post I didn't forget any semi colons, But that will keep the whole file from installing so maybe I had the right setup before and just missed a semi colon.
Thanks again

New best and shortest porting method for porting custom roms / 2017

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

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