106 Commits

Author SHA1 Message Date
aryan
dab8ea474c raphael: Override kernel BPF version to 5.4.299
This matches android12-5.4

Test: atest netd_integration_test
Change-Id: I9b811c05610c11718d64289f10ab88c8c67df3c5
2026-01-15 21:27:18 +01:00
0xCAFEBABE
9871fb7c7e venus: Update some soong config variables to bool type 2025-12-30 22:39:54 +09:00
4cc7d45cc1 venus: Initialize for Evolution X 11.x+ 2025-11-09 17:22:06 +09:00
Fiqri Ardyansyah
89743a9c93 venus: Set sensors logging level to warn
Setting the logging level for sensor to warning is
actually enough for both userbuild and userdebug.

Change-Id: I5c6a5ce215c413466a4d04b4c8fae5392258fc01
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2025-10-29 15:58:01 +09:00
Fiqri Ardyansyah
52c9ba9b89 venus: Kill log spam in logcat from SensorService
--------- beginning of main
09-16 20:02:20.468  1651  2292 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.468  1651  2466 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.468  1651  2374 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.468  1651  2454 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.468  1651  2293 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2466 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2374 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2292 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2454 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2293 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2374 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2466 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2292 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2454 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2293 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2466 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2374 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2292 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2454 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2293 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2466 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2374 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2292 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2454 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2293 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2466 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2374 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
09-16 20:02:20.469  1651  2292 W SensorService: sensor 000004f8 already enabled in connection 0xb4000077d6d5f340 (ignoring)
...

Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2025-10-29 15:58:01 +09:00
Adithya R
cf3b79629c venus: Silence some spammy logging
HWC and cit sensor logspam is so intense it bumps up logd's idle CPU
usage up to over 3%. With this change, logs are much cleaner and logd
idle CPU usage is reduced to under 1%, while still allowing error logs
to pass through.
- Do this only in user/debug builds (except eng).
- Add wifi and cnss too while we're at it, they can get noisy at times.
2025-10-29 15:58:01 +09:00
Joey Huab
8fec33a39a venus: Drop xiaomi citsensorservice 2025-10-03 14:56:51 +09:00
Giovanni Ricca
6182ed2513 venus: Decommonize libQnnHtpStub
Turns out this is platform specific. Fixes crashes on
libarcsoft_super_night_raw calls on yupik devices

Change-Id: I06b22517d313a8eeb116b0b969615203b0d53823
Signed-off-by: WilliamSado <williamsado1004@gmail.com>
2025-10-03 14:56:51 +09:00
Vincent Wang
44583eae66 venus: Enable fp screen off unlock feature and turn on by default
Bug: 389002332
Flag: android.hardware.biometrics.screen_off_unlock_udfps
Test: 1. FP screen off unlock should be included in settings
      2. FP screen off unlock should be enabled by default
Change-Id: I65eda6ae6f69ff4e6a3191d91fb8be42797c7fcb
2025-10-03 14:56:51 +09:00
Bin
6e1bbb1368 venus: Patch audio to load libaudioroute-v34.so
Change-Id: Idad20512982b8753820fffa6d956df137e462638
2025-10-03 14:56:51 +09:00
ralph950412
f81246cfcb Revert "venus: Disable T4T_NFCEE"
This reverts commit 8be8bad2233d2547ac317b71cdd6d2fc2bba10bf.

Change-Id: Ide3ba9e040bc7f998046deeab0ac3ac2a28737d3
2025-10-03 14:56:51 +09:00
Kimi Hsu
bdc17e75b2 venus: overlay: Update display shape config
Bug: 286063690
Test: make
Change-Id: I68eb0400fe3ad3ab3d65a9e2ca07448f23673e31
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2025-10-03 14:56:51 +09:00
ralph950412
870ae99dfc venus: overlay: Update auto brightness nits
From OS2.0.1.0.UKBMIXM

