[Q] App to Zip entire directory - Android Apps and Games

Is there a way to zip up an entire directory not just individual files. I have a schedule with titanium backup and then uploaded them to dropbox, but if possible I'd rather have the backup as a zip file.

Leshy01 said:
Is there a way to zip up an entire directory not just individual files. I have a schedule with titanium backup and then uploaded them to dropbox, but if possible I'd rather have the backup as a zip file.
Click to expand...
Click to collapse
Not with a zip file afaik, in zip format a single file is compressed.
**Use .rar format, its an archived/compressed format so it supports multiple directories. This is the ideal method.**
Alternativly you could use separate archive/compression formats such as the '.tar.gz' format where you first archive(make into a single file) the directory into a .tar, and then compress in gzip format giving you .tar.gz. You can o this using 7zip, but its not a commonly used file extension anymore rar has taken over so I suggest you use that.

Jandyman said:
Not with a zip file afaik, in zip format a single file is compressed.
Click to expand...
Click to collapse
Incorrect, Zip can hold any directory structure, just like Rar and Tar.
ASTRO File Manager can handle zip files the same as a regular directory. Hit Menu -> New -> Zip File, name it, and it gets added to the file list for the current directory. From there, it acts like a directory - tap on it to navigate inside it, move/copy files/directories to it, etc.

Ghost Commander will do this as well, and it's pretty awesome.

Related

How to make a CWM file

Hello, I have searched everywhere and cant find the answer to my question. I wanted to replace a file using CWM .zip how in the heck do I do that? Most of all I just wanted to learn how to do it as well...
Thanks,
Chad
Well to begin with you can take an existing zip with the file path you need, delete everything in the folders not touching the META-inf folder at all, those are the install instructions, and put the file you want to flash in the correct folder. I think thats how everyone starts out.
studacris said:
Well to begin with you can take an existing zip with the file path you need, delete everything in the folders not touching the META-inf folder at all, those are the install instructions, and put the file you want to flash in the correct folder. I think thats how everyone starts out.
Click to expand...
Click to collapse
but your update-script has to match what you are flashing via cwm. if you take a rom zip and just pop in a few files in place of the whole rom structures, your flash will fail because your update-script is looking for specific structures.
Oxicottin said:
Hello, I have searched everywhere and cant find the answer to my question. I wanted to replace a file using CWM .zip how in the heck do I do that? Most of all I just wanted to learn how to do it as well...
Thanks,
Chad
Click to expand...
Click to collapse
One way would be to use: Update Zip creator/modifier (Requires Windows)
yeah it would be bad mojo if you used a wipe rom zips META INFO to make an update zip.....
Thanks a million everyone......
Sorry for being late to the party again.. Here goes my attempt at an explanation though:
Essentially, a CWM flashable zip is just a zip file with the file system replicated in it. So for example, if you wanted to add swype, and you know Swype.apk would regularly go in /system/app, then you would create a blank folder called 'system', and another folder inside system called 'app', and put your Swype.apk inside that. (/system/app/Swype.apk)
After that, all that's left is to build an update script. So, from your root directory (where your system folder is), you would make another directory called META-INF, with a folder inside called 'com', another one inside that called 'google', and finally one called 'android' inside that (/META-INF/com/google/android), you put a text file in there called 'update-script' that tells recovery what you want to do (in this case, copy swype over to the corresponding directory on the file system).
http://forum.xda-developers.com/showthread.php?t=641223
^There's a guide for how to make those. You can also pick apart any rom you find in the dev section and check out the update script for reference.
After that, it's just a matter of zipping up all the contents in your root directory, then signing the zip with testsign.jar
modest_mandroid said:
Sorry for being late to the party again.. Here goes my attempt at an explanation though:
Essentially, a CWM flashable zip is just a zip file with the file system replicated in it. So for example, if you wanted to add swype, and you know Swype.apk would regularly go in /system/app, then you would create a blank folder called 'system', and another folder inside system called 'app', and put your Swype.apk inside that. (/system/app/Swype.apk)
After that, all that's left is to build an update script. So, from your root directory (where your system folder is), you would make another directory called META-INF, with a folder inside called 'com', another one inside that called 'google', and finally one called 'android' inside that (/META-INF/com/google/android), you put a text file in there called 'update-script' that tells recovery what you want to do (in this case, copy swype over to the corresponding directory on the file system).
http://forum.xda-developers.com/showthread.php?t=641223
^There's a guide for how to make those. You can also pick apart any rom you find in the dev section and check out the update script for reference.
After that, it's just a matter of zipping up all the contents in your root directory, then signing the zip with testsign.jar
Click to expand...
Click to collapse
Is there a way from the CWM interface to do the same with a backup you create? I noticed backups are not in the same format, they are usually .img, .tar, and an md5 file?

