511 Commits

Author SHA1 Message Date
AspectPower Baran
2dfe46e8bc topaz: Initialize EvoX 11.0+ 2025-09-06 17:42:39 +00:00
Bruno Martins
a2f547a63a topaz: Migrate sensor HAL to AIDL interface
Offending entries:
android.hardware.sensors@2.1-service.xiaomi-multihal
2025-09-06 13:46:21 +00:00
AspectPower Baran
a2bd97c885 topaz: Switch to mini gapps
Acquires less bloatware by default.
2025-09-06 13:29:39 +00:00
Grace Chen
83f5fc64b2 topaz: overlay: Config overlay to support 2 physical slots
Bug: 197989438
Test: Confirm sim configuration.
Change-Id: I3972e0456d8034517cc4224ef786a9292439a8b9
2025-09-06 13:29:29 +00:00
Omkar Chandorkar
d0ac4fa55a topaz: Update telephony-injection from LA.QSSI.15.0.r1
Change-Id: I2a55170c320a05f9c619ff8a5af12e04b030f0e1
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2025-09-04 15:41:02 +00:00
Ali Hasan
c8a6b7f4c1 topaz: Update sepolicy for A16
Also fix genfscon, wildcard is not supported
2025-09-04 10:47:38 +00:00
Nolen Johnson
bb6021fff6 topaz: Migrate away from TARGET_RECOVERY_DEVICE_MODULES
* Dead as of QPR2.
2025-09-04 10:22:08 +00:00
basamaryan
f169d87765 topaz: Drop legacy ANT remnants
QSSI only has platform/external/ant-wireless/hidl since a while
2025-09-04 10:18:21 +00:00
Masood
f3e3fa77a1 topaz: enable inline kernel building 2025-05-20 21:13:48 +05:00
Cassie
f4c6b0b2e6 topaz: overlay: Use the new auto network selection UI
Change-Id: I76698911103601d5f3ad67e1099790af8c2fdc18
2025-05-17 06:25:10 +00:00
AspectPower Baran
e472472f2c topaz: Adjust padding overlays 2025-05-17 06:19:43 +00:00
Ali Hasan
c9117d3d63 topaz: Define more proper location for side fingerprint sensor 2025-05-17 06:12:27 +00:00
AspectPower Baran
6af79cc680 topaz: Move overlay values to correct path 2025-05-17 06:06:10 +00:00
Michael Bestas
1d0d411d5f topaz: overlay: Enable multiple vibration strength levels support
Change-Id: If17503f2dd4bd4d6e333891f9649a7db8d809852
2025-05-16 15:35:19 +00:00
Anand S
3ffabe27f5 topaz: Explicitly override persist.vendor.radio.poweron_opt
Change-Id: I30f05ce600a2396579396a71023472efab988abf
2025-05-16 15:35:19 +00:00
Adithya R
a32f05580b topaz: Build few camera libraries to vendor
F linker  : CANNOT LINK EXECUTABLE /vendor/bin/hw/vendor.qti.camera.provider@2.7-service_64: library libcamera_metadata.so not found: needed by main executable
F linker  : CANNOT LINK EXECUTABLE /vendor/bin/hw/vendor.qti.camera.provider@2.7-service_64: library libexif.so not found: needed by main executable
E CamX    : [ERROR][UTILS  ] camxosutilslinux.cpp:1183 LibMap() dlopen: dlopen failed: library libjpeg.so not found: needed by /vendor/lib64/camera/plugins/com.xiaomi.plugin.swjpegencode.so in namespace (default), on '/vendor/lib64/camera/plugins/com.xiaomi.plugin.swjpegencode.so'

Change-Id: Ie3572db410f8ec6b0f0e8de093498063083cb8b5
2025-05-16 15:35:19 +00:00
Guidix
32132a0f27 topaz: Build libprocessgroup_shim
E vndksupport: Could not load /vendor/lib64/hw/camera.qcom.so from default namespace: dlopen failed: library libprocessgroup_shim.so not found: needed by /vendor/lib64/hw/camera.qcom.so in namespace (default)
2025-05-16 15:35:19 +00:00
Fiqri Ardyansyah
d8be1c2c2b topaz: Address missing SetTaskProfiles symbol in camera libs
The camera HAL forced stop because it could not load
/vendor/lib64/hw/camera.xiaomi.so which is due to the missing
 symbol referenced in several libraries:

fiqri@Fiqri:~/proprietary_vendor_xiaomi_marble$ grep -i -r SetTaskProfiles
grep: proprietary/vendor/lib64/hw/com.qti.chi.override.so: binary file matches
grep: proprietary/vendor/lib64/libmialgoengine.so: binary file matches
grep: proprietary/vendor/lib64/libcamxcommonutils.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

Change-Id: Ic46aae47bdf6be09736fe89d798cb7017f07cc6c
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2025-05-16 15:35:19 +00:00
mukul2259
1e3119ed1a topaz: sepolicy: Allow cameraserver to get vendor_default_prop
10-14 21:18:09.444  3893  3893 W binder:3893_2: type=1400 audit(0.0:34): avc:  denied  { read } for  name=u:object_r:vendor_default_prop:s0 dev=tmpfs ino=13374 scontext=u:r:cameraserver:s0 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
2025-05-16 15:35:17 +00:00
Michael Bestas
182c695052 topaz: Move gralloc_handle_has_reserved_size to select() 2025-05-16 15:34:48 +00:00
Nauval Rizky
b004cc4a6a topaz: props: Disable LMKD log stats
TARGET_LMKD_STATS_LOG is not used anymore and log stats is enabled by
default, so we have to explicitly disable it from runtime.
2025-05-16 15:34:48 +00:00
Bruno Martins
f43200dfe9 topaz: Set vendor init lib via soong config
Change-Id: I8f7e6b987bee58dbf09ca9ad7cfd5a7e99e19c3b
2025-05-16 15:34:48 +00:00
Michael Bestas
7e626880f0 topaz: Move Lineage Health HAL to select()
- Its deprecated

vendor/lineage/config/BoardConfigSoong.mk:34: warning: TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH is deprecated, please migrate to soong_config_set,lineage_health,charging_control_charging_path
vendor/lineage/config/BoardConfigSoong.mk:42: warning: TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED is deprecated, please migrate to soong_config_set,lineage_health,charging_control_charging_enabled
vendor/lineage/config/BoardConfigSoong.mk:46: warning: TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED is deprecated, please migrate to soong_config_set,lineage_health,charging_control_charging_disabled
vendor/lineage/config/BoardConfigSoong.mk:50: warning: TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS is deprecated, please migrate to soong_config_set,lineage_health,charging_control_supports_bypass
vendor/lineage/config/BoardConfigSoong.mk:74: warning: TARGET_INIT_VENDOR_LIB is deprecated, please migrate to soong_config_set,libinit,vendor_init_lib
[W][2025-05-11T16:15:28-0400][1258695] logParams():267 Process will be UID/EUID=0 in the global user namespace, and will have user root-level access to files
[W][2025-05-11T16:15:28-0400][1258695] logParams():277 Process will be GID/EGID=0 in the global user namespace, and will have group root-level access to files
vendor/lineage/config/BoardConfigSoong.mk:34: warning: TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH is deprecated, please migrate to soong_config_set,lineage_health,charging_control_charging_path
vendor/lineage/config/BoardConfigSoong.mk:42: warning: TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED is deprecated, please migrate to soong_config_set,lineage_health,charging_control_charging_enabled
vendor/lineage/config/BoardConfigSoong.mk:46: warning: TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED is deprecated, please migrate to soong_config_set,lineage_health,charging_control_charging_disabled
vendor/lineage/config/BoardConfigSoong.mk:50: warning: TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS is deprecated, please migrate to soong_config_set,lineage_health,charging_control_supports_bypass
2025-05-16 15:34:47 +00:00
Bart Van Assche
8d7a85e143 topaz: Restore I/O performance
As one can see in cfq_arm_slice_timer(), the CFQ I/O scheduler supports
two parameters that can make it delay I/O: group_idle and slice_idle.
Restore I/O performance by setting both the group_idle and slice_idle
parameters to zero.

