@port139 Blog

基本的にはデジタル・フォレンジックの技術について取り扱っていますが、記載内容には高確率で誤りが含まれる可能性があります。

adb backup で Android 端末のバックアップを作成する(8)

adb backup のオプションには -shared | -noshared があり、SDカード内データのバックアップを指定できます。

Android Backup Extractor の Readme.txt には下記記述があり、どうやら古いバージョン?のバックアップには問題があるようです。

Creating a backup with -shared flag has know issues (corruption)

具体的にどのバージョン段階でのお話か記述がないのですが、Googleで検索してみたところ下記のツールがありました。このツールではバージョン 4.0.4/4.0.4 では破損状況になる(データは大丈夫)という事のようですね。

rebuild-adb-backup
https://github.com/rmgrimm/rebuild-adb-backup

This program aims to rebuild ADB backup files that were corrupted by --shared on Android versions 4.0.3 / 4.0.4.

The corrupt ADB backup files are still fully usable and contain no data loss. Instead, the problem is that an uncompressed chunk of data is written to the file directly -- bypassing any encryption and all compression. Additionally, this happens before the encryption/compression are able to finish writing out the compressed data which causes decryption and inflation routines to fail.

 他にも Google で adb backup shared issues などで検索すると、4.2 段階でも既知の不具合があるといった情報があったりしますので、古いバージョンの 4 系を使っているケースでは、shared オプションの指定は避けた方が無難かもしれませんね。

もしくは、展開できるのを確認した上でオプションを付与するかですが。。。