Commit Graph

1264 Commits

Author SHA1 Message Date
LuK1337
6df2c52511 sm8350-common: Build needed HIDL libs into vendor
Change-Id: I1db79176ac103cb7fc8db0fa4b4cfc699e38ad49
2022-09-25 20:04:30 +02:00
Sebastiano Barezzi
8bf715623d sm8350-common: Move to AOSP NXP NFC HAL
* NXP added snxxx support in AOSP

Change-Id: Id1b9cdbe1f29d1ff61af8182ae2f8370e5210426
Signed-off-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
2022-09-25 20:04:30 +02:00
Albert Wang
d4649ad077 sm8350-common: Update USB HAL to V1.3 implementation
Supports to enable/disable USB data signaling

Bug: 161414036
Test: Pass USB V1.3 HIDL tests
Signed-off-by: Albert Wang <albertccwang@google.com>
Change-Id: Iffe00f8753206fb66cd3ab96cae5aa5ad9c410cd
2022-09-25 20:04:30 +02:00
Edwin Wong
4bf01b2c30 sm8350-common: Update clearkey plugin to drm HAL v1.4
Test: atest
  atest CtsMediaTestCases:android.media.cts.MediaDrmClearkeyTest#testGetPlaybackComponent

Bug: 182525516
Change-Id: I3adf55199301768bacb38103c3ef4ba24807df2f
2022-09-25 20:04:30 +02:00
Michael Wright
39c4d971b6 sm8350-common: overlay: Enable haptic text cursor
Support has landed in WebView, so time to turn it on in framework!

Change-Id: I064cf3512928637895932b3405adaec74b1ceed2
2022-09-25 20:04:30 +02:00
Santiago Seifert
57fc3989ac sm8350-common: Unpin updatable-media from memory
Bug: 214499288
Test: Presubmit
Change-Id: I83757ae6a053ec6b10b08322c4e76d988f1a4a48
2022-09-25 20:04:30 +02:00
Nicolas Geoffray
efaa21f60b sm8350-common: 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: I8de2a2935901cbd3eaa50ce2d8aa09f61080ba02
Merged-In: Ie633ea788dab3389a3407ec9a461b5837befca46
2022-09-25 20:04:30 +02:00
Kevin Jeon
f58718e51d sm8350-common: Update SurfaceFlinger pin on all targets
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 (coral)
      - shows that /system/bin/surfaceflinger is successfully pinned
      adb logcat | grep PinnerService (coral)
      - no longer shows a file-not-found error in PinnerService
Change-Id: Iae2a96c5fe4b1f5698d21de9970140321d11c460
2022-09-25 20:04:30 +02:00
linjoey
f4fba783ff sm8350-common: Modify Vulkan and OpenGL version to 2020-03-01
Bug: 191252896
Test: android.graphics.cts.VulkanDeqpLevelTest#testVulkanDeqpLevel pass
Change-Id: I0e598ee8a26cd614dc5076a87c514756ba39d740
2022-09-25 20:04:30 +02:00
Alastair Donaldson
e675ce1d5e sm8350-common: Add OpenGL ES and update Vulkan dEQP feature flags
Populates a new	feature	flag to	record the level of OpenGL ES dEQP
test support.  Updates the analogous Vulkan dEQP feature flag to the
value for the next dessert release.

Bug: 159841535
Bug: 175706433
Merged-In: Ib0fb8f83732d0b3f56bb11a97c84fdc7727c1026
Change-Id: Ic97a65fba95a67e3e16cedd0eb4f3f209f645421
2022-09-25 20:04:30 +02:00
Arvind Kumar
c7bd24887a sm8350-common: Set manufacturer soc property
Set soc manufacturer property, model is set from QCV init scripts.

Change-Id: Ieee34b7bfab87b241abc5ed3318b46a5c6f93456
2022-09-25 20:04:30 +02:00
Inseob Kim
60afa5a8fb sm8350-common: sepolicy: Attach vendor_property_type to properties
We are going to enforce that each property has an explicit owner, such
as system, vendor, or product. This attaches vendor_property_type to
properties defined under vendor sepolicy directories.

