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

Commit a9708b17 authored by Matt Pietal's avatar Matt Pietal
Browse files

Controls API - Flag controls support

Add a package manager flag so that apps can programmatically query
whether the device have system interface to support the Controls API

Bug: 156096063
Test: manual
Change-Id: I7763d725f930bf6051731bbfbd018f0ff909dfa7
parent a7e92558
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 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.
-->

<!-- This is the standard feature indicating device controls support on the device,
     as specified in the CDD. ONLY devices that meet the CDD's requirements may
     declare this feature. -->
<permissions>
    <feature name="android.software.controls" />
</permissions>
+3 −0
Original line number Diff line number Diff line
@@ -59,6 +59,9 @@
    <!-- Feature to specify if the device support managed users. -->
    <feature name="android.software.managed_users" notLowRam="true"/>

    <!-- Feature to specify if the device supports controls. -->
    <feature name="android.software.controls" />

    <!-- Devices with all optimizations required to support VR Mode and
         pass all CDD requirements for this feature may include
         android.hardware.vr.high_performance -->
+3 −0
Original line number Diff line number Diff line
@@ -59,6 +59,9 @@
    <!-- Feature to specify if the device support managed users. -->
    <feature name="android.software.managed_users" />

    <!-- Feature to specify if the device supports controls. -->
    <feature name="android.software.controls" />

    <!-- devices with GPS must include android.hardware.location.gps.xml -->
    <!-- devices with a rear-facing camera must include one of these as appropriate:
         android.hardware.camera.xml or