Commit Graph

1106 Commits

Author SHA1 Message Date
Yixuan Wang 8d073840b1 sm8150-common: sensors: Remove early break for sub-HAL initialization failure
Bug: 212420575
Test: none
Change-Id: I38099a4edbdeffe99ae2d91fc9dc518c9da98b13
2023-05-03 05:04:42 +02:00
Brian Duddie 5f490fb597 sm8150-common: sensors: Fix sub-HAL handle in dynamic sensor meta events
Need to apply the sub-HAL index byte to ensure handles provided in
DYNAMIC_SENSOR_META events align properly with the [dis]connected
callbacks.

Bug: 228879057
Test: try on device with dynamic sensors sub-HAL at index > 0
Merged-In: Ic7290b51733bb829a5494ef41e9430b51dc6074e
Change-Id: Ic7290b51733bb829a5494ef41e9430b51dc6074e
2023-05-03 05:04:42 +02:00
Alexander Koskovich 56a6368e97 sm8150-common: sensors: Add group 'input' to 2.1 multihal
* Required by some OEM sensor implementations, e.g.
   ASUS ZenFone 8, ASUS ROG Phone 3, OnePlus 9. This
   is done so /dev/input/event* nodes can be read by
   the QCOM sensor HAL.

Test: Verified light and proximity sensor work on ASUS
      ZenFone 8 & ROG Phone 3 (android-12.1.0_r7).
Change-Id: I1a2d7384da0b159a4b59fcf38c37117d43b3b127
2023-05-03 05:04:42 +02:00
karthik bharadwaj d8089ab7f8 sm8150-common: sensors: Strip hinge angle sensor when running a 2.1 HAL as 2.0
VTS ensures that  2.0 HALs don't expose the hinge angle sensor,
but the 2.1 HALs must run 2.0 VTS tests. This CL ensures that
we don't expose the hinge angle sensor on the 2.0 HAL, to avoid
failing those VTS tests.

Bug: 173135479
Test: run vts -a x86 -m VtsHalSensorsV2_0TargetTest
Change-Id: I944bfb0b01be0831e45cfd3d6ed7dab6770d1b80
2023-05-03 05:04:42 +02:00
Stan Rokita 1fb2eaa255 sm8150-common: sensors: Remove unnecessary type and dup for fd
Test: Compile
Change-Id: Iab4502a03090e0c99af73fded270c537b2909591
2023-05-03 05:04:42 +02:00
LuK1337 6dc9270fe0 sm8150-common: sensors: Relocate als_correction_service to /system_ext
Change-Id: I866406c174180e54b57ddb021a500d6bd0f3388a
2023-05-03 05:04:42 +02:00
LibXZR 93f86ceace sm8150-common: sensors: Rework screen capture logic
Moving to asynchronous capture listener allows us to fix previous race
on GraphicBuffer and make sure it won't be blocked by any incident e.g.
fence timeout.

Also, guard updateScreenBuffer() with mutex to make sure lastScreenUpdate
can be updated safely.

Extends ThreadPoolMaxThreadCount to 1 because 0 is a confusing value.
Although we set max threads to 0 previously, extra binder thread was
still started according to the warning message in startThreadPool(),
which led to the race noted above as sigaction can also be run on binder
thread.

Also add verbose logging so we can do quick debugging with LOG_NDEBUG=0.

Change-Id: I4733919bc20b3c1b382e60b71c5ceaa10dedaf49
Signed-off-by: LibXZR <i@xzr.moe>
2023-05-03 05:04:42 +02:00
LibXZR 930a03bb2a sm8150-common: sensors: Capture secure layers too
They affect brightness.

Change-Id: Ifbc10a1e253c986ca720f3d610b545ef0e839e8a
Signed-off-by: LibXZR <i@xzr.moe>
2023-05-03 05:04:42 +02:00
Fabian Leutenegger 229c7d9e69 sm8150-common: Simplify pickup gesture patching
Change-Id: If9bebeab35aaf8fc9282a0c80985baf0eb8931d4
2023-05-03 05:04:42 +02:00
Omkar Chandorkar 3a209a2634 sm8150-common: switch to 1.2 QTI Bootctrl
- introduce getActiveBootSlot

Change-Id: I42e7b6b09808badade6982bc62295173e4e87aae
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-05-03 05:04:32 +02:00
Rituj Beniwal c305cd6abc sm8150-common: enable automated DC-Dimming
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
Change-Id: I05ee86d1cd64ae66787a1b32a1858247610bcfbf
2023-04-16 08:02:31 +00:00
TimoDo aa460d4aa7 overlay: Invert < > gesture keycodes
Change-Id: I92738aa28197d2bf689edf4193c1fd37b45caa60
2023-04-16 05:11:25 +02:00
TimoDo d2888fbce2 common: ro.charger.enable_suspend was moved to vendor/aospa
Change-Id: I8884a0dba8c85056f1ff39dbef3add3cc7b27571
2023-04-16 05:11:25 +02:00
timocapa 97454f0614 sm8150-common: Enable OEM fast charge detection
ref: 6c9af65b5b

Change-Id: I1eb33ada5fb66617b78cb95ccf32c8885a1b9b0c
2023-04-07 18:37:57 +02:00
timocapa 3fad6c3ad0 common: Copy audio_policy_configuration to /etc/audio/ too
Change-Id: Ifdd6184305cc3fa47056ba23ccc47c7ad952a73a
2023-04-07 18:37:57 +02:00
timocapa 58680c493a manifest: Bump qtiradio to 2.7
Change-Id: I0cadc5a0189bdafc4074fbe7b683deab0f609bbd
2023-04-07 18:37:07 +02:00
timocapa dc6996769b proprietary-files: Update from LA.UM.9.1.r1-12900-SMxxx0.0
- Pin missing blobs from old tag

Change-Id: I6eeec21ffb11e48db699838bb805e59217f406d1
2023-04-07 18:37:02 +02:00
timocapa a0934fe783 sm8150-common: Pin generated `camera.device@3.{2,3}-impl`
Generated with 4702bae071 reverted
due to it breaking 60 fps video recording

Change-Id: I498b18611c14f8cbbd83ee30f78b578bd94e9b65
2023-02-18 20:47:10 +01:00
timocapa 22c0d17c21 Partially revert "small cleanup"
This reverts commit 2e987ada56.

Change-Id: Ib0cd5092ce0130edc4e805775b0d0220826d30ef
2023-02-18 20:47:10 +01:00
Timo c92545bf06 sepolicy: label LOGO and storsec to allow OTA
Change-Id: Icfc2ddb0a2df930f077f7b376d857462431903df
2023-02-18 20:47:10 +01:00
Jake Weinstein dd8b6b1b35 sm8150-common: Use common compatibility matrix
Change-Id: I877824cc6c15cee7bdae4457984a6130430efd11
2023-02-18 20:47:10 +01:00
LuK1337 3c1caa977e sm8150-common: audio: Add "Built-In (Back) Mic" to "primary input" sink
* That way video recording apps will choose
  16-bit PCM by default instead of 24-bit
  one which happens to have quite low volume
  on this device.

Change-Id: I2130c6a759afcd50a985b2f034b5c0b5374287af
2023-02-18 20:47:10 +01:00
John Galt 021c61704f Build/use UDFPS sensor
Change-Id: Ib12af1e03245224002be273266f1eb7e9d756d81
2023-02-18 20:47:09 +01:00
Omkar Chandorkar 3fe8b4ed6a sm8150-common: cleanup boardconfig and device makefiles
Change-Id: Iefb6dffcd07e8e6cb2d4c9df42388cfd89a5bda7
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00
Omkar Chandorkar e3748615fe sm8150-common: move to lz4 for EROFS
- while lz4hc,9 provides better compression ratio, it has the cost of
  tremendous compression time and potential hit while decompressing
- internal tests on aarch64 seem to suggest the decompression hit
  is larger than x86_64

Change-Id: I5c102c03f95ace982b85a6ffa5c33aa9ce4637a4
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:09 +01:00
timocapa 9e3181a5a7 overlay: Move "config_alertSliderLocation" to SystemUI
Ref: https://gerrit.aospa.co/c/AOSPA/android_packages_apps_Paranoid_SystemUI/+/27386
Change-Id: I28f9d00571a77af0437e523d7b5cc22a70a9f1ec
2023-02-18 20:47:09 +01:00
timocapa b61226c984 overlay: Remove unused overlays
Change-Id: Id86a1cdc4b017df4e28671cfd39c06aeb4617b6a
2023-02-18 20:47:09 +01:00
Vishalcj17 7739fd8c1d DisplayMode: settingslib.collapsingtoolbar.R -> settingslib.widget.R
* Fixes "error: unresolved reference: R"

Change-Id: Ib49a86efb4cdecdf21a818fe6d3886b4a191bb12
2023-02-18 20:47:09 +01:00
timocapa ee31131c3e common: move media-legacy to media
* ref: https://gerrit.aospa.co/c/AOSPA/android_device_qcom_common/+/25550

Change-Id: Idfc43e17e25a470202dbaf4f8e66a56713180f57
2023-02-18 20:47:09 +01:00
timocapa 0585d1dcba sepolicy: remove 2 neverallows since waipio merge
Change-Id: I7654de766e10eae932354ee6d3a2a95f2e17eac0
2023-02-18 20:47:08 +01:00
Omkar Chandorkar 61d7f74f2a sm8150-common: add both mmosal
Change-Id: Ide7bf3d72da76565e9fce6f8708fc0edf92f304b
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:08 +01:00
Omkar Chandorkar 9b62a6fb2c sm8150-common: add and enable SSR stack
- this will handle our potential adsp crashes

Change-Id: I49819bef2dd863ab7cf48cced5ab6dbeefe637ee
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-02-18 20:47:07 +01:00
UtsavBalar1231 f2786e96cd sm8150-common: overlay: Update multiple vibration intensity levels config for T
Since commit: eaaf5331d6
multiple intensities configuration flag has been changed to an interger
reflect that change in here to allow multiple intensity vibration pattern in settings.

Change-Id: I13f9dbf6280623ad1c954ce96ceecbe363140062
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-09-05 02:44:44 +02:00
Adithya R 591d473791 sm8150-common: init: Install ueventd.qcom.rc to ueventd.rc
It's only loaded from /vendor/etc/ueventd.rc:
https://github.com/AOSPA/android_system_core/blob/topaz/rootdir/ueventd.rc#L1

Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: I42fb8c00ecae9af97fced15e10cb117a8af6a03d
2022-08-30 01:28:17 +02:00
timocapa 2a00cf083b BoardConfig: Update EROFS PCLUSTER SIZE
* Follow Google docs:
   https://source.android.com/docs/core/architecture/kernel/erofs

Change-Id: I1eb8b78583b13d422c5335465695b6e069846927
2022-08-30 01:26:42 +02:00
Omkar Chandorkar 3641c0e4a9 sm8150-common: fix duplicate sysprop assignment
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Change-Id: Ibfb076d067bb7c4786f65719698f2487c5f9799e
2022-08-30 01:26:31 +02:00
Tyler Trephan 66d48b8c96 sm8150-common: Update multihal to use new sensors AIDL interface
Signed-off-by: KanishkTheDerp <kanishkthederp@gmail.com>
Change-Id: I83c25910027e7f7f57d41913ec95f57094e78b09
2022-08-30 01:23:34 +02:00
timocapa 6c5585079f init: update ueventd 2022-08-09 06:51:48 +02:00
timocapa 2e987ada56 small cleanup 2022-08-09 06:38:50 +02:00
Omkar Chandorkar b6057b31c1 BoardConfig: shift recovery margin down to match notch
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2022-07-09 18:59:09 +02:00
timocapa 71f795db99 Revert "sm8150-common: Don't advertise vorbis offloading support"
* CLO supports it

This reverts commit 867b1a41fb.
2022-06-27 15:42:47 +02:00
timocapa 194933699f common: make VRR less aggressive 2022-06-16 23:04:49 +02:00
timocapa 530ba33cf1 common: Enable incrementalfs 2022-06-16 23:04:49 +02:00
Lisa Liu 72a6dbb4f0 BoardConfig: Enable LZ4 compression for ramdisk
Change-Id: Id23daba43ae7a6003cbde29480d2f433f344df73
2022-06-16 23:04:37 +02:00
timocapa 3b2124f1c3 common: Enable semi-aggressive VRR
* I may tweak this at a later point, or split it up across devices,
   depending on user feedback

 * Below around 15% force 90 hz

 * To get the brightness in integer from the UI percentage, use
   "settings get system screen_brightness"
2022-06-03 23:28:49 +02:00
timocapa 5e6351dd44 common: Enable fuse passthrough 2022-05-25 03:11:24 +02:00
timocapa feaffc512e sepolicy: Fix wakeup denials
E android.system.suspend@1.0-service: Error opening kernel wakelock stats for: wakeup38: Permission denied
W Binder:663_2: type=1400 audit(0.0:2897): avc: denied { read } for name=wakeup38 dev=sysfs ino=81797 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0

used:

for i in $(realpath /sys/class/wakeup/*); do if ! echo "$(ls -dZ $i)" | grep -q sysfs_wakeup; then echo genfscon sysfs $(echo $i | sed -e 's|/sys||g' -e 's|wakeup/wakeup.*|wakeup|g' -e 's|wakeup[0-9]*|wakeup|g') u:object_r:sysfs_wakeup:s0; fi; done | sort -u
2022-05-24 19:26:23 +02:00
timocapa b21394246d Revert "BoardConfig: Enable Vulkan"
* Needs some user reviews if their camera issues are resolved

This reverts commit 9151bf9d3a.
2022-05-23 00:49:22 +02:00
Danny Baumann a2bbc1c26d
sm8150-common: Add missing USB properties
The missing diag property actually broke the ability to use diag mode.

Change-Id: I135dc2f739e969a30a269652f599f4a79bbafceb
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-05-22 17:34:42 +09:00
Omkar Chandorkar 281bddd2ab
sm8150-common: rip Android.mk
Signed-off-by: Omkar Chandorkar <gotenksIN@aosip.dev>
2022-05-22 14:21:18 +09:00