diff options
author | Winson <chiuwinson@google.com> | 2019-10-02 12:41:29 -0700 |
---|---|---|
committer | Winson <chiuwinson@google.com> | 2019-11-21 12:01:41 -0800 |
commit | d9d17367670eb930d74d2e2ffeeb3c0e9bea0a23 (patch) | |
tree | 38a6bcc86d8166a2bdb1122e0dbd5f4bad20e5ce /tools/stats_log_api_gen/java_writer.cpp | |
parent | 64ed3ec44c68664ade3c7fa04f692a7144479ca6 (diff) |
Overlayable actor enforcement
Validates that the caller of an OverlayManager API that mutates state
is actually allowed to act on the target as defined in the target's
overlayable tag.
<overlayable name="MyResources" actor="namespace/name">
An actor is valid if any of the following is true:
- is root/system
- is the target overlay package
- has the CHANGE_OVERLAY_PACKAGES permission and an actor is not defined
- is the same package name as the sole resolved Activity for the actor specified
in the overlayable definition, with only pre-installed, namespaced actors
currently supported
Bug: 119442583
Bug: 135052950
Test: atest SystemConfigNamedActorTest
Test: atest com.android.server.om
Change-Id: If56b9e8366852eaef84f6bb25c3e6871eaa3f219
Diffstat (limited to 'tools/stats_log_api_gen/java_writer.cpp')
0 files changed, 0 insertions, 0 deletions