From 924910db904ed759f9d15d5ae268d2a295f05642 Mon Sep 17 00:00:00 2001 From: Tej Singh Date: Wed, 26 Feb 2020 16:57:43 -0800 Subject: [PATCH] Make pull atom permission accessible to shell Make REGISTER_STATS_PULL_ATOM permission available to Shell to allow testing it in gts. Is the minimally scoped permission that needs to be added? Yes, it is the only permission to register pulled atoms. What options did you explore that did not need this permission? I explored expanding the permission to be development in addition to privileged, and giving the permission to gmscore. However, this solution was recommended to me by the GTS team. If there are better ways to enable testing the API in GTS, I am open to feedback. Test: atest GtsStatsdHostTestCases Bug: 150329323 Change-Id: I103d937842beaa2d918181b1a952d27179411dcc --- data/etc/privapp-permissions-platform.xml | 2 ++ packages/Shell/AndroidManifest.xml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 76f8fdb694526..51c1658a17665 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -389,6 +389,8 @@ applications that come with the platform + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index ef7f167652f28..181e0c0790db5 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -272,6 +272,9 @@ + + +