Giter Club home page Giter Club logo

Comments (7)

nelenkov avatar nelenkov commented on July 1, 2024 1

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.

tmst avatar tmst commented on July 1, 2024

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.

locpv-ibl avatar locpv-ibl commented on July 1, 2024

Same error, any helps?

from android-backup-extractor.

nelenkov avatar nelenkov commented on July 1, 2024

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.

locpv-ibl avatar locpv-ibl commented on July 1, 2024

@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.

71walceli avatar 71walceli commented on July 1, 2024

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.

71walceli avatar 71walceli commented on July 1, 2024

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)

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.