i got a backup.ab file with password. I'am looking for how to open it for 1 month but i still couldnt open it. I really need help can anyone tell me how can i open it please explain it with step-step
1 Answers
backup.ab files are usually created by the command adb backup. This answer is only for backup files that has been created by adb backup. It will not work for other backup types.
Extracting an Android adb Backup file is pretty simple. You just need Android Backup Extractor, a Java program that does everything for you.
Just download the latest abe.jar release. As it is Java based you also need a Java Runtime. Oracle Java is no longer free in all usage scenarios, therefore I recommend OpenJDK from Eclipse foundation. But any other Java 11 or 17 JRE or JDK is also fine (abe requires Java 11+).
To convert your Android Backup file backup.ab to a tar execute
java -jar abe.jar unpack backup.ab
It will create a file backup.tar which you can open using an ZIP tool of your choice (e.g. 7-Zip).
- 20,025
- 6
- 47
- 66
-
1Hi i tried but i got this message : ''Unable to access jarfile abe.jar'' Is it because i put a password when i was backing up? – Kaan Ayhanoğulları Jun 01 '23 at 20:49
-
@KaanAyhanoğulları
abe.jaris the program for reading the backup not the backup itself. Have you downloaded abe.jar as described in my answer? And then open up a command prompt or terminal how it is called in your os in the directory where you have downloaded abe.jar into and execute the command to run abe.jar with Java. – Robert Jun 01 '23 at 21:16 -
Yes i have downloaded abe.jar but when i try to open i get that error message : ''a java exception has occurred'' – Kaan Ayhanoğulları Jun 01 '23 at 21:42
-
@KaanAyhanoğulları The downloaded
abe.jarworks fine. If it doesn't work on your system then something is wrong with your installed Java version or the backup file is defect or in a wrong format. BTW: You still have not answered by comment on TWRP tag. – Robert Jun 02 '23 at 06:32 -
@KaanAyhanoğulları Is the error similar to the one shown in this post? https://forum.xda-developers.com/t/how-to-extract-data-from-adb-twrp-ab-backup.3725347/ (the one with
java.lang.IllegalArgumentException: Invalid Magic TWRPtwstreamheader) – Robert Jun 02 '23 at 08:59 -
No not the same error. Probably it is because my java is broken but i deleted it then download install last version . After i tried to open abe.jar but it give same error that says a java exception has occured – Kaan Ayhanoğulları Jun 02 '23 at 15:36
twrp?backup.abfiles are created by the commandadb backupwhich works in regular OS, not in TWRP. – Robert Jun 01 '23 at 12:19adb backupbut using a different format. But are those backups also password encrypted? – Robert Jun 02 '23 at 06:34adb backupTWRP was running right? That means it is not an Android backup but something else that only exists within TWRP. Check out this topic, it contains a lo of details what you can do with such a backup (unfortunately mostly manual modifications or scripts that only work under certain circumstances): https://github.com/TeamWin/Team-Win-Recovery-Project/issues/898 Next time just do not useadb backupwith TWRP. – Robert Jun 02 '23 at 15:41