diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 7afd29095..06032e3a4 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -18,6 +18,7 @@ android:supportsRtl="true" android:theme="@style/Theme.Memories" android:usesCleartextTraffic="true" + android:requestLegacyExternalStorage="true" tools:targetApi="31"> = Build.VERSION_CODES.Q) { + val sysImgs = SystemImage.getByIds(mCtx, listOf(id)) + if (sysImgs.isEmpty()) { + throw Exception("Image not found") + } + + val uri = sysImgs[0].uri + mCtx.contentResolver.loadThumbnail( - ContentUris.withAppendedId( - MediaStore.Files.getContentUri(MediaStore.VOLUME_EXTERNAL), - id - ), + uri, android.util.Size(2048, 2048), null )