Skip to content
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.2 encrypted backup problem (Illegal key size) #12

Closed
vplugaru opened this issue Apr 15, 2014 · 4 comments
Closed

Android 4.4.2 encrypted backup problem (Illegal key size) #12

vplugaru opened this issue Apr 15, 2014 · 4 comments

Comments

@vplugaru
Copy link

Hello,

I'm trying to unpack an Android 4.4.2 encrypted archive generated on a 2012 Nexus 7, and it's failing with the following message:

  Magic: ANDROID BACKUP
  Version: 1
  Compressed: 1
  Algorithm: AES-256
  Exception in thread "main" java.lang.RuntimeException: java.security.InvalidKeyException: Illegal key size
      at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:192)
      at org.nick.abe.Main.main(Main.java:35)
  Caused by: java.security.InvalidKeyException: Illegal key size
      at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1024)
      at javax.crypto.Cipher.implInit(Cipher.java:790)
      at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
      at javax.crypto.Cipher.init(Cipher.java:1348)
      at javax.crypto.Cipher.init(Cipher.java:1282)
      at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:108)
      ... 1 more

The security password was 5-digit PIN-based, perhaps this is an issue?
Thank you for looking into it!

Best regards,
Valentin Plugaru

@nelenkov
Copy link
Owner

You need to install the unlimited strength JCE extensions. See the blog post for details:
http://nelenkov.blogspot.jp/2012/06/unpacking-android-backups.html

Length of the PIN/password is not related.

@vplugaru
Copy link
Author

Dear Nikolay,

Thank you very much for the ultrafast response , and for the very useful ABE tool.
Indeed, using these policy files I am now able to unpack the backup file.

Best regards,
Valentin

@plaurits
Copy link

plaurits commented Dec 9, 2014

Hi!
I have issue as mentioned above even after loading the two jar files mentioned. Running jdk 1.8.0_25
Any ideas?
br Peter

@plaurits
Copy link

plaurits commented Dec 9, 2014

have started new thread instead,hence let's follow that only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants