OSDN Git Service

Fix issue #72151749: Lock down 'clear cache' functionality to...
authorDianne Hackborn <hackbod@google.com>
Fri, 9 Feb 2018 22:12:56 +0000 (14:12 -0800)
committerDianne Hackborn <hackbod@google.com>
Fri, 9 Feb 2018 22:44:41 +0000 (14:44 -0800)
commit1b794faeace9e992a33b2d8bbd9a56836c459135
tree282f143164f563889f5935a31b1d673116cfbc23
parent4945e8e3763d1e9cef29aeae17296d9d781917ce
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
services/core/java/com/android/server/pm/PackageManagerService.java