-
Notifications
You must be signed in to change notification settings - Fork 314
Added some safety features from permissions. #496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Users can now view the permissions requests themselves.
cc @icota |
Java method removed from BitcoinQtActivity. We use the QtAndroid method instead. Note: The androidextras module must be added into the project. This method is enough.
Thank you for cleaning up the Java part @KambizAsadzadeh. Can you please fix the CI and give us a brief rationale for the PR? What are you able to do with these changes that you weren't able to do before? |
You're welcome!
Check this please:
In this section there is a request for permission to write on storage right? Well, In this case a native dialog must be displayed to accept or reject this request and this is important in terms of privacy. This is not possible by default and you must do this manually. :) Like this one: We have two ways to do this, one is to use Java code or JNI inside C++ and the other (I suggest the C++ method) is to use method checkPermission on QtAndroid class. this method checks if the permission was granted or not. This function should be called every time when the application starts for needed permissions, as the users might disable them from Android Settings. |
Thank you for clarifying @KambizAsadzadeh. This is something that is needed but if we follow good practices probably doesn't belong at startup as not all users will opt to use external storage. According to the docs:
IMO there should be a GUI prompt/explainer and only then should we trigger the OS modal to ask for these permissions. Something to discuss with the design team? |
You're welcome, Thank you for your good comments. Rule 4:
|
I never used external storage, my hardware doesn't even have such an option. As it stands right now we use the I realise that external storage is a big use-case (people repurposing old phones) so moving forward I suggest we either:
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
Users can now view the permissions requests themselves.
In the Android section, it was observed that no application for a permission has been applied! The codes I sent are enough to solve this problem.