Comments (7)
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.
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.
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.
It was with ICS and with -shared.
Thank you.
from android-backup-extractor.
Here's the Android issue, is has some more details:
http://code.google.com/p/android/issues/detail?id=28303
from android-backup-extractor.
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.
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)
- Backup convert fail HOT 3
- [BUG] unpack worked, but can't extract .tar, any help appreciated HOT 1
- 求解 HOT 3
- Unpacked tar files are corrupt when unpacking a backup of com.mountainproject.android
- Error when installing the latest version
- 求动中文的朋友帮忙看下
- 求懂中文的朋友帮忙看下
- Problem with Non-English notes
- Convert Titanium Backup To ADB Backup
- Exception in thread "main" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "" HOT 1
- ERROR: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: org/nick/abe/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 HOT 3
- adb backup file extraction
- stuck at 3% when unpacking a .ab HOT 1
- Exception in thread "main" java.lang.RuntimeException HOT 1
- How to use in Ubuntu 22.04? HOT 3
- Password? HOT 8
- Exception in thread "main" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: " 3☺←c" HOT 4
- Wrong version?? HOT 1
- Xiaomi MIUI health HOT 2
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-backup-extractor.