Commit Graph

992 Commits

Author SHA1 Message Date
xiaowang 92f50991a6
sm8150-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>
2022-03-03 15:24:58 +09:00
Sebastiano Barezzi df7c29eb29
sm8150-common: Readd 32bit SCVE and VPP blobs
* Needed for some hardware accelerated codecs

Change-Id: Id0f9ec8541f24b3aad2f80a9bcb2c0d4e3343cf5
2022-03-03 15:24:57 +09:00
Omkar Chandorkar e85b90e90b
sm8150-common: remove strongbox components
* we don't support strongbox

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:57 +09:00
Bruno Martins 20317adadf
sm8150-common: Copy haptics exclusion config directly from QTI repo
Change-Id: I9758f359c4be549b334e487bbc49ca34b749efc3
2022-03-03 15:24:57 +09:00
Bruno Martins 807660652c
sm8150-common: overlay: Set IWLAN data service package name
Change-Id: I0f6a7531f57eaf293299b72e9ced9de70cc32477
2022-03-03 15:24:56 +09:00
Omkar Chandorkar 652a37d275
sm8150-common: add hvdcp_opti
* fixes init: Command 'enable vendor.hvdcp_opti' action=persist.vendor.hvdcp_opti.start=1 (/vendor/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc:41) took 0ms and failed: Could not enable service: Cannot find '/vendor/bin/hvdcp_opti': No such file or directory

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:56 +09:00
Omkar Chandorkar bbde6da1d0
sm8150-common: sepolicy: label a2dp prop
* fixes init: Do not have permissions to set 'persist.vendor.bt.a2dp_offload_cap' to 'sbc-aptx-aptxtws-aptxhd-aac-ldac' in property file '/vendor/build.prop': SELinux permission check failed

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:55 +09:00
Omkar Chandorkar a9c9980045
sm8150-common: rootdir: cleanup unused/unwanted scripts
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:55 +09:00
Sebastiano Barezzi 249de6330f
sm8150-common: Remove USE_XML_AUDIO_POLICY_CONF
* Dead since Q, where XML audio policies weren't enforced yet

Change-Id: I302a0ed97964b052176dc3bb0141db1ba85e78c8
2022-03-03 15:24:55 +09:00
Hikari-no-Tenshi 74878cd3ff
sm8150-common: sepolicy: allow system_app to control led
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Ic598d335971a7cea6aaa0edada62a903d90dddec
2022-03-03 15:24:54 +09:00
Omkar Chandorkar 833a7e5152
sm8150-common: sepolicy: label ese prop
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:54 +09:00
LuK1337 e28bfe6156
sm8150-common: sensors: Move to AOSP Soong conditionals
Change-Id: I220357b268053463044e2780ae70dfff3bb5a301
2022-03-03 15:24:54 +09:00
Sebastiano Barezzi b43c0058e0
sm8150-common: fod: Move to AOSP Soong conditionals
Change-Id: Iaf7c291d2f08262d9f578901d688eb98ade4beba
2022-03-03 15:24:53 +09:00
LuK1337 66448a23c6
sm8150-common: rootdir: Strip out unnecessary SKU customization
I'd rather never wake up to wake_up_samurai.ogg.

Change-Id: Id52e643546b2e3e0a3eab8690188004c7a2386df
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:53 +09:00
Rituj Beniwal 83cb831d59
sm8150-common: Add support for vibration intensity control
* Needs platform commit for VibratorService https://gerrit.aospa.co/c/AOSPA/android_frameworks_base/+/18729

Signed-off-by: Rituj Beniwal <ritujbeniwal@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: Iae702e0869b685f58e5af6c6b414931465e58acb
2022-03-03 15:24:52 +09:00
Rituj Beniwal 5dfe76026c
sm8150-common: Fix vibration effects and vibration based on duration
Signed-off-by: Rituj Beniwal <ritujbeniwal@gmail.com>
2022-03-03 15:24:52 +09:00
Rituj Beniwal 562f63234f
sm8150-common: Apply ALS correction to the RAW sensor value
* Probably a derp here 07c6e1a71f