Bug: 213617178
Bug: 313578691
Change-Id: I02429876790a6456ca957ff7c38f0c8bf88127f9
Signed-off-by: Bart Van Assche <bvanassche@google.com>
2025-05-16 15:34:47 +00:00
DesmondH
17296106d2 topaz: Add sepolicy rules for AtFwd
avc:  denied  { find } for pid=4800 uid=1001 name=vendor.qti.hardware.radio.atfwd.IAtFwd/AtFwdAidl scontext=u:r:radio:s0 tcontext=u:object_r:default_android_service:s0 tclass=service_manager permissive=0

Bug: 278012712
Change-Id: I4900ff3d77458e13640fa97af7e4db533604b423
2025-05-16 15:34:47 +00:00
raystef66
4b0b0ef750 topaz: sepolicy: Adress isolated_app denial
* auditd  : avc=avc:  denied  { find } for pid=17541 uid=90000 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0
* auditd  : avc=avc:  denied  { find } for pid=17783 uid=90001 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0
* auditd  : avc=avc:  denied  { find } for pid=17927 uid=90002 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0
* auditd  : avc=avc:  denied  { find } for pid=18231 uid=90003 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0
* auditd  : avc=avc:  denied  { find } for pid=18258 uid=90004 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0
* auditd  : avc=avc:  denied  { find } for pid=19433 uid=90005 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0
* auditd  : avc=avc:  denied  { find } for pid=19770 uid=90006 name=content_capture scontext=u:r:isolated_app:s0:c512,c768 tcontext=u:object_r:content_capture_service:s0 tclass=service_manager permissive=0

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-05-16 15:34:47 +00:00
Martin Liu
11a5b777a5 topaz: init: Decrease swappiness to 60
This tweak also aligns the policy with P23.

Test: boots with correct settings
Bug: 299975853
Change-Id: I0ed7088ddf2ff2fa0feca2197e5cc03c7f5c6778
Signed-off-by: Martin Liu <liumartin@google.com>
2025-05-16 15:34:47 +00:00
ZVNexus
f8c0ef3276 topaz: Enable Qualcomm TrueWireless™ Stereo 2025-05-16 15:34:47 +00:00
Ali Hasan
d6b1217b2a topaz: sepolicy: Label more wakeup nodes 2025-05-16 15:34:46 +00:00
Ali Hasan
00e9faed22 topaz: overlay: Fix DeviceAsWebcam overlay
it was moved in AOSP

also Opt out of VIDEO_ENCODE flag

Signed-off-by: Ali Hasan <ahb7671@gmail.com>
2025-05-16 15:34:05 +00:00
kamikaonashi
0a7076fb56 topaz: Silence minksocket error logs
Logcats:

04-20 08:01:32.314  1310  1465 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 591a went down
04-20 08:01:32.318  1310  1465 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 591b went down
04-20 08:01:32.322  1310  1465 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 591c went down
04-20 08:01:32.324  1310  1465 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 591d went down
04-20 08:01:32.327  1310  1465 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 591e went down
04-20 08:01:32.330  1310  1465 E minksocket: MinkIPC_QRTR_Service: client with node 1 port 591f went down

It's probably related to adsp firmware, but will Xiaomi fix it?
Let's just silence it for now.

Change-Id: Iea5acd5a5cf180f51504e1dce2f22b79f88f4695
2025-05-16 15:34:05 +00:00
EmanuelCN
3f96a7762f topaz: Tune sf region sampling 2025-05-16 15:34:05 +00:00
Deanlancer
1fcddeb276 topaz: sepolicy: Fix denials during suspend
* I auditd  : avc=avc:  denied  { find } for pid=29208 uid=1000 name=suspend_control scontext=u:r:system_app:s0 tcontext=u:object_r:system_suspend_control_service:s0 tclass=service_manager permissive=0
* I auditd  : avc=avc:  denied  { find } for pid=29208 uid=1000 name=suspend_control_internal scontext=u:r:system_app:s0 tcontext=u:object_r:system_suspend_control_internal_service:s0 tclass=service_manager permissive=0
* I auditd  : avc=avc:  denied  { find } for pid=29208 uid=1000 name=tracing.proxy scontext=u:r:system_app:s0 tcontext=u:object_r:tracingproxy_service:s0 tclass=service_manager permissive=0
2025-05-16 15:34:05 +00:00
SharmagRit
9c030b4149 topaz: sepolicy: Add mediaprovider policy to find radio service
- Silence selinux logspam
2025-05-16 15:34:05 +00:00
Unicote
26de8cead8 topaz: Drop ro.surface_flinger.force_hwc_copy_for_virtual_displays=true
- Fixes lag in pip (Picture in Picture) mode
2025-05-16 15:34:05 +00:00
Jaegeuk Kim
3f587d725c topaz: fstab: set readahead_size_kb=128 to data
This can avoid memory pressure.

Bug: 181567573

Change-Id: I654c4d3bf24fa741c3fb0255431a26d8dcf5f153
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2025-05-16 15:34:05 +00:00
Luca Stefani
d4328a087b topaz: overlay: Enable LTE+ icon
- Per request by users.

Change-Id: Iadb2a78fdb1fad971ee37e434dba616cfab172b9
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-05-12 20:22:06 +00:00
xingrz
1c94896a09 topaz: rootdir: Set restricted cpuset to the same CPUs as system-background
system-background should only include efficiency cores
and restricted should do the same in order to save
power while the screen is off. Copy system-background
CPUs instead of hardcoding to account for platforms
with varying numbers of efficiency cores.

Change-Id: I3a46190a2fa76eb1e9061a605c6a2e74006975de
2025-05-12 20:22:06 +00:00
Jake Weinstein
e4abc03689 topaz: rootdir: Do not allow foreground tasks to run on CPU7
Gold+ cores use significantly more power than Gold cores.
Only allow top-app tasks to run on Gold+ to save power
and prioritize the most critical threads.

Change-Id: I95e5e18dfe0e5b6818eee1c589a22959bea4868a
2025-05-12 20:22:06 +00:00
AspectPower
cb8b9995d6 topaz: sepolicy: parts: Add policy to modify and access sysfs_thermal
- Allow devicesettings_app to search the sysfs_thermal directory.
- Grant read and write access to sysfs_thermal files.

05-07 20:04:16.350  2772  2772 W eageos.settings: type=1400 audit(0.0:587): avc:  denied  { read } for  name="temp" dev="sysfs" ino=79976 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
05-07 20:04:16.354  2772  2772 W eageos.settings: type=1400 audit(0.0:588): avc:  denied  { read } for  name="temp" dev="sysfs" ino=79976 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
05-07 20:04:16.354  2772  2772 W eageos.settings: type=1400 audit(0.0:589): avc:  denied  { read } for  name="temp" dev="sysfs" ino=79976 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
05-07 20:04:16.362  2772  2772 W eageos.settings: type=1400 audit(0.0:590): avc:  denied  { read } for  name="temp" dev="sysfs" ino=79976 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0
05-07 20:04:17.366  2772  2772 W eageos.settings: type=1400 audit(0.0:591): avc:  denied  { read } for  name="temp" dev="sysfs" ino=79976 scontext=u:r:system_app:s0 tcontext=u:object_r:sysfs:s0 tclass=file permissive=0

Signed-off-by: AspectPower <95100392+AspectPower@users.noreply.github.com>
2025-05-12 20:22:06 +00:00
Arian
72f52d1aea topaz: overlay: Move corner content padding to SystemUI 2025-05-12 20:22:06 +00:00
karthick-kk
d44c58f825 topaz: Workaround for voip audio routing issue using a monitoring service
Fixes the problem of no sound during a VoIP call on speaker, earpiece.
This fix is intended as an interim solution pending a proper resolution in the upstream audio stack.
- When changing the sound output, for example from the speaker to the regular one, the sound in the call disappears completely, this should be fixed as of now.
2025-05-12 20:22:06 +00:00
kleidione Freitas
52b12aadee topaz: sepolicy: Allow mediacodec to access graphics_config_prop
Resolve denial where mediacodec was attempting to read graphics config properties.

The following denial was resolved:
- avc: denied { read } for comm="EvtQ_c2.qti.avc" name="u:object_r:graphics_config_prop:s0" dev="tmpfs" ino=223 scontext=u:r:mediacodec:s0 tcontext=u:object_r:graphics_config_prop:s0 tclass=file

Added allow rule to permit mediacodec to read, open and get attributes of graphics_config_prop files.

Test: Verified no SELinux denials related to graphics_config_prop access by mediacodec.

Signed-off-by: Kleidione <kleidione@gmail.com>
2025-05-10 08:27:58 +00:00
AspectPower
89e60b36cb topaz: sepolicy: Allow vendor_hal_perf_default to read sysfs status nodes
- The vendor performance HAL tries to read certain sysfs entries like thermal status or hardware states to optimize power/performance balance. 

- Add permission to fix:

avc: denied { read } for name="status" dev="sysfs" 
scontext=u:r:vendor_hal_perf_default:s0 
tcontext=u:object_r:sysfs:s0 tclass=file

Signed-off-by: AspectPower <95100392+AspectPower@users.noreply.github.com>
2025-05-10 08:27:58 +00:00
AspectPower
b155059482 topaz: sepolicy: Allow system_app to access vendor_sysfs_graphics dir
- Some system apps (Such as XiaomiParts HBM Mode) require read access to vendor sysfs nodes under /sys/class/graphics to retrieve backlight or framebuffer status. Denials were observed due to lack of directory search permissions.

- Add r_dir_perms to vendor_sysfs_graphics for system_app to resolve:

avc: denied { search } for name="backlight" dev="sysfs"
scontext=u:r:system_app:s0 
tcontext=u:object_r:vendor_sysfs_graphics:s0 tclass=dir

Signed-off-by: AspectPower <95100392+AspectPower@users.noreply.github.com>
2025-05-10 08:27:58 +00:00
AspectPower
ca2480b4fb topaz: Reduce logcat spam noise from HAL/services
- Suppressed repeated AudioPolicyConfig spam due to invalid strategy fallback
- Silenced WifiVendorHal logs failing capability queries (non-fatal)
- Muted statsd logs spamming from StatsCompanionService
- Disabled qti_sensors_hal debug logs (non-critical, high frequency)
- Reduced DisplayFeatureHal spam triggered by AOD and brightness events
- Suppressed non-impactful BluetoothAdapterService info logs
- Silenced QTI PowerHAL spams seen;

05-03 21:07:34.355  1166  1166 E QTI PowerHAL: Failed to acquire lock.
05-03 21:07:34.355  1166  1166 E QTI PowerHAL: Failed process_boost for boost_handle

Signed-off-by: AspectPower <95100392+AspectPower@users.noreply.github.com>
2025-05-10 08:27:58 +00:00
idoybh
54536d623a topaz: overlay: Limit AOD & Ambient Display refresh rate to 60Hz
overlay/[200~Change-Id: I16c09fcd46a76349f9e6a57ef136a79b8d02cfee~
2025-05-10 08:27:58 +00:00
AspectPower
00b54e9639 topaz: overlay: Resolve refresh rate mismatches and set default refresh rate to 120Hz
Signed-off-by: AspectPower <95100392+AspectPower@users.noreply.github.com>
2025-05-10 08:27:58 +00:00
AspectPower
4394cd9de7 topaz: sepolicy: Allow system_app to access KGSL and proc stats
Add missing SELinux permissions to allow system_app to read GPU and CPU
stat-related files. These denials were causing runtime warnings and
potential performance metric issues.

- Allow access to /proc/stat for CPU stats
- Allow access to vendor_sysfs_kgsl and vendor_sysfs_kgsl_gpuclk for GPU stats

Signed-off-by: AspectPower <95100392+AspectPower@users.noreply.github.com>
2025-05-10 08:27:58 +00:00
AspectPower Baran
70e674db53 topaz: Add Hearing Aid routing and configuration
Invalid config: audio_hearing_aid
2025-05-10 08:27:58 +00:00