summaryrefslogtreecommitdiff
path: root/rdu2_core_hardware.xml
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-08-08 23:43:27 +0200
committerRobert Foss <robert.foss@collabora.com>2017-08-09 12:04:51 +0200
commit7f6c082f29713d5bf04e3fd57722ace3088b53c8 (patch)
tree9d5b7864886513b52e75af51b6e86ec2d346275d /rdu2_core_hardware.xml
parent85ca78d4c63dc66ae38cc5d4fb085c85c9971734 (diff)
downloadandroid-device-linaro-generic-7f6c082f29713d5bf04e3fd57722ace3088b53c8.tar.gz
android-device-linaro-generic-7f6c082f29713d5bf04e3fd57722ace3088b53c8.tar.xz
rdu2: define supported hardware items only
Instead of blindly using the default 'handheld' android profile, we specify our own hardware profile removing all the features we don't have in the RDU2. * No front or back camera. * No bluetooth chipset. * No microphone (so no connection service or voice recognizers either). * No compass or accelerometer. * No location capabilities. * Landscape mode only.. We still build the corresponding apps when needed, though (e.g. Bluetooth or Camera and their corresponding HAL/services) but they will just bail out cleanly when they don't detect the HW capabilities: Telecom: registerPhoneAccount not allowed on non-voice capable device. SystemServer: No Bluetooth Service (Bluetooth Hardware Not Present) DisableCameraReceiver: no back camera DisableCameraReceiver: disable all camera activities CameraService: getCameraVendorTagDescriptor: camera hardware module doesn't exist Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Diffstat (limited to 'rdu2_core_hardware.xml')
-rw-r--r--rdu2_core_hardware.xml54
1 files changed, 0 insertions, 54 deletions
diff --git a/rdu2_core_hardware.xml b/rdu2_core_hardware.xml
index f9464e8..2cede30 100644
--- a/rdu2_core_hardware.xml
+++ b/rdu2_core_hardware.xml
@@ -14,31 +14,13 @@
limitations under the License.
-->
-<!-- These are the hardware components that all handheld devices
- must include. Devices with optional hardware must also include extra
- hardware files, per the comments below.
-
- Handheld devices include phones, mobile Internet devices (MIDs),
- Personal Media Players (PMPs), small tablets (7" or less), and similar
- devices.
--->
<permissions>
<feature name="android.hardware.audio.output" />
- <feature name="android.hardware.camera" />
- <feature name="android.hardware.location" />
- <feature name="android.hardware.location.network" />
- <feature name="android.hardware.sensor.compass" />
- <feature name="android.hardware.sensor.accelerometer" />
- <feature name="android.hardware.bluetooth" />
<feature name="android.hardware.touchscreen" />
- <feature name="android.hardware.microphone" />
- <feature name="android.hardware.screen.portrait" />
<feature name="android.hardware.screen.landscape" />
<!-- basic system services -->
<feature name="android.software.app_widgets" />
- <feature name="android.software.connectionservice" />
- <feature name="android.software.voice_recognizers" notLowRam="true" />
<feature name="android.software.backup" />
<feature name="android.software.home_screen" />
<feature name="android.software.input_methods" />
@@ -49,40 +31,4 @@
<!-- Feature to specify if the device support managed users. -->
<feature name="android.software.managed_users" />
-
- <!-- Feature to specify if the device supports a VR mode.
- feature name="android.software.vr.mode" -->
- <!-- Devices with all optimizations required to be a "VR Ready" device that
- pass all CTS tests for this feature must include feature
- android.hardware.vr.high_performance -->
-
- <!-- devices with GPS must include android.hardware.location.gps.xml -->
- <!-- devices with an autofocus camera and/or flash must include either
- android.hardware.camera.autofocus.xml or
- android.hardware.camera.autofocus-flash.xml -->
- <!-- devices with a front facing camera must include
- android.hardware.camera.front.xml -->
- <!-- devices with WiFi must also include android.hardware.wifi.xml -->
- <!-- devices that support multitouch must include the most appropriate one
- of these files:
-
- If only partial (non-independent) pointers are supported:
- android.hardware.touchscreen.multitouch.xml
-
- If up to 4 independently tracked pointers are supported:
- include android.hardware.touchscreen.multitouch.distinct.xml
-
- If 5 or more independently tracked pointers are supported:
- include android.hardware.touchscreen.multitouch.jazzhand.xml
-
- ONLY ONE of the above should be included. -->
- <!-- devices with an ambient light sensor must also include
- android.hardware.sensor.light.xml -->
- <!-- devices with a proximity sensor must also include
- android.hardware.sensor.proximity.xml -->
- <!-- GSM phones must also include android.hardware.telephony.gsm.xml -->
- <!-- CDMA phones must also include android.hardware.telephony.cdma.xml -->
- <!-- Devices that have low-latency audio stacks suitable for apps like
- VoIP may include android.hardware.audio.low_latency.xml. ONLY apps
- that meet the requirements specified in the CDD may include this. -->
</permissions>