Do I need to explicitly grant various internet/network Manifest permissions for these conditions?

Viewed 1645

In my app I have the following relevant components:

-My app uses Google AdMob advertisement banners

-My app allows you to import / export data using the media Intent chooser, which may involve letting the user choose some online service such as Gmail, Google Drive, etc.

-My app occasionally displays hyperlinks and buttons in certain places that opens the user's browser and goes to the designated site.

Does any of this require special permission in the Manifest?

4 Answers

As I couldn't find a proper answer here (existing are contradicting), I did my home work and tested with a real app.

  • AdMob, when adding the dependency to the SDK, both INTERNET and READ_NETWORK_STATE permissions are automatically added to the Manifest of the generated or built APK. I have no INTERNET permission anywhere in my project, but the gerenated APK does. Removing the SDK, the permission is gone.

  • Loading content from other apps does not require INTERNET permission, even if those apps are receiving the content from internet.

  • Opening URL in a device's browser does not require INTERNET either, it's the browser which needs it.

To answer the OP, one does not need to add any special permission in Manifest to do any of the 3 above mentioned features.

However note that INTERNET permission is automatically added by the dependency on AdMob's SDK.

No you don't need to. Check out this quick start guide and see there is no mention of adding those permissions. https://developers.google.com/admob/android/quick-start

I have a similar app running on android P and no permissions are required. So cheers. Also do remember that you need to use dummy ID while testing ad mobs.

Related