croconaut / cpt

This is the Wi-Fi / Wi-Fi Direct based peer to peer communication framework for Android. It stands for "Croconaut Public Transport", Croconaut was a "startup" from the times when we thought we can finish the product in three months. :)
GNU General Public License v3.0
5 stars 1 forks source link

Dynamic permissions #4

Open mikrosk opened 7 years ago

mikrosk commented 7 years ago

It would be nice to finally get rid of targetSdkVersion 22 in cpt. Offer some way for the client app to request permissions needed for CPT.

For instance for non-P2P we certainly don't need all the wifi/location/network permissions, maybe GCM doesn't need Internet permission at all, ... each one could be reevaluated.

mikrosk commented 7 years ago

Also see https://developer.android.com/preview/features/background.html -- broadcast receivers like wifi on wont be possible in AndroidManifest.xml so this Internet notification will be even harder to maintain although when #7 implemented, this could be quite easy, there's a flag when network is available (too bad that it's not the case for wifi)