I've created a backup using the following command runnning on Windows 10 connected to an un-rooted encrypted Samsung Galaxy S7 Edge running Android 6.0.1:
(Note: mydomain and myapp are replaced with the actual domain and app name.)
adb backup com.mydomain.myapp
When that runs the device asks me for the encryption password on the phone which I then type in. Then, it creates a backup file named backup.ab.
Then I try to unpack the backup.ab to a backup.tar with abe.jar. I have tried all of the following where "mypassword" is the actual password:
local_policy.jar and US_export_policy.jar are already installed by default, but those versions don't allow strong AES encryption. Download the files that do and replace them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've created a backup using the following command runnning on Windows 10 connected to an un-rooted encrypted Samsung Galaxy S7 Edge running Android 6.0.1:
(Note: mydomain and myapp are replaced with the actual domain and app name.)
adb backup com.mydomain.myapp
When that runs the device asks me for the encryption password on the phone which I then type in. Then, it creates a backup file named backup.ab.
Then I try to unpack the backup.ab to a backup.tar with abe.jar. I have tried all of the following where "mypassword" is the actual password:
java.exe -jar abe.jar unpack backup.ab backup.tar
java.exe -jar abe.jar unpack backup.ab backup.tar ""
java.exe -jar abe.jar unpack backup.ab backup.tar "mypassword"
java.exe -jar abe.jar unpack backup.ab backup.tar 'mypassword'
java.exe -jar abe.jar unpack backup.ab backup.tar mypassword
All of the commands result in the following output from abe:
Password is set but strong AES encryption is not allowed
Please install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 or 8
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Exiting.
My Java version is 1.8.0_111. I have checked the lib/security directory and it has both local_policy.jar and US_export_policy.jar.
Am I doing something wrong or is it not possible to unpack an encrypted backup file?
Thanks,
Steve
local_policy.jar and US_export_policy.jar are already installed by default, but those versions don't allow strong AES encryption. Download the files that do and replace them.
Works great! Thank you!!!