android-backup-extractor icon indicating copy to clipboard operation
android-backup-extractor copied to clipboard

Exception in thread "main" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: " 3☺←c"

Open Yunoextract1 opened this issue 1 year ago • 4 comments

So, I just tried with Java 22 and got this error while trying to extract the .ab.

Exception in thread "main" java.lang.RuntimeException: java.lang.NumberFormatException: For input string: " 3☺←c" at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:232) at org.nick.abe.Main.main(Main.java:40) Caused by: java.lang.NumberFormatException: For input string: " 3☺←c" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) at java.base/java.lang.Integer.parseInt(Integer.java:588) at java.base/java.lang.Integer.parseInt(Integer.java:685) at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:72) ... 1 more

Did I do anything wrong?

Yunoextract1 avatar Apr 07 '24 10:04 Yunoextract1

How does the .ab file header look like?

nelenkov avatar Apr 07 '24 11:04 nelenkov

Sorry. I'm still new to this so I don't know what is the header name of the file is. But here is the text of the .ab file. Picture

Yunoextract1 avatar Apr 07 '24 14:04 Yunoextract1

The .ab file is from a game I'm trying to rip and not really an android backup file. I assume it contain the png file.

Yunoextract1 avatar Apr 07 '24 14:04 Yunoextract1

This is some sort of unity serialization format, the extension happens to be same but it's not in Android backup format. This tool won't work, you'll have to figure if it's a standard thing or analyze the game to figure it out.

nelenkov avatar Apr 07 '24 14:04 nelenkov