2020年6月24日水曜日

Android 11 での android:allowBackup の挙動変更

Android 11 で android:allowBackup の挙動が少し変わります。


behavior-changes-11#device-to-device-file-transfer

If your app targets Android 11, you can no longer disable device-to-device migration of your app's files using the allowBackup attribute. The system automatically allows this functionality.
However, you can still disable cloud-based backup and restore of your app's files by setting the allowBackup attribute to false, even if your app targets Android 11.


Android 11 をターゲットにしている(targetSdkVersion = 30+)アプリでは、android:allowBackup="false" にしても device-to-device migration を無効にすることはできません。ただし、android:allowBackup="false" にしていれば cloud-based backup and restore は無効にできます。

device-to-device migration とは何かというと、Google Pixel などの local device-to-device transfer をサポートしているデバイスに別のデバイスからケーブル経由でバックアップデータを転送することです。


Backup 関係のリソース

0 件のコメント:

コメントを投稿