Comments (16)
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.
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.
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.
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.
Android Backup version shows 5.1 in the header
from android-backup-extractor.
ANDROID BACKUP.5.1.AES-256.F087F781BBBF7B5CC575145DF90067FC6AE9A2E76517149BB403799ABEE3855444A14FF4F283913ACC6F6FAD0B4018BD1BD30BC2DA9B67F76CDBE40B3F8E1E76.11EFF532D53B8F833024E4E749FA13E450C4EE95065F2A5AEA5052F3B6B5F797A115993E5D0A3DE2A3EE30B9CB7654F109C437CCC55CDA1923B6D961EF31B682.10000.48B1D9E79249ADE23A4EDDBE219501E0.DCCD4F2A995B91B40A0A79C6869B448C1FA00DF397284D9AA3E28667785ADEDCCB9A2793735FD21B7E8C94B791CFDA70D0037935EE0F5292FA768CFD26890D379F6D585BFF5F08975DEEBBE7E6DB34EF75DB08A1EEF30921085144C995443D71..
from android-backup-extractor.
I backed up from Android 8.0
from android-backup-extractor.
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.
Same issue here. It would be lovely to see an update for those who can't compile their own.
from android-backup-extractor.
@mhoran can you upload your version of the jar with the 8.0 fix
from android-backup-extractor.
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);
}
from android-backup-extractor.
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.
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.
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.
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.
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)
- 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 4
- 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.