Commit Graph

52 Commits

Author SHA1 Message Date
Bruno Martins
ee72f28d13 polaris: Import stock audio configs
* From MIUI 9.6.20

Change-Id: Idc0b0b7db7b2d08b77ea174b943301e2f98f6252
2019-07-31 21:41:38 +01:00
Bruno Martins
ccb128ad8a polaris: Set device stock props
Change-Id: Ia8ccea7a370be0ce3cca8073b770f0249354204b
2019-07-30 22:17:13 +01:00
Bruno Martins
ab3deada92 polaris: Append device manifest to common one
* No more hacks needed.

Change-Id: Ie5798c2223752eb9a73204eced65aacb29eb8b68
2019-07-30 22:17:13 +01:00
Bruno Martins
674f71333b polaris: Populate initial vendor blobs list
Change-Id: I3f05c1361ea911eb6f189b5acc9e91849e425433
2019-07-30 22:17:09 +01:00
Bruno Martins
d6ed029a21 polaris: Include device-specific feature permissions
Change-Id: I52a3fa421fa28771d00812437c06b5ff57880707
2019-07-14 11:19:54 +01:00
Vladimir Oltean
83cd51694c polaris: Update for latest common extractors
Change-Id: I4a8f81b2eb05dafc2b022daddb210eb3100e36f0
2019-05-18 14:44:27 +01:00
Bruno Martins
db26edf571 polaris: Override stock NXP NFC config
Change-Id: Ia888b05b55936439e9ec286e73cab7ae7d6317cf
2019-05-05 12:52:19 +01:00
Bruno Martins
59b92a4db8 polaris: Place a copy of NXP NFC config into system image
* Unleash all the NFC features even before starting to
   build our custom vendor images.

Change-Id: Ic6ae9d47555a5ba4ffa7897ac63e5064486fb09c
2019-05-05 12:01:25 +01:00
palaych
dca62446a9 polaris: Update to stable Pie fingerprint
Change-Id: Idd9a571be1d11493a25be974b624e181c4e02085
2019-03-24 19:02:45 +00:00
Bruno Martins
78ba07f23e polaris: Copy device fstab to vendor
Change-Id: I63e6126d48a2efb586b80567f80a1498f0b81cb7
2019-03-13 22:08:46 +00:00
Ruchi Kandoi
488c702667 polaris: Remove system and vendor image dependency
libnfc-nci.conf shouldn't be a part of vendor image, since it is
accessed by libnfc-nci and Nfc application, both are part of system
image.

Test: Nfc enable/disable
Bug: 72080121
Change-Id: I03b6387afc35a521c8a6f9fea1ec2e649d56a38f
2019-03-13 23:07:22 +01:00
Bruno Martins
49d355ea31 polaris: Align NFC configs with upstream
* Match all the changes up to LA.UM.7.3.r1-06900-sdm845.0

Change-Id: I9d1ace9fdc102e6cc7f9fee9cd0a10be027dd90e
2019-03-13 23:07:17 +01:00
Bruno Martins
3a9f657e4d polaris: Import stock NFC configs
* Configs taken from MIUI 9.3.7 global dev build

Change-Id: Icffc0b6b5450d48d3d86d0cb6a45d0155a977867
2019-03-13 23:05:46 +01:00
Giuseppe Barillari
ecfd8cbedf polaris: Set tap to wake node path
Signed-off-by: Giuseppe Barillari <joe2k01dev@gmail.com>
Change-Id: Iddc8d79a6d0bcc884a41d44e89eacf57df7403fc
2019-02-25 21:31:05 +01:00
Bruno Martins
4007792757 polaris: Enforce presence of MIUI 9.2.15 vendor and matching firmware
Change-Id: I622f873800209227138d58b04c27ad7145eb7763
2019-02-21 23:36:21 +00:00
Bruno Martins
b7f646b84a polaris: Sync device manifest with MIUI 9.2.15
Change-Id: I6fa6ba8013aeadf8fcf1e80deafecce46f2caafb
2019-02-21 23:36:21 +00:00
Bruno Martins
2d30571ee1 polaris: overlay: Add regulatory info label
Change-Id: Ic868a9cfb5245ff074afb561c6f3e77cb1364d0b
2019-02-07 22:09:39 +00:00
Bruno Martins
ba8c34fa55 polaris: Declare supported LiveDisplay 2.0 interfaces
* The framework manifest must now be split per device, since not
   every interface is supported. In this case, only DisplayModes
   and PictureAdjustment are supported.