Signed-off-by: Rituj Beniwal <ritujbeniwal@gmail.com>
2022-03-03 15:24:52 +09:00
Omkar Chandorkar d782530f3a
sm8150-common: copy device-specific audio_policy_volumes in-tree
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:51 +09:00
Omkar Chandorkar e6fe0b9eb0
sm8150-common: decommonise vibrator firmware
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:51 +09:00
Omkar Chandorkar e592625120
sm8150-common: unpin NxpNfcNci
* the missing class was added back in 11.0.1.1

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:51 +09:00
Bruno Martins e328e32c0d
sm8150-common: Move "proprietary" seccomp policies to vendor
Also discard unused qspm.policy as we don't ship qspm.

Change-Id: Icc1b978d373de8b0b7bc3e483c088c2cdeb5d325
2022-03-03 15:24:50 +09:00
Bruno Martins 224ff2ec60
sm8150-common: Prepend "system/" before paths where necessary
Change-Id: I29a61453565d0b2a27c601b8e58edbe1bad3ec9a
2022-03-03 15:24:50 +09:00
Omkar Chandorkar b17b8ccfc4
sm8150-common: cleanup wfd blobs
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:49 +09:00
Omkar Chandorkar e3752d0117
sm8150-common: drop secure_element
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I36ec5382484a1dc9030f118ffbe7f16c06837d33
2022-03-03 15:24:49 +09:00
Omkar Chandorkar 86293659d3
sm8150-common: address a few denials
* suppress gmscore_app looking for fw

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:49 +09:00
Omkar Chandorkar 41bbe2a8c4
sm8150-common: switch to RROs
* also enable overlay component
* disable hwc colour modes
* remove pinner configs

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:48 +09:00
Omkar Chandorkar 0122d9236d
sm8150-common: Drop PowerOffAlarm
* google clock doesn't support and pa only ships gapps

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:48 +09:00
Omkar Chandorkar 05cb2d39e4
sm8150-common: switch to bt component
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:48 +09:00
Omkar Chandorkar 687bb31ec8
sm8150-common: switch to perf component
Change-Id: I7ef6f39d0b640f5d65d301dbc66ea733fb462d97
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:47 +09:00
timocapa d031dc3ec3
sm8150-common: switch to qti telephony component
Change-Id: I58178a8c663dd0b5c61c68ec03b2775083a062ed
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:47 +09:00
Omkar Chandorkar fada9abe87
sm8150-common: update to LA.UM.9.1.r1-09600-SMxxx0.0
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: If0df03e0698e4f24f3fc0c74dcbd17f7bf2db0b3
2022-03-03 15:24:46 +09:00
Omkar Chandorkar c1b65fc454
Revert "[SQUASH]sm8150-common: remove QTI Vibrator HAL"
This reverts commit bf99b46465.
2022-03-03 15:24:46 +09:00
Omkar Chandorkar c8a34560dd
[SQUASH]sm8150-common: camera_helper: checkout to LOS
Revert "FallSensor: Correctly theme the dialog"

This reverts commit acd289b071.

Revert "sm8150-common: Theme the popup camera dialog"

This reverts commit 0b170523d1.

Revert "sm8150-common: Allow to always display front camera open dialog"

This reverts commit a66514ccd9.

Revert "camera_helper: Show alert dialog before raising camera when screen is off"

This reverts commit 5183a77b26.

Revert "sm8150-common: camera_*: rework implementation and cleanup"

This reverts commit 7099ff8d71.

sm8150-common: Move camera motor handling to OnePlusCameraHelper

Change-Id: Ie5f8bcdc80ad38a48fc9f1984f02efc2ebd85b91

Automatic translation import

Change-Id: Ic5ef142f24e2b0c4b94b082b5228edc2dc04f0de
2022-03-03 15:24:46 +09:00
TheStrix 465cd5a05c
sm8150-common: Enable off-screen gestures
Change-Id: I78abf27a49656fe48123f151f678e5c0640b98b3

