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
Loading
Please register or sign in to comment