mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 21:15:37 +02:00
feat: ability to delete keystores.
This commit is contained in:
parent
331691cc9d
commit
9de063aced
4 changed files with 34 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue