Commit graph

402 commits

Author SHA1 Message Date
Luca Stefani
ae313b75b8 sdm845-common: Enable subsystem restart
* This is a failsafe to recover critical services
  running on the hexagon CPU ( eg. modem )

Change-Id: Ib54c39fb9d66d8498f68d64666a2d345b9252f1c
2018-08-11 20:12:36 +02:00
LuK1337
edc089ab26 sdm845-common: Remove unnecessary languages_full.mk include
* It's already included in full_base_telephony.

Change-Id: I7547ff447e81641e74fd911a12f5a9f0df9e5ccf
2018-08-07 00:30:59 +02:00
LuK1337
4ed29836d8 sdm845-common: Import pocketmode app and SELinux rules for it
* Based off android_device_oneplus_msm8998-common pocketmode
  app but without fpc10xx support and using actual OnePlus
  pocketmode sensor.

Change-Id: I73eaf7e00afd08cdad71d323b6821eb8a0160cd2
2018-07-27 20:23:44 +02:00
LuK1337
ee329ad0bb sdm845-common: Add OnePlusDoze app for pickup sensor handling
* Based off android_device_oneplus_oneplus3 doze app but
  with proximity related features stripped out and updated
  pickup sensor name.

Change-Id: I9f81b153948069cd4370c75817f12e91f6869e1d
2018-07-27 11:38:34 +02:00
Luca Stefani
73f4be30aa sdm845-common: Specify device has a notch
Change-Id: Ib912728020f85c820b10d5102365dc37f9a54342
2018-07-26 21:44:43 +02:00
LuK1337
5f145064df sdm845-common: Set default clock position to left
Change-Id: I2b597579851434972cd29510ff90dfa8ddc6564f
2018-07-26 21:43:56 +02:00
Luca Stefani
213d9f2977 sdm845-common: Add IMS support
Change-Id: Iffab2d9311a00d9c995c430bc684c14cec6e4454
2018-07-26 09:14:04 +02:00
Luca Stefani
559acc5142 sdm845-common: Include qcom {private,public}/sepolicy
* Will be used by IMS, CNE and DPM

Change-Id: Iba7506007d19b0f48d67b7fbf409fac6975414f8
2018-07-26 09:12:46 +02:00
LuK1337
3ee06defb7 sdm845-common: Fix nothing being shown during offmode charging
Disable initial blank, and set a default brightness that can be used by
kernel to be written to panel when it's re-enabled.

Change-Id: I35fbd0bc7e816a8833cbeda145415db4fe521adb
2018-07-26 09:08:30 +02:00
LuK1337
9757014338 sdm845-common: Import CarrierConfig vendor overlay
Change-Id: Ibc485a3f4d764cd2e91e74a6ab34e0e0ca125ef5
2018-07-26 09:04:30 +02:00
Danny Baumann
8ab3ada4d7 sdm845-common: Add permission for power-off alarm framework
Change-Id: Iaffc15bd748cc5cafec26aa9849e480c5be7b3c9
2018-07-26 09:04:17 +02:00
Luca Stefani
9850301224 sdm845-common: Load qcacld from system
* This will implicitly add every kernel module to system

Change-Id: I1fb827536a7cd6cb0d46c9dbb78da4f19e80492b
2018-07-26 09:00:33 +02:00
Danny Baumann
646a48d17f sdm845-common: Improve LED ramp generation algorithm.
Distribute ramp duration equally to both on and off time, use more
ramp steps (16 instead of 8) and lower green brightness to better match
brightness of red and blue (green LED is much brighter than the other
two).

Change-Id: I48d94b4020515a5cbb15486f8d44dd151b475ab0
2018-07-26 08:57:26 +02:00
Danny Baumann
c162e21253 sdm845-common: Add support for display modes and HBM
Change-Id: Ic93612e6ffeb0103778bd05bfd1c2921e433cd9f
2018-07-20 13:37:35 +02:00
Danny Baumann
10c61538af sdm845-common: Add support for custom hwcomposer
The one in the vendor partition has broken color transformation.

