Commit graph

223 commits

Author SHA1 Message Date
Luca Stefani
ae456c5385 sdm845-common: Add DPM support
Change-Id: I2461624105782b88da682b01d989b0467b68aff3
2019-01-14 18:13:28 +01:00
Luca Stefani
5cd233a168 sdm845-common: Add CNE support
Change-Id: I613e2682aa3b234592b37936627b4141171c9cc9
2019-01-14 18:12:50 +01:00
Luca Stefani
c6bbf8f2b0 sdm845-common: Add QtiTelephonyServicelibrary
Change-Id: I2e0c297798b9f255127012b562631a2bb90fd965
2019-01-14 17:56:39 +01:00
Luca Stefani
3b6d63af37 sdm845-common: Enable AOD
* But disable it by default

Change-Id: Ie85e49e38503dc531f262138d8bed465632a41c0
2019-01-12 21:11:10 +01:00
Luca Stefani
f4363f3cff sdm845-common: Specify we provide qti-telephony JAR
Change-Id: Ia0a86eedc2241e0c7f819c947b5944f672635058
2019-01-12 20:58:48 +01:00
LuK1337
ff74c36010 sdm845-common: Add qti-telephony-common from xiaomi sdm845
Change-Id: I5d073075c7b6dac7998be78f65815260721a911f
2019-01-12 11:01:46 +01:00
Luca Stefani
c12f46a598 sdm845-common: Pin ims.apk
Change-Id: I83f6a43b1bebd44ac4cb3b15b7b7edfea4dc4d68
2019-01-12 11:01:39 +01:00
Luca Stefani
8c75e16b53 sdm845-common: Switch to stock qti_whitelist.xml
Change-Id: Ic8f03ab186e5c9673538b2c6103ec7af2592ddfe
2019-01-12 11:01:39 +01:00
Luca Stefani
91179c76dd sdm845-common: Enable color matrix support
Change-Id: Ie41804259511e3d66a3528c7a4e2cca57d90970e
2019-01-12 10:59:45 +01:00
LuK1337
3bce0747b3 sdm845-common: Move OnePlusPocketMode to enchilada
* Fajita won't need it.

Change-Id: I7627de95fc445d123869f76ceb92ddf67dc49449
2019-01-11 13:49:06 +01:00
Luca Stefani
fd0806b534 sdm845-common: lights: Halve blue brightness as well
* Our not so RGB led seems to have a really low red led
* Matches stock behavior

Change-Id: Ib1f9cb7803971b939ad69d59d1437729bf86a4a4
2019-01-08 16:01:53 +01:00
Luca Stefani
f67403199e sdm845-common: doze: Move Utils.checkDozeService in an handler
* There's no need to manually write to the gestures prefs
  as long we are sure the handler is run after we return true
  in the onPreferenceChangeListner

Change-Id: I090c0c6c91267aff69c45365b95b5f5e26d07b07
2019-01-08 15:15:49 +01:00
Luca Stefani
5736ed5e06 sdm845-common: doze: Set entry timestamp before registering sensor
Change-Id: Ifa8aa1ded029c3c7be44ac94355e6814c080be44
2019-01-08 15:15:44 +01:00
Bruno Martins
ea2cc87e51 sdm845-common: doze: Add AOD support to Ambient Display
* This makes the always on display mode feature visible for those
   devices that explicitly set it as available via AOSP overlay.
   Should only be enabled on devices where the display has been tuned
   to be power efficient in DOZE and/or DOZE_SUSPEND states.

Change-Id: If543936f9421dd7a6c0be594f7cb76afb227e34b
2019-01-08 15:15:43 +01:00
Luca Stefani
8e87bbae81 sdm845-common: doze: Add missing pocket mode hooks
Change-Id: I81af20cb9f737e0a2260c42fc91530572b16ec5e
2019-01-08 13:33:43 +01:00
Luca Stefani
7eac1259ab sdm845-common: doze: Add pocket mode support
Change-Id: I68498fb3e523fcc77a3db0ecb5d57c1a0df2a701
2019-01-08 12:27:32 +01:00
Bruno Martins
9966bf13b1 sdm845-common: Declare STATE_DOZE support
* This is required for Ambient Display to work properly.

Change-Id: Ibad86be4e1c43a221fc2224d0a8f8ca2c938a6c7
2019-01-07 13:41:45 +01:00
Wei Wang
842f449872 sdm845-common: power: Use monotonic time for interaction boost
Using the wall clock will cause boosts to be disabled
when/if the clock is adjusted backward.

Bug: 29191415
Bug: 29208304
Change-Id: I8af5f40b46d996ce7bccb8324fc186e2f3a5b267
2019-01-05 23:37:36 +01:00
BeYkeRYkt
9137790aed sdm845-common: power: Handle launch and interaction hints
* MP-CTL does not handle POWER_HINT_INTERACTION and POWER_HINT_LAUNCH
   directly. Requests for processing are sent by Qualcomm BoostFramework
   (QPerformance) at the framework service level. Since we do not have
   BoostFramework, process POWER_HINT_INTERACTION and POWER_HINT_LAUNCH
   in PowerHAL to ensure a sufficient level of performance.
 * For proper operation, perfboostsconfig.xml file is required.

Change-Id: I9fedcbaa189147c91d932711c831c2ce038a7ec7
2019-01-05 23:37:36 +01:00
Joey
3fc954c7bd sdm845-common: doze: Match Pie settings UI
Change-Id: Ia1cde37923c55faf057189f7085b69522e2802ef
2019-01-05 20:21:27 +01:00
Luca Stefani
7c492e1318 sdm845-common: Remove fpc1020 keylayout and idc
Change-Id: I7bedb12e272ef0f0f3b882f044c396787f1b1cc2
2018-12-24 22:40:54 +01:00
Luca Stefani
11b69a1f0c sdm845-common: Update audio policy configuration to match P
Change-Id: I2696213354167443e9442f8d29c1d1c11427a57d
2018-12-24 22:35:43 +01:00
Luca Stefani
922b46d9f1 sdm845-common: Build only 64bit power hal
Change-Id: I3dd347b6fa66bbb82224adf9081d1512920263da
2018-12-23 20:20:00 +01:00
Danny Baumann
b7f7fa2a3f sdm845-common: Properly label display control files
Additionally, allow system_server access to them.

Change-Id: I12ceb3970460282d10b240e8a12207e2fd3ca882
2018-12-23 20:18:42 +01:00
Luca Stefani
066ab27624 sdm845-common: Switch back to vendor HWComposer
* Starting from Open Beta 6 we can use OP HAL

Change-Id: I11f62cee8bd512c928724f385b4851b0504b753d
2018-12-23 20:17:39 +01:00
Erik Kline
80539d3208 sdm845-common: Use tether automatic upstream selection
(config_tether_upstream_automatic=true)

Test: as follows
    - built, flashed, booted
Bug: 32163131
Bug: 62648872
Bug: 63282480
Bug: 110118584
Bug: 110260419

Change-Id: I604cda53d6d37a33de3e3ccc65c0da781d21278b
2018-11-13 22:15:45 +01:00
Jorim Jaggi
b24594c0d7 sdm845-common: Pin HOME application
Test: adb shell dumpsys pinner after boot
Bug: 111132016
Bug: 78585335
Change-Id: I4ed0587ae5348bbe03ad9ac5f1c5b1726dbb8246
2018-11-13 22:15:34 +01:00
Luca Stefani
9dbff962fe sdm845-common: Set target cpu to cortex-a75
* cortex-a75 now fallbacks to cortex-a55, our LITTLE core

Change-Id: I32633ea8856785042a03617199b7ff2e25fe53af
2018-11-13 22:13:16 +01:00
Luca Stefani
dd8fab4df5 Revert "sdm845-common: Override AVB version in kernel cmdline"
* As of 78934c9 (change-id: Ie1efa6f1abd8fa8f495aededd145c0ab2c0c1fae)
  in frameworks/base if treble is enabled AVB check is skipped.

This reverts commit 6c408b0c2e.

Change-Id: I999d3cda434b21c9dc9d6d08c5b646cb61f778ca
2018-11-07 22:27:33 +01:00
Udaya Bhaskara Reddy Mallavarapu
880a57acbf sdm845-common: Enable 64 bit DRM plugins compilation
Enable 64 bit compilation for DRM plugins.
This will generate DRM plugins, HALs & oemcrypto_test in 64 bit.

Change-Id: I451db39edea3446d9816fcaba77caa8d3b097afb
2018-11-04 14:57:07 +01:00
Luca Stefani
ecd5acbbf9 sdm845-common: Update CarrierConfig overlay to P
Change-Id: I5445e069780bf8d1fc46b481544bb722498d3032
2018-11-04 14:56:57 +01:00
Luca Stefani
c40f9a7756 sdm845-common: Add missing qti permissions
* qti_libpermissions.xml is used by qcrilmsgtunnel
* qti_permissions.xml new perms are used by ims.apk

Change-Id: Ifced0869228ee49f3f8ec01c5398e201b93b7101
2018-10-31 19:14:47 +01:00
Luca Stefani
376b9bba32 sdm845-common: Update custom HWComposer for P
* CAF tag: LA.UM.7.3.r1-05500-sdm845.0
* Remove support for color profiles
  -> https://gist.github.com/d70bc5984b0212bb76da91fc472ecf82

Change-Id: I064a92e870899f4dd7254a13d4ba5c39d3acfda9
2018-10-27 15:25:56 +02:00
Luca Stefani
b13cd82641 sdm845-common: Remove android.hidl.base
* P vendor doesn't require it anymore

Change-Id: Ie5ffb4b71ae62b772e0f94cc4ec777f2fcf9b6a7
2018-10-17 16:03:47 +02:00
rago
ba90d97f83 sdm845-common: Set voice call volume steps to 7
Bug: 28426597
Change-Id: Icf78d9acec75c500982b1e4391af4d6f3933da37
2018-10-17 16:03:32 +02:00
Jean-Michel Trivi
9ab37ec48d sdm845-common: Media volume: from 15 to 25 steps
Test: play media, use all 25 vol steps and observe varying attenuation
Bug: 32195657
Change-Id: I7ac87df0b2b15de3a7bb87e739bd88ef7b185236
2018-10-17 16:03:07 +02:00
LuK1337
047997a3be sdm845-common: Unset PRODUCT_FULL_TREBLE_OVERRIDE
* It's not needed since it's automatically set for any devices
  shipped with 26+.

Change-Id: I59e17fe3774af63dbea424be6206b77e0e6050ba
2018-10-14 14:48:34 +02:00
LuK1337
9fce32e23e sdm845-common: Move product_launched_with_o_mr1.mk inclusion to enchilada
* Obviously OP6T isn't going to launch with 8.1 therefore
  we got to move it to enchilada.

Change-Id: Ifec5e0ed00e751d9a9fdb945ddbd3054792bb3c6
2018-10-14 14:48:34 +02:00
Luca Stefani
4bce2e15f6 sdm845-common: Remove IOP system libs
* We now have runtime isolation enabled

Change-Id: Ie35d06e86fb3f2e7d42c9fc9d506458c2acd55d5
2018-10-14 14:34:09 +02:00
Luca Stefani
67c854d7f1 sdm845-common: Remove unneeded xml permissions
* These don't exist in P anymore

Change-Id: I5746b02c107de315a4c6c0eb6aeb1ef54c111037
2018-10-14 14:34:09 +02:00
Luca Stefani
790fc7c7d9 sdm845-common: Add missing power_supply genfscon rules
Change-Id: I8d6716ce364891483701f38bcc855d84249154fd
2018-10-14 14:34:09 +02:00
LuK1337
4b1d9b429e sdm845-common: Allow appdomain to get vendor_camera_prop
* Some apps rely on this and won't work properly if they
  can't read this property. See ~ Snapchat.

Change-Id: I737e28f038941e6d18b96ff512f29dbe0ad7b7e4
2018-10-14 14:34:09 +02:00
LuK1337
602b987857 sdm845-common: Add aptX blobs
* For some reason they decided to move these back to /system.

Change-Id: I1ec1b7744484240386fc7c4594e418f4e9c0b1f0
2018-10-14 14:34:09 +02:00
LuK1337
788f9b7522 sdm845-common: Allow hal_usb to read and write to sysfs_oem
Change-Id: I29187ad7844b953e63e356c405f4a18e107d902b
2018-10-14 14:34:09 +02:00
LuK1337
977444af69 sdm845-common: Load A2DP configuration from a2dp_audio_policy_configuration.xml
* CAF configuration doesn't really work for us.

Change-Id: Ib062430f9005a67354e2352a81fffd8cadc3c7cf
2018-10-14 14:34:09 +02:00
LuK1337
1272127b9a sdm845-common: Bind mount our own audio policy configuration
Change-Id: I830b0488d34f76169bceb33503eb701b3dfbfd27
2018-10-14 14:34:09 +02:00
LuK1337
25e29b6576 sdm845-common: Allow system_app to getattr on sysfs_fpc_proximity
* Required for pocketmode app.

Change-Id: I085839a449529d12cb3911ebfbab97f8e1ef155f
2018-10-14 14:34:09 +02:00
Bruno Martins
a92b254623 sdm845-common: Adapt for local LineageHW java overlays
Change-Id: Icb2b9810217f4b4d442ab83a16f455bd2ed82071
2018-10-14 14:34:09 +02:00
Christian Oder
86d08a2231 sdm845-common: Define DTBOIMG Size
Change-Id: I2049fe6ac4eca6061a1df22630d0708b7a81fc08
2018-10-14 14:28:13 +02:00
Christian Oder
cb2b662a34 sdm845-common: Build disabled VBMeta image
Change-Id: I381feef8f6fefc8449ca50d85d704b67bcc8a77e
2018-10-14 14:28:13 +02:00