Bug: 159097992
Test: m selinux_policy && boot device
Change-Id: Ibed833cd9e5d786e82985ded6bc62abdf8cd9ded
2022-09-25 20:04:30 +02:00
Michael Bestas
d434f19804 sm8350-common: Switch to SYSTEM_EXT_{PUBLIC,PRIVATE}_SEPOLICY_DIRS
Fixes:
warning: BOARD_PLAT_PRIVATE_SEPOLICY_DIR has been deprecated.
    Use SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS instead.
warning: BOARD_PLAT_PUBLIC_SEPOLICY_DIR has been deprecated.
    Use SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS instead.
Change-Id: I752602079de8ff4c5370fe3ec861b8746838d878
2022-09-25 20:04:30 +02:00
Felix
b310ffed6f sm8350-common: Use BOARD_VENDOR_SEPOLICY_DIRS
BOARD_SEPOLICY_DIRS is deprecated.

Change-Id: I046282b2a2e8c541726fb29cb0044503322d4be9
2022-09-25 20:04:30 +02:00
Roger Ellis
3114d3088b sm8350-common: Allow ELF prebuilts in PRODUCT_COPY_FILES.
* ELF prebuilts were banned in PRODUCT_COPY_FILES starting
   May 11th. See b/156534160 for long-term fix which should
   override this change.

Change-Id: Icd25b40ca4e4285319775046a1b70de30572be07
2022-09-25 20:04:30 +02:00
Jeongik Cha
b0956fe288 sm8350-common: Specify version for aidl_interface explicitly
Bug: 150578172
Test: m
Change-Id: I4a9bf218b92252403e9ebbe8f89b10ee1899283f
Signed-off-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
2022-09-25 20:04:25 +02:00
Arian
2302a78494 Revert "sm8350-common: sepolicy: allow spodaemon to access spuari status prop"
This property is not referenced in our blobs

This reverts commit 56d9f69223.

Change-Id: I69145e36ed9c2fe5adcabd4b4fb09aab7fb4efda
2022-09-25 20:04:20 +02:00
Arian
6cff8cff03 sm8350-common: sepolicy: Add vendor prefix to mlipay_prop
Change-Id: If707d5e4efb2513e8e447da2df692be99ef2d305
2022-09-25 19:26:26 +02:00
LuK1337
a64abcb7ed sm8350-common: Sort blobs list /w sort-blobs-list.py
Change-Id: I197c6353dc50baf4ee76ed6ebf083dc00879bd96
2022-08-29 01:53:16 +02:00
xiaowang
12b22bfe1f sm8350-common: Add support for low power adaptive control feature
High power consumption issues were reported for some HS/CK/Speaker
in close range(1 meter) on hastings platform as they may not have
perfect RSSI golden range logic for power control and always request
SOC to increase TX power to max power level. Newer hastings SOC support
LPA power control to avoid unnecessary higher power consumption.

The change enable this soc feature according to value of property.
And disable it for special remote devices which have been added in BL
when new ACL link is created.

If feature is enabled, controllable power level for remote is L0-L9,
BT controller increase it to L10 or L11 according to RSSI and NAK rate.
Otherwise controllable power level for remote is from 0 to max power
level signified in NVM, most likely L11 for hastings.

CRs-Fixed: 2597191
Change-Id: I354bb34a84aa7a55537e3a595daac54c46d90603
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2022-08-29 01:53:16 +02:00
Giovanni Ricca
8bb6904662 sm8350-common: Remove libfastcvopt from module
* No hals requires it anyway

Change-Id: I623ac748b2db2a7298b435bda476309858af3340
2022-08-29 01:53:16 +02:00
Alexander Koskovich
9aa00a55e6 sm8350-common: Drop updatable GPU drivers
Change-Id: I0ec61c3b9abfa86368e6c23481d7edf5d8f6a036
2022-08-29 01:53:16 +02:00
hpnightowl
83baf2b384 sm8350-common: Drop audio.a2dp.default
* Building from here:
   https://github.com/LineageOS/android_build/blob/lineage-18.1/target/product/full_base.mk#L35