Change-Id: I93e989af5573902eb7013656268e3298cba6c232
2018-07-20 12:26:22 +02:00
Luca Stefani
664a9794fa sdm845-common: Enable double tap to wake support
Change-Id: I78b853eada19aba7b4569c25b92073ca27bde548
2018-07-19 22:13:43 +02:00
Luca Stefani
924e50ddc2 sdm845-common: Add power hal
Change-Id: I764cccb93b01ea2bfaca4cfe93ac314b7c680d5d
2018-07-19 22:13:43 +02:00
Luca Stefani
3c7edbc4a3 sdm845-common: Add a KeyHandler for tri-state-key events
Change-Id: I22a7ee5b7eec5667b14f1a587a6d0138e77dc0f3
2018-07-19 22:13:32 +02:00
Luca Stefani
89203b453e sdm845-common: Add tri-state-key daemon
Change-Id: I796f3853ac87df78a0d1a890c663e312a0ee2d1b
2018-07-19 22:13:32 +02:00
Danny Baumann
6f2dd6a0c7 sdm845-common: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2018-07-19 21:46:36 +02:00
LuK1337
fa4a4e722c sdm845-common: Add OnePlus's vendor platform signature
Change-Id: I32cbce60452075b43269c62378c8fdb64497664d
2018-07-19 21:46:26 +02:00
LuK1337
8f5f8a46b9 sdm845-common: Add ANT+ support
Change-Id: I722da6672e91ee52e004eadf0e123f813db81d8e
2018-07-19 21:45:48 +02:00
LuK1337
e4d49c24d8 sdm845-common: Enable OTG by default
Change-Id: Ib25be9f50a796e5ceafc598b6f63d8e83cab6025
2018-07-15 23:14:34 +02:00
Christian Oder
95206e66be
sdm845-common: Add basic permission file for HotwordEnrollment
Change-Id: I2986ba3599fe65a8da27649d98d70cd548257aa8
2018-07-15 21:42:59 +02:00
Luca Stefani
042fc542bb sdm845-common: Enable sustained performance mode
Change-Id: Iefd9b7aea0d04c7faa9af8a42874a218fff43499
2018-07-15 14:13:35 +02:00
LuK1337
c9b24dcffc sdm845-common: Enable proximity check for touchscreen gestures
Change-Id: I334ba5f31ba5802dbbffdec9dfcbcc40ade05be2
2018-07-13 12:04:26 +02:00
LuK1337
0b10e12ab6 sdm845-common: Provide our own vbmeta image
* We can't use /disabled/ vbmeta image,
  we are forced to use OnePlus vbmeta with
  \x03 at 0x7b.

Change-Id: I784db700710cb793092ec97dbc6975f0c26ae332
2018-07-13 12:01:51 +02:00
LuK1337
8796a87087 sdm845-common: Add A/B updates support
Change-Id: Id91fde75da524f1a9729ecd5e29d3fd741e7e11e
2018-07-13 12:01:48 +02:00
Luca Stefani
3b332363e4 sdm845-common: Import bootctrl and gpt-utils
* From CAF LA.UM.6.3.r4-04300-sdm845.0, modified to build with VNDK current

Change-Id: I0ad3c54134a95626521048331b9be9eee04b508d
2018-07-13 12:01:45 +02:00
LuK1337
ea14b67acf sdm845-common: Disable ZSL by default
* ZSL breaks camera in apps such as:
  - WhatsApp
  - Instagram
* Also it's disabled by default on OOS as well.

Change-Id: I9005e0eba3c522e3680f8d679b3a271fb1c6449f
2018-07-12 16:41:35 +02:00
Joey Rizzoli
de7a524f4b sdm845-common: Add touchscreen gestures lineagehw
Change-Id: I40a656e90f0b6f2b4ae6b596d4c28cc383b7c9fa
Signed-off-by: Joey Rizzoli <joey@lineageos.org>
2018-07-12 15:25:59 +02:00
Luca Stefani
3ce286543d sdm845-common: keylayout: Disable unwanted keys
* They may trigger some unwanted behavior in some apps

Change-Id: Idb7c1b6f83f299027c8bfb0e1660945288f57662
2018-07-11 08:02:30 +02:00
Bruno Martins
b67dd8e095 sdm845-common: Fix typo from CodeAurora in the QTI whitelist
* Let com.qualcomm.qcrilmsgtunnel break free

Change-Id: I6243a6d21da7709bf6612270d7638f1231b9f601
2018-07-10 10:36:34 +02:00
Ruthwar Kumar Ambeer
fb4875cfc3 sdm845-common: Add background atel services in whitelist
telephony services are white-listed who all need
to freely run in the background. This is temporary
work-around and some of the services will be
removed from the list based on the feasibility.

