Skip to content

Commit

Permalink
Vulnerabitlity fix as per Termux report: https://termux.org/general/2…
Browse files Browse the repository at this point in the history
  • Loading branch information
simbadMarino committed Apr 15, 2022
1 parent 57db214 commit 9af6548
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,13 @@
<receiver android:name="com.termux.app.TermuxOpenReceiver" />


<provider android:authorities="com.termux.files"
android:readPermission="android.permission.permRead"
<provider
android:name="com.termux.app.TermuxOpenReceiver$ContentProvider"
android:authorities="com.termux.files"
android:exported="true"
android:grantUriPermissions="true"
android:name="com.termux.app.TermuxOpenReceiver$ContentProvider" />
android:permission="com.termux.permission.RUN_COMMAND"
/>


<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public ParcelFileDescriptor openFile(@NonNull Uri uri, @NonNull String mode) thr
} catch (IOException e) {
throw new IllegalArgumentException(e);
}
return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY);
return ParcelFileDescriptor.open(file, ParcelFileDescriptor.parseMode(mode));
}
}

Expand Down

0 comments on commit 9af6548

Please sign in to comment.