Commit graph

4932 commits

Author SHA1 Message Date
Alcatraz323
5b660f6800 sdm660-common: introduce clover parts
* implemented volume panel trigger in QS
* we may need to implement some extra function like multiwindow
* the seapp_context may need a diffrent entity from DeviceSettings to avoid neverallow

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Alcatraz323
3bf23bb2d7 sdm660-common: sepolicy: allow system_app to access hall_dev
* 08-12 22:43:25.794  1674  1674 W settings.device: type=1400 audit(0.0:7): avc: denied { search } for name="parameters" dev="sysfs" ino=21188 scontext=u:r:system_app:s0 tcontext=u:object_r:hall_dev:s0 tclass=dir permissive=0

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
0e79a7bd21 sdm660-common: rootdir: Do not load non-existent wlan module
Wlan driver is compiled from kernel. Not only the module is non-existent
but also it's unnecessary and causes insmod failure. So, don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
d41f3d2a88 sdm660-common: rootdir: Do not exec init.qti.can.sh
init.qti.can.sh doesn't exist. So, executing the non-existent bash
scripts only results in failure. Don't do it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
0a5ca4c00c sdm660-common: rootdir: Do not try to remove shmbus
shmbus doesn't exist for us. Removing a non-existent file/folder only
causes the command to fail and spam the dmesg.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Tashfin Shakeer Rhythm
609d3d6c14 sdm660-common: rootdir: Trim and fix some blkio node paths
"bg" seems to be "background" after examining the path using a root
explorer. "blkio.weight" is non-existent. So, remove it.

Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
pix106
03c297e53d sdm660-common: commonize releasetools 2023-08-22 08:45:13 +02:00
ghostrider-reborn
0acb16e716 sdm660-common: Disable dexpreopt minidebuginfo
Change-Id: Ief843fc411189906c5d0183a6ff4485f6b3041ee
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
ghostrider-reborn
94595661b3 sdm660-common: Disable ART debug and optimize dexpreopt
* don't include debug configs in art

Change-Id: Ic310df1e2c466437b26fcb2e5ab9333694328c48
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Jasmine Cha
51e45212b5 sdm660-common: audio: enable speaker spatializer
* 0605 build lib is same file as 0805 felix/cheetah
Bug: 260779305
Test: manual test

Change-Id: Ifbcee9faebb7607ec08db947e69d1d2d31d9eaab
Signed-off-by: Jasmine Cha <chajasmine@google.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
e80c22e5dd sdm660-common: rootdir: Enable RT priority inheritance for audio HAL
Test: instrumented
Bug: 181148259
Bug: 260918856
Change-Id: If56e449a9c6f1a49e372591893d8714534574e3a
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
emilchung
e5d0f0c0bd sdm660-common: rootdir: add context_hub into audio hal group
While implementing the capo nanoapp for audio configuration, we met
some chre socket connected error due to the access group denied.

Add context_hub group for audio hal to connect chre socket.

go/capo-algo

Bug: 141128522
Bug: 149069556
Test: FULL build with audio hal part and local prebuilts nanoapp.
Test: Audio HAL communicates normally with CHRE socket.
Change-Id: Iea84411682f4c3e08f8b37a5b21818b0e9b04983
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Andy Hung
dc669fe301 sdm660-common: rootdir: Optimize for Spatial Audio
Add CAP_SYS_NICE.
Allow util_clamp_min for Spatializer Effect worker thread. - done in hardware/interface/audio
Reduce glitches caused by core migration.
Reduce power consumption as Spatializer Effect is DSP compute bound.
This change only affects Spatial Audio Effect processing.

Test: instrumented
Test: adb shell 'uclampset -a -p $(pgrep -of android.hardware.audio.service)'
Test: adb shell cat "/proc/$(adb shell pgrep -of android.hardware.audio.service)/status"
Test: adb shell 'ps -Tl -p $(pgrep -of android.hardware.audio.service)'
Bug: 181148259
Bug: 260918856
Bug: 261228892
Bug: 261686532
Bug: 262803152
Change-Id: I59ea99e8a1720f61954747f6c29e14cfea9a0f56
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
Eric Laurent
0bcf3c794d sdm660-common: configuration for spatial audio
Update audio configuration to enable spatial audio:
- build with spatial audio feature enabled and rondo library
- list spatializer effect in audio effect configuration file
- update audio policy configuration files to declare spatializer output
- declare immersive end point in audio platform configuration

* Alcatraz: not enable on bt-a2dp, usb out, tested it will create "bzzzzzzzz" like noise, not in good effect, only works well for wired headphone.
* update lib to July

