OSDN Git Service

Additional operation check when enabling read logs.
authorAlex Buynytskyy <alexbuy@google.com>
Thu, 2 Apr 2020 22:21:47 +0000 (15:21 -0700)
committerAlex Buynytskyy <alexbuy@google.com>
Sat, 4 Apr 2020 01:42:04 +0000 (18:42 -0700)
commit605a44fe93bd532667b1778a9304d0ecc541b3d8
tree6870fa41e0ff2131867a28f9552f61ed6b31c9b4
parent75973cb0dde856b8e3a94c808fdfc29d53252c3c
Additional operation check when enabling read logs.

Vold now does not check caller's permission, but only accepts
transactions from system_server. And it's up to system server to do the
right thing and check permissions/appops.

Bug: b/152633648
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest
Test: adb shell appops set 1000 GET_USAGE_STATS deny
Change-Id: Id56c1673b135b72b3ec86e572aa4bcca3afc19ab
VoldNativeService.cpp
VoldNativeServiceValidation.cpp