From 56aaba7bd85513a867f7889ea18f3edef169fb33 Mon Sep 17 00:00:00 2001
From: Muntashir Al-Islam <muntashirakon@riseup.net>
Date: Mon, 13 Mar 2023 14:50:17 +0600
Subject: [PATCH] [fastlane] Prepare for v3.1.0-rc02

Signed-off-by: Muntashir Al-Islam <muntashirakon@riseup.net>
---
 app/build.gradle                                 |  4 ++--
 app/src/main/res/raw/changelog.xml               | 16 ++++++++++++++++
 .../metadata/android/en-US/changelogs/406.txt    |  3 ---
 .../metadata/android/en-US/changelogs/421.txt    |  8 ++++++++
 4 files changed, 26 insertions(+), 5 deletions(-)
 delete mode 100644 fastlane/metadata/android/en-US/changelogs/406.txt
 create mode 100644 fastlane/metadata/android/en-US/changelogs/421.txt

diff --git a/app/build.gradle b/app/build.gradle
index d48dfdfd0..7302322bd 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -13,8 +13,8 @@ android {
         applicationId 'io.github.muntashirakon.AppManager'
         minSdk min_sdk
         targetSdk target_sdk
-        versionCode 420
-        versionName "3.1.0-rc01"
+        versionCode 421
+        versionName "3.1.0-rc02"
         javaCompileOptions {
             annotationProcessorOptions {
                 arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
diff --git a/app/src/main/res/raw/changelog.xml b/app/src/main/res/raw/changelog.xml
index f0f315394..92222144f 100644
--- a/app/src/main/res/raw/changelog.xml
+++ b/app/src/main/res/raw/changelog.xml
@@ -16,6 +16,22 @@
 
     ]>
 <changelog>
+    <release
+        type="release candidate"
+        version="v3.1.0-rc02"
+        code="421"
+        date="13 March 2023">
+        <improve>Added workarounds for permission denied issues in MIUI 12.5 and later</improve>
+        <note subtext="true">The workaround may not always work as expected and require more testing.</note>
+
+        <fix>Fixed checking for permission limits in ADB mode</fix>
+        <fix>Fixed connecting to ADB immediately after pairing</fix>
+        <fix>Fixed issues with setting a custom SSAID</fix>
+        <fix>Fixed permission toggles in the uses permissions tab</fix>
+        <fix>Fixed the startup progress dialog from displaying indefinitely</fix>
+        <fix>Prevented the app from crashing on attempting to grant GET_APP_OPS_STATS permission</fix>
+        <fix>Prevented the installer from crashing if the activity Intent can't be opened</fix>
+    </release>
     <release
         type="release candidate"
         version="v3.1.0-rc01"
diff --git a/fastlane/metadata/android/en-US/changelogs/406.txt b/fastlane/metadata/android/en-US/changelogs/406.txt
deleted file mode 100644
index b56e9728a..000000000
--- a/fastlane/metadata/android/en-US/changelogs/406.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-You have to restart your device and/or clear cache after updating the app if you are not updating from v3.0.0-rc01 and later.
-
-Full list of changes: https://github.com/MuntashirAkon/AppManager/compare/v3.0.0-rc03...v3.0.0-rc04
diff --git a/fastlane/metadata/android/en-US/changelogs/421.txt b/fastlane/metadata/android/en-US/changelogs/421.txt
new file mode 100644
index 000000000..45784d2c2
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/421.txt
@@ -0,0 +1,8 @@
+- Added workarounds for permission denied issues in MIUI 12.5 and later
+- Fixed checking for permission limits in ADB mode
+- Fixed connecting to ADB immediately after pairing
+- Fixed issues with setting a custom SSAID
+- Fixed permission toggles in the uses permissions tab
+- Fixed the startup progress dialog from displaying indefinitely
+- Prevented the app from crashing on attempting to grant GET_APP_OPS_STATS permission
+- Prevented the installer from crashing if the activity Intent can't be opened.
\ No newline at end of file
-- 
GitLab