Bug: 237677573
Test: spatial audio playback
Change-Id: Ic9c32d813a19ba2789425e12ee9016d53ab30678
Co-authored-by: Alcatraz323 <alcatraz32323@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:45:13 +02:00
pix106
443f02b3d1 Revert "sdm660-common: update CLO media profiles and codecs"
This reverts commit a0efee8bed.
2023-08-22 08:44:53 +02:00
pix106
1043c5332c Revert "sdm660-common: sepolicy: let camera hal access system_data_file"
This reverts commit a6984f5866.
2023-08-22 08:44:53 +02:00
pix106
dabd7bf66e sdm660-common: update remaining FM blobs
* from Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys
2023-08-22 08:44:53 +02:00
pix106
7e84c11b56 sdm660-common: decommonize camera shim 2023-08-22 08:44:53 +02:00
pix106
2caec153a3 sdm660-common: decommonize some camera props 2023-08-22 08:44:53 +02:00
pix106
3ae97bde94 sdm660-common: decommonize camera flags 2023-08-22 08:44:53 +02:00
pix106
fa7db8421a sdm660-common: deccomonize camera blobs 2023-08-22 08:44:53 +02:00
pix106
62e1438a10 Revert "sdm660-common: sepolicy: address qti_init_shell proc_watermark_scale_factor denials"
This reverts commit fa6dfc8c13.
2023-08-22 08:44:53 +02:00
Hridya Valsaraju
986d0bd3c0 sdm660-common: Set PRODUCT_SET_DEBUGFS_RESTRICTIONS
Starting with Android R launched devices, debugfs cannot be mounted in
production builds. In order to avoid accidental debugfs dependencies
from creeping in during development with userdebug/eng builds, the
build flag PRODUCT_SET_DEBUGFS_RESTRICTIONS can be set by vendors to
enforce additional debugfs restrictions for userdebug/eng builds. The
same flag will be used to enable sepolicy neveallow statements to
prevent new permissions added for debugfs access.

Test: build, boot
Bug: 184381659
Change-Id: I45e6f20c886d467a215c9466f3a09965ff897d7e
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
b8666f9e93 sdm660-common: sepolicy: reset QTI USB sepolicy to legacy ported version
* defined in July -> 8a6b2a503a

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
pix106
345d455797 Revert "sdm660-common: sepolicy: address hal_usb_default sysfs_battery_supply denial"
This reverts commit b8fad83343.
2023-08-22 08:44:53 +02:00
Georg Veichtlbauer
f102767534 sdm660-common: Fix PowerOffAlarm
* Adjust /persist/alarm/data permissions accordingly

Change-Id: Ie24ccb3749d1dda2deb670cdb531e35d153034ed
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
pix106
176ed77e92 sdm660-common: rootdir: rollback time options for cache and persist partitions
This partially reverts commit 6f9fe01554.

From 43128a7896
2023-08-22 08:44:53 +02:00
Michael Bestas
54c2ca5cce sdm660-common: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
pix106
a8a14b55c8 sdm660-common: sepolicy: cleaning (duplicate permissions, move file from subdir) 2023-08-22 08:44:53 +02:00
Alcatraz323
68c470f248 sdm660-common: sepolicy: address bunch of denials
* suppress bunch of capability denials, they are harmless and managed by aosp, if it should be fixed, aosp will do
* correct some typo

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Georg Veichtlbauer
92ce6a3c67 sdm660-common: Drop config_setColorTransformAccelerated
It's now enabled by default

