Add MANAGE_CLOUD_MEDIA_PROVIDERS permission for cloud media providers (Immich)#1320
Open
marx161-cmd wants to merge 1 commit into
Open
Conversation
- core/res/AndroidManifest.xml: declare MANAGE_CLOUD_MEDIA_PROVIDERS permission with signature|privileged protection level - data/etc/privapp-permissions-platform.xml: allowlist Immich (app.alextran.immich) to hold the new permission The CloudMediaProvider implementation already exists in AOSP's MediaProvider (pulled via LineageOS). The only missing piece was the permission declaration itself.
Member
|
I dont see point of elevating this permission. If it is needed by app, add it for the app itself. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch declares the missing
android.permission.MANAGE_CLOUD_MEDIA_PROVIDERSpermission that's required for apps like Immich to act as cloud media providers on Android 16.Changes
core/res/AndroidManifest.xmlMANAGE_CLOUD_MEDIA_PROVIDERSpermission declaration withsignature|privilegedprotection level, placed alongside the existingMANAGE_MEDIApermission.data/etc/privapp-permissions-platform.xmlapp.alextran.immich) so it can hold theMANAGE_CLOUD_MEDIA_PROVIDERSpermission when installed as a privileged app or granted via root.Context
The
CloudMediaProviderimplementation already exists in AOSP'sandroid_packages_providers_MediaProvider(pulled from LineageOS). The only missing piece is the permission declaration itself. This benefits every crDroid user running Immich or any other cloud media provider app.