Commit Graph

791 Commits

Author SHA1 Message Date
Arian
5875449baa
sm6150-common: sepolicy: Label fastrpc adsprpc wakeup nodes
Change-Id: Ia0268c7aa4cc9344e5a2a76dd661ff1a15b747ef
2021-07-14 20:59:14 +02:00
Arian
a73e27936f
sm6150-common: Set permissions on /dev/xiaomi-touch
Change-Id: I94f9b64f983098b6497ffcdee9817c72d471528f
2021-07-13 22:13:56 +02:00
Arian
18ee1a3486
sm6150-common: parts: Rename doze brightness to always on brightness
Change-Id: I0950ee3d5b4bae6ada1a8defcd6a13c20ae222a9
2021-07-12 18:26:36 +02:00
Arian
67e472edba
sm6150-common: parts: Ensure doze_mode is set to LBM when disabling AOD
* When setting the doze mode to HBM, disabling AOD and enabling it again
  the doze mode was still set to HBM but the listpreference was reset to
  LBM.

Change-Id: Ibd9682c97757335ac4df48a21c7b64f7b36dd585
2021-07-12 18:23:26 +02:00
Arian
7764bbddc7
sm6150-common: parts: Hide doze brightness if it is not supported
Change-Id: Ib88dd2db8c872ebb2d4daf3f3b0c996d766dfd9e
2021-07-03 21:36:12 +02:00
Arian
10f101e143
sm6150-common: parts: Enable doze_status on screen off
* This allows to enter the doze state faster when unlocking from lockscreen

Change-Id: I1900436c974a605555275ef67b283ead2cf720b5
2021-07-03 21:23:39 +02:00
Arian
dd8b25b294
sm6150-common: parts: Set default doze brightness icon
Change-Id: I9d6b4b045af4a0e3a8865e17fc88b72e93c9c711
2021-07-03 21:23:39 +02:00
Arian
8720bb5de8
sm6150-common: parts: Add support for zero brightness doze mode
Change-Id: I027f7d1b3787b5b7140315ca6dced19a1f93361c
2021-07-03 21:23:37 +02:00
Arian
727405d31d
sm6150-common: parts: Implement doze modes and auto brightness
Change-Id: I03888d1997b09cb539952dfed935a7ace5e3444c
2021-07-03 21:23:14 +02:00
Luca Stefani
c202629e95
sm6150-common: parts: Add local FileUtils
Change-Id: I5e06015c8ea65399bb3643183dd17641ca0d3ad7
2021-07-03 20:40:16 +02:00
Arian
93ca9d0fe5
sm6150-common: parts: Move doze gestures into a preference category
Change-Id: I9ab73bcc8c590e6f93106922ecf4830f558ffcb3
2021-07-03 20:40:00 +02:00
Arian
8cf1d5dda3
sm6150-common: power: Use xiaomi-touch to handle dt2w
Change-Id: I73f95e32daf9e2c702662ac2c2c8182e6b8eb214
2021-06-25 19:22:00 +02:00
Arian
cf3b3272ae
davinci: sepolicy: Label idle_state sysfs nodes
Change-Id: Iad52c65df63f858c0019155d47ccbb1ee46b5984
2021-06-25 12:31:35 +02:00
Robb Glasser
3135fd7008
sm6150-common: rootdir: Enable idle_state mechanism
Allows us to check the idle state of the display in order to use perf
hints to improve system performance.

Bug: 69270928
Bug: 69915886

Test: Booted and cat-ed the affected files
Change-Id: I8717093e9b8ed9ed35b6ca51a20225abbf71f775
2021-06-25 12:10:25 +02:00
Arian
c1baef0dd8
sm6150-common: sepolicy: Address power HAL denials
Change-Id: I7327bd54c0d12fde03472695a5598d2a3d22f716
2021-06-21 23:43:39 +02:00
Arian
3d1697d76f
sm6150-common: rootdir: Enable PowerHAL hint processing
Change-Id: I4de6ec81eaf002c094df53ff26ed24db02972dfe
2021-06-21 23:43:39 +02:00
Kyle Lin
0280d9cb17
sm6150-comon: rootdir: Modify the cpuset setting
Because the arch is similiar with SDM670, we aling the setting with
bonito.

Bug: 142552311
Test: build , munaual check the settings
Change-Id: Ica44125c8ed71a85cfd6bde77c9107bceed7b094
2021-06-21 23:43:39 +02:00
Arian
7d83a2b6a6
sm6150-common: rootdir: Kang scheduler settings from sunfish
Change-Id: I2fd16a6d94f4d306960429e88569b1abf1a4a58e
2021-06-21 23:43:39 +02:00
Arian
50f85ceb1b
sm6150-common: rootdir: Kang governor settings from sunfish
Change-Id: I91b54aee5020f7e43ce0d9a6637aea07a06c1259
2021-06-21 23:43:39 +02:00
Arian
656a445165
sm6150-common: rootdir: Remove CAF input boost
Change-Id: I4fd567962dac1e043139eb01ae756ad00a67c528
2021-06-21 23:43:39 +02:00
celtare21
bc4811101f
sm6150-common: rootdir: Disable core control
Change-Id: If8a0eda3353a164f83409cb4785de93cb2cce971
2021-06-21 23:43:39 +02:00
Andres Oportus
e66b019316
sm6150-common: rootdir: Add SchedTune configuration
Bug: 36367381
Test: Boot and check stune configuration effect on sysfs

Change-Id: I838c31d164684a5d88550c92284b65bb50f2ed56
Signed-off-by: Andres Oportus <andresoportus@google.com>
Signed-off-by: Arian <arian.kulmer@web.de>
2021-06-21 23:43:39 +02:00
Bruno Martins
7e0b1d8983
sm6150-common: Migrate to Xiaomi power HAL AIDL
Change-Id: I42170d51a517170b58d532addd9c38496e43457c
2021-06-21 23:43:14 +02:00
Arian
87351664e4
Revert "sm6150-common: rootdir: Override power HAL service and add input group"
This reverts commit 585f60615e881235e35ad042d6fe73c854f26ffd.

Change-Id: Ib97effba6f25e0adb787d903d5c55229a64b4862
2021-06-18 18:37:35 +02:00
Sultanxda
ce8581cf92
sm6150-common: Disable AUDIO_FEATURE_ENABLED_KPI_OPTIMIZE
We're not using perfd so this is useless.

Change-Id: I01c5e5985ba0f06b84e3e4fd59d8e5cc9659d89a
2021-06-18 18:37:35 +02:00
Wei Wang
fe82d2824b
sm6150-common: Remove QTI perfd
Bug: 69270928
Test: Build and boot device and test camera
Change-Id: I87b283206f462fb5c8ec9cdd303ae2934fe9bfc4
2021-06-18 18:37:26 +02:00
LuK1337
907ff515f3
sm6150-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2021-06-18 18:34:31 +02:00
dianlujitao
548f696fba
sm6150-common: audio: Disable audio ULL mode
* fixes crackling noise while playing some sounds

Change-Id: I9cd1d63fbd1f55a034944f419ae42121bae9c51d
2021-06-18 18:34:31 +02:00
Nolen Johnson
7068a36b3f
sm6150-common: Simplify AVB flag logic
* AVB's `--flags 3` arguement builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Signed-off-by: raghavt20 <raghavtandon2000@gmail.com>
2021-06-18 18:34:30 +02:00
Rasenkai
724c2c814c
sm6150-common: Welcome Redmi Note 10 Pro
Signed-off-by: Rasenkai <rasenkai99@gmail.com>
Change-Id: Iee3b13051419f446a2d17e08dfc933c13765b7d6
2021-06-18 18:34:30 +02:00
Chia-I Wu
2db5017df7
sm6150-common: overlay: Remove COLOR_MODE_SATURATED
It is replaced by COLOR_MODE_AUTOMATIC.

Bug: 110524699
Test: Settings > Display > Advanced > Colors
Change-Id: I116b50fde456a24c90fd83969cd2fc30f84947ee
2021-06-18 18:34:30 +02:00
Gil
b612c65f72
sm6150-common: overlay: [Display] Enable adaptive color mode
Enable Adaptive color mode setting.

Bug: 143513730
Test: Boot test and measure the adaptive color value

Change-Id: I969ec6c3cb1d092a33c0e3a028ff38ad7115dfe2
2021-06-18 18:34:30 +02:00
Christine Franks
3ee56cb4c4
sm6150-common: overlay: Add config value for a11y color mode
Accessibility transforms require a specific color mode that is not
always available for the user to select.

Bug: 130376719
Test: atest com.google.android.config.pts
Change-Id: Ia3211d5aa6e117c5361dea44d944064b23260a81
2021-06-18 18:34:30 +02:00
Adithya R
6139e3481e
Revert "davinci: overlay: Hide sRGB toggle in developer options"
This reverts commit e793668fec.

Change-Id: Ia6a2bd810b0c98efca3fecffe174ba53067013bd
2021-06-18 18:34:30 +02:00
Arian
83fd7346ac
sm6150-common: overlay: Decommonize brightness overlays
Change-Id: I70b781a8d9a30555848dbf2783c69aeb4b9e1425
2021-06-18 18:34:30 +02:00
Chirayu Desai
a9988f304c
sm6150-common: rro_overlays: Move CarrierConfig to RRO
Change-Id: Ia57acd244608848f70fdcc30d5694c919db60671
2021-06-18 18:34:30 +02:00
Arian
ce60eb66d0
Revert "sm6150-common: Exclude CarrierConfig overlays from RRO"
This reverts commit 959ceb5f99.

Change-Id: I0b82719f123218d0f63f621dfe588421217975ef
2021-06-18 18:34:30 +02:00
Arian
da8bb7dbb8
sm6150-common: Import missing libops.so
This is required with blobs and firmware from global stable Android 11 builds.

