summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yuting <yutingfang@google.com> 2024-04-26 13:43:49 -0700
committer Yuting <yutingfang@google.com> 2024-05-21 15:21:45 -0700
commite59ff0197c972ea7a9af709a4e5db2c44b69dddf (patch)
treee66b79fb825f81200f26290127ccdf1f2dbdabf9 /libs/androidfw/StringPool.cpp
parentd10af3582c4fc5273e98553c2e449a3713b25163 (diff)
[DeviceAwareAppOp] Add device attributed AppOp accesses to the recent access file
This CL contains following changes: 1) Create a new AppOpsRecentAccessPersistence class to manage read/write of AppOp recent access file. 2) Instead of calling getPackagesForOps() to get all op accesses from the memory, use AppOpsService.mUidStates. This is to make it easy to get AppOp accesses from all devices by reading the raw data from mUidStates. 3) Add "dv" as a new XML attribute on the attributed op tag to represent an access entry from an external device. Add "pdv" as a new XML attribute to indicate the proxy is on an external device. Bug: 336802155 Test: Added a new unit test for persistence: atest AppOpsRecentAccessPersistenceTest Change-Id: I9a781f7de19dc0fc30de1f1335e21cf724ed2c88
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions