14 Commits

Author SHA1 Message Date
Anton Hansson
9003745360 Build permission against the module SDK
Bug: 146757305
Test: m
Change-Id: I6a2f8c9340051497770811f631ffb72debbf0b23
2020-02-08 13:49:57 +00:00
Jiyong Park
439e8e3574 use apex_test for test apexes
... so that the build system can distinguish testing APEXes and
installable APEXes, and apply different rules to them.

Bug: 146308764
Test: m
Change-Id: Ie7dc9ad1444904f49047093a44e7fcd0a5f56ffe
2020-02-07 13:30:07 +09:00
TreeHugger Robot
e34d97f3bf Merge "Stop using SystemApi.process per the latest spec" 2020-02-04 18:19:36 +00:00
Makoto Onuki
af97aef137 Stop using SystemApi.process per the latest spec
Bug: 148177503
Test: Build / treehugger

Change-Id: If656b2faa2e031775ef1fc4e9bfaeb170db55620
2020-02-04 17:05:49 +00:00
Anton Hansson
20a935052a Create all variants of stubs for permission
Add separate publicapi, systemapi and module_libs stubs for permission,
and use a naming scheme consistent with other modules.

Bug: 147768409
Test: m
Test: m framework-permission-stubs-{public,system,module_libs_}api
Change-Id: I0bd870f5418bab55e0507a57c72db1c088f732d2
2020-02-03 19:17:16 +00:00
Evan Severson
6306e8aec4 Do not persist one-time permissions as "granted"
One time permissions should not be persisted as a granted state because
it doesn't make sense to later load a one-time permission.

Test: Manual
Bug: 136219229
Change-Id: I3352efe1eb8db7fd602f30dcd881c20e2fe5e494
2020-01-23 11:08:39 -08:00
Baligh Uddin
ca69aba6a6 Set version to 300000000
Exempt-From-Owner-Approval: dariofreni@ approving in lieu of hansson@ (OOO)
2020-01-23 18:05:24 +00:00
Hai Zhang
3d6a0b0f37 Use ApexContext for APEX data directory.
Bug: 136503238
Test: manual
Change-Id: I8d6aa35b522b390576ae76bc4e5471ba4b2f8372
2020-01-22 16:09:53 -08:00
Hai Zhang
47c1de2ff8 Move roles persistence into APEX.
Bug: 136503238
Test: presubmit
Change-Id: Id11842ad7653317d5f0ebf2df0f4c315d0018440
2020-01-17 19:05:57 -08:00
Hai Zhang
76f0defebf Move runtime permissions persistence into APEX.
Bug: 136503238
Test: presubmit
Change-Id: Id016d8c111ceadd27dc318c256b2f32ff0380f60
2020-01-17 19:05:48 -08:00
Hai Zhang
82a6227fc7 Allow adding framework and service java code into permission APEX.
Along with two empty classes to make build happy.

Bug: 136503238
Test: presubmit
Change-Id: Ib706a7ac4d09374ce220961f9439f712a38f7c0c
2020-01-15 13:56:17 -08:00
Hai Zhang
4dca026d8f Use APk-in-APEX for PermissionController.
Bug: 136503238
Test: m mts && mts-tradefed run mts-permission
Change-Id: I281150603798156ef5f25fbce4b7eee1a4cae82a
2020-01-09 12:39:20 -08:00
Hai Zhang
cf2fed6c22 Add install test for permission APEX.
Bug: 136503238
Test: atest --rebuild-module-info permission_e2e_tests
Change-Id: I05cc0f19679bc0d03785233a38bb1a8b31cd3652
2019-12-02 14:27:37 -08:00
Hai Zhang
7871c781f9 Add APEX module for permission.
We need an APEX module for permission to reliably roll back runtime
permission state, specifically, platform runtime-permissions.xml will
be moved into the data directory of this APEX and be rolled back when
PermissionController is rolled back.

Bug: 136503238
Test: build
Change-Id: I93166f8dc4783bd09afa6be19a302fb0c2decd0d
2019-10-11 12:32:38 -07:00