1
votes

My SMS App uses several dangerous permissions like Send SMS, Read Contacts etc and I am trying to test new permission system for android 6.0 But when I install it on Android 6.0 device, it has already granted those permissions without asking at run time. Why is this? I have uninstalled and installed it fresh too, but same result.

Note: I can see permission dialog at run time when app tries to access camera. But not for SMS, Location or Phone related permissions which are categorized as dangerous too.

Any clue why is this happening?

Edit: My targetSdkVersion is 23

1
What is your targetSdkVersion?CommonsWare
@CommonsWare targetSdkVersion is 23Riz
and you are able to do some stuff with SMS? Sending, reading etc...? With which device you have checked it?Opiatefuchs
@Opiatefuchs yes, I can send and read SMS. I checked on an Android One QMobile A1 device - qmobile.com.pk/phone-androidone.htmlRiz
I guess with original software, not custom ROM?Opiatefuchs

1 Answers

2
votes

I found the reason. When My SMS app is installed which has requested SMS, PHONE, CONTACTS dangerous permissions, those are not granted ( after install, I verified in app manager ). Now I open the app and first screen asks users to make the App Default SMS App. When user makes it default sms app, Android Auto allows SMS, PHONE & CONTACTS permissions. Remaining permissions stay not-granted for run time.

Thanks everyone for your thoughts.