Change-Id: I6f437ce978e1dca603e41c6baec098418f59536d
2025-10-03 14:56:51 +09:00
Cindy Chung
150e43d1d9 venus: overlay: Modify maxGamma value of short-term model
Bug: 346699039
Test: dump display log
Flag: EXEMPT bugfix
Change-Id: I5309f2fc376af1a05cd578c2bdff7949d0a6f151
2025-10-03 14:56:51 +09:00
Peter Lin
f59d8e9e9b venus: overlay: update darkening light debounce to 2s
Bug: 298742079
test: check dumpsys display
Change-Id: Icae83917aefa6b52faac54b72d8af30d80de0660
2025-10-03 14:56:51 +09:00
Giovanni Ricca
481fb6caf9 venus: Load charger modules on recovery
Depends-On: I835fa5daaa53eb704cc6c0777d7069d47ecbe10c
Change-Id: Ib6ffccc2d21367d398e7ea57922798005ac6f9bd
2025-10-03 14:56:51 +09:00
Bruno Martins
dba0795757 venus: Switch to PowerShare AIDL
Change-Id: I97400638493a3b9d5a3b87fa6831c9affc7c3def
2025-06-27 15:36:33 +09:00
Bruno Martins
dea47731f5 venus: Set camera override format from reserved via soong config
Change-Id: I6a089e783f26c4515940d74f8e912dffa2789550
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2025-06-27 15:36:33 +09:00
Joey Huab
fbdd234f0a venus: Move camera package name flag to select() 2025-06-27 15:36:33 +09:00
Rohit Sekhar
0ceddea021 venus: set TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED 2025-06-27 15:36:33 +09:00
kamikaonashi
30655d97c8 venus: remove duplicates from proprietary-files 2025-06-27 15:36:33 +09:00
ralph950412
3673577b92 fixup! venus: Patch xiaomi camera libraries
Change-Id: I9b1082497ed97cd6e56af30b9a89144471f7dc78
2025-06-27 15:36:33 +09:00
LuK1337
9b26353fc1 venus: Fix elfchecks for camera libs
Reference: I23190f0b83c9e28aa2624a7575544b0eaf5c83c8
Change-Id: I18b0b07bf3a435dd449106653e3ca458b4f07b69
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2025-06-27 15:36:33 +09:00
pix106
89c05d33a4 venus: Migrate to py extract utils 2025-06-27 15:36:33 +09:00
kamikaonashi
7db68a9bb9 venus: overlay: drop smooth display
we use min/peak refresh rate controls
smooth display has some issues
2025-04-26 18:35:13 +09:00
LuK1337
f6de7de72b venus: Disable T4T_NFCEE
Fixes NFC on 15 QPR2.

Change-Id: Ib3091187c2f291562f16fcbc05cfa8823b78fe11
2025-04-26 18:35:13 +09:00
Fiqri Ardyansyah
0e7e83954f venus: Address missing SetTaskProfiles symbol in camera libs
~/proprietary_vendor_xiaomi_venus$ grep -i -r SetTaskProfiles
grep: proprietary/vendor/lib64/hw/com.qti.chi.override.so: binary file matches
grep: proprietary/vendor/lib64/hw/camera.qcom.so: binary file matches

This is because DECLS was removed in [1] on Android 15 QPR2, and
caused SetTaskProfiles() to be hidden, so shim SetTaskProfiles
with libprocessgroup_shim.

[1]: 3e7c17a8e7
2025-04-26 18:35:13 +09:00
pix106
79ac6e427a venus: build libprocessgroup_shim 2025-04-26 18:35:13 +09:00
kamikaonashi
7852669e18 venus: update to OS2.0.1.0.UKBEUXM 2025-04-26 18:35:13 +09:00
Bin
73e0e79193 venus: Remove duplicate proprietary libs
error: vendor/xiaomi/elish/Android.bp:2637:1: module "libcapiv2svarnn" variant "android_vendor_arm64_armv8-a_static": found in multiple namespaces(vendor/xiaomi/sm8250-common and vendor/xiaomi/elish) when including in vendor partition
error: vendor/xiaomi/elish/Android.bp:2620:1: module "libcapiv2svacnn" variant "android_vendor_arm64_armv8-a_static": found in multiple namespaces(vendor/xiaomi/sm8250-common and vendor/xiaomi/elish) when including in vendor partition
error: vendor/xiaomi/elish/Android.bp:2654:1: module "libcapiv2vop" variant "android_vendor_arm64_armv8-a_static": found in multiple namespaces(vendor/xiaomi/sm8250-common and vendor/xiaomi/elish) when including in vendor partition
2025-04-26 18:35:13 +09:00
Arian
b72b84e0cb venus: Enable udfps sensor
Change-Id: If133c8ec034c7e419a76d348dd3179edbe801946
2025-04-26 18:35:13 +09:00
ralph950412
2b64af7de7 venus: overlay: Thicken the status bar
Change-Id: Icdb357c6b5b6f46941cc1f7c48fa068f12d5b4ed
2025-04-26 18:35:13 +09:00
Arian
72bcd50a73 venus: sensors: Add v2 suffix to sensors.xiaomi
Change-Id: Ie6ef0e5fd4653eae298a3455edf14e05508e1cfd
2025-04-26 18:35:13 +09:00
Alexander Koskovich
d72ca8d2f9 venus: Set USB product string to 'Mi 11'
Change-Id: Idda062aaa38e16d7ba65356dbca8b467fbff14c1
2025-04-26 18:35:13 +09:00
Chenyang Zhong
f1c1b5044a venus: configs: ship displayconfig for brightness ramp rate
Android 12 allows the brightness ramp rate to be changed separately
for fast/slow and increase/decrease in float. Once loaded,
DisplayDeviceConfig has higher priority than the integer config
values in frameworks. The format definition is in [1].

