Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eec64f0 authored by Marvin Ramin's avatar Marvin Ramin
Browse files

Add message for blocked permission requests

Introduces a new message which is shown when an app that is streamed to a
remote device requests runtime permissions.
This permission request is blocked on the remote device by default
though VDM.
This messages intends to help the user better understand how to resolve
this situation.

Test: atest ActivityBlockingTest
Bug: 272323777
Change-Id: Ibb040e04aa60446b811e50ed0fe529fa2c747b9e
parent 6ae6c74a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ public class BlockedAppStreamingActivity extends AlertActivity {
                mAlertParams.mTitle =
                        getString(R.string.app_streaming_blocked_title_for_permission_dialog);
                mAlertParams.mMessage =
                        getString(R.string.app_streaming_blocked_message, streamedDeviceName);
                        getString(R.string.app_streaming_blocked_message_for_permission_request);
            } else if (TextUtils.equals(activityInfo.packageName, BLOCKED_COMPONENT_PLAYSTORE)) {
                mAlertParams.mTitle =
                        getString(R.string.app_streaming_blocked_title_for_playstore_dialog);
+7 −1
Original line number Diff line number Diff line
@@ -5379,7 +5379,7 @@
    <!-- Title of the dialog shown when an app is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_title"><xliff:g id="activity" example="Permission dialog">%1$s</xliff:g> unavailable</string>
    <!-- Title of the dialog shown when the permissioncontroller is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_title_for_permission_dialog">Permission needed</string>
    <string name="app_streaming_blocked_title_for_permission_dialog">Permission request suppressed</string>
    <!-- Title of the dialog shown when the camera permission is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_title_for_camera_dialog">Camera unavailable</string>
    <!-- Title of the dialog shown when the fingerprint permission is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
@@ -5400,6 +5400,12 @@
    <string name="app_streaming_blocked_message" product="tablet">This can’t be accessed on your <xliff:g id="device" example="Chromebook">%1$s</xliff:g> at this time. Try on your tablet instead.</string>
    <!-- Message shown when an app is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_message" product="default">This can’t be accessed on your <xliff:g id="device" example="Chromebook">%1$s</xliff:g> at this time. Try on your phone instead.</string>
    <!-- Message shown when a runtime permission request is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_message_for_permission_request" product="tv">This app is requesting additional permissions, but permissions can’t be granted in a streaming session. Grant the permission on your Android TV device first.</string>
    <!-- Message shown when a runtime permission request is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_message_for_permission_request" product="tablet">This app is requesting additional permissions, but permissions can’t be granted in a streaming session. Grant the permission on your tablet first.</string>
    <!-- Message shown when a runtime permission request is blocked from being streamed to a remote device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_message_for_permission_request" product="default">This app is requesting additional permissions, but permissions can’t be granted in a streaming session. Grant the permission on your phone first.</string>
    <!-- Message shown when an app being streamed to another device requests authentication such as via the biometrics API, and the user needs to complete the on their device. [CHAR LIMIT=NONE] -->
    <string name="app_streaming_blocked_message_for_fingerprint_dialog" product="tv">This app is requesting additional security. Try on your Android TV device instead.</string>
    <!-- Message shown when an app being streamed to another device requests authentication such as via the biometrics API, and the user needs to complete the on their device. [CHAR LIMIT=NONE] -->
+1 −0
Original line number Diff line number Diff line
@@ -3349,6 +3349,7 @@
  <java-symbol type="string" name="app_streaming_blocked_title_for_playstore_dialog" />
  <java-symbol type="string" name="app_streaming_blocked_title_for_settings_dialog" />
  <java-symbol type="string" name="app_streaming_blocked_message" />
  <java-symbol type="string" name="app_streaming_blocked_message_for_permission_request" />
  <java-symbol type="string" name="app_streaming_blocked_message_for_fingerprint_dialog" />
  <java-symbol type="string" name="app_streaming_blocked_message_for_settings_dialog" />