Fixes this error:

05-31 00:05:23.600   687   687 E QCOM-OEMCrypto: Error at trusted_app_decrypt_cenc : 2563
05-31 00:05:23.600   687   687 E QCOM-OEMCrypto: TA Result : 45 OEMCryptoResult : 38
05-31 00:05:23.601   687   687 I QCOM-OEMCrypto: -----------------------------------------------------------------
05-31 00:05:23.601   687   687 I QCOM-OEMCrypto: Error stack trace[5] for TA version 1:71
05-31 00:05:23.601   687   687 E QCOM-OEMCrypto: 	 drm_get_ops_obj : 1174
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 drm_enforce_hdcp_level : 1204
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 validate_key_control_for_decrypt : 1216
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 process_subsample : 1403
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: 	 i_widevine_session_decrypt_cenc : 1739
05-31 00:05:23.602   687   687 I QCOM-OEMCrypto: -----------------------------------------------------------------
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at decrypt_data : 1874
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at _oecc48 : 2322
05-31 00:05:23.602   687   687 E QCOM-OEMCrypto: Error at _oecc105 : 3119
05-31 00:05:23.602   687   687 E WVCdm   : [crypto_session.cpp(1541):Decrypt] OEMCrypto_DecryptCENC failed: status = 38
05-31 00:05:23.602   687   687 E WVCdm   : Decrypt error in session sid8 during a sample with protected data: 179

Change-Id: Icb7467e1e4b4e9260c34ac7a0bda6f48e5c6f34a
2021-06-18 18:34:30 +02:00
Arian
8ab4fcd576
sm6150-common: Include c2 manifest from media HAL
Change-Id: I9ea0322af97284ef4b995df185d0c827285c7194
2021-06-18 18:34:30 +02:00
George Gao
111ebf4c14
sm6150-common: media: Use omx raw decoder on 24bit pcm playback
Use omx pcm decoder to decode 24 bit pcm files

Change-Id: I28938afcb1d18bc85a0e2c77786bf15aff91a196
2021-06-18 18:34:30 +02:00
Arian
eb012499c5
sm6150-common: media: Apply xiaomi's media codecs tuning
Change-Id: I85435c5a63a85330ce6a7b365d9fdf90446e7bee
2021-06-18 18:34:30 +02:00
Arian
c0604d8e7d
sm6150-common: media: Import configs from LA.UM.9.1.r1-09600-SMxxx0.0
Change-Id: I8dedddcf6a27b93c67623ab26585e60287df26bd
2021-06-18 18:34:30 +02:00
Arian
37495bd2ac
sm6150-common: Use sdmmagpie_v1 media configs
* These are being used on stock

Change-Id: Iff4be00bb6d7559bea41986ccc72049015ac1bdf
2021-06-18 18:34:30 +02:00
Arian
690cccbaba
sm6150-common: Decommonize lights HAL and overlays
* toco and sweet don't have a notification light and since backlight
  control has been moved to hwc this HAL is not needed for these targets.

* Keep the HAL itself in common tree so that devices which need are able
  to build the lights HAL which is common for all targets with a
  notification light.

Change-Id: Ia4c3c96e49b5ce58f4f55b92a65321fb258f8975
2021-06-18 18:34:30 +02:00
Arian
d9a7822a99
sm6150-common: Update blobs from sweet V12.5.1.0.RKFMIXM
Change-Id: I1a2829db5a0e1b5640994ac36e1174b67a065628
2021-06-18 18:34:30 +02:00
Arian
31a323b5c6
sm6150-common: wifi: Update from sweet 12.5.1.0
Change-Id: Ida68a9fc01791a2c3caa1b3c07d83001dad2dbcc
2021-06-18 18:34:30 +02:00
Arian
2f7c22b799
sm6150-common: Enable dynamic SAR
* Enabled as per sweet 12.5.1.0

Change-Id: I6c1dd7b92f1055f9c54a69eb0ce3a7675bac0bd0
2021-06-18 18:34:30 +02:00
LuK1337
b29f19ccdb
sm6150-common: Drop unnecessary fqnames from manifests
* These are only needed in case we want to
  advertise interfaces with different version
  than the HAL definition itself (see DRM).

Change-Id: I3a5c367730ef79ed6260b2d7142bb6ca9eaa4a92
2021-06-18 18:34:05 +02:00
Adithya R
28ff150926
sm6150-common: Get rid of megvii shim
This reverts commit ab51fafbdd.

Change-Id: I9c82f84ad4bd9edc0ee4a8c1742b4a3aaf4bd0a3
2021-06-18 18:34:00 +02:00
Adithya R
605de37605
sm6150-common: Decommonize cnss-daemon
* surya needs stock cnss-daemon to load j20 custom
   bdwlan firmware for 5ghz wifi.

Change-Id: I34a7165f20740858c92355e92e5db52291fc25aa
2021-06-18 18:34:00 +02:00