[Completed] Help to Make CWM flashable ZiP - XDA Assist

I have lost my Galaxy S4 i9505 IMEI but i have following Attached backup file.Please help me to make cwm flash able zip with tese file and this script:
package_extract_file("flash_image", "/tmp/flash_image");
set_perm(0, 0, 0777, "/tmp/flash_image");
ui_print("Installing EFS...");
assert(package_extract_file("efs.img", "/tmp/efs.img"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p10", "/tmp/efs.img"),
assert(package_extract_file("m9kefs1.img", "/tmp/m9kefs1.img"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p13", "/tmp/m9kefs1.img"),
assert(package_extract_file("m9kefs2.img", "/tmp/m9kefs2.img"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p14", "/tmp/m9kefs2.img"),
assert(package_extract_file("m9kefs3.img", "/tmp/m9kefs3.img"),
run_program("/tmp/flash_image", "/dev/block/mmcblk0p15", "/tmp/m9kefs3.img"),
delete("/tmp/efs.img"));
delete("/tmp/m9kefs1.img"));
delete("/tmp/m9kefs2.img"));
delete("/tmp/m9kefs3.img"));
delete("/tmp/flash_image");
Click to expand...
Click to collapse
i have got this script from :
http://forum.xda-developers.com/showpost.php?p=43826294

irfanbd94 said:
I have lost my Galaxy S4 i9505 IMEI but i have following Attached backup file.Please help me to make cwm flash able zip with tese file and this script:
i have got this script from :
http://forum.xda-developers.com/showpost.php?p=43826294
Click to expand...
Click to collapse
We are not doing such stuff here on the xda assist, better ask someone HERE
Regards
Paget96

Related

not tested: di18 bootloader

didn't change anything
noobnl said:
*** may brick the epic! *** not tested!
update your bootloader to di18
possible changes: adb reboot recovery may go to bml8 aka recovery partition
http://www.sdx-downloads.com/devs/noobnl/sblupdatedi18.zip
Click to expand...
Click to collapse
So in theory this would make adb reboot recovery default to clockwork, and in the same way let the reboot recovery power down menu mod default also to recovery?
Also are you not afraid to take risks, or why haven't you tested this yourself?
Tried it, no workie
bubby323 said:
So in theory this would make adb reboot recovery default to clockwork, and in the same way let the reboot recovery power down menu mod default also to recovery?
Click to expand...
Click to collapse
yes
still boot to samsung recovery
show_progress(0.500000, 0);
ui_print("Se copiaza fisele TEMP");
package_extract_dir("system", "/system");
show_progress(0.500000, 20);
ui_print("Se seteaza parametrii");
show_progress(0.200000, 0);
set_perm(0, 0, 0755, "/system/xbin/redbend_ua");
ui_print("Se re-scrie SBL-ul");
run_program("/system/xbin/redbend_ua", "restore", "/system/Sbl.bin", "/dev/block/bml4");
show_progress(0.200000, 20);
ui_print("Se sterg fisele TEMP");
show_progress(0.100000, 0);
delete("/system/xbin/redbend_ua");
delete("/system/Sbl.bin");
ui_print("Hello FiXed World by RazvanG");
show_progress(0.100000, 20);
Click to expand...
Click to collapse
For anyone that was wondering of the theory, or who actually knows how to make it work...

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.

[UNLOCK][GESTURE][PIN]Unlocker v2

A small project to make Samsung Galaxy Y GT-S5360 users happy!
A code to remove passwords!
It is meant for educational purposes!
To promote the idea of open source, I have attached the source of my project.
Code:
ui_print("Unlocker v2");
ui_print("Mounting System");
show_progress(0.1, 0);
run_program("/sbin/busybox", "mount", "/system");
ui_print("Mounting Data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Deleting Pattern/PIN Lock");
delete("/data/system/gesture.key");
delete("/data/system/password.key");
show_progress(0.2, 10);
ui_print("Unmounting System");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Unmounting Data");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Done");
ui_print("Credits: [email protected]");
[#]With root and busybox: auto-mount
[#]Without root and busybox: manual-mount
Click to expand...
Click to collapse
Installation Instructions:
1. Place the zip file in your sd card
2. Goto Android System Recovery
3. Flash ClockWorkMod
4. Mount everything
5. Select "apply update from sdcard"
6. And select signed_Unlocker.zip and flash it
7. Reboot your phone
Change Logs:
Flashable file
Support to remove gestures
Support to remove pinlock
Updated Binaries
Signed
WARNING
The zip file is currently not tested
Testers needed
Do not use this file until the testing is complete
this has already been posted
http://forum.xda-developers.com/showthread.php?t=2593755
its exactly the same except you have added ui prints to make it look flashier
from me and MANY others,anyway there are method with adb to and have tested with aromafile manager and this worx too,without needing busybox
Reply
marcussmith2626 said:
this has already been posted
http://forum.xda-developers.com/showthread.php?t=2593755
its exactly the same except you have added ui prints to make it look flashier
Click to expand...
Click to collapse
I never saw his post! It is my mistake!
But I never copied any ideas from anyone!
I recently read a article about this and thought of making this script!
Credits: To that developer also!
the_pirate_predator said:
I never saw his post! It is my mistake!
But I never copied any ideas from anyone!
I recently read a article about this and thought of making this script!
Credits: To that developer also!
Click to expand...
Click to collapse
you can also use aroma file manager which is really useful especially if there are other things you need to delete that is stopping the phone from booting
its good you are making the effort to do things - its just I read most things and can remember other posts

[Completed] [Q] error in update script stock android

I want to create a flashable zip for my mt6572 device .
i am having cadvik recovery 2.2
i used the android kitchen to create the stock zip
it created a zip .
now the problem is :
when i try flash it through cwm , it saying that you have to do it again .
it showing errors .
so i chech the updater script .
i noticed that . it starts with like :
***************
***************
** format("MTD", "system");
mount("MTD", "system", "/system");
i think it should like this right
Should be:
format("ext4", "EMMC", "/dev/block/mmcblk0p5");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system"); **
******************
*****************
i made that zip using my stock system.img
but still i not get succeed to flash it via cwm .
any one know why that update script is like that ..
any solution for that .
Hi there,
There is many threads that are describe how to make flashable zip for many things. Here are few of them:
[GUIDE][NOOB FRIENDLY]How To Make Aroma Installer Flashable Zip/update.zip
[GUIDE]How to extract a Firmware and make a flashable ZIP
Good luck

[PROBLEM] Unable to flash self-made zip file

Device details:
YU Yuphoria YU5010
Software: CyanogenMod 12.1 (Nightly)
Root Access: Yes (By Default)
Bootloader: Unlocked
Recovery: TWRP v2.8.7.0
I made a simple flashable zip which I want to use for installing a different camera app in my device's /system partition. The app works. I've tried it by installing it the traditional way (apk). However I'm not able to flash the zip file. Whenever I try to flash it I get an error
E:Error executing updater binary in zip '/sdcard/cam.zip'
I researched on Google for that error and found many solutions from people facing the same problem. However all those solutions were only for this issue when faced while flashing a new custom ROM, not any other zip. So they were futile for me. Obviously I haven't been wiping anything before flashing my zip file.
My updater-script code:
ui_print("*********************************");
ui_print(" ");
ui_print("********** MIUI Camera **********");
ui_print("*** By Tanmay Vij ***";
ui_print("**********************************");
ui_print("Mounting System...");
run_program(
"/sbin/busybox",
"mount",
"/system"
);
ui_print("Installing Camera...");
package_extract_dir(
"system",
"/system"
);
ui_print("Fixing Permissions...");
set_perm(0, 0, 0644, "/system/app/Redmi1s_MIUICamera.apk");
ui_print("Unmounting System...");
run_program(
"/sbin/busybox",
"umount",
"/system"
);
ui_print("MIUI Camera successfully installed!");
I wonder whether this is gonna happen with me only in TWRP or in other recoveries as well (can't test in CWM as it is not supported for my device). Please correct if any errors in the script..
P.S. I took the update-binary from some random flashable zip as I've heard that it's the same for any zip file..
tvij123 said:
Device details:
YU Yuphoria YU5010
Software: CyanogenMod 12.1 (Nightly)
Root Access: Yes (By Default)
Bootloader: Unlocked
Recovery: TWRP v2.8.7.0
I made a simple flashable zip which I want to use for installing a different camera app in my device's /system partition. The app works. I've tried it by installing it the traditional way (apk). However I'm not able to flash the zip file. Whenever I try to flash it I get an error
E:Error executing updater binary in zip '/sdcard/cam.zip'
I researched on Google for that error and found many solutions from people facing the same problem. However all those solutions were only for this issue when faced while flashing a new custom ROM, not any other zip. So they were futile for me. Obviously I haven't been wiping anything before flashing my zip file.
My updater-script code:
ui_print("*********************************");
ui_print(" ");
ui_print("********** MIUI Camera **********");
ui_print("*** By Tanmay Vij ***";
ui_print("**********************************");
ui_print("Mounting System...");
run_program(
"/sbin/busybox",
"mount",
"/system"
);
ui_print("Installing Camera...");
package_extract_dir(
"system",
"/system" <--- This is the error....!!!
);
ui_print("Fixing Permissions...");
set_perm(0, 0, 0644, "/system/app/Redmi1s_MIUICamera.apk");
ui_print("Unmounting System...");
run_program(
"/sbin/busybox",
"umount",
"/system"
);
ui_print("MIUI Camera successfully installed!");
I wonder whether this is gonna happen with me only in TWRP or in other recoveries as well (can't test in CWM as it is not supported for my device). Please correct if any errors in the script..
P.S. I took the update-binary from some random flashable zip as I've heard that it's the same for any zip file..
Click to expand...
Click to collapse
Try zip me app..
Just make a flashable zip of camera in system...
Unpack it..
Delete the apk file inside..
Paste miui camera apk...
Pack it and flash it that's all..
And extract dir should be /system/app ...
ARAVIND_PAVAN said:
Try zip me app..
Just make a flashable zip of camera in system...
Unpack it..
Delete the apk file inside..
Paste miui camera apk...
Pack it and flash it that's all..
And extract dir should be /system/app ...
Click to expand...
Click to collapse
I've tried Zip Me app.. It works fine.. But this time I wanted to do it from scratch..

Categories

Resources