From e46ad3595d0d3cfb5519a88466177727df677b0f Mon Sep 17 00:00:00 2001 From: aliernfrog <45766489+aliernfrog@users.noreply.github.com> Date: Sun, 9 Oct 2022 21:35:43 +0300 Subject: [PATCH 1/2] fix: permanent keystore path if available (#375) --- lib/services/patcher_api.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/services/patcher_api.dart b/lib/services/patcher_api.dart index f70d6a1b..44ce8859 100644 --- a/lib/services/patcher_api.dart +++ b/lib/services/patcher_api.dart @@ -18,6 +18,7 @@ class PatcherAPI { MethodChannel('app.revanced.manager.flutter/patcher'); final ManagerAPI _managerAPI = locator(); final RootAPI _rootAPI = RootAPI(); + late Directory _dataDir; late Directory _tmpDir; late File _keyStoreFile; List _patches = []; @@ -26,8 +27,9 @@ class PatcherAPI { Future initialize() async { await _loadPatches(); Directory appCache = await getTemporaryDirectory(); + _dataDir = await getExternalStorageDirectory() ?? appCache; _tmpDir = Directory('${appCache.path}/patcher'); - _keyStoreFile = File('${appCache.path}/revanced-manager.keystore'); + _keyStoreFile = File('${_dataDir.path}/revanced-manager.keystore'); cleanPatcher(); } @@ -163,6 +165,7 @@ class PatcherAPI { integrationsFile = await _managerAPI.downloadIntegrations(); } if (patchBundleFile != null) { + _dataDir.createSync(); _tmpDir.createSync(); Directory workDir = _tmpDir.createTempSync('tmp-'); File inputFile = File('${workDir.path}/base.apk'); From 53fbee2d44fac829f9f1c0404ca9362ffb5b593e Mon Sep 17 00:00:00 2001 From: afn Date: Sun, 9 Oct 2022 14:51:49 -0400 Subject: [PATCH 2/2] refactor: Reorder sections in readme. --- README.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b5a93fce..1c058f62 100644 --- a/README.md +++ b/README.md @@ -3,21 +3,22 @@ The official ReVanced Manager based on Flutter. ## 🔽 Download -To download the Alpha version of Manager, go [here](https://github.com/revanced/revanced-manager/releases/latest) and install the provided APK file - -## 🔴 Issues -For suggestions and bug reports, open an issue [here](https://github.com/revanced/revanced-manager/issues/new/choose) - -## 💭 Discussion -If you wish to discuss the Manager, a thread has been made under the [#development](https://discord.com/channels/952946952348270622/1002922226443632761) channel in the Discord server, please note that this thread may be temporary and may be removed in the future - -## ⚠️ Disclaimer -*Please note that even though we're releasing the Manager, it is an ALPHA version. Meaning there's a big chance that the Manager might not work at all for you.* +To download the Alpha version of Manager, go [here](https://github.com/revanced/revanced-manager/releases/latest) and install the provided APK file. ## 📝 Prerequisites 1. Android 8 or higher 2. Does not work on some armv7 devices -3. For YouTube and YouTube Music - Vanced MicroG(Only for non-root) +3. [Vanced MicroG](https://github.com/TeamVanced/VancedMicroG/releases) required for YouTube and YouTube Music (Only for non-root) + +## ⚠️ Disclaimer +*Please note that even though we're releasing the Manager, it is an ALPHA version. There's a big chance that the Manager might not work at all for you.* + +## 🔴 Issues +For suggestions and bug reports, open an issue [here](https://github.com/revanced/revanced-manager/issues/new/choose). + +## 💭 Discussion +If you wish to discuss the Manager, a thread has been made under the [#development](https://discord.com/channels/952946952348270622/1002922226443632761) channel in the Discord server, please note that this thread may be temporary and may be removed in the future. + ## 🛠️ Building Manager from source 1. Setup flutter environment for your [platform](https://docs.flutter.dev/get-started/install)