Repository navigation
feat(permission): access local network - #17934
alperozturk96 wants to merge 13 commits into
Conversation
|
@tobiasKaminsky @daniele-verducci should we also check permission before any download, export etc? I think current state of the PR is enough. Whoever have local network and Android 17 will see at least notification on app launch and native permission dialog. If they reject they will see snack-bar. When they re-launch app they still see notification and snack-bar per app launch if the permission is missing. Adding check for each remote operation would be too much. |
|
stable35-IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/17934-IT-stable35-12-15 |
1dc168c to
a1b9400
Compare
📱 QA build
The QA build installs alongside a released Nextcloud app, so you can keep Downloading the file requires a GitHub account, so open this link on the |
I think on app startup is enough: if the user just upgraded to 17, the phone has been rebooted and the message is shown as soon as the app is started |
daniele-verducci
left a comment
There was a problem hiding this comment.
Working as intended
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
a1b9400 to
e27d73f
Compare
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
|
stable22-IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/17934-IT-stable22-08-47 |
|
master-IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/17934-IT-master-08-48 |
First common PR: nextcloud/android-common#1104
Changes
Documentation
https://developer.android.com/privacy-and-security/local-network-permission
How to test?
targetSdk = 37from build.gradleBehaviour
When user have Android 17 device and when the app opens:
Notification will be showed, if permission is missing and url is local:
If user puts the app in foreground, permission dialog will appear:
If user rejects it, snack-bar will appear: