Commit graph

864 commits

Author SHA1 Message Date
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
Luca Stefani
df8cb508a7 Revert "sdm845-common: Provide our own vbmeta image"
* P firmware allows us to use an empty image

This reverts commit 0b10e12ab6.

Change-Id: I1bf5af932f9fe46f83cc547c57c70351138702ea
2018-10-14 14:28:13 +02:00
Mathieu Chartier
9178bcd59b sdm845-common: Fix shared vdex name
The files in arm/arm64 are symlinks and pinning symlinks is not
supported. Pin the target vdex file intead.

Bug: 73990433
Test: manual
Change-Id: I313e1f53487c0a21b615f65dc64c21a1ecb4b7d5
2018-10-14 14:28:13 +02:00
Luca Stefani
efb158ad45 sdm845-common: Update tether overlays
Change-Id: I2a4226b9f3affa2b44b58933205ad8e2ec6f7afb
2018-10-14 14:28:13 +02:00
Lucas Dupin
b2c61d2e43 sdm845-common: Renamed config_dozeAfterScreenOff
New name is config_dozeAfterScreenOffByDefault
Bug: 73178121

Change-Id: Ie3d1ea5a2cc480655592bf6e49b37f5ea07f3f58
2018-10-14 14:28:13 +02:00
LuK1337
6e02427beb sdm845-common: Fix lights HAL denials
* OnePlus decided to label these sysfs_oem for some reason.

Change-Id: I4f9012d1583d5d9068751f273b3aa1537c2ce540
2018-10-14 14:28:13 +02:00
LuK1337
1207730aa7 sdm845-common: sepolicy: Allow init to chown/chmod on pseudo files in /sys
Change-Id: Idf9cca465b9db3cfc9714ce170c5bf965968f79d
2018-10-14 14:28:13 +02:00
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