-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 4.4 encrypted backup problem (Invalid password or master key checksum) #7
Comments
This is the result of the change described here: http://android-developers.blogspot.jp/2013/12/changes-to-secretkeyfactory-api-in.html and can be probably treated as an Android bug, because restoring backups made with 4.3 will most likely fail on 4.4. File one at http://b.android.com if you can confirm this. The fix is to replace |
Totally corrected the problem and I can access my files with your tool. Thank you for this quick answer. |
Glad it works for you, but let's not close this just yet. I'll have to figure out how fix this properly. Maybe try the second variant if checksum checking fails and only throw an exception if both fail? |
|
What changes do you have to make in the Perl code to accomplish the same thing? Also is it possible you can compile a new .jar with the changes and upload it please? |
IIRC, Perl's PBKDF2 code is actually in C and does not support UTF-8 to start with. The C code needs to be modified to use UTF, to be compatible with current 4.4. I don't distribute a JAR, please compile from source. |
I can't for the life of me figure out how to compile it using Eclipse, which is what you suggest. I can get 2 class files if I compile it with javac, but then get an error. If it's suppose to work with compiling with javac, can you let me know and I'll continue trying to figure out what's causing the errors when I attempt to run it. If not can you point me somewhere that would help me with getting it compiled in Eclipse please? Thanks |
Firstly download the source from HERE and not from the sourceforge, their zip file of the src is horribly out of date. |
Nothing special required, just add a recent BouncyCastle jar. You can also use Ant, there is a |
Yet, |
Hello.
I have an issue with abe.jar, when I try to extract an encrypted backup with the correct password. (the password is working with adb restore )
GOOD PASSWORD ERROR MESSAGE
Strong AES encryption enabled
Magic: ANDROID BACKUP
Version: 1
Compressed: 1
Algorithm: AES-256
….
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Invalid password or master key checksum.
BAD PASSWORD ERROR MESSAGE
Strong AES encryption enabled
Magic: ANDROID BACKUP
Version: 1
Compressed: 1
Algorithm: AES-256
….
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
Thank you for your help
The text was updated successfully, but these errors were encountered: