Bug 1478970 - Can't update Nightly from about:firefox or notification bar - Android O+; r?sdaswani draft
authorPetru Lingurar <petru.lingurar@softvision.ro>
Wed, 01 Aug 2018 09:09:11 +0300
changeset 825262 f1ac08bb356e8e59c0ac43686087ffba25ba5d78
parent 825071 d57a89840dbb4ae0611d0d9a1e6d27e3d0a99e00
push id118048
push userplingurar@mozilla.com
push dateWed, 01 Aug 2018 06:10:09 +0000
reviewerssdaswani
bugs1478970
milestone63.0a1
Bug 1478970 - Can't update Nightly from about:firefox or notification bar - Android O+; r?sdaswani As per https://android-developers.googleblog.com/2017/08/making-it-safer-to-get-apps-on-android-o.html and https://developer.android.com/reference/android/Manifest.permission.html#REQUEST_INSTALL_PACKAGES after targeting API 26 we need a new permission to be able to install Apks. MozReview-Commit-ID: BF28HTkwYTN
mobile/android/base/FennecManifest_permissions.xml.in
--- a/mobile/android/base/FennecManifest_permissions.xml.in
+++ b/mobile/android/base/FennecManifest_permissions.xml.in
@@ -31,16 +31,21 @@
 
     <uses-feature android:name="android.hardware.location" android:required="false"/>
     <uses-feature android:name="android.hardware.location.gps" android:required="false"/>
     <uses-feature android:name="android.hardware.touchscreen"/>
 
     <!-- Tab Queue -->
     <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
 
+#ifdef MOZ_UPDATER
+    <!-- To be able to install Nightly app updates on API 26+ -->
+    <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>
+#endif
+
 #ifdef MOZ_ANDROID_BEAM
     <!-- Android Beam support -->
     <uses-permission android:name="android.permission.NFC"/>
     <uses-feature android:name="android.hardware.nfc" android:required="false"/>
 #endif
 
 #ifdef MOZ_WEBRTC
     <uses-permission android:name="android.permission.RECORD_AUDIO"/>