Nikolay Elenkov
Nikolay Elenkov
Apps can forbid backup, so in that case behavior is somewhat undefined. How big are the .ab and .tar files? Try looking at contents with editor/cat to get some idea.
Looks like an invalid archive?
What you have is most probably a full partition dump, not an ADB backup. ADB backups are created using the 'adb backup' command while Android is running. The format of...
Hacky indeed :) The proper way to handle non-ascii password is to fix the key derivation, why do you think that checking the padding is enough? Also, why if (pad_byte...
Hi, I get the fixed padding part. However, this format has checksum that allows you to verify if derived key is correct. Why not just use that (aside from the...
Hm, checking the checksum is still better than only checking padding. Is the current code broken for non-ASCII passwords? AFAIK, that code was added to handle both v1 and v2...
What phone and Android version are you using? Can you profile the method and find out which part is slow?
That method does a few things, you need to log how much time each call takes to get an idea what is causing the slowness. The debugger slows things down...
What version of Android is the file from? Latest versions are not really supported, and in the case of hardware-backed keystore, decryption might not be possible.
This does not look like an Android backup file. How was this created? Looking at the error message, it might be a backup created with [TWRP recovery](https://twrp.me/), in that case...