There are 3 variants for the filename:

* display_id_46xxxxx.xml
* display_19xxxxx.xml
* display_port_xxx.xml

The value can be found in boot logs by grepping DisplayDeviceInfo.
On android 12, boot log reports the 46xxxxx value of the first
variant.

The xml file can be put in either product or vendor.

[1] frameworks/base/services/core/xsd/display-device-config/display-device-config.xsd

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
2025-04-26 18:35:13 +09:00
FlowerSea0208
90e13d689c venus: Add missing libbitmlenginev2.so
Change-Id: I245b483c0e4406eda6271f7e467662b3a36e3214
2025-01-26 04:24:19 +09:00
ralph950412
8b0c8ae2e1 venus: Add libmialgo_basic
Change-Id: Ibc30774aee0ba19138b3dd3cc06092892c1d7b90
2025-01-26 04:24:19 +09:00
ralph950412
380d82f4bb venus: Inherit miuicamera if it exists
Change-Id: I2eeb1a4979fa97faab7dd09ef80f1b91646e2cff
2025-01-26 04:24:19 +09:00
kamikaonashi
a6203d0b4b venus: update blob list to OS1.0.10.0 2025-01-26 04:24:19 +09:00
kamikaonashi
abd5cba1f8 venus: remove proprietary-firmware.txt
I dont like shipping included firmware

* can brick device (looking at poco)
* git lfs acting up, lol
* increases size of rom.zip
* users can just flash firmware zip before or after rom flash, if they are on older firmware
2025-01-26 04:24:19 +09:00
Bruno Martins
84d45dc114 venus: Set udfps props via sysprops
Change-Id: Ie06fb93892a2ba8bd8806d7d376fd6c77cda64a4
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2025-01-26 04:24:19 +09:00
Beverly
3805cfed05 venus: Update pixel pitch
Bug: 319894241
Flag: ACONFIG com.android.systemui.device_entry_udfps_refactor DEVELOPMENT
Test: manual

[ralph950412: Adapt for venus.]
6.81" = 172.974 mm
sqrt(1440^2 + 3200^2) ≈ 3509.074 (px)
172.974 / 3509.074 ≈ 0.04929 (mm/px) = 49.29 (um/px)

Co-authored-by: ralph950412 <ralph950412@gmail.com>
Change-Id: Iaa9576cb95ebe73043b7030b2b176f67bc90e3a1
Signed-off-by: ralph950412 <ralph950412@gmail.com>
2025-01-26 04:24:05 +09:00
FlowerSea0208
d0f97a6e69 venus: Use soong_config_set to set Xiaomi Biometric parameters
Change-Id: I2bb7f39c7de0374f160edd92145cdfa670fb3fde
2025-01-26 04:24:05 +09:00
ralph950412
f1d526418c venus: Switch to AIDL fingerprint HAL
Change-Id: I910f1c17ce44949d85d1653e04fb8e3ea263ab48
2025-01-26 04:24:05 +09:00
LuK1337
6beedf4ad7 venus: Adjust override prop key names
Change-Id: I436bbf425023dbe54cf3e2c35f50a5575511bc38
Signed-off-by: RobertGarciaa <chae0218@naver.com>
2025-01-26 04:24:05 +09:00
Sal Savage
8cb6fad129 venus: Replace BTM_DEF_LOCAL_NAME with a sysprop
Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53
2025-01-26 04:24:04 +09:00
FlowerSea0208
0915904869 Revert "venus: Import udfps long press sensor"
This reverts commit bf08d53168.
2024-10-20 16:08:32 +08:00
FlowerSea0208
601cd21808 venus: Fix soname of fingerprint.goodix_fod.lahaina
Change-Id: I3d740998e48b483cd455d1d60d75a31962367355
2024-10-20 16:08:32 +08:00
FlowerSea0208
d8d8e46acc venus: Unpin fingerprint blobs
Change-Id: I73d27a13b8c3a7f56a61397e4dd452b621c38d6c
2024-10-20 16:08:32 +08:00
Michael Bestas
72fea9a7c2 venus: Disable ELF checks for certain libraries
Change-Id: I61dbc3559b43becc22f69ae2c1c3e8edf95e2483
2024-10-20 16:08:28 +08:00