FORUMS
Remove All Ads from XDA

[GUIDE] How to extract, create or edit android adb backups

1,701 posts
Thanks Meter: 914
 
By scandiun, XDA Ad-Free Senior Member on 24th November 2012, 10:51 PM
Post Reply Email Thread
26th June 2017, 11:14 AM |#161  
Junior Member
Thanks Meter: 0
 
More
Hey guys,
i did a full backup with this tool:
https://forum.xda-developers.com/and...ol-pc-t3572241
I thought it is only a CMD "script" for excecuting adb commands.
I saved the backup file to my PC, but the recovery fails.
There might be something wrong with my system partition.
Now i am trying to extract the full backup, but it seems to be a different file format.
the header is not the same as usual for adb-backups.
look at the debug info:
java -jar abe.jar -debug info "backup file"
Strong AES encryption not allowed
Magic: TWRP twstreamheader ♦ ☺ 5áíF





TWRP twfilename ñ? ☺ þ
é-í/data/media/0/TWRP/BACKUPS/d63f4797/2014-10-17--15-11-03_KOT49H.N900TUVUCNB4/
system.ext4.win



TWRP t
wdatablock DÝíº





ì¼♣\?Û¶(¾hIén$♦éî??î►é♫éF?♫◄♂I¥¤»A→ i??îN☺)?7↨º÷v{ö9
gßû¿÷½ÿûÝ7÷▲ëûÆ?1Ç∟=A▬«±?‼+ä¿·±±q±ñrs?çUûõÉÆÆÃ☺açà àaãáææä?Îcgãæb?xþ7óuÕÜ\\??))!Î
??®ÿjÞ¿←ÿ¿´q³QªÉj°¸??º9[»z?↨;k7Oa7☺G‼←sSW#g☺↨/↨Ws{#♂k;s☺↨6?ÿÓ∟ÿ¿ö_ÙXÿÿàÿàýWÿç☻Oî
ÿf¾®Úÿpÿ¿Ò¿¸?????♂ Kk↨▬c'ÛÿÒ=?:Ùx¸¸þ]üçåáááåf¿Ò?0?ÿ↨ÿÿw´ÿ↨ÿÿg·ÿÓþÏÎÅËÍÅÉö?þ☼↔ÿ/å
☻?¹♣Þc¯Á?ϯBØÂé´??¸?çøV²?♠?öEÓ>%??'¢?T&â?¬Û?*·Jdîã ?Û0é5¯4?ÊÓ¬cN©►ß°¥Pkëp?1Ü←Kwð(
?*L¡®@↓ÊÅÍx↓Ú©u?M∟F∟↨»??20h??_ÐÒ_n?®©§-hg?³gòdú,ù¬~æì|ºûÞ?▲z ãY> rpËý?öx¯
↕?Ôì?∟?58H|ØûùæTʸî²ÒÒ ?TÍÆ
Version: Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ì↔S½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻♠?◄? N'È←
+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For inpu
t string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ì↔S½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻♠?◄? N'
È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:260)
at org.nick.abe.Main.main(Main.java:103)
... 5 more
Caused by: java.lang.NumberFormatException: For input string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]
oÞÞÞÖ¯´??Ï4)!Ì?!ì↔S½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻♠?◄? N'È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9?
?HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:121)
... 6 more

i cant extract this file with abe.jar.

thanks for your help
 
 
31st August 2017, 12:56 AM |#162  
Senior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by maeckesz

Hey guys,
i did a full backup with this tool:
https://forum.xda-developers.com/and...ol-pc-t3572241
I thought it is only a CMD "script" for excecuting adb commands.
I saved the backup file to my PC, but the recovery fails.
There might be something wrong with my system partition.
Now i am trying to extract the full backup, but it seems to be a different file format.
the header is not the same as usual for adb-backups.
look at the debug info:
java -jar abe.jar -debug info "backup file"
Strong AES encryption not allowed
Magic: TWRP twstreamheader 5áíF





TWRP twfilename ñ? þ
é-í/data/media/0/TWRP/BACKUPS/d63f4797/2014-10-17--15-11-03_KOT49H.N900TUVUCNB4/
system.ext4.win



TWRP t
wdatablock DÝíº





