Related
Hi guys,
Couldn't find the answer to this anywhere but I noticed in the newer releases of busybox there's no 'zip' command anymore. I'm running busybox 1.19 on my Incredible.
I have been using this command to create different bootanimation.zip files from my phone but am wondering if there is an alternative command I can use from within Android. I've tried tar -cvzf but I believe tar archives/compresses the files differently and renaming the extensions to .zip does not work.
Any ideas besides using an actual PC to do what I want to do?
Thanks,
Zebdor
Sent from my Incredible using XDA App
There are apps out there such as AndroZip, that essentially creates zip files.
If you are doing this for an app, there are built in zip classes in Java.
java.util.zip.*;
Edit: Just realized you asked for it to be command line. I will keep looking!
Yeah, I used to use 'zip -0r ...' to zip up a folder but for some reason the busyboxes I've tried downloading don't come with the zip command anymore...
I'm looking through the BusyBox source...
Does it have to be .zip? I mean there are plenty of others to choose from such as tar, gz, bz.
I can't find anything on the website why it is left out.
Best of luck
travmanx said:
I'm looking through the BusyBox source...
Does it have to be .zip? I mean there are plenty of others to choose from such as tar, gz, bz.
I can't find anything on the website why it is left out.
Best of luck
Click to expand...
Click to collapse
I was thinking of using tar and gz but every tutorial I've read says Android requires the bootanimation to be in .zip format uncompressed. I even tried tarballing it as bootanimation.tar but it didn't work...
did anyone ever find an answer to this?
im currently trying to find a portable binary for just zip (or something like busybox that includes zip) because im trying to automate creation of a cwm zip ON an android device during the installation of another cwm zip
iXNyNe said:
did anyone ever find an answer to this?
im currently trying to find a portable binary for just zip (or something like busybox that includes zip) because im trying to automate creation of a cwm zip ON an android device during the installation of another cwm zip
Click to expand...
Click to collapse
This seems to work fine: https://code.google.com/p/zip-for-android/people/[email protected]
I thought I was crazy...
I have surely been missing the zip command too... I just got done downloading and about to reboot into recovery to install...
Zarchiver is a free app in the market that i use to.make boot animation zips and any other kind of zip on my Android device.
Hello. Is it possible to flash a zip Rom using Odin? I need to flash a zip.
Sent from my HTC Explorer A310e using XDA
yes, just take whats inside the zip and make it into a tar.md5 file and that way you can flash it through odin.
PD: it's better to make it .tar.md5 in a linux machine, don't know why doesn't seem to work on windows.
cheers
sebarg said:
yes, just take whats inside the zip and make it into a tar.md5 file and that way you can flash it through odin.
PD: it's better to make it .tar.md5 in a linux machine, don't know why doesn't seem to work on windows.
cheers
Click to expand...
Click to collapse
a .tar.md5 is just a .zip renamed?
sebarg said:
yes, just take whats inside the zip and make it into a tar.md5 file and that way you can flash it through odin.
PD: it's better to make it .tar.md5 in a linux machine, don't know why doesn't seem to work on windows.
cheers
Click to expand...
Click to collapse
I don't understand. How do I create a .tar.md5 file with a flashable zip?
Lol when your a making .zip then why are you not flashing it directly on your device through cwm??
Edward Cullen
zapcow said:
a .tar.md5 is just a .zip renamed?
Click to expand...
Click to collapse
Do I use a program to convert zip to tar.md5 ????
Avilove.Cullen said:
Lol when your a making .zip then why are you not flashing it directly on your device through cwm??
Edward Cullen
Click to expand...
Click to collapse
Recovery or my Rom just isn't reading my zip file!
http://forum.xda-developers.com/showthread.php?t=1750960
This link gives some background to what I've already done...
What do I do after I make the zip into a tar file?
extract the zip via winrar or 7 zip and reveal its contents please sir
ajay8055 said:
extract the zip via winrar or 7 zip and reveal its contents please sir
Click to expand...
Click to collapse
Meta inf, system, boot.img and installbusybox
Sent from my HTC Explorer A310e using xda app-developers app
go to jaggys. rom thread following the tutorial unlock your bootloader and install the recovery after that install this zip via recovery. you can't install this zip via odin and you can't convert it to .tar. ....have a nice day sir any questions fell free to post here or ask Google
---------- Post added at 06:44 PM ---------- Previous post was at 06:37 PM ----------
sebarg said:
yes, just take whats inside the zip and make it into a tar.md5 file and that way you can flash it through odin.
PD: it's better to make it .tar.md5 in a linux machine, don't know why doesn't seem to work on windows.
cheers
Click to expand...
Click to collapse
you can't blindly do a .tar file of extracted files coz Odin wouldn't recognize it like Meta inf is a script for cwm not Odin the rom is packed in such a way that cwm installs it not Odin
Could I use fastboot? I am not having a nice day, my phone is not reading the zip file because it thinks it is corrupted.
ri123 said:
Could I use fastboot? I am not having a nice day, my phone is not reading the zip file because it thinks it is corrupted.
Click to expand...
Click to collapse
you need to flash it via recovery...fastboot wont work redownload the file...........
just extract the zip file ,click with right mice button and choos extract,you get a SS_DL.dll document and a tar.MD5 package.
I got this file
http://forum.xda-developers.com/showthread.php?t=2357471
that references odin in the subject of the thread. I tried flashing it via cwm, but kept getting a black screen on boot after the s4 screen.
so I wanted to try odin. but it's a zip. Is there a process to convert to tar.gz? Do I just extract, then recompress to a tar.gz?
sebarg said:
yes, just take whats inside the zip and make it into a tar.md5 file and that way you can flash it through odin.
PD: it's better to make it .tar.md5 in a linux machine, don't know why doesn't seem to work on windows.
cheers
Click to expand...
Click to collapse
Ahh, that's because in the \system\etc\terminfo\e\ directory there are two files with the respective names: Eterm and eterm. Linux file names are case-sensitive, Windows file names aren't,so Windows will overwrite one. If you then create a gz file, one of the files is missing.
Avilove.Cullen said:
Lol when your a making .zip then why are you not flashing it directly on your device through cwm??
Edward Cullen
Click to expand...
Click to collapse
what is cwm? i want ot flash my s4, i search and i found this: http://forum.xda-developers.com/wiki/Flashing_Guide_-_Android
but it won't help me, please send me some links
This Is Not Working At All
sebarg said:
yes, just take whats inside the zip and make it into a tar.md5 file and that way you can flash it through odin.
PD: it's better to make it .tar.md5 in a linux machine, don't know why doesn't seem to work on windows.
cheers
Click to expand...
Click to collapse
I have tried this already....
but Odin Pops up a window saying: ".md5 binary is invalid"
tar/tar.gz from zip file
have seen this question a lot.
to create the tar file, you normally have to be in a Unix environment and an app like File-Roller can do the job of compressinf the files you extracted from the original zip file.
Allright, the solution is simple. You don't even need a Linux machine!
First, check your ZIP file. Does it contain a folder only? And are there some files in that folder? Then you have to make a ZIP file, which only contains those files, otherwise Odin cannot flash it. If there are just some files (and folders?) in your ZIP file, you can just leave it as it is.
Then, you have to download this little tool (direct link) and the thread here . Extract it somewhere you like to have it.
Place your ZIP file in the main directory (the folder where Runme.bat is located) and rename it to yourfile.img, then run Runme.bat (as Admin, probably?)
Now you have a TAR file!
Have a nice day,
VengaXDA
Ive done a backup on my phone and created a flashable zip (update.zip)
Now im playing around with dsixda's kitchen and trying to extract the system.tar, however it fails most likely due to fact the the system.tar is empty
the files in the archive are as follows
Meta-inf -- <folder>
boot.img -- <8192KB>
image-edify -- <1KB>
system.ext4.tar -- <0KB>
system.ext4.tar.a -- <976,563KB>
system.ext4.tar.b -- <68,151KB>
By the looks of things it has split the system.ext4.tar because its over a gig
How can i compile this into one file or one image so that the kitchen can read it, I'm on a windows 7 PC but i can run linux in a vbox if necessary.
Thanks
Try using the zip file in your input folder.
dsixda's kitchen should be able to extract from it
mikep99 said:
Try using the zip file in your input folder.
dsixda's kitchen should be able to extract from it
Click to expand...
Click to collapse
Already tried, it comes back saying its deleting the part a and part b files and then says the system.ext4.tar isnt a valid archive.
Is it a stock rom?
If so, download the firmware from sammobile and put the tar.md5 file into your input folder (after removing the .md5 suffix).
Thats worked for me in the past....
It is stock, but i have removed the bloatware, installed a few mods, i was hoping to use this particular one really as a base. Ive already played around with fully stock and i kind of broke the whole thing
I'm not too sure then unless theres some tool you can find to merge the 3 tar files into 1...
Never had to do it so I'm unable to suggest anything I'm afraid.
I Backup-ed my Acer tab b1-A71 using android system recovery - Just like CWM.
The file name ends with .Backup, and i wanted to extract some files from it..
How to Extract data from .Backup file ? - Created with android system recovery
looking for the same
reena0307 said:
I Backup-ed my Acer tab b1-A71 using android system recovery - Just like CWM.
The file name ends with .Backup, and i wanted to extract some files from it..
How to Extract data from .Backup file ? - Created with android system recovery
Click to expand...
Click to collapse
me too looking for the same thing ..how to extract from or decompile .backup file which we get thru recovery.
hi loverboyritesh :: i and you are in same position.. but some advaaanced users are here that we are telling rumors and lies.. dont worry bro.. even i'm trying to get solution.. will tel you after geeing one.. Still no one can tell me hoe to extract .BACKUP file..
same
i am looking for how to reinstall .backup myself so i can have my original rom install.
but i have notice my .backup is 700+mb while custom rom is 200+mb
do you know how to?
reena0307 said:
I Backup-ed my Acer tab b1-A71 using android system recovery - Just like CWM.
The file name ends with .Backup, and i wanted to extract some files from it..
How to Extract data from .Backup file ? - Created with android system recovery
Click to expand...
Click to collapse
same here. dunno how to open and extract the files from a .backup file. hoping you know already
siiingkeeet said:
same here. dunno how to open and extract the files from a .backup file. hoping you know already
Click to expand...
Click to collapse
Nope.. Still i'm having that file but no one knew
reena0307 said:
Nope.. Still i'm having that file but no one knew
Click to expand...
Click to collapse
been searching for 5 days now :<
not a single answer found on google and forums
cant even post a new thread yet. just joined
hope someone will drop by this thread
still no solution?
got same problem here
Got a bootloop issue with an ASUS MeMo Pad 7 HD and I've booted in recovery <3e> to make a backup.
I've got a userdata_YYYYMMDD_HHMMSS.backup. I tried opening it with a bunch of tools like unyaffs, abe (Android backup extractor), going live on the file using linux tools (open as 7zip, zip, rar, tar, tar.gz, gz, bz2 , mount as iso, ext4 and so on....)
Still no luck :-/
Only clue is that the file seems compressed. During the backup under recovery, it told me 3600MB to backup and the file userdata_xxxxxxxx_xxxxxx.backup show only 2.61GB
I did this backup 3 time to ensure there were no corruption during the write process from the pad and did again the same "tests" to open the file...Not better.
If any dev' have any clue of the file format, I'd be glad to help
It doesn't seem to be a valid unix img file. Tried mounting it to no avail. When it's restored by the recovery it also extracts the individual files because i fails on one in my case and stops the entire restore... I tried unzipping it, changed extension to ,jar, .tar, .zip, etc., none of them are recognised...amazing for a standard android feature to find so little info about it
Any solution?
I called Alcatel's technical service today and they told me that you can use the backup file only from the phone. Mine gives me the following error when I try to restore it: Error Magic header
If anyone knows how to unpack the backup file I would be more than grateful.
It's a 512 byte header in front of a "tar.gz"
hexdump -C userdata_xxxxxxxx_yyyyyy.backup | lessshowed the magical zip header "1f8b0800 00000000" at offset 0x200
So, skipping 512 bytes, the rest can be gunzip | tar
dd if=userdata_xxxxxxxx_yyyyyy.backup bs=512 skip=1 | gunzip -c | tar xv
Sir ektoric what d u mean on ur post?
Sorry cant understand it..
Can u please d a step by step procedure? Please...pls...plss
Thanks in advance...
Steps?
@ektoric sir im a noob in this... Can u show a step by step procedure?
@killen00 sorry, I assume you have a linux machine (or have access to one). The command is actually all there is to it.
Code:
dd if=userdata_xxxxxxxx_yyyyyy.backup bs=512 skip=1 | gunzip -c | tar xv
If you don't have a linux machine available, might I suggest one of the many distros of your choice, most of which have LiveCDs which you can run without installing.
script for gunzip method
maybe on xda it is common sense, but for me it was necessary to know, that these stock android recovery extracted files can be restored with nandroid custom recovery, if you simply repack them into tar archive.
i put this two command lines in a dirty shell script (extract + repack as tar).
thanks to ektoric figuring out his gunzip method!
edit: notamamasboy's mount method added (but not tested yet). if script not works come back few days later, download again and check version, maybe it has changed meanwhile.
with this you're able to transfer data of non-rooted phone to (rooted) similar one.
this is useful in case touchscreen is broken, you haven't custom recovery installed, usb-debugging is disabled and connecting usb-otg-mouse doesn't work.
tested on my Archos 50 b Oxygen (Mediatek MT6582).
it works for me, feel free to improve, port to busybox and publish. no support. use at own risk.
edit: bckp2cwm.sh is deprecated it is FOR JELLY BEAN ONLY (no selinux support)
a newer (selinux) version bckp2win.sh for TWRP you can find here:
http://forum.xda-developers.com/showthread.php?t=3775129
How did you go about determining the magic number found at 0x200? My hexdump output does not have that magic number (1f 8b) in any instance. Leads me to believe my backup is not a tar file. Any suggestions then?
@notamamasboy, you are unfortunately correct.
Someone else also mentioned that their
Code:
userdata_xxxxxxxx_yyyyyy.backup
file was not of the same format I tried some "known magic headers", and could not find anything tell-tale. In which case, without some clues, you are back at square one.
ektoric said:
@notamamasboy, you are unfortunately correct.
Someone else also mentioned that their
Code:
userdata_xxxxxxxx_yyyyyy.backup
file was not of the same format I tried some "known magic headers", and could not find anything tell-tale. In which case, without some clues, you are back at square one.
Click to expand...
Click to collapse
Even more peculiarly, two backups were created a .backup and a .backup2, I wonder if combining with cat I can get somewhere...
Hi.. Can somebody tell me if there is a way to convert flashable zip files to Odin tar.md5 files !!!!
I hav searched and read some related threads but none of them gave a conclusive answer for the question. Some explained how to convert .img files to tar files & some explained creating tar files by using 7zip (actually 7zip only create a file with .tar extension) but my question is how to convert zip files which don't have image files like for example if i wanted to flash some apps ported from other devices (camera, gallery, keyboard etc...) and i don't want to flash them through Recovery (I don't hav one) then HOW???
Technically speaking, you'd need to create an image of the partition containing content from your .zip folder (with proper permissions and stuff created by updater-script) and then you should pack it as system.img into .tar.md5 file.
The questions is WHY you want to do this, it's NOT common and there's absolutely no point in doing that.
Question is why no recovery
Sent from my GT-I9300 using XDA Premium 4 mobile app
Well, consider installing a corresponding CWM :good:
JustArchi said:
Technically speaking, you'd need to create an image of the partition containing content from your .zip folder (with proper permissions and stuff created by updater-script) and then you should pack it as system.img into .tar.md5 file.
The questions is WHY you want to do this, it's NOT common and there's absolutely no point in doing that.
Click to expand...
Click to collapse
JJEgan said:
Question is why no recovery
Sent from my GT-I9300 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I don't want to install a Recovery as it increases Binary count every time v boot the device. I personally don't like to increase my count. Every time i enter into Recovery to flash a zip file it will trigger the count. I know Triangle away can make the count zero but then i have to use it every time after using Recovery & I don't want to go through all that hassle.
Why i don't like an increase in count.... It's more like OCD
So, is there any easy n simple method to convert files !!! Am not much of a Android student. It's like am at Kindergarten level at Android University
vikram66778 said:
I don't want to install a Recovery as it increases Binary count every time v boot the device. I personally don't like to increase my count. Every time i enter into Recovery to flash a zip file it will trigger the count. I know Triangle away can make the count zero but then i have to use it every time after using Recovery & I don't want to go through all that hassle.
Why i don't like an increase in count.... It's more like OCD
So, is there any easy n simple method to convert files !!! Am not much of a Android student. It's like am at Kindergarten level at Android University
Click to expand...
Click to collapse
There's no easy way of doing what you want. There IS a way, but definitely not easy one.
JustArchi said:
There's no easy way of doing what you want. There IS a way, but definitely not easy one.
Click to expand...
Click to collapse
Can u explain me in a simplest way possible. I want to give it a try.... Thanks for help..
vikram66778 said:
Can u explain me in a simplest way possible. I want to give it a try.... Thanks for help..
Click to expand...
Click to collapse
Already done above.
Easier solution is mobile odin, although it can't flash all zips.
Sent from my GT-I9300 using Tapatalk
vikram66778 said:
Hi.. Can somebody tell me if there is a way to convert flashable zip files to Odin tar.md5 files !!!!
I hav searched and read some related threads but none of them gave a conclusive answer for the question. Some explained how to convert .img files to tar files & some explained creating tar files by using 7zip (actually 7zip only create a file with .tar extension) but my question is how to convert zip files which don't have image files like for example if i wanted to flash some apps ported from other devices (camera, gallery, keyboard etc...) and i don't want to flash them through Recovery (I don't hav one) then HOW???
Click to expand...
Click to collapse
hi do you found the way to? my p7500 olny with internal sd, i cant move the file to it cause it keeps rebooting. i need the tar.md5 file in odin to flash it.
thanks.
Well, I need to do this cuz my screen is broken and I can't see the TWRP options.
I need to flash LockScreen_Security_bypassV1.1 to get my files. Can anyone help me about this? Thanks in advance.