Change-Id: Ib71c1abd381468ec3621d60e5ca959f738f51168
2022-08-29 01:53:16 +02:00
Sebastiano Barezzi
554f3169e8 sm8350-common: audio: Nuke misoundfx effects
Change-Id: I9a15982efa28456b8340665ee628a4074bb0501e
2022-08-29 01:53:16 +02:00
Laxminath Kasam
8c38b65fac sm8350-common: hal: audio: Update gain to 84 for WSA MCS devices
As per systems team requirement, increase WSA MCS volume to 84.

Change-Id: If74246d0c5941b9d07fad5908f728be3af302bd6
2022-08-29 01:53:16 +02:00
Anver sadhique
dbb8b462db sm8350-common: hal: set valid and supported channel mask for earpiece
For earpiece to be properly enumerated as a output device,
set valid and supported out_ channel mask.

Change-Id: Ic83b009956ff43567b3acbb186d0069b16e91e83
2022-08-29 01:53:16 +02:00
Lakshman Chaluvaraju
cb78e07636 sm8350-common: configs: Add Stereo config channel support to usb surround sound
Adding stereo config channel support to usb surround sound proflle
to address CTS-V failure issue seen due to mismatch in channel mask
support for record usecase

Change-Id: Ib50511d2fa6df24b3aa4764553cd48726129b2c2
2022-08-29 01:53:16 +02:00
LuK1337
8578c54b49 sm8350-common: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2022-08-29 01:53:16 +02:00
Arian
dd54d84fe3 sm8350-common: audio: Drop LHDC audio format
Change-Id: Iee704477e21854f424565c4dfb76d50eeb66e819
2022-08-29 01:53:16 +02:00
Arian
65604695ca Partially revert "sm8350-common: audio: remove unsupported configuration options"
Bring raw mixport back and drop "USB Device In" and "USB Headset In" from
"primary input" again.

This partially reverts commit 0b7df4e151.

Change-Id: I547518fbd6318dcb5fcb7c4ab85e8ad9da3d48ad
2022-08-29 01:53:16 +02:00
Arian
c2e6077cdf sm8350-common: Drop audio_configs.xml
Change-Id: I990f5c195adf04a407489c677640ecf0e1f0f48a
2022-08-29 01:53:16 +02:00
stic-server-open
397523e9f0 sm8350-common: rootdir: Remove duplicate "start logd"
* It is started in the on init phase in /system/etc/init/hw/init.rc

Change-Id: Ie10e1d4c520329a76627a965ca139f9ad0f71875
2022-08-29 01:53:16 +02:00
Christopher N. Hesse
3162411998 sm8350-common: Enforce vendor tree presence
A compiled build has no chance of booting without the prebuilt
binaries, so fail the build if those are not present.

Change-Id: Iadd43e887d426732e549969ab8deb14194ca818d
2022-08-29 01:53:16 +02:00
Nicolas Geoffray
cd8d088c3a sm8350-common: Generate the apex image.
Change-Id: I18a76766590db27a4c32534dc948f55f78da166c
Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
2022-08-29 01:53:16 +02:00
althafvly
5f8fe2800b sm8350-common: Use randomly generated camera config [1/2]
Change-Id: Ib3f6f1526e2e0b7db23bb34c5b15aec1b0d338c2
2022-08-29 01:53:16 +02:00
Sebastiano Barezzi
07f2ac935e sm8350-common: Go away Megvii [1/2]
* Nuke Megvii proprietary files and build stub ones from hardware/xiaomi

Change-Id: I53f8f0897b25517741a06c5962c02fe8fda61072
2022-08-29 01:53:16 +02:00
Arian
c1801698e0 sm8350-common: Copy snapdragon color libs config from display HAL
Change-Id: Iac27382024431dd2faf163174064c80de79ed797
2022-08-29 01:53:02 +02:00
Arian
9cce7a6db1 sm8350-common: Copy powerhint.xml from power HAL
Change-Id: I6f8ca59f4ad0ed7324010f657475d020fa76cb2f
2022-08-29 01:24:29 +02:00
Alexander Koskovich
5a1fa60059 sm8350-common: Remove virtual framebuffer.
* It's largely for testing purposes and it consumes
   a large amount of memory. If your hardware doesn't
   have graphics then it can be useful, which isn't the
   case for shipped devices.

