Welcome to the LineageOS Device Support Requirements. This document enumerates the requirements that must be met in order for devices to be deemed ship ready for LineageOS releases, beginning with Android Oreo. To be considered ready, device maintainers MUST meet the requirements presented in this document, including any documents incorporated via reference.
The use of “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” is per the IETF standard defined in RFC2119.
Table of Contents
- Attaining exceptions
- Hardware Support
- Software support
- Quality of life
- Device or software deviations from our core product (as described below) MUST be approved by no less than 3 Project Directors.
- Device or software exceptions SHOULD be made via change request to this repository.
- All device or software exceptions that are granted MUST be documented on the wiki for all affected devices.
- All devices MUST support audio playback for media content.
- Phones MUST support in-call audio.
- Phones MUST support speaker audio.
- Tablet devices capable of in-call audio/speaker audio MUST support in-call/speaker audio.
- Devices SHOULD support any additional audio configuration inherent to their device (echo cancellation, extra mics, etc).
- All devices MUST support any other audio output supported by their stock OS (ex. Headphone jack, USB-C, BT).
- All devices with FM radio capabilities in their stock OS SHOULD support FM.
- All devices with RIL supported in their stock OS MUST support RIL for phone calls & data.
- All devices with RIL supported in their stock OS MUST support emergency calling with a SIM inserted (112/911).
- All devices with RIL supported in their stock OS SHOULD support emergency calling without a SIM inserted (112/911).
- Data only devices (defined as devices that have a ril but does not support telephony stack due to hardware/firmware restrictions) are EXEMPTED from phone & emergency dialing requirements.
- All devices that supported hardware-backed encryption on their stock OS MUST support hardware-backed encryption.
- All devices that shipped stock as forceencrypt SHOULD default to forceencrypt enabled.
- All devices MUST support software encryption.
- All devices with Wi-Fi supported in their stock OS MUST support Wi-Fi.
- All devices with Wi-Fi MUST report same MAC address as on stock OS.
- All devices with Wi-Fi hotspot capabilities MUST support Wi-Fi tethering.
- All devices with a USB port MUST support file access via MTP.
- All devices with USB tethering supported on their stock OS MUST support USB tethering.
- All devices with a USB port & Data SHOULD support USB tethering.
- All devices with GPS supported in their stock OS MUST support GPS.
- All devices with Bluetooth supported in their stock OS MUST support Bluetooth.
- All devices with Bluetooth MUST report same MAC address as on stock OS.
- All devices with Bluetooth SHOULD support Bluetooth tethering.
- All devices with support for Qualcomm® aptX™, aptX™ HD, or any future variant of aptX™, in stock (non-beta releases) OS SHOULD support those variant of aptX™.
- All devices without support for Qualcomm® aptX™, aptX™ HD, or any future variant of aptX™ in stock (non-beta releases) OS MUST NOT support those variants of aptX™.
- All devices with Camera supported in their stock OS MUST support Camera, in both front facing and rear camera configurations.
- All devices with Dual (or more) Rear Cameras SHOULD support all rear cameras.
- All devices with Dual (or more) Front Facing Cameras SHOULD support all front cameras.
- All Camera HAL versions accessible with the device's Camera HAL MUST comply with the Camera and Video Recording requirements.
- All devices with Video Recording supported in their stock OS MUST support Video Recording, in both front facing and rear camera configurations.
- All devices with a built-in Display MUST support the Display at the same resolution and density as the stock OS.
- All devices that do not include a built-in Display MUST support Display output via the hardware’s supported outputs (ex. Android TV - HDMI).
- All devices that support additional non-USB display interfaces SHOULD support those display output methods.
- All devices that support a USB-out display in their stock OS SHOULD support this display output (ex. MHL/Miracast/OTG).
- All devices that support HDR10 playback in their stock OS SHOULD support HDR10 playback.
- All devices with NFC supported in their stock OS MUST support NFC.
- All devices with a Fingerprint Sensor MUST support the Fingerprint Sensor if the stock OS supports it with Marshmallow or higher Android versions.
- All devices with a Fingerprint Sensor SHOULD support the Fingerprint Sensor if the stock OS supports it for all other Android versions.
- All devices with an IR blaster SHOULD support IR blaster.
- All devices with an accelerometer MUST support the accelerometer.
- All devices with a gyroscope MUST support the gyroscope.
- All devices with a proximity sensor MUST support the proximity sensor.
- All devices with a light sensor MUST support the light sensor.
- All other sensors supported by a device’s stock OS SHOULD be supported in LineageOS.
- All devices with proprietary accessories SHOULD support those accessories in LineageOS (ex. O-Click, Essential 360 Camera).
Hardware deviations are defined as exemptions granted for hardware requirements above that worked in stock, but do not work in LineageOS.
- All hardware deviations from stock MUST be reported on the wiki page for the device, with a user understandable justification.
- Device trees MUST contain a lineage.mk file with device declaration of lineage_[devicename].
- Device trees MUST support a lineage.dependencies file for
breakfastcommand & roomservice to be functional.
- This file MUST NOT include any dependencies outside of the "LineageOS" organization.
- All devices MUST be configured as userdebug releases.
- All devices MUST NOT ship a prebuilt kernel.
- All devices MUST be configured for SELinux Enforcing.
- All devices MUST disable verity on the system image for userdebug builds.
- All devices SHOULD support verity on the vendor image.
- All devices with a shipping build of LineageOS MUST support upgrades via the native LineageOS Updater application & the recovery documented on the Wiki for that device.
- All devices with stock support of Factory Reset Protection (FRP) SHOULD support FRP when Google Applications are installed by the user.
- All devices MUST NOT alter SafetyNet validation responses.
- All devices MUST use the 64-bit Binder API.
- All devices MUST NOT ship with su included.
- All devices MUST support su installation via LineageOS provided ‘Extras’ download.
- Devices MUST NOT use non-PIE binaries.
- Devices MUST support a working extract files script in their device tree (or device tree dependencies) that reproduces an exact copy of the binaries required to build LineageOS from an existing LineageOS installation.
- Devices SHOULD use the global extract files script in vendor/lineage.
- If a device maintainer elects to not use the common extract script, the maintainer MUST ensure that the wiki page for their device has valid instructions for operating the custom extract script.
- Devices MUST support CVE patches for “high profile” exploits and vulnerabilities (if the media is reporting on it, then we must have it patched).
- [NOTE: This will become a MUST once CVE autopatcher is live & automated]
- Devices SHOULD receive regular CVE patches to the device kernel and dependencies.
- [To be in effect once CVE autopatcher is live & automated]
- Device maintainers MUST review and/or accept patches provided by the CVE autopatcher tool.
- All devices MUST assert on known to be working firmware versions if some firmware versions are known to be non-working.
LineageOS operates under the assumption that OEM device licensing for exFAT is attached to the device, not software. LineageOS will comply with all requests for removal of exFAT support from OEMs, Microsoft or their representatives upon contact to firstname.lastname@example.org.
- All devices with exFAT support on stock MAY support exFAT with (and only with) a kernel based implementation.
- All devices without exFAT support on stock MUST NOT support exFAT.
- All devices SHOULD support in-kernel (MDSS, MDNIE or similar) LiveDisplay colour adjustment.
Software deviations are defined as exemptions granted for software requirements above that worked in stock, but do not work in LineageOS.
- All software deviations from other LineageOS devices of the same type MUST be approved by Directors (ex. if you want to remove Music app, get approval).
- All software deviations from other LineageOS devices of the same type MUST be reported on the wiki page for the device, with a user understandable justification.
- Device maintainers MUST ship Jelly or another LineageOS sourced web browser.
Quality of life
- All non-original commits MUST have proper authorship attribution from the source it was taken from or adapted from.
- All original contributions MUST be copyrighted as “(C) [YEAR] The LineageOS Project”.
- All LineageOS copyrights MUST only be additive to the copyright header.
- Do not remove copyrights from CyanogenMod, Cyanogen Inc or any other upstream.
- Force pushing branches SHOULD be avoided.
- In the event of a force pushed branch, backup branches of the pre-forced HEAD MUST be made.
- Device maintainer(s) MUST have a JIRA account for bug tracking and cross-team collaboration.
- Device maintainer(s) MUST routinely triage, answer and close JIRA reports.
- Device maintainer(s) SHOULD make their JIRA name match their maintainer name as displayed on the Wiki.
- All Kernel contributions MUST be GPLv2.
- All Android contributions SHOULD be Apache 2.0 licensed.
- Any contribution to an existing Apache 2.0 project MUST fall under Apache Compliance Category A.
- Any contribution to an existing Apache 2.0 project MUST NOT be in Apache Compliance Category X.
- All devices with a shipping build of LineageOS MUST have a wiki page with valid installation instructions.
- All devices with a shipping build of LineageOS MUST document Hardware Deviations from stock capabilities.
- All devices with a shipping build of LineageOS MUST document Software Deviations from other LineageOS releases of the same device type.
- Issues like the "screen of death" MUST NOT affect the device.
- The device MUST NOT have abnormal battery drain.
- Overclocked CPU Profiles MUST NOT be applied by default.
- Maintainers MUST document for users on the Wiki a valid Recovery image by which to install LineageOS zip files.
- Devices that do not have traditional Recovery images MUST support & document another means of installation for LineageOS zip files.
- Maintainers SHOULD verify that Teamwin Recovery Project (TWRP) official distributions work for LineageOS installation.
- Failures in official TWRP recoveries should be raised with the TWRP team or remedied by the maintainer.
- Maintainers SHOULD provide a custom recovery link in Wiki documentation if TWRP does not officially support their device.
All currently granted exceptions should be listed in the following table. To request an exception, please submit a change to this repository.
|2018/02/08||Samsung||Hardware Encryption||Samsung devices that cannot support hardware encryption due to Knox/Tee are exempted from the hardware crypto requirements. MUST still support software crypto.|
|2018/02/11||Android TV devices||In-Remote Microphones||Requires proprietary audio routing/methods that have no OSS counterpart, and rely on proprietary functions. MUST support Microphone input through the Android TV Remote app.|
|2018/02/12||hlte[can/tmo/usc/vzw]||NFC||Stock NFC HAL is undocumented and doesn't match any known interfaces. Stealing configs and firmware from devices with a proper setup fails due to a signature mismatch when the (required) firmware download is attempted.|
This document is licensed CC-BY-3.0, with portions adapted from Google’s CDD requirements.