Change-Id: I57f059c872fc2ad2fd15e788b1391eeebaff9bde
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
783449d602 sdm660-common: overlay: show notification volume control slider separate from ring on QPR3
* config_alias_ring_notif_stream_types has been removed

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
f1935c4f78 sdm660-common: correct wrong indention in build recipe
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
713803ed1d sdm660-common: sepolicy: add CloverTenInchFrameworksPowerOverlay sepolicy
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
1cb35d9bfa sdm660-common: allow WPA3-SAE hotspot & reset sae upgrade behavior to default
* we have support for SAE and SAE upgrade
* tested WPA3, WPA2/WPA3 mode both in AP, Client mode, auto
* also it's declared support in booth 4.4 and 4.19 sdm660 kernel

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
be4683e238 sdm660-common: declare Wi-Fi RTT support
* sdm660 supports 802.11mc
* RTT enabled in Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys - LA.UM.10.2.1.r1-03400-sdm660.0
* RTT Doc - https://source.android.com/docs/core/connect/wifi-rtt

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
bbbfe44f73 sdm660-common: update WCNSS config from Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys - LA.UM.10.2.1.r1-03400-sdm660.0
* fix 5g hotspot enables randomly
* fix wifi display not working when connect to a 5g ap(only works on 2.4g AP or no wifi connection)
* modification below(from hon660)
- gEnablePowerSaveOffload=4
- gRoamPrefer5GHz=1
- gSelect5GHzMargin=5
- gSkipDfsChannelInP2pSearch=0
- gNeighborScanTimerPeriod=200
- gNeighborLookupThreshold=85
- gRoamRestTimeMin=50

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
cbc3d8ff9b sdm660-common: configs: update media config from Hon660
* as aosp mentioned(https://source.android.com/docs/core/media/oem), this should be updated by oem with real cts/vts measurement or measure it by yourself, don't update to something like LA.UM.11.2
* Android 12 (LA.UM.10.2.1.r1-03400-sdm660.0) with oem measurement
* 9 files updated, 6 unchanged, 1 degraded(abandonded media_profile.xml, changing 720 -> 640)

Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
pix106
7eef15473c sdm660-common: decommonize com.fingerprints.extension FCM 2023-08-22 08:44:53 +02:00
1582130940
6f376a1348 sdm660-common: manifest: Add FCM to enforce vintf check
* added wifidisplay, sensormanager, fingerprint, wifi, camera, power(up rev) interface
* removed not existed vendor.qti.hardware.perf in manifest

Co-authored-by: Alcatraz323 <alcatraz32323@gmail.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
pix106
fdf5e9ee02 sdm660-common: sepolicy: allow hal_capabilityconfigstore_qti_default access to vendor_cap_configstore_dbg_prop
This reverts commit 9b57c96055df0d86b029249c63b23a89f9cc1b4e.
2023-08-22 08:44:53 +02:00
pix106
d8f8013e35 sdm660-common: add CapabilityConfigStore to manifest
This reverts commit 6f0519bb21df1ab548659f50f8e7c8c686749501.
2023-08-22 08:44:53 +02:00
pix106
37186432c3 sdm660-common: build vendor.qti.hardware.capabilityconfigstore@1.0
This reverts commit a04b0dd4fb383a37b267dcd00b939ffac370c578.
2023-08-22 08:44:53 +02:00
pix106
009520070b sdm660-common: use mtdservice interface from xiaomi/hardware 2023-08-22 08:44:53 +02:00
pix106
c7085df857 sdm660-common: add sha1sums for GPU Firmware 2023-08-22 08:44:53 +02:00
Alcatraz323
14bb9df543 sdm660-common: proprietary: update Gatekeeper, Keymaster blobs
* from Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys (REAL LA.UM.10.2.1.r1-03400-sdm660.0)
* this is not the original file structure from hon660, but keep this for future self extraction

Co-authored-by: 1582130940 <1582130940@qq.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
181b732c3e sdm660-common: proprietary: update GPS blobs and gps configs
* from Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys (REAL LA.UM.10.2.1.r1-03400-sdm660.0)
* add xiaomi conf change from miui
* vendor.qti.gnss@4.0-service.xml is from s62pro actually, but as it's just a simple HIDL declaration, no need for declare a dedicated section for it(for Hon 660, gnss HIDL interface declared in vendor/odm/etc/vintf/manifest*.xml - determined by first api level and keymaster version)
* uncomment SUPL_ES=1 since it is default 0(staging/gps/core/ContextBase.cpp#132), comment it out won't enable emergency SUPL
* remove vendor.qti.hardware.cacert in manifest, since it's useless and will be declared as optional in FCM
* gps config changed as below

- gps.conf
NTP_SERVER_2=asia.pool.ntp.org
NTP_SERVER_3=0.cn.pool.ntp.org

LPP_PROFILE=3
A_GLONASS_POS_PROTOCOL_SELECT=0xf

XTRA_TEST_ENABLED = 1
XTRA_THROTTLE_ENABLED = 0
XTRA_SYSTEM_TIME_INJECT = 1
XTRA_SOCK_KEEPALIVE=1

Co-authored-by: 1582130940 <1582130940@qq.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
5e4faf510c sdm660-common: proprietary: update CNE, DPM, IMS, QMI, RIL blobs
* LA.QSSI.13.0.r1-09700-qssi.0
* Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys
* sync Hidl manifest version with Hon660 and S62 Pro
* build hostapd_cli(though Android GUI interface does not need this to manage the ap client, we may want to control them from the shell, maybe)
* remove rmt_storage, tftp_server from rootdir script, they are self contained now
* the vendor.qti.tftp.rc is patched with 782ab1966f
* fix cnd denial

Co-authored-by: 1582130940 <1582130940@qq.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
051f362d64 sdm660-common: proprietary: update Graphics blobs
* most from Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys (REAL LA.UM.10.2.1.r1-03400-sdm660.0)
* postprocessing_system from LA.QSSI.13.0.r1-09700-qssi.0
* correct vulkan version indicator according to https://git.codelinaro.org/clo/la/device/qcom/common/-/blob/LA.UM.11.2.1.r1-03900-sdm660.0/base.mk#L70 and Hon660's configuration: Level -> 0, Version -> 1.1

Co-authored-by: 1582130940 <1582130940@qq.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00
Alcatraz323
c668d8f6a8 sdm660-common: proprietary: update ADSP, Audio, SoundFX, Bluetooth, CDSP blobs
* most from Honeywell/hon660/hon660:12/94.00.03/0037:user/release-keys
* part of Audio from LA.QSSI.13.0.r1-09700-qssi.0
* add build number to missing section

Co-authored-by: 1582130940 <1582130940@qq.com>
Signed-off-by: pix106 <sbordenave@gmail.com>
2023-08-22 08:44:53 +02:00