diff options
author | Danny Lin <danny@kdrag0n.dev> | 2020-11-06 21:06:07 -0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-05 00:39:05 +0800 |
commit | 2dcc945392915dbc3c76c561221c2066477026f4 (patch) | |
tree | 327e58a983b6f030afc64f487bb87bfea05a7301 | |
parent | 578145a997eb1edf67cc8a5a9c938ccc2fde98c3 (diff) |
SystemUI: Allow privileged system apps to access screenshot service
This is necessary in order to take a screenshot from other apps using
platform APIs as if the user used the screenshot keychord, which we need
for implementing gestures in a modular way. The service is still
protected by the INTERACT_ACROSS_USERS_FULL permission, which is already
necessary to get far enough to attempt binding to this service.
Note that existing screenshot APIs are not sufficient because they only
allow apps to get an image of the screen; we want the full user
experience of the animations, actions, preview, sound, etc. that
normally come with a user-initiated screenshot.
Change-Id: Ieb559d5dc921393f68aa1d6142f7834d89d4e22b
-rw-r--r-- | packages/SystemUI/AndroidManifest.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml index 9f2aa32ec7e2..85cf73fc88c6 100644 --- a/packages/SystemUI/AndroidManifest.xml +++ b/packages/SystemUI/AndroidManifest.xml @@ -343,7 +343,8 @@ TODO: Should have an android:permission attribute --> <service android:name=".screenshot.TakeScreenshotService" android:process=":screenshot" - android:exported="false" /> + android:exported="true" + android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" /> <!-- Called from PhoneWindowManager --> <receiver android:name=".screenshot.ScreenshotServiceErrorReceiver" |