Commit graph

317 commits

Author SHA1 Message Date
Anton Hansson
647531678e sdm845-common: doze: Set LOCAL_PRIVATE_PLATFORM_APIS
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Bug: 73535841
Change-Id: I61299717ab2a6a1fd9a14dde7e1c7961388f722a
2018-10-14 14:28:13 +02:00
Anton Hansson
d870ab5f1c sdm845-common: KeyHandler: Set LOCAL_PRIVATE_PLATFORM_APIS
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Bug: 73535841
Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
2018-10-14 14:28:13 +02:00
Luca Stefani
87734e04e8 sdm845-common: pocketmode: Add local FileUtils
* We don't really need lineageos sdk for one class

Change-Id: I5e06015c8ea65399bb3643183dd17641ca0d3ad7
2018-10-14 14:28:13 +02:00
Luca Stefani
73fc78d463 sdm845-common: Set 2nd CPU variant to cortex-a75
Change-Id: Icfcc4083f827a7a5ed83a05ec526feabac7ea57b
2018-10-14 14:28:13 +02:00
Luca Stefani
c26b6ced39 Revert "sdm845-common: overlay: Set higher status bar height"
* These props aren't working anymore, we must use the drawable overlay

This reverts commit 903b01d6f5.

Change-Id: I0ff95397a455840b4470bdf9a4b17258a9a5feeb
2018-10-14 14:28:04 +02:00
Luca Stefani
c114f9c532 Revert "sdm845-common: Adjust SystemUI layouts to compensate for notch."
* We're in P now

This reverts commit feb2b339bc.

Change-Id: Ic9ae02bbb1c4948b1152ffbce1bd51f2acbb02c0
2018-10-14 14:26:52 +02:00
Luca Stefani
9f04a3ff7f sdm845-common: lights: Update service entry for P
Change-Id: I3f557e1c2fc774e11326e0dc769fc7d25852d819
2018-10-14 14:26:52 +02:00
Luca Stefani
9248c23278 sdm845-common: Update media_profiles to P
Change-Id: I19fdf3b985d7d17c26a7c2fa52c594ca41fe6922
2018-10-14 14:26:52 +02:00
Luca Stefani
6de237d27b sdm845-common: Update some props for P
Change-Id: I02aa4ca0aded317d300ca3f03aecc0d03473f043
2018-10-14 14:26:52 +02:00
Luca Stefani
ec1f45e813 sdm845-common: Don't build vndk_package
* It's built by default if vndk is set to current

Change-Id: I2a00446046bafe265e5ac894656abc72514319d8
2018-10-14 14:26:52 +02:00
Luca Stefani
7bd8d2a26a sdm845-common: Update extra rootdir folders/symlinks for P
* Also update fstab.qcom to match these changes

Change-Id: I860bdec8a28b210a6bb2f155acce4bae18922e36
2018-10-14 14:26:51 +02:00
Luca Stefani
88d901fc67 sdm845-common: Enable vndk runtime isolation
Change-Id: I63f9fe3305490f764e74d21f505a8aca9ff687f1
2018-09-02 21:41:28 +02:00
Luca Stefani
0ca653ce15 sdm845-common: Update cmdline for P vendor
Change-Id: I67c9cbe6259df93a847d2f9cb99f7167b9835b99
2018-09-02 21:41:28 +02:00
BtbN
3f1b8156d3 sdm845-common: Add dependency on oneplus sdm845 kernel
Change-Id: Icbdd4a4df0765077c7294a0ca3e7c3ebed2fc042
2018-08-29 20:39:25 +02:00
Luca Stefani
c6f1c498c4 sdm845-common: Build dtbo
* Also add it to A/B list

Change-Id: Id7eca5ab0f62874fd69c58e6e0985d9826c735d8
2018-08-19 19:44:56 +02:00
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