Change-Id: Ice11429b5b78d5786dc701251b507b7dac5745ee
2018-07-10 10:36:20 +02:00
Luca Stefani
6f47f5885e sdm845-common: Import media_profiles_vendor.xml
* Modified to make it working with AOSP

Change-Id: I921e195f512626237c5315bd4de0da63778da078
2018-07-10 09:26:25 +02:00
Luca Stefani
e6415f8b74 sdm845-common: Add more system props
* Audio, display and perf props

Change-Id: I6907dbaad4045a2d6b878a7ce007d3e79282e331
2018-07-10 09:25:30 +02:00
Luca Stefani
4894f8ee0b sdm845-common: Add missing leds permissions
Change-Id: I63c862836c50ac55e6ac490233651c64e2b73649
2018-07-10 09:02:28 +02:00
Luca Stefani
d71853b7ce sdm845-common: Add missing system props
* They are present only under the system build.prop, add them back

Change-Id: I95d24002829cd2704cc0649fcd37d5f7a7eca466
2018-07-09 13:25:39 +02:00
Luca Stefani
8f3a8b9b86 sdm845-common: Add HotwordEnrollment blobs
Change-Id: Ifcae5641ba0056aac008c3039ec27bfa85157b7f
2018-07-07 21:39:50 +02:00
LuK1337
889bee0b3f sdm845-common: Import fingerprint keylayouts and idc files
Change-Id: I7919c2524bfb663351e376a8eb5bbf82a93f633c
2018-07-07 21:23:00 +02:00
LuK1337
118f6920b5 sdm845-common: Build our own lights HAL
Change-Id: I0e0d2db5c109778b86ab54101b70f0d3856195cb
2018-07-07 21:22:51 +02:00
LuK1337
6c408b0c2e sdm845-common: Override AVB version in kernel cmdline
* Fixes vintf vendor <> system mismatches, see:
  Runtime info <==> Framework Compatibility Matrix? 0, AVB version 1.0 does not match framework matrix 0.0

Change-Id: Ia26a84cb38e2f03025809a3ec52587481a6d8217
2018-07-07 21:13:22 +02:00
Danny Baumann
89be260049 sdm845-common: Disable factory HAL service
This one apparently is present in older versions of the vendor
partition. Stop it as it can't load properly and we don't need it
anyway.

Change-Id: Ie88dbdff34072c128bd815cff4f546a742a71fd0
2018-07-07 21:12:11 +02:00
LuK1337
b251bc22ad sdm845-common: Add dashd
Change-Id: I3afeaf04892ed031dbf3715edd37919d8d398e22
2018-07-07 18:44:54 +02:00
LuK1337
30c23f939b sdm845-common: Build Snap
Change-Id: I336d0d6cd8c9a0d6cf36784403388072c03e7b1b
2018-07-07 18:44:54 +02:00
LuK1337
adf9bfbe4e sdm845-common: Add recovery support
Change-Id: Id44d9793e0ea5fd1359f661ec6a9a1784514dbd2
2018-07-07 18:44:54 +02:00
Danny Baumann
feb2b339bc sdm845-common: Adjust SystemUI layouts to compensate for notch.
In particular
- move carrier name under notch in QS panel
- adjust keyguard status bar height
- adjust volume panel padding

Change-Id: Idb6f5a12a5dc50635bf962ac53845c952180ab7e
2018-07-07 18:44:54 +02:00
Jesse Chan
dff3115cc8 sdm845-common: overlay: Enable option for full screen aspect ratio
Change-Id: I2a1b2acc5ed97ccb6795dc371c2b3ac9cb4f9d03
2018-07-07 18:44:54 +02:00
Hernán Castañón
903b01d6f5 sdm845-common: overlay: Set higher status bar height
This will help a bit on getting a proper status bar size to match the notch.

Change-Id: Ica1306eec8036aa2e67a8c1d85059c592aaa564e
Signed-off-by: Hernán Castañón <herna@paranoidandroid.co>
2018-07-07 18:44:54 +02:00
Jesse Chan
5216a03274 sdm845-common: overlay: Apply padding for rounded corner
Change-Id: I9f81f684d491ed447b7bdb2ca70f558bf75ebc67
2018-07-07 18:44:54 +02:00