Change-Id: Ie2bbb02ab99ae5f4654fd1e459d2919941197040
2019-02-05 11:59:25 +00:00
Bruno Martins
b3d51c987c polaris: Set display density
Change-Id: Ie35343e261ecf8717ac88644a401576f1f5818ac
2019-01-12 11:35:17 +00:00
TheScarastic
c77631d43b polaris: Remove common display post-processing props
Change-Id: Ifc73e5bb73fab83fa6a46eb5fdd8748066e58255
2019-01-12 11:21:33 +00:00
Bruno Martins
c4ba1c316f polaris: Add device-specific fstab and flags
* This got decommonized in order to support perseus,
   which is a system-as-root device.

Change-Id: I0eba72337e7f190d86c37aa6aff893fdac61975e
2019-01-11 23:21:14 +00:00
Luk1337
1cb3ecc487 polaris: overlay-lineage: Increase amount of visible notification icons
Change-Id: I56955cb189e5c00a51bf7175177f5a2b25799cf0
Signed-off-by: Joey <joey@lineageos.org>
2019-01-09 09:55:24 +01:00
Bruno Martins
2f3fe9d638 polaris: Remap display modes
* Filter out all the rest

Change-Id: Ied45372d1c98915c6843081806505d132bf9a17e
2019-01-02 14:26:41 +00:00
1nfrag
4cc6cbdb3b polaris: Sync with MIUI 8.11.23 vendor manifest
Change-Id: I2bbbed3f12eb8d399c800945984fc04406d97d26
2018-12-27 16:59:26 +00:00
Bruno Martins
a55abe5f87 polaris: Add hotword enrollment
Change-Id: I78b0ad23dd8b4e2192388327a0c49df36f66a80d
2018-12-27 09:11:14 +00:00
Bruno Martins
597aab408c polaris: Beautify rounded corners
Change-Id: Ifb3ff156eca7a02daec82138aee449b121c071eb
2018-12-22 16:59:55 +00:00
TheScarastic
a0e88030d1 polaris: Kang brightness overlays from marlin
* Xiaomi values are unusable

Change-Id: I3b3fb2d389eebad6c7ef76ae78e16eeff06fe3ed
2018-11-28 21:15:23 +00:00
Bruno Martins
bb3539833a polaris: Enforce presence of MIUI 8.11.15 vendor and matching firmware
Change-Id: Ibf4f3b5d8ea3d7bb39e582617b34844017adbbe8
2018-11-18 23:15:01 +01:00
Bruno Martins
b42a24357a polaris: Move to common P blobs
* Lets maintain a common blobs list

Change-Id: I1a62864810a79c30a8c234398bd8b7953ac61b24
2018-10-31 19:06:28 +00:00
Wang Han
ffc57079fc polaris: Nuke redundant hardware key overlays
* These are the default values now.

Change-Id: Id375a3c5dcd80bf91e03c1879dfa6974dd83a9d1
2018-10-08 12:30:35 +01:00
Bruno Martins
2dccecea26 polaris: Update power profile for P
Change-Id: I161aa25ba166d41b6736dc52bb7dd78e3a2ad0e7
2018-10-06 20:11:07 +08:00
1nfrag
5c2ac86a07 polaris: manifest: Change android.hardware.nfc 1.1 to 1.0
* android.hardware.nfc 1.1 crashes. Use 1.0 till this is fixed.

Change-Id: Ie04617562cfd9c40254f7920dd9350b2187fd3fd
2018-10-02 20:43:07 +02:00
1nfrag
c26e3ae038 polaris: Import and bind mount stock manifest
* Stock vendor manifest from MIUI 8.9.20

Change-Id: Ie073fd4d71180f7e9c0b05b78018cb03fbf1ccb5
2018-10-02 20:42:54 +02:00
Bruno Martins
cd70d7844e polaris: Switch to NQ NFC stack
* So that it matches prebuilt vendor. On a sidenote, this was
   moved from the common tree to the individual device trees,
   because not all the targets support NFC.

Change-Id: Ic600594bc073ef3883225fb01039b1953a880807
2018-10-02 10:48:08 +01:00
Bruno Martins
ba0291908f polaris: Drop all device-specific treble hacks
* Android 9 (P) is now available as public beta, meaning that all the hacks
   for running 8.1 with 8.0 blobs can now be dropped.

Change-Id: I68595dd790dec51fb45ccd1d3fb907be81f3b896
2018-09-30 09:07:03 +01:00
Erik Müller
e03b369df9 polaris: Disable proximity sensor check before pulsing
* The device's ultrasound proximity sensor is not active
   during standby, thus it can't be used as a check before
   pulsing. This fixes Ambient Display.

Change-Id: I1fc416247ed13cbfba245f37a4aafeae74ddbff7
2018-09-16 17:05:52 +01:00
Bruno Martins
b93cada1d8 polaris: Consider lineage_polaris product via the AOSP way
Change-Id: I58d53b9d43d30b44f24f4daee250a19fe4f95514
2018-08-17 01:24:25 +01:00
Bruno Martins
205f2eda0d polaris: Ignore custom audio policy configuration
* After "audiopolicy: update APM to use custom audio policy configuration"
   change in frameworks/av, APM first loads config from /vendor/etc/audio/
   instead of /vendor/etc/. While that was intended, it uncovered several
   issues in the rather outdated configs shipped in Android 8.0 based
   vendor images for polaris.

 * This ensures that common audio policy configuration is forcebly picked,
   thus fixing BT A2DP and audio routing when using USB-C DACs.

Change-Id: Idb1c7c1348a85af4b3168b7a74c51d73b1406b53
2018-08-06 23:18:19 +02:00
Pierre-Hugues Husson
9355330e38 polaris: Override vendor's usb_audio_policy_configuration
Android 8.1 added the support for new type of USB Audio devices
(USB_HEADSET, instead of old USB_DEVICE)
Some older USB devices got converted to this USB_HEADSET while still
using the old protocol.
There is no driver change needed, but the audio policy needs to be
changed.
Since vendors are simply using AOSP usb_audio_policy_configuration
Override it by ourself.

Change-Id: I5c43cd7c95f721914cf94f4dc20c992b4f6a24e9
2018-08-06 18:48:56 +02:00
Bruno Martins
c29e46cef9 polaris: Ship KPTI patched time daemon
* To go along with rebased kernel without having to revert
   KASLR commits.

Change-Id: If62275b5ac3d42d51edee7fe919d3b0aeb8ccd19
2018-08-04 12:08:26 +02:00
Bruno Martins
4930ecbe48 polaris: Override framework compatibility matrix
* Declare support for 26.0 sepolicy version to allow booting
   with prebuilt O-MR0 vendor images.

Change-Id: I446cd051a6c1ecc04fe8202150ed1f81cb8482c0
2018-07-31 18:08:50 +02:00
Bruno Martins
3393520aa7 polaris: overlay: Disallow absolute zero as minimum brightness
* Otherwise nothing is visible under certain light conditions

Change-Id: Ic13ada2f0e146c5c51871dee0e9ce1302a39f48a
2018-07-20 14:16:53 +01:00
Bruno Martins
50b90896eb polaris: Add stock system props
Change-Id: I15fa54396856af6d41a6f8d94998d47c65054fe3
2018-07-16 23:53:48 +01:00
LuK1337
6782ce5b86 polaris: Add VNDK 26->27 compat layer
Change-Id: I44838df783f77313d148f8ff543347ff8a87fceb
2018-07-17 00:21:31 +02:00
Bruno Martins
4e76172caa polaris: Populate initial blobs list
* This is just a completely raw list that will need quite some cleaning
   later on. Also note that even though these blobs share a common name
   with other Xiaomi SDM845 based devices, the list can't be currently
   commonized due to the fact that MIX 2S still ships with O-MR0.

Change-Id: Ib01c686bfb3b3e984cbe108e90eb0c2d30d17299
2018-07-17 00:19:14 +02:00
Bruno Martins
108eefaeec polaris: Blacklist fingerprint HAL key events
* The fingerprint HAL sends KEY_KPENTER (keycode 96)
   when fingerprint reader is tapped and device is unlocked.
   This is not useful at all, so disable it for now
   along with all other possible key events.

Change-Id: I757ef6f3533ba465732e7d6d3d77ec6d47001696
2018-07-16 22:39:17 +01:00
Bruno Martins
1bf2990d43 polaris: Add device input configs and keylayouts
Change-Id: If4c7d64f473d97e28652a6c7333be9f20c84b190
2018-07-16 22:38:46 +01:00
Bruno Martins
c540fb1b30 polaris: overlays: Set up lights
Change-Id: I0ad2cea2f1b33e0a3299349ea41134dcdd93fd76
2018-07-10 13:02:20 +01:00
Bruno Martins
371e6b277b polaris: overlay-lineage: Configure hardware keys
Change-Id: I30e7c168db9b762c198e735981d63c4d6e3faf3f
2018-07-08 01:07:12 +01:00
Bruno Martins
fb15e07222 polaris: overlay: Import power profile
Change-Id: I0b324dd68fc5961ffbc4958125823722cac1219d
2018-07-08 01:07:12 +01:00