Giter Club home page Giter Club logo

Comments (16)

mhoran avatar mhoran commented on July 19, 2024 1

I removed the version check from AndroidBackup.java, recompiled, and extracted a backup just fine. So likely it is compatible and this check just needs to be changed. YMMV.

from android-backup-extractor.

treed593 avatar treed593 commented on July 19, 2024 1

Thanks mhoran, agreed you shouldnt randomly run jars from people on the internet, at least not on a live machine...a sandbox however

from android-backup-extractor.

nelenkov avatar nelenkov commented on July 19, 2024

Can you paste the exception you are getting and the backup header?

Also, are you having problems with Android 7 (Nougat) or 8 (O, in preview)

from android-backup-extractor.

shanij89 avatar shanij89 commented on July 19, 2024

Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalArgument
Exception: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:232)
at org.nick.abe.Main.main(Main.java:40)
Caused by: java.lang.IllegalArgumentException: Don't know how to process version
5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:72)
... 1 more

from android-backup-extractor.

shanij89 avatar shanij89 commented on July 19, 2024

Android Backup version shows 5.1 in the header

from android-backup-extractor.

shanij89 avatar shanij89 commented on July 19, 2024

ANDROID BACKUP.5.1.AES-256.F087F781BBBF7B5CC575145DF90067FC6AE9A2E76517149BB403799ABEE3855444A14FF4F283913ACC6F6FAD0B4018BD1BD30BC2DA9B67F76CDBE40B3F8E1E76.11EFF532D53B8F833024E4E749FA13E450C4EE95065F2A5AEA5052F3B6B5F797A115993E5D0A3DE2A3EE30B9CB7654F109C437CCC55CDA1923B6D961EF31B682.10000.48B1D9E79249ADE23A4EDDBE219501E0.DCCD4F2A995B91B40A0A79C6869B448C1FA00DF397284D9AA3E28667785ADEDCCB9A2793735FD21B7E8C94B791CFDA70D0037935EE0F5292FA768CFD26890D379F6D585BFF5F08975DEEBBE7E6DB34EF75DB08A1EEF30921085144C995443D71..

from android-backup-extractor.

shanij89 avatar shanij89 commented on July 19, 2024

I backed up from Android 8.0

from android-backup-extractor.

sovikstepan avatar sovikstepan commented on July 19, 2024

Hi Nelenkov,

is there any plan to fix this? :) I'm running into same issue with "Exception: Don't know how to process version 5" with Developer preview of Android O (Google Pixel C). I have no issue with Android 7 (Nougat) at all (Google Pixel C & Nexus 9).

Thx & Have a nice day.

from android-backup-extractor.

kribjo avatar kribjo commented on July 19, 2024

Same issue here. It would be lovely to see an update for those who can't compile their own.

from android-backup-extractor.

treed593 avatar treed593 commented on July 19, 2024

@mhoran can you upload your version of the jar with the 8.0 fix

from android-backup-extractor.

mhoran avatar mhoran commented on July 19, 2024

Attached -- though I wouldn't recommend running jar files from random folks on the Internet.

Here's the diff:

diff --git a/src/org/nick/abe/AndroidBackup.java b/src/org/nick/abe/AndroidBackup.java
index b27986f..dc333ee 100644
--- a/src/org/nick/abe/AndroidBackup.java
+++ b/src/org/nick/abe/AndroidBackup.java
@@ -38,6 +38,7 @@ public class AndroidBackup {
     private static final int BACKUP_FILE_V2 = 2;
     private static final int BACKUP_FILE_V3 = 3;
     private static final int BACKUP_FILE_V4 = 4;
+    private static final int BACKUP_FILE_V5 = 5;
 
     private static final String ENCRYPTION_MECHANISM = "AES/CBC/PKCS5Padding";
     private static final int PBKDF2_HASH_ROUNDS = 10000;
@@ -68,7 +69,7 @@ public class AndroidBackup {
                 System.err.println("Version: " + versionStr);
             }
             int version = Integer.parseInt(versionStr);
-            if (version < BACKUP_FILE_V1 || version > BACKUP_FILE_V4) {
+            if (version < BACKUP_FILE_V1 || version > BACKUP_FILE_V5) {
                 throw new IllegalArgumentException(
                         "Don't know how to process version " + versionStr);
             }

abe.zip

from android-backup-extractor.

Bohne2017 avatar Bohne2017 commented on July 19, 2024

Hello mhoran,

I have a little problem that I don't quite understand. The abe. jar you provide is unpacked to a different folder than I want. Actually, the folder to which the backup. ab is unpacked should be different, as you can see in the following batch file:

@echo off

cd Data
java -jar abe.jar unpack adb/Sicherung/backup.ab adb/Sicherung/backup.tar
tar -xvf adb/Sicherung/backup.tar
tar -tf adb/Sicherung/backup.tar > adb/Sicherung/backup.list

pause

The abe. jar unpacks the backup. off to the "Data\adb\S Backup"folder, but then unpacks the backup. tar not to the same folder, but to the "Data\adb\apps"folder. Why is that, and can I do something about it?

Thank you for your help!

from android-backup-extractor.

mhoran avatar mhoran commented on July 19, 2024

Hmm, I'm surprised about that. I'd expect backup.tar to extract to the current directory (e.g. Data/apps). I don't have a backup to test this out with at the moment, but I'm fairly certain that's what I saw in the past. a-b-e doesn't, so far as I know, use the local filesystem hierarchy to create the backup.tar.

from android-backup-extractor.

nelenkov avatar nelenkov commented on July 19, 2024

ABE doesn't do anything with the tar file itself. Differences in behaviour are probably due to the tar variant you are using.

In any case, 8.0 should be supported now, so closing this.

from android-backup-extractor.

dan-zong-hao avatar dan-zong-hao commented on July 19, 2024

what happened~
java -jar abe.jar unpack mihealth.bak csf
"xception in thread "main" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: "5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:232)
at org.nick.abe.Main.main(Main.java:40)
"aused by: java.lang.NumberFormatException: For input string: "5
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
at java.base/java.lang.Integer.parseInt(Integer.java:668)
at java.base/java.lang.Integer.parseInt(Integer.java:786)
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:72)
... 1 more

from android-backup-extractor.

nelenkov avatar nelenkov commented on July 19, 2024

This issue is closed so you might want to create a new one.
Also please include details about what kind of file mihealth.bak is. From the error, it doesn't appear to be the standard Android format.

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.