commit | 5a4db21004e3485cdbb98214af4568362cff9b68 | [log] [tgz] |
---|---|---|
author | ThiƩbaud Weksteen <tweek@google.com> | Thu Sep 02 17:09:34 2021 +0200 |
committer | ThiƩbaud Weksteen <tweek@google.com> | Wed Sep 15 08:38:04 2021 +0000 |
tree | 0b28b9633d18163271f79f8dcac382e578aefcce | |
parent | 442cacfc96f69adce7b55bd28cf07a75fbcb4b65 [diff] |
Add @Enforce AIDL annotation If used, this annotation will add logic in the Binder stub to verify the caller's permissions. The annotation is in the format: @Enforce(condition="permission = READ_PHONE_STATE || uid = SYSTEM_UID") void Method(); Permissions should be constants defined in the android.Manifest.permission class. UIDs should be constants defined in the android.os.Process class. Only Java service implementations are supported for now. Bug: 197828948 Test: aidl-golden-test Change-Id: Id80680de4ba09fcfacbb66079fa4d015809001b7
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview