Comments (7)
Thanks @71walceli. I've merged that PR, but since the travis build is no longer running, you need to build from master.
from android-backup-extractor.
Am getting something like this output when running the following command. Except my output states
'Caused by: java.lang.NumberFormatException: For input string: "`:
~/work/android-backup-extractor> ./abe unpack backup.ab backup.tar <my password>
The error message indicates parseInt() fails on the version string. The version string comes from the header of the backup.ab file. I'm not tuned into Java's casting rules, so just hard-coded "version = 4" (for my phone running Nougat).
Likewise, parseInt() fails on the given value of compressed (boolean). Hard-coding it to false did the trick. Why it's false I don't know. Perhaps it's referring to a 2nd level of compression?
I have no idea why parseInt() fails with the given values. What could have possibly changed to the backup file format or to the Java implementation of a core language feature? Seems weird. Maybe it has to do with line endings, dos/unix, etc?
Anyway, I'm looking at a valid, decompressed, decrypted backup archive off my phone. So life is good.
from android-backup-extractor.
Same error, any helps?
from android-backup-extractor.
look at the header (text lines) of your backup archive and see what's there.
If there are space or a different number format/order, maybe your phone is using slightly different format from what the tools expects. Should be easy to adjust if the difference is small.
from android-backup-extractor.
@nelenkov Thanks, that was a point. The "backup.ab" was failed created so I think the abe does not recognize the file. I tried to backup again and when it asked my mobile phone for encrypted password then now it works, otherwise it won't work for abe :)
from android-backup-extractor.
Well, the error may be somewhat misleading,
$ ll
total 2336
drwxrwxr-x 3 wceli wceli 4096 feb 17 15:43 ./
drwxr-x--- 53 wceli wceli 32768 feb 17 15:35 ../
-rw-rw-r-- 1 wceli wceli 4 feb 6 17:56 1
drwxrwxr-x 3 wceli wceli 4096 feb 4 17:25 a1/
-rw-rw-r-- 1 wceli wceli 2327223 nov 9 01:31 abe.jar
-rw-r----- 1 wceli wceli 0 feb 16 18:29 backup2.ab
-rw-r----- 1 wceli wceli 549 feb 17 15:43 backup.ab
-rw-rw-r-- 1 wceli wceli 1024 feb 17 15:43 backup.tar
It turns out the backup2.ab
is the first one I made, which was 0 bytes.
That's a check to be made before trying to decrypt and extract the file, as this exception leads to no useful understanding
from android-backup-extractor.
Please check PR #112 in order to add several other ones so as to prevent misleading errors messages or ones that aren't really helpful.
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
- FR: test archive mode HOT 5
- Pre-built binaries are missing HOT 5
- 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.