Signed-off-by: TheStrix <parthbhatia98@gmail.com>
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:45 +09:00
Omkar Chandorkar 0a68ddbf98
sm8150-common: inital bringup for aospa
* drop in-tree bootctrl and dependencies
* drop unused flags
* use usb component
* update HIDL manifests for CAF
* blob perf deps
* drop non-existent overlays and general cleanup

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I7babead03416479ad6928d359b1cb68def0565cc
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-03-03 15:24:40 +09:00
Omkar Chandorkar 5602f9eb17
Revert "sm8150-common: Tone down CamX and CHIUSECASE logging"
* SELinux doesn't allow setting these anyways

This reverts commit a98a53889c.
2021-06-29 05:49:42 +02:00
Omkar Chandorkar 8f8c281773
sm8150-common: relocate camera prop
* fixes [    2.094340] init: Do not have permissions to set 'persist.vendor.camera.privapp.list' to 'com.oneplus.camera' in property file '/vendor/build.prop'

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-06-29 05:49:35 +02:00
Omkar Chandorkar 69d5120e21
sm8150-common: drop los touch
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 15:08:26 +00:00
Omkar Chandorkar c09aba6582
sm8150-common: drop biometric auth overlay
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 15:08:25 +00:00
Omkar Chandorkar 9a2a131db6
sm8150-common: drop los doze
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 15:08:25 +00:00
Omkar Chandorkar 94f3b805df
sm8150-common: remove DeviceSettings
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 15:08:14 +00:00
Omkar Chandorkar aa13e18ba0
sm8150-common: remove system_properties.xml
* part of vendor already

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 14:55:46 +00:00
Omkar Chandorkar b294a01bc4
sm8150-common: update to OnePlus7ProOxygen_21.P.37_OTA_0370_all_2105200027
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-23 04:41:26 +00:00
LuK1337 4d8187cd9b
[RE-APPLY]sm8150-common: audio: Set proper interface for voice-handset-tmus
* lost in 93fdf6e3d9 , my bad

Change-Id: I692ca8a6d60d2ce64825500059a4bf8fd4786d8a
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-22 04:23:50 +00:00
Omkar Chandorkar 2d0806620d
sm8150-common: cleanup rootdir scripts
* selinux didn't allow any of it in the first place
  and nothing broke, so yeet for log sanity

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-22 04:23:06 +00:00
Omkar Chandorkar f27907a3e5
sm8150-common: remove 32bit thermal blob
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-22 04:22:52 +00:00
Omkar Chandorkar e451685d49
sm8150-common: sepolicy: allow camera to read /dev/adsprpc-smd-secure
* fixes portrait mode in oneplus camera
`05-20 17:02:33.677   878  1598 E OPRTB   : doLoadLibrary():1542 doLoadLibrary RTB select: /vendor/lib64/libarcsoft_dualcam_bokeh_api.so, bokeh_select:0
05-20 17:02:33.678   878  1598 E android.hardware.camera.provider@2.4-service_64: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2459: Error -1: apps_dev_init: app does not have access to fastrpc device of domain 3 (Permission denied)
05-20 17:02:33.678   878  1598 E android.hardware.camera.provider@2.4-service_64: vendor/qcom/proprietary/commonsys-intf/adsprpc/src/fastrpc_apps_user.c:2588: Error 0xffffffff: apps_dev_init failed for domain 3, errno Permission denied
05-20 17:02:33.672   878   878 W provider@2.4-se: type=1400 audit(0.0:55): avc: denied { read } for name="adsprpc-smd-secure" dev="tmpfs" ino=28876 scontext=u:r:hal_camera_default:s0 tcontext=u:object_r:vendor_xdsp_device:s0 tclass=chr_file permissive=0`

Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-21 09:33:19 +00:00
Omkar Chandorkar c0df650e28
sm8150-common: drop unnecessary trailing \
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-21 09:33:13 +00:00
Omkar Chandorkar 18c649c609
sm8150-common: drop prebuilt servicetracker and perf libs
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2021-05-21 09:33:13 +00:00
Omkar Chandorkar bab5b863cc
Merge pull request from OneNormalUsername/eleven
sm8150-common: libinit: update model detection
2021-05-20 18:40:17 +05:30