nextcloud / nextcloud/android

Add a second line of defense for critical unwanted behavior

Open
#13,873 2 comments 5 reactions 0 assignees View on GitHub
0. Needs triage enhancement
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

To prevent issues like https://github.com/nextcloud/android/issues/13872 a suggestion is to add a second line of defense for critical unwanted behavior. The suggested limits are:

- max CPU usage within an hour e.g. 10%. If the app requests more, get a confirmation from the user with a question like "Nextcloud has used the x% CPU capacity of your phone to sync x files and transferred x MB/GB within the last hour. If you want to continue, you can set the warning limit to 25%, 50%, 75% or 100% of the CPU usage (or only for the next x hours). If you do not change the limit, the synchronization might be delayed".

- max daily net traffic via "a know wifi" (local/home/...), other wifi or mobile data of 1 GB or 20% percent of server data size. If the limit is exceeded the question to the user could be: "Nextcloud has synced x files and transferred x MB/GB within the last 24 hours with the xxx wifi/mobile data connection. If you want to continue, you can increase the warning limit to x MB/GB or x% of your server space or switch the limit off". This is related to https://github.com/nextcloud/android/issues/13605

- max sync events per file and day to 5 times the average of the first week. If a file is synced more often the question to the user could be: "Nextcloud has synced the file xxx x times in the last week. If you want to continue, you can increase the warning limit to x times per week for the file / parent folder / parent folders / all files or switch off this warning"

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.