From 3d65313a694a8a08f72202e3490e0f8e3566ea13 Mon Sep 17 00:00:00 2001 From: Sarup Dalwani Date: Tue, 9 May 2023 12:16:38 +0000 Subject: [PATCH] Moving permission and flag changes out of root identity for AppCloning IntentRedirection Earlier the permission was being checked with system server's pid and uid as we were clearing binder identity for finding the values of AppCloningBuildingBlocks flag. Because of this the check was moot, moving the check out, so that it uses callers pd and uid. Bug: 281738146 Test: atest com.android.cts.appcloning.IntentRedirectionTest Change-Id: I62642d2c7cd76912ae800b02688cdc91d1a78214 --- data/etc/privapp-permissions-platform.xml | 2 ++ packages/Shell/AndroidManifest.xml | 2 ++ .../server/pm/NoFilteringResolver.java | 22 +++++++++++++------ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index ead5fd49c5085..a044602f7ec02 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -525,6 +525,8 @@ applications that come with the platform + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 8b3fd41b62a69..43f98c38715dd 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -837,6 +837,8 @@ + +