Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c07b591e authored by mattgilbride's avatar mattgilbride Committed by Matt Gilbride
Browse files

Update AudioService to use manifest constants for @EnforcePermission

There are some usages of "short strings" for manifest permissions that
cause the latest version of the EnforcePermissionDetector lint to fail,
because it expects values that resolve to the fully qualified permision
name e.g. "android.permission.MODIFY_AUDIO_ROUTING".

"Short strings" like "MODIFY_AUDIO_ROUTING" are allowed in .aidl files,
and the AIDL compiler resolves them to the fully qualified values in
generated java.

The attached bug has been opened to decide if we should update the
lint to allow this syntax in the java annotation since it is supported
in .aidl.

Bug: 270686198
Test: TH
Change-Id: Ifd2e39b53f614c3aaf9d03413ac46fd0c6909162
Merged-In: Ifd2e39b53f614c3aaf9d03413ac46fd0c6909162
(cherry picked from commit 27e9f915)
parent cd847010
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment