Add sqlite implementation for app op history
Sqlite implementation will use unified schema for storing discrete and rest of the app ops. The data will be stored in seprate table/database. Discrete app op events will be aggregated at 1-minute interval, and rest of the app ops at 15-minute interval. This revised design offers improved fidelity, performance, simpler/robust, and considerably reduce cognitive overehad in this space. Furthermore, the `offsetHistory` and `addHistoricalOps` APIs are being made no-op with the intent to deprecate them due to a lack of identified use cases. Given the changes in the implementation design for the app ops, new CTS tests will be introduced for this implmentation. BYPASS_LARGE_CHANGE_WARNING Bug: 377584611 Test: atest com.google.android.permissionui.gts.PermissionHistoryTest Test: atest com.android.server.appop.DiscreteOpsMigrationAndRollbackTest Test: atest com.android.server.appop.DiscreteAppOpSqlPersistenceTest Test: atest com.android.server.appop.DiscreteAppOpXmlPersistenceTest Test: atest com.android.server.appop.AppOpHistoryHelperTest Test: atest CtsAppOpsTestCases CtsAppOps2TestCases Flag: android.permission.flags.enable_all_sqlite_appops_accesses Change-Id: If20a3dcbf3fbd6de56f2bebb03d0ee912654f920
Loading
Please register or sign in to comment