[DEV][TOOL] easyFLASHABLEzipBUILDER v1.0

Is this helpful to you?


  • Total voters
    18
Search This thread
For those who want an easy way to create and sign CWM flashable zips via windows, look no further... this is about as easy as it gets!

1. Unzip contents of package to a folder we'll call this folder "tools"
2. in "tools" you will now have the included files plus and "update" folder
3. in "update" folder you have "META-INF," "system," & "data" folders
4. place any files you want copied to system in "system" folder, make sure your structure is proper.
5. place any files you want copied to data in "data" folder, make sure structure is proper.
6. once you have everything set in place, you have four options:
• 6a: drag the folder on top of "DRAGandDROPzipANDsign.bat" wait for it to finish, you will end up with {folder_name}_update.zip in the same folder as 7za.exe
• 6b: double click SIGNandZIPmanual.bat, type the name of the working folder, hit enter, wait for it to finish, it will loop back and allow you to complete another task, or hit X + Enter exit.
• 6c: double click SIGNonlyMANUAL.bat, enter just the zip filename you want to sign (no extension), hit enter and wait for it to finish. It will loop back and allow you to sign another one or hit X + Enter to exit.
• 6d: drag a ZIP on top of DRAGandDROPsignONLY.bat to sign/re-sign a zip that's already been built.
I suggest if you are using this method to replace any system files, to delete the existing file first by adding some lines to the updater-script found in the META-INF folder. as follows:
Code:
delete("/system/app/Rosie.apk");
these lines can be added below the
Code:
mount("MTD", "data", "/data");
line... make sure filenames correct because they are case sensitive.

Hopefully this will make your lives a little easier =)

LATEST VERSION MIRROR: CLICK HERE

Code:
CHANGELOG: 

1.1 - Current
~~* Silent update, forgot to include a couple of the updated files... oops! =)

1.0 - Update
~~* All drag & drop versions now support dragging and dropping from anywhere, not just the "working" directory. 
~~* Fixed manual versions, where the loopback to work with more files was not working properly.
~~* Now deletes the unsigned zip after building the signed zip.
~~* Cleaned up folder a bit, now works from _bin folder, and outputs to _out folder. Batch file should stay in "main" folder, one level above _bin folder.

0.9 - Update
~~* Added sign only, manual plus drag & drop versions
~~* Included FR translation (google) of the d&d zip and sign

0.8 - Update
~~* removed the random .apk that was accidentally included in 0.6, not sure what happened to 0.7... lol

0.6 - Initial forum release
 

Attachments

  • easyFLASHABLEzipBUILDER_v0.9.zip
    540.3 KB · Views: 158
  • easyFLASHABLEzipBUILDER_v1.1.zip
    540.7 KB · Views: 907
Last edited:

poundesville

Senior Member
Dec 19, 2010
245
63
Hi ...

I'm not developer but it seems what you're doing will help other developers (and in the end: I'll benefit from that)...

Here's a "thank you" note..


... note: this post is just my way to become a post-whore like you.... j/k
 
would it also work for Amon-RA?

yes, latest versions of amon-ra and cwm are both work only with edify scripts, so yes. you just need to know what your specific system & data paths are, system should be the same for everyone, but some devices use userdata /userdata instead of data /data... hopefully that makes sense =)

hope this helps =)

a new version, for the "manual" script will actually loop back when finished building/signing a zip, so that you can do multiple build/sign sessions, without having to reopen the script after every build/sign session will be updated shortly... I've already tested it and got it working... no real changes to the drag-and-drop file as it's not really necessary... I am trying to figure out a way to do a drag and drop sign only script, so once I have that figured out I will updated again...
 

heart_crafter

Inactive Recognized Developer
Apr 20, 2008
869
122
Philadelphia
support.htc-unlocks.com
looks like you might be able to answer my question :D

was playing around and deleted systemui.apk from system\app folder...
was trying to replace with another one... that did not work...
so i tired putting back the original one... and that does not install either...

is there a way to install that back on ?
if it is just guide me a lil bit...

will this procedure actually install the file?
http://xdaforums.com/showthread.php?t=1268661


thank you :D
 
Last edited:
looks like you might be able to answer my question :D

was playing around and deleted systemui.apk from system\app folder...
was trying to replace with another one... that did not work...
so i tired putting back the original one... and that does not install either...

is there a way to install that back on ?
if it is just guide me a lil bit...

will this procedure actually install the file?
http://xdaforums.com/showthread.php?t=1268661


thank you :D

just do this
Code:
adb remount
adb push SystemUI.apk /system/app
adb reboot
no need to "install" it, it just needs to be in the system/app folder at boot time... you might actually want to "adb reboot recovery" instead of "adb reboot" and then clear dalvik before rebooting into OS again...
 
  • Like
Reactions: heart_crafter

jgrimberg1979

Senior Member
May 16, 2010
1,002
226
D.C
I tried testing it by droping a apk in a folder called app and then dropping the app folder in data and then went ahead and used the .bat. I went into recovery, flashed it without an error but nothing was installed once i booted. Any ideas? Dont scripts very like some have a run program system/xbin/busybox etc?


edit. I was able to move the folder from data to system and then ran the script and flashed it and it worked, it should up once it booted. Is there any way to get it to flash data/app?
 
Last edited:

heart_crafter

Inactive Recognized Developer
Apr 20, 2008
869
122
Philadelphia
support.htc-unlocks.com
just do this
Code:
adb remount
adb push SystemUI.apk /system/app
adb reboot
no need to "install" it, it just needs to be in the system/app folder at boot time... you might actually want to "adb reboot recovery" instead of "adb reboot" and then clear dalvik before rebooting into OS again...

