Giter Club home page Giter Club logo

Comments (7)

nelenkov avatar nelenkov commented on July 1, 2024

Hi,

Thanks for trying the tool out.

I've only tested with a couple of GB, IIRC, so this is new. It might be a bug in the JVM, but it's also quite close to 4GB, so I have to ask: what OS are you running this on? Additionally, you might want to try running this from the command line directly (not Eclipse), and maybe increase the heap size, although the program shouldn't need too much memory. I will check the JB code and see if there are any changes in the original code that might be relevant.

Additionally, there is also a Perl implementation (not by me), so you might want to try that out too, in case this is JVM/OS related.

http://forum.xda-developers.com/showthread.php?p=27840175#post27840175

from android-backup-extractor.

neclepsio avatar neclepsio commented on July 1, 2024

Thank you.

I'm running windows XP, with NTFS filesystem (so >4GB files are not a problem).

I tried the problem by unpacking it as it was uncompressed (forcing inCompressed = false), then inflating it with a simple C# program: I have the same problem in the same point.

So: the backup is corrupted.
Or: the AOSP implementation of java.util.zip has problems, maybe using it would solve.

Thank you.

from android-backup-extractor.

nelenkov avatar nelenkov commented on July 1, 2024

How did you create your backup? There was bug ICS that wouldn't properly compress shared storage contents (if you specified the '-shared' option), maybe that is related. The Perl tool I linked has a script that tries to fix this, but it might need some work.

from android-backup-extractor.

neclepsio avatar neclepsio commented on July 1, 2024

It was with ICS and with -shared.

Thank you.

from android-backup-extractor.

nelenkov avatar nelenkov commented on July 1, 2024

Here's the Android issue, is has some more details:

http://code.google.com/p/android/issues/detail?id=28303

from android-backup-extractor.

wittelw avatar wittelw commented on July 1, 2024

Thanks for this work!

FWIW I was able to unpack a 2.3GB backup.ab created via 'adb backup -noshared -all -system' on Ubuntu 12.10 (32-bit) running adb version 1.0.29 and your code compiled with the default OpenJDK package (had to delete the third parameter of the DeflaterOutputStream ctor in AndroidBackup.java, maybe due to OpenJDK?). BTW, Samsung Galaxy S2 [SGH-I727] running AT&T flavor of ICE (4.0.4).

When I ran adb with -shared I ended up with a 4.9GB backup.ab which produced the 'invalid stored block lengths' reported by neclepsio. So seems Android (your last link) is at issue.

from android-backup-extractor.

nelenkov avatar nelenkov commented on July 1, 2024

Glad it worked for you. There are no inherent limits to backup size, and the app should be reading it in batches, so not much memory is required. As for the DeflaterOutputStream parameter, it was introduced in Java 7, so if you got compiler errors your JDK version is probably still 6 .

The -shared issues has been fixed in Jelly Bean, but is quite annoying nonetheless. Fixing the broken backups is a bit tricky, but not impossible, albeit somewhat hard to do automatically.

from android-backup-extractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.