From 1b794faeace9e992a33b2d8bbd9a56836c459135 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Fri, 9 Feb 2018 14:12:56 -0800 Subject: [PATCH] Fix issue #72151749: Lock down 'clear cache' functionality to... ...only system signature Apps that hold the original permission are silently ignored. There is a new internal permission you must hold to actually delete cache files. Test: booted and run, can still clear cache in settings. Bug: 72151749 Change-Id: I47a5cb697e1a4fa3665ac71aaabcda57bef7b561 --- core/res/AndroidManifest.xml | 9 +++++++-- .../server/pm/PackageManagerService.java | 17 +++++++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index f6f1d81ce860e..cbcadc33b97f8 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2955,11 +2955,16 @@ - + + + +