thanks for the code...
but i already had copied the file into system/app... and it wasnt working (wasnt installing) just did a dalvic wipe now... and looked at that file permission and it was different from all other system apps... so i matched them up.. and rebooted ... and systemtray is back :D

thank you!
 
edit. I was able to move the folder from data to system and then ran the script and flashed it and it worked, it should up once it booted. Is there any way to get it to flash data/app?

here's the hint from the first post:
I suggest if you are using this method to replace any system files, to delete the existing file first by adding some lines to the updater-script found in the META-INF folder. as follows:
Code:
delete("/system/app/Rosie.apk");
these lines can be added below the
Code:
mount("MTD", "data", "/data");
line... make sure filenames correct because they are case sensitive.
copy the extract_package line that references "system" and change "system" to "data" in all cases, or if you have no need to copy anything to system then just change all "system" cases to "data" rename the "system" folder to "data" then add your files as necessary...
 

jgrimberg1979

Senior Member
May 16, 2010
1,002
226
D.C
I am not sure i understand. Let me try and clarify what i am in trying to do. I am trying to build a flashable zip that contains an apk that i want to essential be installed in data/app directory. thats it.

What i see from the script below is that you have everything covered, system and data, so i am assuming if nothing is in the folder as system then it will be skipped over, correct

ui_print("");
ui_print("");
ui_print("Clearing dalvik cache ...");
delete_recursive("/data/dalvik-cache");
mount("MTD", "system", "/system");
mount("MTD", "data", "/data");

ui_print("");
ui_print("");
ui_print("Installing files to system ...");
package_extract_dir("system", "/system");
unmount("/system");

ui_print("");
ui_print("");
ui_print("Installing files to data ...");
show_progress(0.700000, 50);
package_extract_dir("data", "/data");
unmount("/data");

show_progress(10.000000, 1);

ui_print("Done.");
 
I am not sure i understand. Let me try and clarify what i am in trying to do. I am trying to build a flashable zip that contains an apk that i want to essential be installed in data/app directory. thats it.

oh ok... sorry... yeah I think for anything that goes to data, there needs to be an install command try adding install("/data/app/filename.apk"); for each file, after the package_extract_dir("data", "/data"); function... not sure if that is correct, but maybe?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    For those who want an easy way to create and sign CWM flashable zips via windows, look no further... this is about as easy as it gets!

    1. Unzip contents of package to a folder we'll call this folder "tools"
    2. in "tools" you will now have the included files plus and "update" folder
    3. in "update" folder you have "META-INF," "system," & "data" folders
    4. place any files you want copied to system in "system" folder, make sure your structure is proper.
    5. place any files you want copied to data in "data" folder, make sure structure is proper.
    6. once you have everything set in place, you have four options:
    • 6a: drag the folder on top of "DRAGandDROPzipANDsign.bat" wait for it to finish, you will end up with {folder_name}_update.zip in the same folder as 7za.exe
    • 6b: double click SIGNandZIPmanual.bat, type the name of the working folder, hit enter, wait for it to finish, it will loop back and allow you to complete another task, or hit X + Enter exit.
    • 6c: double click SIGNonlyMANUAL.bat, enter just the zip filename you want to sign (no extension), hit enter and wait for it to finish. It will loop back and allow you to sign another one or hit X + Enter to exit.
    • 6d: drag a ZIP on top of DRAGandDROPsignONLY.bat to sign/re-sign a zip that's already been built.
    I suggest if you are using this method to replace any system files, to delete the existing file first by adding some lines to the updater-script found in the META-INF folder. as follows:
    Code:
    delete("/system/app/Rosie.apk");
    these lines can be added below the
    Code:
    mount("MTD", "data", "/data");
    line... make sure filenames correct because they are case sensitive.

    Hopefully this will make your lives a little easier =)

    LATEST VERSION MIRROR: CLICK HERE

    Code:
    CHANGELOG: 
    
    1.1 - Current
    ~~* Silent update, forgot to include a couple of the updated files... oops! =)
    
    1.0 - Update
    ~~* All drag & drop versions now support dragging and dropping from anywhere, not just the "working" directory. 
    ~~* Fixed manual versions, where the loopback to work with more files was not working properly.
    ~~* Now deletes the unsigned zip after building the signed zip.
    ~~* Cleaned up folder a bit, now works from _bin folder, and outputs to _out folder. Batch file should stay in "main" folder, one level above _bin folder.
    
    0.9 - Update
    ~~* Added sign only, manual plus drag & drop versions
    ~~* Included FR translation (google) of the d&d zip and sign
    
    0.8 - Update
    ~~* removed the random .apk that was accidentally included in 0.6, not sure what happened to 0.7... lol
    
    0.6 - Initial forum release
    1
    quick little update... apparently I had included a small .apk in the update folder... my bad, sorry for the waste of bandwidth =)

    as the great homer simpson would say: DOH!
    1
    looks like you might be able to answer my question :D

    was playing around and deleted systemui.apk from system\app folder...
    was trying to replace with another one... that did not work...
    so i tired putting back the original one... and that does not install either...

    is there a way to install that back on ?
    if it is just guide me a lil bit...

    will this procedure actually install the file?
    http://xdaforums.com/showthread.php?t=1268661


    thank you :D

    just do this
    Code:
    adb remount
    adb push SystemUI.apk /system/app
    adb reboot
    no need to "install" it, it just needs to be in the system/app folder at boot time... you might actually want to "adb reboot recovery" instead of "adb reboot" and then clear dalvik before rebooting into OS again...