On Thursday, August 11, 2011 3:50:55 PM UTC-4, [email protected] wrote: > > The "android.permission.INTERNET" permission gets translated on the > Android Market to "Full Internet Access", which is kind of very wide. > Is there any way to narrow down the scope (hosts, URL patterns for > HTTP access, ...) that the app can access ? As an example, it is > possible to do so in Chrome extentions' manifests. > I'm sure it would help users to trust the apps they download. >
Unfortunately there isn't. In order to make networking work "normally" for the Linux underpinnings, this is implemented as a very simple check in two places in the kernel - code running in a process that's in the Internet or raw network groups can create Internet sockets, and code not running in a process in one of those groups is only allowed to create other types of sockets. I believe some of the unofficial firmwares have experimented with more fine-grained control, firewalls, etc. In some cases where your network needs are no more than letting a user view a web page, you can use an intent to launch a web browser and thus not need Internet permission for your application at all. -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" group. To view this discussion on the web visit https://groups.google.com/d/msg/android-security-discuss/-/r1SEjFbp8poJ. 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-security-discuss?hl=en.