Change-Id: I2348718ad3afba846498572161fa7e83dd8b7ce9
2022-08-29 01:24:29 +02:00
Arian
caaa6afed4 sm8350-common: Revert Xiaomi cpuset changes
* Drop foreground and top-app cpus
* Set 0-3 as background cpus
* Drop xiaomi iolimit and custom types for shima

Change-Id: I3733e196a8ed090c15d6867b0722425435f31474
2022-08-29 01:24:29 +02:00
Arian
b0fed8b209 sm8350-common: rootdir: Configure input boost for shima
Change-Id: I813e6893475caf8196f7c81f6ae237bd1d4b73d1
2022-08-29 01:24:29 +02:00
Arian
611c35bd95 sm8350-common: rootdir: Drop powerkey input boost
Change-Id: I685a215927b445bb2fac9229a1f41de5f88741ef
2022-08-29 01:24:29 +02:00
Giovanni Ricca
eb8b12dea6 sm8350-common: rootdir: Prefer s2idle over deep for lahaina
Change-Id: I6831d37d02012e3ce2d58a9c45818e594a658883
2022-08-29 01:24:29 +02:00
Giovanni Ricca
83662ab93f sm8350-common: rootdir: Add shima and yupik kernel post_boot scripts
While at it, update lahaina one from odin V12.5.12.0.RKMCNXM

Apply the following commits to all scripts:
commit a7efe9f3af
Author: Cosmin Tanislav <demonsingur@gmail.com>
Date:   Tue Sep 28 09:15:41 2021 +0300

    sm8350-common: rootdir: remove cpu 7 from foreground tasks

commit 52fde070d6
Author: Cosmin Tanislav <demonsingur@gmail.com>
Date:   Fri Sep 24 02:44:34 2021 +0300

    sm8350-common: rootdir: do not touch sleep disabled

commit 30ddf5a818
Author: Cosmin Tanislav <demonsingur@gmail.com>
Date:   Sat Sep 18 02:57:51 2021 +0300

    sm8350-common: rootdir: cleanup

Change-Id: Ibd4e8717b52c35faa4d43ade170dbde58c04ed37
2022-08-29 01:24:29 +02:00
Randall Huang
e5413336ca sm8350-common: rootdir: 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-08-29 01:24:00 +02:00
Arian
163cec32a7 Revert "sm8350-common: let init do read ahead configuration"
Init doesn't handle all dm devices

This reverts commit 17d09b70a0.

Change-Id: I2b42c286307e8fd41140bca8f893ccdf13ebfc06
2022-08-29 01:23:13 +02:00
Giovanni Ricca
8a5471e402 sm8350-common: Commonize Display calibration configs
Change-Id: Id363bf8e7082e66ce3b1a215d66c42257cd5117b
2022-08-29 00:57:55 +02:00
Giovanni Ricca
ba1fac34d5 fixup! sm8350-common: sepolicy: Label more wakeup nodes
Change-Id: If3d5e081d5e7e082578b111aeb83cf1662444126
2022-08-28 16:14:19 +02:00
Arian
834d121186 sm8350-common: Don't explicitly build fs_config_files
The fs_config_files for each partition is already added to
PRODUCT_PACKAGES by base_{product,system,system_ext,vendor}.mk.

Change-Id: Ifbadacd5cb20beca70ed8b3accb3baf86a989c92
2022-08-28 15:49:53 +02:00
Arian
7e777df325 sm8350-common: Don't copy audio policy to qssi dirs
This depends on commit [1] which intends to pick a different audio
policy config on value-added system images and use to the regular
audio policy on gsi builds. However we do not provide the regular
config which leads to no usable audio policy config on GSI builds.
Our config does not rely on system value-added features, hence just
copy it to the regular path directly so that the same one will be
loaded on value-added and gsi builds.

[1]: ce8ec8bff5

Change-Id: I2ab532a4e8a120ed0c5495926dcce0a4b56d1f64
2022-04-12 18:11:16 +02:00