Skip to content

Commit

Permalink
Add an 'android.software.app_compat_overrides' feature
Browse files Browse the repository at this point in the history
This feature will allow OEMs to opt-in specific devices/builds to per-app compat overrides.

Bug: 188500456
Test: N/A
Change-Id: I66a9c8bcec81b0ded9de415c279cf320edfeba45
  • Loading branch information
tomnatan30 committed Jul 21, 2021
1 parent 0957669 commit 8a4d2b4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions data/etc/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ prebuilt_etc {
src: "android.hardware.biometrics.face.xml",
filename_from_src: true,
}

prebuilt_etc {
name: "android.software.app_compat_overrides.xml",
product_specific: true,
sub_dir: "permissions",
src: "android.software.app_compat_overrides.xml",
filename_from_src: true,
}
21 changes: 21 additions & 0 deletions data/etc/android.software.app_compat_overrides.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2021 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<!-- Feature for devices that are opted-in to receive per-app compatibility
overrides. -->
<permissions>
<feature name="android.software.app_compat_overrides" />
</permissions>

0 comments on commit 8a4d2b4

Please sign in to comment.