Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e59ff019 authored by Yuting's avatar Yuting
Browse files

[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
parent d10af358
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment