feat: ability to delete keystores.

This commit is contained in:
Aunali321 2022-10-17 00:22:07 +05:30
parent 331691cc9d
commit 9de063aced
4 changed files with 34 additions and 1 deletions

View file

@ -98,6 +98,14 @@ class ManagerAPI {
await _prefs.setBool('crashlyticsEnabled', value);
}
Future<void> deleteKeystore() async {
final File keystore = File(
'/sdcard/Android/data/app.revanced.manager.flutter/files/revanced-keystore.keystore');
if (await keystore.exists()) {
await keystore.delete();
}
}
List<PatchedApplication> getPatchedApps() {
List<String> apps = _prefs.getStringList('patchedApps') ?? [];
return apps.map((a) => PatchedApplication.fromJson(jsonDecode(a))).toList();