mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-20 14:37:33 +02:00
Disable automatic deletion across clients sharing Android secure storage and enable protected migration. Reject replacement keys when encrypted settings exist or the saved key is malformed. Surface preparation failures through extension state and preserve retry behavior. Validation: targeted Flutter tests, analyzer and Android secure-storage compatibility test passed. The original device key-loss trigger is not established.
9 lines
333 B
Dart
9 lines
333 B
Dart
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
|
|
|
// All clients share the default Android storage namespace. A failed read or
|
|
// migration in any client must not erase the extension master key stored there.
|
|
const secureStorageAndroidOptions = AndroidOptions(
|
|
resetOnError: false,
|
|
migrateWithBackup: true,
|
|
);
|