diff --git a/frontend/android/app/src/main/AndroidManifest.xml b/frontend/android/app/src/main/AndroidManifest.xml
index 7c0157cd..042179ff 100644
--- a/frontend/android/app/src/main/AndroidManifest.xml
+++ b/frontend/android/app/src/main/AndroidManifest.xml
@@ -2,14 +2,12 @@
-
-
diff --git a/frontend/app.config.js b/frontend/app.config.js
index 7b5e5561..a98801c7 100644
--- a/frontend/app.config.js
+++ b/frontend/app.config.js
@@ -45,7 +45,6 @@ const defaultStaticConfig = {
blockedPermissions: [
"android.permission.SYSTEM_ALERT_WINDOW",
"android.permission.READ_PHONE_STATE",
- "android.permission.WRITE_EXTERNAL_STORAGE"
],
allowBackup: false,
intentFilters: [
diff --git a/frontend/src/components/ArticleCard.tsx b/frontend/src/components/ArticleCard.tsx
index db9baf13..bb3e47af 100644
--- a/frontend/src/components/ArticleCard.tsx
+++ b/frontend/src/components/ArticleCard.tsx
@@ -148,7 +148,6 @@ const ArticleCard = ({
try {
const storageGranted = await requestStoragePermissions();
if (!storageGranted) {
- Alert.alert('Storage permission denied');
return;
}
if (!isConnected) {
diff --git a/frontend/src/helper/Utils.ts b/frontend/src/helper/Utils.ts
index 2ebfbcc2..55268f80 100644
--- a/frontend/src/helper/Utils.ts
+++ b/frontend/src/helper/Utils.ts
@@ -2,7 +2,7 @@ import NetInfo from '@react-native-community/netinfo';
import {Category, CategoryType, PodcastData} from '../type';
import AsyncStorage from '@react-native-async-storage/async-storage';
import {GET_STORAGE_DATA} from './APIUtils';
-import {Alert, Linking, PermissionsAndroid, Platform} from 'react-native';
+import {Alert, Linking, Platform} from 'react-native';
import RNFS from 'react-native-fs';
import {secureClearAllItems} from './SecureStorageUtils';
import {
@@ -344,13 +344,9 @@ export const requestStoragePermissions = async () => {
if ((Platform.Version as number) < 33) {
const granted = await PermissionsAndroid.requestMultiple([
- PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,
- PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
]);
return (
- granted['android.permission.READ_EXTERNAL_STORAGE'] === PermissionsAndroid.RESULTS.GRANTED &&
- granted['android.permission.WRITE_EXTERNAL_STORAGE'] === PermissionsAndroid.RESULTS.GRANTED
);
} else {
const granted = await PermissionsAndroid.requestMultiple([
@@ -367,7 +363,6 @@ export const downloadAudio = async (_podcast: PodcastData) => {
// Check for existing downloads
const storageGranted = await requestStoragePermissions();
if (!storageGranted) {
- Alert.alert('Storage permission denied');
return;
}
const existingPodcasts = await readDownloadedPodcasts();
diff --git a/frontend/src/screens/PodcastRecorder.tsx b/frontend/src/screens/PodcastRecorder.tsx
index 5a20d9ce..2d76b965 100644
--- a/frontend/src/screens/PodcastRecorder.tsx
+++ b/frontend/src/screens/PodcastRecorder.tsx
@@ -71,7 +71,6 @@ const PodcastRecorder = ({navigation, route}: PodcastRecorderScreenProps) => {
const storageGranted = await requestStoragePermissions();
if (!storageGranted) {
- Alert.alert('Storage permission denied');
return;
}
@@ -111,15 +110,9 @@ const PodcastRecorder = ({navigation, route}: PodcastRecorderScreenProps) => {
// const startRecording = async () => {
// if (Platform.OS === 'android') {
- // const granted = await PermissionsAndroid.requestMultiple([
- // PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
- // PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
// ]);
// if (
- // granted['android.permission.RECORD_AUDIO'] !==
- // PermissionsAndroid.RESULTS.GRANTED
// ) {
- // console.warn('Permission denied');
// return;
// }
// }