Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Not offering options to the user to control data usage #108

Open
amazuerar opened this issue Aug 15, 2021 · 0 comments
Open

Not offering options to the user to control data usage #108

amazuerar opened this issue Aug 15, 2021 · 0 comments

Comments

@amazuerar
Copy link

Dear Developer!

My name is Alejandro Mazuera-Rozo, I am a PhD Student at Universidad de los Andes, and at Università della Svizzera italiana. I am part of a research on the usage of network libraries within Android apps. As result of this we identified some code locations that might have network related problems.

In this case, we address the code locations that are related to a potential issue concerning not offering to the users control over their usage of network resources. If your application performs network operations, you should provide user settings that allow users to control your app’s data habits, such as how often your app syncs data, whether to perform uploads/downloads only when on Wi-Fi, or whether to use data while roaming.

In order to address this issue we recommend:

  1. The declaration of an intent filter for the ACTION_MANAGE_NETWORK_USAGE action to indicate that your application defines an activity that offers options to control data usage. ACTION_MANAGE_NETWORK_USAGE shows settings for managing the network data usage of a specific application.

  2. https://developer.android.com/training/basics/network-ops/managing#implement-preference-activity

Potential Code Location not offering options to the user to control data usage:

Within the Manifest one can notice the usage of android.permission.INTERNET but no ACTION_MANAGE_NETWORK_USAGE

<uses-permission android:name="android.permission.INTERNET" />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant