{"action":"created","issue":{"url":"https://api.github.com/repos/nelenkov/android-backup-extractor/issues/46","repository_url":"https://api.github.com/repos/nelenkov/android-backup-extractor","labels_url":"https://api.github.com/repos/nelenkov/android-backup-extractor/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/nelenkov/android-backup-extractor/issues/46/comments","events_url":"https://api.github.com/repos/nelenkov/android-backup-extractor/issues/46/events","html_url":"https://github.com/nelenkov/android-backup-extractor/issues/46","id":187811540,"number":46,"title":"Consistent failure: javax.crypto.BadPaddingException: Given final block not properly padded","user":{"login":"jlehenbauer","id":3521602,"avatar_url":"https://avatars.githubusercontent.com/u/3521602?v=3","gravatar_id":"","url":"https://api.github.com/users/jlehenbauer","html_url":"https://github.com/jlehenbauer","followers_url":"https://api.github.com/users/jlehenbauer/followers","following_url":"https://api.github.com/users/jlehenbauer/following{/other_user}","gists_url":"https://api.github.com/users/jlehenbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/jlehenbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlehenbauer/subscriptions","organizations_url":"https://api.github.com/users/jlehenbauer/orgs","repos_url":"https://api.github.com/users/jlehenbauer/repos","events_url":"https://api.github.com/users/jlehenbauer/events{/privacy}","received_events_url":"https://api.github.com/users/jlehenbauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-07T19:57:40Z","updated_at":"2016-11-08T00:07:03Z","closed_at":null,"body":"I'm trying to extract a backup and repeatedly getting this failure:\r\n\r\n> Exception in thread \"main\" java.lang.reflect.InvocationTargetException\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:498)\r\n\tat org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)\r\nCaused by: java.lang.RuntimeException: java.io.IOException: javax.crypto.BadPaddingException: Given final block not properly padded\r\n\tat org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:420)\r\n\tat org.nick.abe.Main.main(Main.java:128)\r\n\t... 5 more\r\nCaused by: java.io.IOException: javax.crypto.BadPaddingException: Given final block not properly padded\r\n\tat javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:121)\r\n\tat javax.crypto.CipherInputStream.read(CipherInputStream.java:239)\r\n\tat java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:238)\r\n\tat java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158)\r\n\tat java.io.FilterInputStream.read(FilterInputStream.java:107)\r\n\tat org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:397)\r\n\t... 6 more\r\nCaused by: javax.crypto.BadPaddingException: Given final block not properly padded\r\n\tat com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:966)\r\n\tat com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)\r\n\tat com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)\r\n\tat javax.crypto.Cipher.doFinal(Cipher.java:2048)\r\n\tat javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:118)\r\n\t... 11 more\r\n\r\n\r\nI made this backup from a phone running a 7.1 preview.. So could this be the issue? Or is there something going on here I can address?\r\n\r\nFor reference, I've installed the Java Crypto files, and put the bcprov*.jar in /lib.\r\n\r\nAny ideas? Thanks!"},"comment":{"url":"https://api.github.com/repos/nelenkov/android-backup-extractor/issues/comments/259004558","html_url":"https://github.com/nelenkov/android-backup-extractor/issues/46#issuecomment-259004558","issue_url":"https://api.github.com/repos/nelenkov/android-backup-extractor/issues/46","id":259004558,"user":{"login":"nelenkov","id":1053078,"avatar_url":"https://avatars.githubusercontent.com/u/1053078?v=3","gravatar_id":"","url":"https://api.github.com/users/nelenkov","html_url":"https://github.com/nelenkov","followers_url":"https://api.github.com/users/nelenkov/followers","following_url":"https://api.github.com/users/nelenkov/following{/other_user}","gists_url":"https://api.github.com/users/nelenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/nelenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelenkov/subscriptions","organizations_url":"https://api.github.com/users/nelenkov/orgs","repos_url":"https://api.github.com/users/nelenkov/repos","events_url":"https://api.github.com/users/nelenkov/events{/privacy}","received_events_url":"https://api.github.com/users/nelenkov/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T00:07:03Z","updated_at":"2016-11-08T00:07:03Z","body":"I haven't tried it with 7.1, but extraction does work for 7.0. \r\n\r\nAre you sure that the file is complete and the password is correct? BadPadding usually means the key is incorrect for some reason. Could happen if 7.1 changed the key derivation procedure somehow, or if the password is not correct (although the initial checksum check should catch this).\r\n\r\n\r\n"}}
{"actor":{"display_login":"nelenkov"}}