ì¼\?Û¶(¾hIén$éî??î►é♫éF?♫◄♂I¥¤»A→ i??îN)?7↨º÷v{ö9
gßû¿÷½ÿûÝ7÷▲ëûÆ?1Ç∟=A▬«±?+ä¿·±±q±ñrs?çUûõÉÆÆÃaçààa ãáææä?Îcgãæb?xþ7óuÕÜ\\??))!Î
??®ÿjÞ¿←ÿ¿´q³QªÉj°¸??º9[»z?↨;k7Oa7G←sSW#g↨/↨Ws{#♂k;s↨6?ÿÓ∟ÿ¿ö_ÙXÿÿàÿàýWÿç☻Oî
ÿf¾®Úÿpÿ¿Ò¿¸?????♂ Kk↨▬c'ÛÿÒ=?:Ùx¸¸þ]üçåáááåf¿Ò?0?ÿ↨ÿÿw´ÿ↨ÿÿg·ÿÓþÏÎÅËÍÅÉö?þ☼ÿ/å
☻?¹Þc¯Á?ϯBØÂé´??¸?çøV²??öEÓ>%??'¢?T&â?¬Û?*·Jdîã?Û 0é5¯4?ÊÓ¬cN©►ß°¥Pkëp?1Ü←Kwð(
?*L¡®@↓ÊÅÍx↓Ú©u?M∟F∟↨»??20h??_ÐÒ_n?®©§-hg?³gòdú,ù¬~æì|ºûÞ?▲z ãY> rpËý?öx¯
?Ôì?∟?58H|ØûùæTʸî²ÒÒ ?TÍÆ
Version: Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N' È←
+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For inpu
t string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N'
È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:260)
at org.nick.abe.Main.main(Main.java:103)
... 5 more
Caused by: java.lang.NumberFormatException: For input string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]
oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N' È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9?
?HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:121)
... 6 more

i cant extract this file with abe.jar.

thanks for your help

i'm getting the same type of error when i'm trying to unpack my .ab
also having trouble restoring my .ab file
31st August 2017, 06:59 AM |#163  
scandiun's Avatar
OP Senior Member
Thanks Meter: 914
 
More
Quote:
Originally Posted by maeckesz

Hey guys,
i did a full backup with this tool:
https://forum.xda-developers.com/and...ol-pc-t3572241
I thought it is only a CMD "script" for excecuting adb commands.
I saved the backup file to my PC, but the recovery fails.
There might be something wrong with my system partition.
Now i am trying to extract the full backup, but it seems to be a different file format.
the header is not the same as usual for adb-backups.
look at the debug info:
java -jar abe.jar -debug info "backup file"
Strong AES encryption not allowed
Magic: TWRP twstreamheader 5áíF





TWRP twfilename ñ? þ
é-í/data/media/0/TWRP/BACKUPS/d63f4797/2014-10-17--15-11-03_KOT49H.N900TUVUCNB4/
system.ext4.win



TWRP t
wdatablock DÝíº





ì¼\?Û¶(¾hIén$éî??î►é♫éF?♫◄♂I¥¤»A→ i??îN)?7↨º÷v{ö9
gßû¿÷½ÿûÝ7÷▲ëûÆ?1Ç∟=A▬«±?+ä¿·±±q±ñrs?çUûõÉÆÆÃaçààa ãáææä?Îcgãæb?xþ7óuÕÜ\\??))!Î
??®ÿjÞ¿←ÿ¿´q³QªÉj°¸??º9[»z?↨;k7Oa7G←sSW#g↨/↨Ws{#♂k;s↨6?ÿÓ∟ÿ¿ö_ÙXÿÿàÿàýWÿç☻Oî
ÿf¾®Úÿpÿ¿Ò¿¸?????♂ Kk↨▬c'ÛÿÒ=?:Ùx¸¸þ]üçåáááåf¿Ò?0?ÿ↨ÿÿw´ÿ↨ÿÿg·ÿÓþÏÎÅËÍÅÉö?þ☼ÿ/å
☻?¹Þc¯Á?ϯBØÂé´??¸?çøV²??öEÓ>%??'¢?T&â?¬Û?*·Jdîã?Û 0é5¯4?ÊÓ¬cN©►ß°¥Pkëp?1Ü←Kwð(
?*L¡®@↓ÊÅÍx↓Ú©u?M∟F∟↨»??20h??_ÐÒ_n?®©§-hg?³gòdú,ù¬~æì|ºûÞ?▲z ãY> rpËý?öx¯
?Ôì?∟?58H|ØûùæTʸî²ÒÒ ?TÍÆ
Version: Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N' È←
+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For inpu
t string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N'
È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:260)
at org.nick.abe.Main.main(Main.java:103)
... 5 more
Caused by: java.lang.NumberFormatException: For input string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]
oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N' È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9?
?HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:121)
... 6 more

i cant extract this file with abe.jar.

thanks for your help

Report the bug here: https://sourceforge.net/p/adbextractor/discussion/
31st August 2017, 07:00 AM |#164  
scandiun's Avatar
OP Senior Member
Thanks Meter: 914
 
More
Quote:
Originally Posted by maeckesz

