PM Android authorizations

Old discussions related to the Android/mobile version of Pale Moon.
Rollingthunder
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2015-03-15, 00:29

PM Android authorizations

Unread post by Rollingthunder » 2015-03-15, 00:39

Hi everyone,

needless to say, that I'm hugely grateful for all the PM versions, but for some reason I missed to Android one till now. As I looked it up on the playstore - gamershell isn't up to date yet - I wondered about the authorizations, since I would have expected them to be somewhat more restricted than these needed by firefox and also explained as to what each one is needed for.
Especially I'd like to know, why it needs to be able to change globay system settings? Not even FF wants to be able to do that :o .

Kind regards

Rollingthunder
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2015-03-15, 00:29

Re: PM Android authorizations

Unread post by Rollingthunder » 2015-03-23, 17:13

So does nobody of the 70 previews viewers have an idea?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35650
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: PM Android authorizations

Unread post by Moonchild » 2015-03-26, 13:06

It's likely triggered by the request for permission to access Sync.

If you are interested, below is a snippet with the permissions from the manifest that is included when PM4A is built. I personally don't know how all of these would translate to what different versions of the Android OS will present to the user, though.

Code: Select all

#include ../services/manifests/SyncAndroidManifest_permissions.xml.in

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT"/>
    <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT"/>
    <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>

    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.VIBRATE"/>
#ifdef MOZ_ANDROID_WALLPAPER
    <uses-permission android:name="android.permission.SET_WALLPAPER"/>
#endif
    <uses-permission android:name="@ANDROID_PACKAGE_NAME@.permissions.PASSWORD_PROVIDER"/>
    <uses-permission android:name="@ANDROID_PACKAGE_NAME@.permissions.BROWSER_PROVIDER"/>
    <uses-permission android:name="@ANDROID_PACKAGE_NAME@.permissions.FORMHISTORY_PROVIDER"/>

#ifdef MOZ_WEBSMS_BACKEND
    <!-- WebSMS -->
    <uses-permission android:name="android.permission.SEND_SMS"/>
    <uses-permission android:name="android.permission.RECEIVE_SMS"/>
    <uses-permission android:name="android.permission.WRITE_SMS"/>
    <uses-permission android:name="android.permission.READ_SMS"/>
#endif

    <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"/>

#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"/>
    <uses-feature android:name="android.hardware.audio.low_latency" android:required="false"/>
    <uses-feature android:name="android.hardware.camera.any" android:required="false"/>
    <uses-feature android:name="android.hardware.microphone" android:required="false"/>
#endif
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-feature android:name="android.hardware.camera" android:required="false"/>
    <uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
Sync permissions:

Code: Select all

    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
    <uses-permission android:name="android.permission.WRITE_SETTINGS" />
    <uses-permission android:name="android.permission.READ_SYNC_STATS" />
    <uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />

    <!-- A signature level permission granted only to the Firefox
         versions sharing an Android Account type.  This needs to
         agree with GlobalConstants.PER_ACCOUNT_TYPE_PERMISSION. -->
    <permission
        android:name="@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.permission.PER_ACCOUNT_TYPE"
        android:protectionLevel="signature">
    </permission>

    <uses-permission android:name="@MOZ_ANDROID_SHARED_ACCOUNT_TYPE@.permission.PER_ACCOUNT_TYPE" />

    <!-- A signature level permission specific to each Firefox version
         (Android package name, e.g., org.mozilla.firefox).  Use this
         permission to broadcast securely within a single Firefox
         version.  This needs to agree with
         GlobalConstants.PER_ANDROID_PACKAGE_PERMISSION.

         This is not Sync-specific, but we don't have a better place
         to put generic background service manifest snippets, so here
         is expedient. -->
    <permission
        android:name="@ANDROID_PACKAGE_NAME@.permission.PER_ANDROID_PACKAGE"
        android:protectionLevel="signature"/>
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Rollingthunder
Hobby Astronomer
Hobby Astronomer
Posts: 16
Joined: 2015-03-15, 00:29

Re: PM Android authorizations

Unread post by Rollingthunder » 2015-04-22, 17:23

Okay, thanks.

The snippet is interesting, but I can't figure out what it should tell me?