This article highlights that one has to define it in manifest. http://www.androidpolice.com/2015/06/06/android-m-will-never-ask-users-for-permission-to-use-the-internet-and-thats-probably-okay/ *As for the specific **android.permission.INTERNET** permission, it is still mandatory for apps that will access the Internet. If a developer were to publish an app without defining it in the Android manifest, an exception will be thrown the first time a connection attempt is made, and the app will possibly crash. This is no different than before.*
Thats contrary to what you said. On Tuesday, June 9, 2015 at 5:35:06 AM UTC-7, Jose_GD wrote: > > I think I understand your question and guess I have an answer > (please people correct me if I'm wrong): > > The INTERNET permission is a given from M release. Android assumes you > will always need it. > So if you put it on your manifest or not is irrelevant. Or should I say > redundant? > > Regards, > > José > > https://play.google.com/store/apps/developer?id=Jos%C3%A9%20Gonz%C3%A1lez%20D%27Amico > > > El martes, 9 de junio de 2015, 7:09:01 (UTC-3), just a dev escribió: >> >> I think my question is being mis-understood. Let me try to clarify. >> >> First, I am asking only about the INTERNET permission. >> >> Per the official Android documentation : >> https://developer.android.com/preview/features/runtime-permissions.html >> >> " >> >> - >> >> *Limited Permissions Granted at Install Time:* When the user installs >> or updates the app, the system grants the app all permissions that the >> app >> requests that fall under PROTECTION_NORMAL >> >> <https://developer.android.com/reference/android/content/pm/PermissionInfo.html#PROTECTION_NORMAL>. >> >> For example, alarm clock and internet permissions fall under >> PROTECTION_NORMAL >> >> <https://developer.android.com/reference/android/content/pm/PermissionInfo.html#PROTECTION_NORMAL>, >> >> so they are automatically granted at install time. >> >> The system may also grant the app signature and system permissions, >> as described in System apps and signature permissions >> >> <https://developer.android.com/preview/features/runtime-permissions.html#system-apps>. >> >> The user is *not* prompted to grant any permissions at install time. >> >> " >> >> Particular note that it says "....the system grants the app all >> permissions that *the app requests*". So, if the app does not have >> INTERNET permission in its AndroidManifest.xml, it won't be granted access >> to INTERNET in that case ? >> >> >> On Tuesday, June 9, 2015 at 2:27:14 AM UTC-7, luixal wrote: >>> >>> I think that depends if the play app asks for permissions when >>> installing or only when a permission is needed (at the moment, when the app >>> is running). >>> >>> If it works the second way, it wouldn't matter. >>> >>> El mar., 9 de junio de 2015 9:59, just a dev <[email protected]> >>> escribió: >>> >>>> "automatically added" as-in the APK's AndroidManifest.xml will contain >>>> android.permission.INTERNET automatically ? What if the app does not want >>>> to request that permission ? >>>> >>>> >>>> On Monday, June 8, 2015 at 6:09:36 PM UTC-7, Jonathan S wrote: >>>>> >>>>> If you compiled against Android M, Internet will be automatically >>>>> added. >>>>> >>>>> On Monday, June 8, 2015 at 8:03:36 PM UTC-4, just a dev wrote: >>>>>> >>>>>> Regarding the recent announcement on Google I/O about Android M and >>>>>> its new permission model, can anyone clarify if every app has INTERNET >>>>>> permission or only the ones that define INTERNET permission exclusively >>>>>> in >>>>>> their manifest have it ? >>>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/android-developers?hl=en >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "Android Developers" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

