262 Commits

Author SHA1 Message Date
Sebastiano Barezzi
dd47e7c538
sm6250-common: Drop power AIDL extension
Change-Id: Ied144ee0f7840ab43499d43f3d0c64dfd414d99f
2022-06-10 15:36:24 +01:00
Alexander Winkowski
eb2cc22dd9
sm6250-common: Remove zram writeback leftovers
It has been disabled in kernel because of memory corruption.

Change-Id: I50e4cdc39b38a510d39032253606ddec3e41d22c
2022-06-10 15:36:10 +01:00
Alexander Winkowski
63405e3d6f
sm6250-common: libinit: Override odm_dlkm and vendor_dlkm props
Change-Id: If601ae82e6bcaeec756f868575b2ae465f21156c
2022-06-10 15:35:43 +01:00
Alexander Winkowski
f785ecaa84
sm6250-common: Update blobs from V12.5.5.0.RJWINXM
Change-Id: Id7856c2376aaa7090625a8c93f641c339441cb50
2022-05-17 13:27:41 +00:00
Randall Huang
cbd27f8900
sm6250-common: remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
2022-05-17 13:27:32 +00:00
Alexander Koskovich
e88c1e8a67
sm6250-common: Drop all component overrides
* Qualcomm no longer disables these for targets
   that support RRO, e.g. all QSSI targets.

Change-Id: I0372817623e8d0e58926fbfb519671c3caa07b86
2022-05-17 13:27:31 +00:00
Alexander Winkowski
2cf33c94dc
Revert "Revert "sm6250-common: rootdir: Enable s2idle""
This reverts commit fcb861b2155ccb7753563aaaa6b9c9851eb4ec11.

Fixed:
https://review.lineageos.org/q/Idbb2e825c489e174d5701e0c315b51a3149bfe49

Change-Id: I73b3eb3dc9bba90aa4579b31d5122e1cfce52491
2022-05-17 13:27:30 +00:00
Alexander Winkowski
82ff8c9e03
Revert "Revert "sm6250-common: Drop prebuilt camera provider""
This reverts commit 095449565c9a13ed36f84b8fc927c0950bd851db.

I actually think it's camera apps' fault since GCam doesn't have any
issues with auxiliary cameras.

Change-Id: I4e75bb27e4508935c0862353c5dbb3e1bb32a69a
2022-05-17 13:27:29 +00:00
Alexander Winkowski
dbb8538d60
Revert "sm6250-common: Import QTI Codec2 HAL and switch to Codec2 by default"
This reverts commit c45471638ae1101cff57e7d8ad7070783771c87f.
2022-05-17 13:27:28 +00:00
Alexander Winkowski
a2b74f2450
sm6250-common: dependencies: Explicitly specify branches
Change-Id: I634cae3be0ae22a2d4bfc711cdcbd32d52b4766d
2022-04-14 20:06:55 +01:00
Alexander Winkowski
7b38336f3f
sm6250-common: rootdir: Fix typos
Change-Id: I5f4f1a6dd8c4ac4d7a2096d7416846eb66ff9fca
2022-04-13 18:46:07 +01:00
Jesse Chan
f7ab6fd063
sm6250-common: overlay: Enable auto brightness while dozing
Change-Id: I89c2318ef7f4585c20bff0c46e02e449aac46755
2022-03-31 17:13:47 +01:00
Alexander Winkowski
fcb861b215
Revert "sm6250-common: rootdir: Enable s2idle"
This reverts commit b037c145f5ae958a7471edf95de5590f4a5f2575.

s2idle happens to cause RCU stalls. Disable it until a solution is found.

Change-Id: If0a6c817f415f6ddbdc202423492a7d2ebf1d0fb
2022-03-29 14:47:11 +01:00
Alexander Winkowski
49c7ddc218
sm6250-common: Switch back to the default sepolicy path
This reverts commit 1379e4ef1725d84e816ea39ac68f453a90477a1f.

Change-Id: I1f05b4040d7e3e28a718e92aa40532e2afa84780
2022-02-23 17:59:03 +00:00
Alexander Winkowski
bc4c9909f8
sm6250-common: sepolicy: Label UFS clock gating node
Change-Id: I54326740d35a95b3c5ec544a7916784f98aa92e2
2022-02-23 06:31:12 +00:00
Leo Liou
c87ef2f661
sm6250-common: powerhint: disable UFS gating work in touch and app launch boost
Disable UFS gating work to boost app launch and touch behaviors.

Before (launch time):
com.google.android.calculator, 507
com.google.android.deskclock, 457
com.google.android.apps.maps, 839
com.google.android.apps.messaging, 624
com.google.android.dialer, 599
com.google.android.apps.photos, 224
com.google.android.youtube, 1016
com.google.android.apps.nbu.files, 618
com.google.android.contacts, 532
com.google.android.gm, 589
com.google.android.GoogleCamera, 674

After (launch time):
com.google.android.calculator, 479
com.google.android.deskclock, 423
com.google.android.apps.maps, 769
com.google.android.apps.messaging, 562
com.google.android.dialer, 553
com.google.android.apps.photos, 177
com.google.android.youtube, 968
com.google.android.apps.nbu.files, 587
com.google.android.contacts, 510
com.google.android.gm, 550
com.google.android.GoogleCamera, 587

Bug: 149610499
Test: run app launch time test
Change-Id: I7e3ee0785ee470ee46d57f9fa03ec042028b1417
2022-02-23 05:30:26 +00:00
Wei Wang
6c07d0e241
sm6250-common: rootdir: boost UFS during boot
Before:
SystemServer_start            : 4.963   0.14877
SystemUi_start                : 6.4789  0.17614
system_server_ready           : 6.8311  0.17777

After:
SystemServer_start            : 4.8848  0.13089
SystemUi_start                : 6.2907  0.14558
system_server_ready           : 6.6286  0.14705

Bug: 63644084
Test: 50 boot with packages/services/Car/tools/bootanalyze/bootanalyze.py
Change-Id: Icebc7a2e5b223c4749adb6575c52a99ef6c5faa0
2022-02-23 05:19:35 +00:00
Alexander Winkowski
bf960d89fd
sm6250-common: powerhint: Remove SchedTune boost node
The value set in the init scripts should be enough (it's 10 currently).

Change-Id: Ic8e334e5332947387fe366099cfa0dd7e80e06de
2022-02-22 18:23:10 +00:00
Alexander Winkowski
843bf5b9d6
sm6250-common: powerhint: Boost big cluster on interaction
According to freqbench results [1], 825 MHz is the most efficient frequency on big cluster.

[1] https://github.com/kdrag0n/freqbench/tree/96d72eac/results/sm7125/main

Change-Id: I6655484527feecc3e0c815ddab3be319643cd92c
2022-02-22 18:23:09 +00:00
Alexander Winkowski
06c533b321
sm6250-common: Remove non-existent properties
Change-Id: I4a4d2fc88815fc5f3b61ee3972534ed30f7ed131
2022-02-22 18:23:09 +00:00
Alexander Winkowski
7817ef46da
sm6250-common: Align audio properties with CAF
* From https://github.com/LineageOS/android_hardware_qcom_audio/blob/b7ba7613/configs/atoll/atoll.mk

Change-Id: I2eed378247be51feb217c2867ec6904bacfdf492
2022-02-22 16:01:29 +00:00
Chenyang Zhong
1379e4ef17
sm6250-common: update qcom sepolicy include path
Change-Id: Ia3aa7efb75c86921fd10a23180ed95259798970e
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-02 05:35:31 +00:00
Chenyang Zhong
2e110efe72
sm6250-common: sepolicy: specify the owner of vendor props
vendor_fp_prop is public because apps like Alipay may access it
to enable biometrics payment authentication.

Change-Id: I167bca763bdf2a5e66ed763f8e0a61b74c915498
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2022-01-02 05:35:31 +00:00
Alexander Winkowski
9a0f82ac21
sm6250-common: sepolicy: Remove unused type definitions
Change-Id: Idea8863bf29f609a4641275c3d30d7f6396eda0f
2022-01-02 05:35:31 +00:00
Alex Hong
3cc69f3a92
sm6250-common: sepolicy: Solve the naming problem for vendor property
Bug: 158720266
Test: Build selinux modules successfully
Change-Id: I01a83a7828d34db982db60bbf307c81fc12c7939
2022-01-02 05:35:31 +00:00
Alexander Winkowski
64688290d4
sm6250-common: Adapt for Pixel Experience
Change-Id: Iaa035b171c96ba36c92f59d29b0b5dc0fd53473c
2022-01-02 05:35:26 +00:00
Alexander Winkowski
6c3fad175c
sm6250-common: Switch to uncompressed kernel image
Change-Id: Ia5830b38a2d882abab9df87d6c1e6e674eeb0c51
2022-01-01 05:42:11 +00:00
Alexander Winkowski
1993cf5ed0
sm6250-common: Add missing Bluetooth prop
* Used for FM radio.

Change-Id: I0e74379c80b2a6ea854d5cd0aad3a833f8862de9
2021-12-31 15:41:31 +00:00
Aaron Ding
b68ae9202c
sm6250-common: change TARGET_ARCH_VARIANT to armv8-a
Bug: 158427009
Test: Build and Boot Pass
Change-Id: Ia1127679815e7778b418e44dd3acafc8ca026fe2
2021-12-31 15:40:29 +00:00
Alexander Winkowski
b68c6447fa
sm6250-common: Add a shim to silence prebuilt audio HAL
For some reason Xiaomi built audio HAL with "very very verbose logging"
enabled [1] and it spams really too much. Until Xiaomi builds audio HAL
with sane logging level or a way to resolve OSS audio HAL issues is
found, just shim the whole log function to return nothing.

[1] https://github.com/LineageOS/android_hardware_qcom_audio/blob/c659e83702/hal/audio_hw.c#L41

Co-authored-by: Jan Engelmohr <jan.engelmohr@mailbox.tu-dresden.de>
Change-Id: Iff278c44f203dc7b81bccb2281edfc3f5687a47c
2021-12-31 15:37:44 +00:00
Alexander Winkowski
8f5db33fc0
sm6250-common: Switch to prebuilt audio HAL
On OSS audio HAL there are issues like echo in calls
and low volume. Users often complain about that so switch to
prebuilt one temporary (I hope so).

Change-Id: I985a9b2c3bdb39c17bc0f861913536c121e7eeae
2021-12-31 15:36:59 +00:00
Alexander Winkowski
6dcf5c2248
sm6250-common: Update blobs from V12.5.1.0.RJWMIXM
Change-Id: I38a50bdefebe3074266f02e8fb3ab30043a72dc7
2021-12-31 15:36:44 +00:00
Alexander Winkowski
0829536d02
sm6250-common: Drop unused sound FX libs
This has been identified by looking through audio_effects.xml

Change-Id: Ida68dd695c45e372a8d28d9e9283aa0d62053efc
2021-12-26 16:43:33 +00:00
Alexander Winkowski
6671647f26
sm6250-common: Drop unused 64-bit audio stack
Change-Id: I0c2576805b372f22d60ecc625d595b7fdc6c5fdf
2021-12-26 16:43:32 +00:00
Sebastiano Barezzi
2ba998489b
sm6250-common: Drop 64-bit ADSP modules
Change-Id: I5f0eb89aeb38270a9ffac01a5d8f9f33553eaa17
2021-12-26 16:43:32 +00:00
Alexander Winkowski
d2fee33b4b
sm6250-common: Build vendor camera interface library
Change-Id: I851a0900f569df371cc8d39fa0acfb2771140ab1
2021-12-26 16:43:32 +00:00
Alexander Winkowski
095449565c
Revert "sm6250-common: Drop prebuilt camera provider"
* Stock one works with auxiliary cameras correctly.

This reverts commit 3f6eaf26960b8ca0a16ea574f9354cdf4a7710f3.

Change-Id: I776342df651af18b5ddd785aa5eb1231cd61638e
2021-12-26 16:43:31 +00:00
Roger Ellis
96eb6668ba
sm6250-common: Add exclusion for vendor ELF prebuilts
- ELF prebuilts were banned in PRODUCT_COPY_FILES starting May 11.
 - Adding BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true to
BoardConfig.mk temoporarily.
 - See b/156534160 for long-term fix which should override this change.

Test: Build
Bug: 156534160
Change-Id: I7d80798d3b2d3818bc835fcede21de2e7ab04735
2021-12-26 16:43:26 +00:00
Alexander Winkowski
b49abed590
sm6250-common: Drop QTI WFD
* It breaks too often, I would like to use AOSP implementation instead.

Change-Id: Ieab7b7ebd48e8f95243a9cda512f064c3c9f96a8
2021-12-21 15:46:39 +00:00
Siddharth Kapoor
4edf2bbb68
sm6250-common: Turn on GPU protected contents.
BUG: 130028057
Test: ExoPlayer, Play Movies
Change-Id: I33acf9467227da08c3b98aca3bac69aca8db4b43
2021-12-21 15:46:39 +00:00
Midas Chien
671ae4f210
sm6250-common: don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
2021-12-21 15:46:39 +00:00
Alexander Winkowski
44c8945182
sm6250-common: audio: Use stock audio_policy_volumes.xml
* Stock changes are actually needed here.

 * This reverts commit aff1d9eb0b07e044584118066e4ded34921f0a02 also reverting commit e74d1037860cf175a52826de9b92f13a965f5cd6.

Change-Id: Ib6a70ac78d3041ebb7a14406a945a6a24dcd8b0b
2021-12-21 15:46:39 +00:00
George Zacharia
cf9e7d64fb
fixup! sm6250-common: Define partition rules
We need to account for overhead size
Currently set to 4MB as per docs[1]

[1] https://source.android.com/devices/tech/ota/dynamic_partitions/implement#board-configuration-changes

Change-Id: I4c5b696a07ec18b7d717aea0caba08b0dc646c0d
2021-12-21 15:46:39 +00:00
Alexander Winkowski
4147a5615a
sm6250-common: Switch to AOSP encryption
* From redfin-user 12 SPB5.210812.002 7671067 release-keys

Change-Id: I20d40c93b3861a92716165ab90bb09c73c0e64ed
2021-12-21 15:46:38 +00:00
TH779
61a571bf45
sm6250-common: Disable settings provider model
* When it is enabled, if we have multiple SIM cards, the networks
   settings UX will only show the first SIM card.
 * Thanks to Telegram@CyberPhantom52 for the fix patch.

Signed-off-by: TH779 <i@779.moe>
Change-Id: I2690e6dcd69f8e0fe814ea3c92c85d7c6f894166
2021-11-01 08:25:01 +00:00
Vishalcj17
bddad32c19
sm6250-common: Disable zygote preforking
* Doesn't work well with zygote native fork loop introduced in Android S.

Change-Id: Iaed102e65815d3fe4e4522d01e729c554671e896
2021-11-01 08:22:28 +00:00
Nicolas Geoffray
be9ac75614
sm6250-common: overlay: Remove odex/oat files from pinner list.
The pinner now asks the runtime for these files.

Test: adb shell dumpsys pinner
Bug: 144773394
Change-Id: Ibd947491961e4e78f1996c04dcec62d5b16c2d1d
2021-11-01 08:22:28 +00:00
Kevin Jeon
b94bb8831e
sm6250-common: overlay: Update SurfaceFlinger pin
This change replaces the '/system/lib64/libsurfaceflinger.so' pin, as
the file was removed in ag/12524602. The updated pin relies on
go/aog/1552085, as system_service needs read access to SurfaceFlinger.

Bug: 176197656
Test: adb shell dumpsys pinner
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService
      - no longer shows a file-not-found error in PinnerService
Change-Id: I8ef5d556d6a1bff9793336259242f2b928ff18ff
2021-11-01 08:22:28 +00:00
Alexander Winkowski
4c0bf0df7f
sm6250-common: sepolicy: Fix namespace violation
* vendor property_contexts should contain vendor props only.

Change-Id: Ieb621921dc43f6c9b6b451fe45ac1a3fbaaac3c8
2021-11-01 08:22:28 +00:00
Gary Jian
bf4d1abdcc
sm6250-common: Upgrade IRadio version to 1.5
Bug: 147070523
Bug: 154066681
Test: manually
Change-Id: I765a0822dabf206391d19037f971a46281758b3f
2021-11-01 08:22:28 +00:00