fix(android): refine permissions, update gradle

This commit is contained in:
Andelf
2023-09-25 17:21:06 +08:00
parent 78542e5d97
commit 50d47b4900
3 changed files with 6 additions and 4 deletions

View File

@@ -54,8 +54,10 @@
<!-- Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
</manifest>

View File

@@ -43,7 +43,7 @@ public class FolderPicker extends Plugin {
startActivityForResult(call, i, "folderPickerResult");
} else {
Intent intent = new Intent(Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION);
Uri uri = Uri.fromParts("package", BuildConfig.APPLICATION_ID, null);
Uri uri = Uri.fromParts("package", this.getContext().getPackageName(), null);
intent.setData(uri);
startActivityForResult(call, intent, 20);
}

View File

@@ -8,7 +8,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.0'
classpath 'com.android.tools.build:gradle:8.1.1'
classpath 'com.google.gms:google-services:4.3.15'
// NOTE: Do not place your application dependencies here; they belong