apply sdcard:updata.zip help

well im trying to install darktemors a2sd on my fone and im in system recovery <3e> when i try to select the option apply sdcard:update.zip it says
finding update package...
openinng update package..
E:Cant't open /sdacrd/update.zip
(NO Such file or directory)
installtion aborted.
im fresh so i have no idea what to do please help
Use a file explorer like Astro or ES File Explorer, to go look on the sdcard folder and see if update.zip is there. You may need to go into the settings on the file explorer app and specify that it show the file extension (i.e. The .zip part). Make sure the file isn't named update.zip.zip.
Also did the install instructions say the file would be named update.zip? Sometimes the install file is named something else. I.e. darktremor.zip. Which in that case you have to choose the option to 'choose zip to install'. And find the specific zip file name, which may also be in a subfolder on the sdcard. I.e. /sdcard/download/darktremor.zip.
________________________________
http://ron-droid.blogspot.com
rigman said:
Use a file explorer like Astro or ES File Explorer, to go look on the sdcard folder and see if update.zip is there. You may need to go into the settings on the file explorer app and specify that it show the file extension (i.e. The .zip part). Make sure the file isn't named update.zip.zip.
Also did the install instructions say the file would be named update.zip? Sometimes the install file is named something else. I.e. darktremor.zip. Which in that case you have to choose the option to 'choose zip to install'. And find the specific zip file name, which may also be in a subfolder on the sdcard. I.e. /sdcard/download/darktremor.zip.
________________________________
http://ron-droid.blogspot.com
Click to expand...
Click to collapse
lol thanks it was called zip zip

Editing a flashable zip.

I would like to create a zip I can flash that will replace the contents of the /system/media/audio/ringtones folder. Basically if I delete everything (except the META-INF folder) I don't need from a ROM zip I have and copy the files I want into that folder will that be ok to flash?
Sometimes I flash a ROM before deleting ringers I don't want.
You should delete almost everything in updater-script except mount/unmount system and package_extract_dir ("system" "/system".), then you put what you want in system/media/audio (in the zip), then you should be able to flash it in recovery.
Sent from my Sensational phone

Help with updater-script

How to extract a tar archive to a specific location using updater script.
For example, I have a file named sample.tgz in /sdcard. Now I want to extract the contents of it to /system dir. Sample.tgz is not in the zip file of the flashable zip. Is there any way to do it? If yes, let me know!

[Q] Need help preparing a flashable zip file

Hi,
i currently had some issues with my GPS, and i found this thread with an attached gps.conf file which fixed them.
However, i want to create a flashable zip file for TWRP to ease and automate the installation of the custom file.
I used the cacert-installation zip from http://android.opensomething.org/ as a starting point for my creation. This zip was created by some people i know and they automate the installation of the CaCert.org root certs on android.
However, i set up my own commands in the update-binary (which is essentially a shell script in this zip) and copied the gps.conf as the payload of the zip. But now i have the problem that the flashing fails, and i don't know why.
I would be very happy if someone could look at the zip and my commands in there, and maybe has an idea, why the installation fails.
Thank you very much.
Use a root file explorer and copy that file to etc folder and check permissions,(rw-r-r) though generally this isn't an issue..
Sent from my A0001 using XDA Premium 4 mobile app
The zip file is in the same folder where my other flashable zip files are. It has also the same permissions. I double-checked the directory on my desktop where i created the zip file from, and its contents had exactly the same permissions that the contents of the cacert zip file have.
The syntax of the update-binary file should be correct.
Is there some sort of verbose mode i can activate in TWRP? Some errors like "Extracting zip... ERROR could not open update-binary FAILED" could be very helpful for me.
simonszu said:
The zip file is in the same folder where my other flashable zip files are. It has also the same permissions. I double-checked the directory on my desktop where i created the zip file from, and its contents had exactly the same permissions that the contents of the cacert zip file have.
The syntax of the update-binary file should be correct.
Is there some sort of verbose mode i can activate in TWRP? Some errors like "Extracting zip... ERROR could not open update-binary FAILED" could be very helpful for me.
Click to expand...
Click to collapse
The .zip you provided above is empty.. No files other than meta and system.. I'll build one and upload it..
Sent from my A0001 using XDA Premium 4 mobile app
Here you go..
Thank you very much. How did you create the zip? Just for the records, and for me to learn. I have my android phone for 10 days (was used to iOS before) and i like such actions very much.

Categories

Resources