Android Question Contacts Permissions

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

After I install the released version of my app on my phone, under the settings app, it shows which permissions the device has access to.

On my device for my app, it is showing a 'Contacts' permission (which is not enabled by default).

In my app I don't think I am referencing anything to do with contacts?

Anyone know why it's showing a permission to view the user's contacts?

Could the line as shown below cause this?

B4X:
<uses-permission android:name="android.permission.GET_ACCOUNTS" />

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="26"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>) 
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.INTERNET)
'End of default text.

AddManifestText(
<uses-permission
  android:name="android.permission.WRITE_EXTERNAL_STORAGE"
  android:maxSdkVersion="18" />
)

RemovePermission(android.permission.WRITE_EXTERNAL_STORAGE)

The permissions my app is using is:

img.png
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
Could the line as shown below cause this?

Answer is Yes.

That is because of Permission Groups. Basically, permissions are placed under different groups and all permissions from that group would be granted if one of them is granted.

Eg. Under "Contacts" , there is write/read contacts and get accounts, so when you ask for any of those, the popup asks for Contacts permissions.

References:
Stackoverflow.com
Developer.android.com
 
Upvote 0
Top