]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug#64445
authorPo Lu <luangruo@yahoo.com>
Wed, 5 Jul 2023 12:16:14 +0000 (20:16 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 5 Jul 2023 12:16:14 +0000 (20:16 +0800)
* doc/emacs/android.texi (Android Environment): Document that
Emacs also receives READ_EXTERNAL_STORAGE by default on old
versions of Android.
* java/AndroidManifest.xml.in: Request READ_EXTERNAL_STORAGE.
(bug#64445)

doc/emacs/android.texi
java/AndroidManifest.xml.in

index 85719da518aaa75d302f83254272b49e5038154c..3e27c01925710c359e8f64ef854168714011b5f7 100644 (file)
@@ -382,6 +382,8 @@ permissions it has requested upon being installed:
 @item
 @code{android.permission.SET_WALLPAPER}
 @item
+@code{android.permission.READ_EXTERNAL_STORAGE}
+@item
 @code{android.permission.WRITE_EXTERNAL_STORAGE}
 @item
 @code{android.permission.SEND_SMS}
index 082c4c9373e9765b4e25a445d9576bad91d05671..e79fb4e46e7c5c12ce957c8d71e1c92d6df9dd6c 100644 (file)
@@ -38,6 +38,11 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>. -->
   <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
   <uses-permission android:name="android.permission.INTERNET" />
   <uses-permission android:name="android.permission.SET_WALLPAPER" />
+  <!-- Despite the claim that WRITE_EXTERNAL_STORAGE also covers
+       reading from external storage, specifying READ_EXTERNAL_STORAGE
+       seems to still be necessary on some versions of Android.
+       (bug#64445) -->
+  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
   <uses-permission android:name="android.permission.SEND_SMS" />
   <uses-permission android:name="android.permission.RECEIVE_SMS" />