Skip to content
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

Android 5 to 9 Links to system settings #73

Closed
dragonGod97677 opened this issue Jul 21, 2022 · 9 comments
Closed

Android 5 to 9 Links to system settings #73

dragonGod97677 opened this issue Jul 21, 2022 · 9 comments
Milestone

Comments

@dragonGod97677
Copy link
Contributor

I've introduced the abstraction PermissionAction which we can now use to give each permission a custom action, e.g. open their respective system screen if that is possible:

https://github.com/d4rken-org/mystic-permissions/blob/ff577d72e866004f1db57175a70ddcf1e76a6a81/app/src/main/java/eu/darken/myperm/permissions/core/PermissionAction.kt

So we have to add each permission and it's action here: https://github.com/d4rken-org/mystic-permissions/blob/ff577d72e866004f1db57175a70ddcf1e76a6a81/app/src/main/java/eu/darken/myperm/permissions/core/known/AKnownPermissions.kt

Currently it all defaults to None

hey @d4rken can you use this activity com.android.packageinstaller.permission.ui.ManagePermissionsActivity to open this Window when tapping on a app's permission.
You can found that activity on com.android.packageinstaller and com.google.android.packageinstaller

@dragonGod97677
Copy link
Contributor Author

Don't close this once you are done adding it, there's more, be right back

@dragonGod97677
Copy link
Contributor Author

dragonGod97677 commented Jul 21, 2022

There's more Settings like access usage statistics but it goes to com.android.settings.SubSettings

I'll look more ways.

@d4rken
Copy link
Member

d4rken commented Jul 23, 2022

Would this be runtime permissions? (#65?)

hey @d4rken can you use this activity com.android.packageinstaller.permission.ui.ManagePermissionsActivity to open this Window when tapping on a app's permission.

According this you need a system permission to open it:
https://stackoverflow.com/questions/31955872/how-to-jump-to-the-manage-permission-page-in-settings-app-with-code

@dragonGod97677
Copy link
Contributor Author

dragonGod97677 commented Jul 24, 2022

Would this be runtime permissions? (#65?)

hey @d4rken can you use this activity com.android.packageinstaller.permission.ui.ManagePermissionsActivity to open this Window when tapping on a app's permission.

According this you need a system permission to open it: https://stackoverflow.com/questions/31955872/how-to-jump-to-the-manage-permission-page-in-settings-app-with-code

Both yes

We can just ask user once if they want it directly opening a app's permission settings but it requires a system permission that can be granted using ADB or open the app's settings page (App Info) and navigate to permissions and change a certain permission there

@dragonGod97677
Copy link
Contributor Author

There's more Settings like access usage statistics but it goes to com.android.settings.SubSettings

I'll look more ways.

As for this one, com.android.settings.Settings$UsageAccessSettingsActivity

@dragonGod97677
Copy link
Contributor Author

dragonGod97677 commented Jul 24, 2022

Apps Device Administration settings: com.android.settings.DeviceAdminSettings

Do not disturb access (maybe android 7 and above only?): com.android.settings.Settings$ZenAccessSettingsActivity

@dragonGod97677
Copy link
Contributor Author

App's that uses Accessability service: com.android.settings.Settings$AccessibilitySettingsActivity

For apps request notification access: com.android.settings.Settings$NotificationAccessSettingsActivity

@dragonGod97677
Copy link
Contributor Author

Apps uses Picture-in-Picture (maybe android 8 and above only?): com.android.settings.Settings$PictureInPictureSettingsActivity

Tbh, i don't know if the average user will have care for this permission...

@d4rken d4rken added this to the v1.0.0 milestone Jul 27, 2022
@d4rken
Copy link
Member

d4rken commented Aug 22, 2022

Thanks for the research @dragonGod97677 , good activites!

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

No branches or pull requests

2 participants