Hey guys,
i did a full backup with this tool:
https://forum.xda-developers.com/and...ol-pc-t3572241
I thought it is only a CMD "script" for excecuting adb commands.
I saved the backup file to my PC, but the recovery fails.
There might be something wrong with my system partition.
Now i am trying to extract the full backup, but it seems to be a different file format.
the header is not the same as usual for adb-backups.
look at the debug info:
java -jar abe.jar -debug info "backup file"
Strong AES encryption not allowed
Magic: TWRP twstreamheader 5áíF





TWRP twfilename ñ? þ
é-í/data/media/0/TWRP/BACKUPS/d63f4797/2014-10-17--15-11-03_KOT49H.N900TUVUCNB4/
system.ext4.win



TWRP t
wdatablock DÝíº





ì¼\?Û¶(¾hIén$éî??î►é♫éF?♫◄♂I¥¤»A→ i??îN)?7↨º÷v{ö9
gßû¿÷½ÿûÝ7÷▲ëûÆ?1Ç∟=A▬«±?+ä¿·±±q±ñrs?çUûõÉÆÆÃaçààa ãáææä?Îcgãæb?xþ7óuÕÜ\\??))!Î
??®ÿjÞ¿←ÿ¿´q³QªÉj°¸??º9[»z?↨;k7Oa7G←sSW#g↨/↨Ws{#♂k;s↨6?ÿÓ∟ÿ¿ö_ÙXÿÿàÿàýWÿç☻Oî
ÿf¾®Úÿpÿ¿Ò¿¸?????♂ Kk↨▬c'ÛÿÒ=?:Ùx¸¸þ]üçåáááåf¿Ò?0?ÿ↨ÿÿw´ÿ↨ÿÿg·ÿÓþÏÎÅËÍÅÉö?þ☼ÿ/å
☻?¹Þc¯Á?ϯBØÂé´??¸?çøV²??öEÓ>%??'¢?T&â?¬Û?*·Jdîã?Û 0é5¯4?ÊÓ¬cN©►ß°¥Pkëp?1Ü←Kwð(
?*L¡®@↓ÊÅÍx↓Ú©u?M∟F∟↨»??20h??_ÐÒ_n?®©§-hg?³gòdú,ù¬~æì|ºûÞ?▲z ãY> rpËý?öx¯
?Ôì?∟?58H|ØûùæTʸî²ÒÒ ?TÍÆ
Version: Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N' È←
+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoa der.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.RuntimeException: java.lang.NumberFormatException: For inpu
t string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N'
È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9??HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:260)
at org.nick.abe.Main.main(Main.java:103)
... 5 more
Caused by: java.lang.NumberFormatException: For input string: "Ù←-ÓÙoÞ<è?FîíÏ5Ö]
oÞÞÞÖ¯´??Ï4)!Ì?!ìS½¯?£Á↑+←Ö☼⌂|vf*ÊÉÉihhè±3?þ☻?◄?N' È←+«¡ª→È?-E?õ*ýFB:☻?þ*rNfy9?
?HÃ?7?∟∟jGqÂ>_Û::ô??mlm-ûS"
at java.lang.NumberFormatException.forInputString(Unk nown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at org.nick.abe.AndroidBackup.infoBackup(AndroidBacku p.java:121)
... 6 more

i cant extract this file with abe.jar.

thanks for your help

Quote:
Originally Posted by anonxlg

i'm getting the same type of error when i'm trying to unpack my .ab
also having trouble restoring my .ab file

Report the bug here: https://sourceforge.net/p/adbextractor/discussion/
11th September 2017, 08:53 PM |#165  
Senior Member
Thanks Meter: 12
 
More
Is there any other way to extract these android backup files that are backed up from Oreo?
11th September 2017, 11:08 PM |#166  
scandiun's Avatar
OP Senior Member
Thanks Meter: 914
 
More
Quote:
Originally Posted by scottocs

Is there any other way to extract these android backup files that are backed up from Oreo?

Try android backup extractor, I think it works.

https://sourceforge.net/p/adbextractor/
11th September 2017, 11:22 PM |#167  
Senior Member
Thanks Meter: 12
 
More
Quote:
Originally Posted by scandiun

Try android backup extractor, I think it works.

https://sourceforge.net/p/adbextractor/

It doesn't seem to be working with an APK I extracted while using Oreo. It worked before I upgraded.
11th September 2017, 11:26 PM |#168  
scandiun's Avatar
OP Senior Member
Thanks Meter: 914
 
More
Quote:
Originally Posted by scottocs

It doesn't seem to be working with an APK I extracted while using Oreo. It worked before I upgraded.

What exact issue are you having? Post a problem to the developer, I can't help you more.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes