| commit | fd413f7d584c37aada426242ddfad1c68807b49a | [log] [tgz] |
|---|---|---|
| author | ThiƩbaud Weksteen <tweek@google.com> | Tue Mar 08 14:41:23 2022 +1100 |
| committer | ThiƩbaud Weksteen <tweek@google.com> | Tue Mar 08 22:10:32 2022 +0000 |
| tree | 54e1b1b50642011d8b93e989c9bbeac05f32e30d | |
| parent | eefa3dab87cc1a557eaa44d9c7b33a138b7ff656 [diff] |
Support non-core permissions
The @EnforcePermission annotation supports any permission defined in
frameworks/base/core/res/AndroidManifest.xml. Add support for
permissions declared outside this file.
If the permission name contains at least one dot ("."), it assumes that
it is a fully-qualified name and it is used as-is. Otherwise, it assumes
it is available within android.Manifest.permission.
In both cases, the generated code uses the Java constant (as opposed
to a string) to avoid referencing non-existing permission.
Bug: 220214993
Test: atest --host aidl_unittests
Change-Id: I268c1696ef65d36d5fa79e402d5094b63916beae
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview