463 Commits
udc ... vic

Author SHA1 Message Date
15e475ab29 veux: Include MiuiCamera 2025-09-13 15:51:06 +02:00
thepriyanshujangid
a83d87ca03 veux: hidl: add missing FCM entries
The following HALs in device manifest are not declared in FCM <= level 6:
  android.hardware.ir.IConsumerIr/default (@1)
  android.hardware.light.ILights/default (@2)
  android.hardware.usb.gadget.IUsbGadget/default (@1)
  vendor.lineage.health.IChargingControl/default (@2)
  vendor.lineage.health.IFastCharge/default (@2)
2025-08-21 23:26:05 +02:00
¨raystef66¨
448b620182 veux: update FCM on IChargingControl and IFastCharge
vendor.lineage.health.IChargingControl/default (@2)
vendor.lineage.health.IFastCharge/default (@2)
2025-08-21 23:15:58 +02:00
Cassie
3f9b05e50d veux: overlay: Use the new auto network selection UI
Change-Id: I76698911103601d5f3ad67e1099790af8c2fdc18
2025-08-12 15:04:06 +02:00
kailua
346ab9a6af veux: update-sha1sums: chmod +x 2025-07-28 16:28:07 +02:00
LuK1337
2977f8037f veux: Migrate to py extract utils
Signed-off-by: Onelots <onelots@onelots.fr>
Co-authored-by: LuK1337 <priv.luk@gmail.com>
Co-authored-by: Skyblueborb <tomaszborbely0710@gmail.com>
2025-07-28 03:46:23 +02:00
8bae52b351 veux: Build DeviceAsWebcam
Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-04 14:51:47 +02:00
Alexander Koskovich
b09998d9a9 veux: Opt out of VIDEO_ENCODE flag for DeviceAsWebcam
DeviceAsWebcam is using USAGE_VIDEO_ENCODE [1] for buffers and
this results in combined usage: (VIDEO_ENCODER | CAMERA_OUTPUT).

On Qcom devices DeviceAsWebcam has red & blue colors swapped.

Originally we tried swapping HAL_PIXEL_FORMAT_YCbCr_420_SP_VENUS
with HAL_PIXEL_FORMAT_YCrCb_420_SP_VENUS in libgrallocutils,
however that inverted regular camera recording colors in some cases.

[1] d079a82ba4

Change-Id: I6c5f03fe7016f687855351c7ba15270050ea02e2
2025-06-04 14:50:00 +02:00
Yumi Yukimura
6785c1012d veux: rootdir: Remove non-working UVC streaming formats
Test results from land:
* mjpeg 720P: Has a green border on top

Test results from ugglite:
* YUYV: Works for only some seconds, then get stuck
* mjpeg 720P: No video and leads to the following SMMU error
* mjpeg 1080P: Works for only some seconds, then get stuck

Test results from pine:
* YUYV: The left and right parts of image are not synced
* mjpeg 720P: No video and leads to the following SMMU error

Let's keep mjpeg 1080P... as it doesn't have serious issue and looks clear

[  102.676956] CAM-SMMU cam_smmu_check_vaddr_in_range:319 Cannot find vaddr:0000000000000000 in SMMU. cpp uses invalid virtual address
[  102.687715] MSM-CPP msm_cpp_iommu_fault_handler:790 Fault on  identity=0x10002, frame_id=003
[  102.687734] MSM-CPP msm_cpp_dump_addr:716 stripe 0: in 77623a00, out1 77e00000 out2 77e00000, out3 77e00000, out4 77e00000
[  102.687741] MSM-CPP msm_cpp_dump_addr:716 stripe 1: in 77623b26, out1 77e00140 out2 77e00140, out3 77e00140, out4 77e00140
[  102.687748] MSM-CPP msm_cpp_dump_addr:716 stripe 2: in 77623c66, out1 77e00280 out2 77e00280, out3 77e00280, out4 77e00280
[  102.687755] MSM-CPP msm_cpp_dump_addr:716 stripe 3: in 77623da6, out1 77e003c0 out2 77e003c0, out3 77e003c0, out4 77e003c0
[  102.687761] MSM-CPP msm_cpp_dump_addr:716 stripe 4: in 7773a100, out1 77ef0000 out2 77ef0000, out3 77ef0000, out4 77ef0000
[  102.687768] MSM-CPP msm_cpp_dump_addr:716 stripe 5: in 7773a354, out1 77ef0280 out2 77ef0280, out3 77ef0280, out4 77ef0280
[  102.687829] CAM-SMMU cam_smmu_check_vaddr_in_range:319 Cannot find vaddr:0000000000000000 in SMMU. cpp uses invalid virtual address
[  102.694793] MSM-CPP msm_cpp_iommu_fault_handler:779 msm_cpp_iommu_fault_handler:779: Invalid queuelen

Change-Id: I75708c1e6372bbaffb85d0b0a7ae64f3075aa53e
2025-06-04 14:50:00 +02:00
Yumi Yukimura
d4bc838cc8 veux: Set UVC gadget streaming bandwidth to 1024
* Avoids the image getting truncated. Thanks to nift4 for inspiration.

Change-Id: I04dc6468d928cdd85745dc3f58c105bed96729f8
2025-06-04 14:50:00 +02:00
Yumi Yukimura
da28cb061b veux: Setup DeviceAsWebcam
Change-Id: Icf8e10cd21c4eef9a66af624971ffe9c4d39d992
2025-06-04 14:49:40 +02:00
1018776b3c veux: drop fastcharge implementation
Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-04 14:49:30 +02:00
c4a299168b veux: removepackages: do not override Aperture
Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-04 14:49:30 +02:00
johnmart19
0bf5c4849e veux: Guard Qualcomm thermal service hals
* Crashing on Veux, Alioth and some other devices

* Crash:
 * Earlier versions:
    - E android.hardware.thermal@2.0-service.qti: ThermalHAL not initialized properly.
    - E ThermalHalWrapper: Couldn't get temperatures because of HAL error: ThermalHAL not initialized properly.
 * Current one:
    - E ThermalManagerService$ThermalHalWrapper: Couldn't getCurrentCoolingDevices due to invalid status
    - E ThermalManagerService$ThermalHalWrapper: java.lang.IllegalArgumentException: ThermalHAL not initialized properly.
2025-06-04 14:49:30 +02:00
66181999e2 veux: drop ViperFX
* Since that Dolby is back, we don't need this additional package anymore

Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-04 14:49:29 +02:00
49523ef5e7 veux: drop vendorsetup.sh
* We have no use of this now that we can use lunch to clone everything we need.

Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-04 14:49:29 +02:00
yingjiew
fd480e995d veux: gps: Avoid access of deprecated LocUnorderedSetMap entry
When there is no client listens to some DataItemId, we will remove
the map entry. Can't access the deleted entry's iterator anymore.

Change-Id: Id64aadebf7362667fbcf0fd5191f888ed9241727
CRs-Fixed: 3886536
(cherry picked from commit 0049d459cc1772f328e29a4c6b6d129af132e7b8)
2025-06-04 14:49:29 +02:00
Michael Bestas
5b8a8bf765 veux: gps: Remove CleanSpec.mk
Change-Id: Id5a91ac0dfc35cd4c84218f02e50c0905e04c43a
2025-06-02 20:07:14 +02:00
Hridaya Prajapati
6110a1c6e4 veux: switch to common AIDL IR service
Change-Id: I36c05aaa312969e479896c6e63a26a68cf897afa
2025-06-02 20:07:14 +02:00
Sebastiano Barezzi
24a1854cfa veux: Move to Xiaomi IR AIDL
Change-Id: I46094bcbfaba252b5d98ea8211b927fdaa079e2d
2025-06-02 20:07:14 +02:00
Yumi Yukimura
f3025a6b08 veux: Migrate to QTI USB Gadget AIDL HAL
Change-Id: I6adbca2fab9a3fe0477d17f9786166828b786710
2025-06-02 20:07:14 +02:00
904cb3bfd6 veux: Don't explicitly set as an AB target
* Veux is A/B, and nowadays A/B is the default behavior.

Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-02 20:07:14 +02:00
sayann70
3f1a816d6d veux: aidl: Add google_battery to FCM & Manifest
02-09 23:48:41.292  1618  2197 W ActivityManager: Unable to start service Intent { cmp=com.google.android.turboadapter/.GoogleBatteryService } U=0: not found
02-09 23:48:41.293  1618 13122 W ActivityManager: Unable to start service Intent { cmp=com.google.android.turboadapter/.GoogleBatteryService } U=0: not found
02-09 23:48:41.308 15351 15351 E ActivityThread: Service com.google.android.apps.turbo.deadline.library.BatteryFlagService has leaked ServiceConnection axe@16c727f that was originally bound here

Signed-off-by: sayann70 <sayansarkarda2@gmail.com>
2025-06-02 20:07:14 +02:00
718aeef877 veux: props: silent some useless spam
* Silences HWUI, AppOpps and others

Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-02 20:07:14 +02:00
SimpleJony
5e0c46bc2a veux: rootdir: give thermal profiles permissions and fix thermal permissions
01-04 20:38:40.022 3663 12914 W FileUtils: No such file /sys/class/thermal/thermal_message/sconfig for writing
01-04 20:38:40.022  3663 12914 W FileUtils: java.io.FileNotFoundException: /sys/class/thermal/thermal_message/sconfig: open failed: EACCES (Permission denied)
--
05-26 13:15:30.474  2332  3692 W FileUtils: No such file /sys/class/thermal/thermal_message/sconfig for writing
05-26 13:15:30.474  2332  3692 W FileUtils: java.io.FileNotFoundException: /sys/class/thermal/thermal_message/sconfig: open failed: ENOENT (No such file or directory)

Change-Id: Ia1e96e641dc2cedf1b6ab50dc23e703f2dd880af

Co-authored-by: bittencourtjulival <julival.bitencourt@gmail.com>
2025-06-02 20:07:14 +02:00
94afd90696 veux: audio: drop audio_effects.conf
Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-02 20:07:14 +02:00
Pranav Vashi
51c564cf30 veux: dolby: Add profiles overlay for moto dolby
Change-Id: Ided92625cb73f530656e86929b3ba70fea1e940d
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:14 +02:00
Pranav Vashi
d187bc363a veux: dolby: Update dax-default from moto
Change-Id: I430adc74c64093bf3c1439e66607567cb6444b80
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:14 +02:00
Pranav Vashi
81b7421044 veux: libstagefright_foundation-v33 moved to lineage compat
Change-Id: Ib1fd8644e6c2567c89d67967f31c62582cc006ef
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:14 +02:00
dogpoopy
62d71f1263 veux: Switch dolby soundfx to libswdap
* libhwdap.so doesn't work with devices that doesn't have dolby hardware support
* libswdap.so from https://github.com/reiryuki/Dolby-Atmos-Moto-G52-Magisk-Module.git

[@neobuddy89: Pin libswdap.so from above module]
Change-Id: Icb22599d2d439a837b537b59330f30e558869532
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:14 +02:00
Pranav Vashi
280fa8dc46 veux: audio: Add dolby to audio effects
Change-Id: Ie4865489f79b617f2568fc29b382c56bb0cd6f11
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:14 +02:00
Pranav Vashi
48684c0c51 veux: audio: Apply NLSound 4.0 optimization for dolby
Change-Id: I221799b79f80933cc8302418f1290893722a5368
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:14 +02:00
basamaryan
b230059a38 veux: audio: Forcefully disable volume leveler
sed -i "/volume-leveler-enable/ s/true/false/g" configs/audio/dax-default.xml

Change-Id: I7ceb29291a9e55036d57975f5a28a149c7fcb435
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:13 +02:00
Fabian Leutenegger
597b231878 veux: Link Dolby Atmos dependencies against v33 libstagefright_foundation
* fixes crashes and absurdly high CPU usage while using dolby

Co-authored-by: Woomymy <woomy@woomy.be>
Change-Id: Ib72b775dae677f3085d0b0e2afcbb709d8690063
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:13 +02:00
basamaryan
9a5ca49814 veux: Build XiaomiDolby
Change-Id: I31ff2c27a479423951c8a645bf1cd65dc6ad6f81
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:13 +02:00
madmax7896
7676ec5b17 veux: Import Dolby audio blobs and sepolicy
Squashed with:
commit b1baf8e4109edf71727c39bff18077110174dff2
Author: Yuan Si <do4suki@gmail.com>
Date:   Sat Sep 16 06:35:46 2023 +0800

    sweet: sepolicy: Address more Dolby audio denials

    09-16 06:33:17.209   613   613 E SELinux : avc:  denied  { find } for interface=vendor.dolby.hardware.dms::IDms sid=u:r:mediacodec:s0 pid=1262 scontext=u:r:mediacodec:s0 tcontext=u:object_r:hal_dms_hwservice:s0 tclass=hwservice_manager permissive=0
    09-16 06:33:17.209  1262  8489 E DecDynamicConfig: connectService : Connect to Dolby Native Service failed
    09-16 06:33:17.209  1262  8489 E DecDynamicConfig: checkShareConfig: Dolby service is NULL

    Change-Id: Ideb557073b53e7b31f6535d6053933104b455ae7
    Signed-off-by: Yuan Si <do4suki@gmail.com>

commit e83b80995343c56382e43bf0656ee1e2b79ee067
Author: YuKongA <70465933+YuKongA@users.noreply.github.com>
Date:   Thu Oct 12 00:02:27 2023 +0800

    sweet: sepolicy: Address mediacodec denials

    Partially taken from ec0e9c641f and extended to hal_dms_server

    Change-Id: I51cfbbb2f8b9d83e74ef2f44196e8393189ca3dc
    Signed-off-by: basamaryan <basam.aryan@gmail.com>

commit 0a7aab81667f137c57fa95c4661fa7e43e0e2c1c
Author: Pranav Vashi <neobuddy89@gmail.com>
Date:   Fri Aug 2 20:27:52 2024 +0530

    sweet: Move dax-default to device tree

    Change-Id: Id2054bb5e61bcfe58706e32f44d37fe7524aa912
    Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

Change-Id: I2d466238525d074269377a82627a816527aefd74
Signed-off-by: Mesquita <mesquita@aospa.co>
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: firebird11 <hbgassel@gmail.com>
2025-06-02 20:07:13 +02:00
ea75958b8d Revert "veux: Set low memory mode"
* The Redmi Note 11 Pro 5G (codename veux/peux) has 6GB+ RAM,
making ART low-memory optimizations unnecessary. Forcing this flag
may disable performance optimizations in Android Runtime (ART)
without tangible memory benefits on this device.

This reverts commit fbfc6f8d4e.
2025-06-02 20:07:13 +02:00
ecbba940be veux: Initialize EvolutionX 10.X
Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-02 20:07:13 +02:00
299809d799 veux: Do not use the fragment for QTI vibrator HAL
* The reverted commit was including the whole fragment for vibrator.
* In this folder, the flag BOARD_OPENSOURCE_DIR was set, which used
to break audio building by setting a bad path for our source, instead
of hardware/qcom-caf/sm8350/audio

This reverts commit 76451d8187.

Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-02 20:07:13 +02:00
Bruno Martins
34dccf9d0b veux: Migrate Lineage Health to soong_config_set
Change-Id: I2eff39e83b9673aa2989d05de65c646241ba61da
2025-06-02 20:07:13 +02:00
Bruno Martins
9cda51c400 veux: Set camera override format from reserved via soong config
Change-Id: I6a089e783f26c4515940d74f8e912dffa2789550
2025-06-02 20:07:13 +02:00
de4728b620 veux: enable viperfx
Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-02 20:07:13 +02:00
Dmitry
4945c19269 veux: remove dolby
remove_spatial (unsupport)
2025-06-02 20:07:13 +02:00
54c034e4b9 veux: drop miuicamera
* This memecam has video recording broken for a while, and AGC is way better...

Signed-off-by: Onelots <onelots@onelots.fr>
2025-06-02 20:07:13 +02:00
donjohanliebert
28b93c027f veux: fix lag while app opening and QS lags
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 11:10:34 +02:00
e72a3f96ef veux: Add SystemUI restart to advanced restart menu
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 11:10:34 +02:00
LuK1337
50b510a168 veux: Adjust override prop key names
Change-Id: I436bbf425023dbe54cf3e2c35f50a5575511bc38
2025-05-21 11:10:34 +02:00
de24f4fd69 veux: sepolicy: adapt genfs_contexts to new lineage common one
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 11:10:34 +02:00
96c5230463 veux: AGC-Camera: fix soong path
* Soong namespace was defined as vendor/xiaomi/AGC-Camera while the cam was cloned at vendor/xiaomi/AGC-camera

Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 11:10:34 +02:00
c6ba6a8bc3 veux: sepolicy: move back libperfmgr to lineage path
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 11:10:34 +02:00
00b646a2a9 veux: TARGET_PRODUCT: define within prop override
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 11:10:34 +02:00
f345190394 veux: miuicamera: move to github
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 11:10:34 +02:00
EmanuelCN
f3883bcae5 veux: Enhance audio quality
Signed-off-by: NotZeetaa <rodrigo2005contente@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 11:10:34 +02:00
Adithya R
62df004919 veux: Disable IMS debugging in props
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 11:10:34 +02:00
Danny Lin
334f47c211 veux: Optimize native executables for Cortex-A76 CPU
* Allow the compiler to take advantage of ARMv8.2 extensions
   to improve performance in native executables, not
   just Java code compiled by ART.
2025-05-21 11:10:34 +02:00
Amrito | アンブロシア
bc80099b38 veux: Define Correct CPU variant
Reason No.1 :
[Klozz]
This will allow the system to make better optimizations for performance and power efficiency

 * We are using generic for major work of the cpu but enforce to use preferencially cortex-a76 for their optimizations
TARGET_CPU_VARIANT := generic: This setting tells the system to use general optimizations for any CPU type, without targeting Cortex-A78 specific features.
TARGET_CPU_VARIANT_RUNTIME := cortex-a76: Here you are telling the system that even if it uses general optimizations, it should assume that it is running on a Cortex-A76 processor during OS execution.
This is the closest you can get to taking advantage of A76 features on an A78, as AOSP does not have direct support for the A78.

The current setting is the most recommended for your Cortex-A78 device, as it gives you a good balance between optimizations and compatibility.
By using generic for the TARGET_CPU_VARIANT and cortex-a76 for the TARGET_CPU_VARIANT_RUNTIME, you are taking full advantage of your processor's capabilities without taking unnecessary risks.
Since aosp does not support Cortex-a78 the closest is cortex-a76.

* Using cortex-a55 for 2nd cpu clusters
By specifying cortex-a55 for both TARGET_2ND_CPU_VARIANT and TARGET_2ND_CPU_VARIANT_RUNTIME, we are providing the system with accurate information about the hardware in the second cluster.
This will allow the system to perform specific optimizations for these cores, thus improving performance and power efficiency.

Reason No.2 :
[amritokun]
As mentioned in the above text AOSP has no direct support for the Cortex-A78 & SM6375 (SD695) has two big clusters locked at 2.21 GHz based on Cortex-A78
As Per previous configuration by @dereference23 , He mentioned in 38dd683b70 commit
both were set to Cortex-A55 even the big ones .
This was hurting CPU performence & optimisation considerebly

Also Reffer to -
a9309428b8

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
Co-Authored-By: klozz (TeamMEX) <carlosj@klozz.dev>
2025-05-21 11:10:34 +02:00
luffy-2510
2a00eb27c6 veux: Optimize ram management
Signed-off-by: luffy-2510 <25rb10@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 11:10:33 +02:00
Cosmin Tanislav
bbda6af0c1 veux: switch to common QCOM AIDL bootctrl HAL
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 11:10:33 +02:00
75b583403a veux: removepackages: move to bp
Signed-off-by: Onelots <onelots@onelots.fr>
2025-05-21 10:53:07 +02:00
Amrito | アンブロシア
33f0b5256f veux: Fix HAL compatibility in device manifest: Update FCM <= level 6
All HALs in device manifest are declared in FCM <= level 6
ERROR: files are incompatible: Framework manifest and device compatibility matri
x are incompatible: HALs incompatible. The following requirements are not met:
android.frameworks.schedulerservice:
    required: @1.0::ISchedulingPolicyService/default
    provided:
: Success
2025-05-21 10:53:07 +02:00
Rocky7842
c677fb3f24 veux: Disable ssrec and hdmipassthru since it depends on proprietary headers
E audio_hw_extn: snd_mon_feature_init: dlopen failed
E audio_hw_extn: ssrec_feature_init: dlopen failed
E audio_hw_extn: hdmi_edid_feature_init: dlopen failed
E audio_hw_extn: spkr_prot_feature_init: dlopen failed
E audio_hw_extn: hfp_feature_init: dlopen failed
E audio_hw_extn: hdmi_passthrough_feature_init: dlopen failed

Change-Id: I948abc32a013cafc703ec30a1fb852698fd7f057
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Akash Srivastava
c9089c6b53 veux: prop: Update adm value to 12 to fix sound cracking
Change-Id: d21afb625847fa42cb0bbc138a48867475c58f8b
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Yumi Yukimura
27f0e9f7ec veux: init: Set ro.boot.hardware.revision property
* The value would be shown on Settings > About phone > Model > Hardware version.

Change-Id: I3a9707597ba01690bdf992e77d7d59d67213bca9
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Citlali-Itztli
e65b567a5d veux: WifiOverlay: Disable NL80211_REG_CHANGED event
* This is caused crash Wificond service as per logcat said "wificond: Failed to get NL80211_ATTR_MAX_NUM_AKM_SUITES"

Change-Id: db39d8043c7bb9de6cc0df977132c75f9325a582
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Jeff Johnson
0d0d46cf52 veux: wifi: Remove obsolete Intf*MacAddress items
MAC addresses are now provisioned via a separate file and
configuration via the INI file is no longer supported, so
remove the obsolete default value assignments.

Change-Id: I177da3189b60c12fb96f42f9ea63cc6148f80dc8
CRs-Fixed: 2497142
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Park Ju Hyung
0ef8e47c82 veux: wifi: Disable firmware log
Change-Id: ed2fad32309dd7300bb302f90ed33e7beb136f99
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Dmitrii <bankersenator@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Sugakesshaa
c297e102e5 veux: display: Disable HWC usage for VDS
Fixes system freezes and janks while screen recording.

Change-Id: Ic21a277a520cda57c765cecace68d2bc0a7f1ded
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
2025-05-21 10:53:07 +02:00
Yumi Yukimura
0b2398af3a veux: manifest: Bump target-level to 6
Change-Id: I8d419d248f29b7d316a87d55e19ae7ff141e19a5
2025-05-21 10:53:07 +02:00
Michael Bestas
59ea79efd1 veux: Enable UFFD GC
Kernel has support for it now.

ref: c73faa2aa2
Change-Id: I3863ee71477f321fe47646571b857fdc39a1902b
2025-05-21 10:53:07 +02:00
Amrito | アンブロシア
2dd1002605 veux: Switch to Leica Cam 2025-05-21 10:53:07 +02:00
Yan Yan
24679e1d20 veux: Add feature flag for IPSEC_TUNNEL_MIGRATION
This commit adds the IPSEC_TUNNEL_MIGRATION feature flag,
with XFRM_MIGRATE used as the implementation

Bug: 273379472
Test: build, flash and verify with "adb shell pm list features"
Test: atest IpSecManagerTunnelTest
Change-Id: Id2ee3e65183e32ea63f6251ba921e1e4c6b09ed0
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Sushrut1101
e929adcb1e veux: overlay: Remove ambient auto-brightness integer-array
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:07 +02:00
Sushrut1101
53caa15651 veux: overlay: Use integer instead of float for Doze brightness
* Set it to 55.

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
SVB
bdf5376c78 veux: init: Allow all filesystems for USB-OTG
Change-Id: I43dba6a51e68b389e750906d84aadd1f035fdad0
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Juhyung Park
38d5345adb veux: Relax refresh rate timers
Follow 38d39eb9a1 for lahaina.

[amritokun]: Adapt to holi.

ref: "arm64: dts: Delete oplus and memc timing nodes"
Change-Id: 0f5fbe5b08667acced664d81abbe079d88e626dc
Signed-off-by: Juhyung Park <qkrwngud825@gmail.com>
Co-Authored-By: Amrito | アンブロシア <bhabanidas431@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
kamikaonashi
bf5b6ad49a veux: overlay: set animations to 0.8x by default
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Han Wang
40ff04ef3d veux: Drop enable gl comp backpressure
* This is no-op when debug.sf.disable_backpressure=1
   is set. Just follow CAF here and remove this ricing.

Change-Id: If01753e3ba27dcde6576e2cc3f058ae5121cf773
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
ghostrider-reborn
f90051b059 veux: Enable frame pacing for smoother visual performance
- Enabled `vendor.perf.framepacing.enable` to improve visual smoothness by regulating frame timing. This enhancement ensures consistent frame delivery, reducing stuttering and enhancing overall visual quality, particularly in graphics-intensive applications such as games.

Change-Id: Ia5ca6707652c69e9a4aa0bdb30c20805782220b5
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
officialputuid
184e08869b veux: Remove Force triple frame buffers
* Causing some apps laggy & UI performance regression

Change-Id: I1a88503cdfbb6c52fbb66d6f67ffe26d9c51043c
Co-Authored-By: Reinazhard <reinazhard@gmail.com>
Co-Authored-By: Ratoriku <a1063021545@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
mtsxxx
a6dc8901e2 veux: props: Remove debug.sf.disable_client_composition_cache 1
Because it causes jank when pulling up quick settings.

Change-Id: I7e31389caa31b2045c7b5f73b5bf31f577bdb6f6
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Sushrut1101
4dd83eb509 veux: rootdir: Improve post_boot scripts
* Thanks to Sushrut Gupta For Helping Me

Change-Id: fe2c767966cb7aae575b93819b52283aaaa337bc
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
Co-Authored-By: Amrito | アンブロシア <amrito@myyahoo.com>
2025-05-21 10:53:06 +02:00
Tyler Wear
e11a86a08f veux: tetheroffload: Version 1.1
Update tetheroffload to version 1.1.

Change-Id: I004e44e416a88a1b39a4c80366df9008722f096b
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Ken Huang
d2de54df0f veux: Set 120Hz frame rate multiple threshold
Bug: 215043570
Test: play 24fps video and check refresh rate
Change-Id: Ie638f9dcf11e25bdd903d6cde2d0eeb794668e52
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Bruno Martins
0b75582946 veux: sepolicy: Remove duplicate snxxx AIDL rules
These are now part of qcom/sepolicy_vndr.

Change-Id: I709c29e827d51e22507027862a56cca1efcdc984
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
dianlujitao
de78490898 veux: move to aidl bootctrl hal
Change-Id: I50fd09148097f0cda03c1a105340a3fd5f55ce8d
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Sushrut1101
f4ca83ac18 veux: sepolicy: Address btmac and wifimac denials
* W libc    : Unable to set property "ro.vendor.ril.oem.wifimac" to "e0806b3fdf01": connection failed: Permission dennied
* W libc    : Unable to set property "ro.vendor.ril.oem.btmac" to "e0806b3fdf02": connection failed: Permission denied

Change-Id: I6c89c06b7f53fa625275221d732c80055435d6d6
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
basamaryan
8eaec09854 veux: overlay: Disable turbulence noise
Change-Id: I390163d0197e0cb7091b8e5df77337a42cba2efb
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
justinweng
0f5358b933 veux: props: Extend audio offload buffer size to 256kb
Extend buffer size for offload playback to reduce the frequency of CPU
wake up.
It makes ADSP to process more data one time and reduce the number of
times to wake up CPU.

Bug: 137973303
Test: MP3 playback
Change-Id: If8eb1d3041161979063bf852e2b0b397e87e7c05
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Michael Bestas
3fdee36431 veux: Migrate mount point creation out of Android.mk
Change-Id: Id5986b8a740e45f864eecdd2bd82d9455f128d6b
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
RobertGarciaa
7f1fcd26c4 veux: sepolicy: Address some denials for MIUI camera
* W libc    : Access denied finding property "persist.camera.hdr.checkerdump"
* W libc    : Access denied finding property "persist.vendor.low.cutoff"

Signed-off-by: romgharti <romgharti@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
AdarshGrewal
1174d183fb veux: props: Allow games to use 120fps
Change-Id: I7aec742ca74bb117d742cdcb6cdf2e18c3447c42
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Michael Bestas
59b0effba3 veux: gps: Convert remaining Android.mk to bp
Change-Id: I75e6af92795fe755a48557aa06106406b14c6750
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Pulkit077
29afc7cd11 veux: sepolicy: Address radio.qcriNvOpt hwservice denial
Signed-off-by: Pulkit077 <pulkitagarwal2k1@gmail.com>
2025-05-21 10:53:06 +02:00
Ramii Ahmed
9ef0427150 veux: sepolicy: Label goodix debug fingerprint properties
* W libc    : Access denied finding property "gf.debug.dump_talog_data"
2025-05-21 10:53:06 +02:00
romgharti
b6630479f7 veux: sepolicy: Address some properties
* W libc    : Access denied finding property ro.vendor.display.type
* W libc    : Access denied finding property vendor.panel.display

Signed-off-by: romgharti <romgharti@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
chrisl7
f511c519bb veux: sepolicy: Label vendor.camera.sensor.logsystem property
* W libc    : Access denied finding property "vendor.camera.sensor.logsystem"

Signed-off-by: romgharti <romgharti@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
AndroidHQ254
b9a0ced29f veux: sepolicy: Label ro.hardware.chipname property
* W libc    : Access denied finding property "ro.hardware.chipname"

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
ZIDAN44
14c1b9e0c6 veux: sepolicy: Allow mediaprovider app to find radio service
* I auditd  : avc=avc:  denied  { find } for pid=2953 uid=10242 name=isub scontext=u:r:mediaprovider_app:s0:c242,c256,c512,c768 tcontext=u:object_r:radio_service:s0 tclass=service_manager permissive=0

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Carlos Arriaga
ef7d9e35cb veux: sepolicy: Add camera labels
* W libc    : Access denied finding property "ro.camera.req.fmq.size"
* W libc    : Access denied finding property "ro.camera.res.fmq.size"

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Frost
46843ba2d2 veux: sepolicy: Label ro.miui.customized.region property
* W libc    : Access denied finding property "ro.miui.customized.region"

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Akash Srivastava
af94a179b7 veux: sepolicy: Label ro.fota.oem and ro.product.marketname property
* W libc    : Access denied finding property "ro.fota.oem"
* W libc    : Access denied finding property "ro.product.marketname"

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Deanlancer
255a4eb734 veux: 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

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Alistair Delva
e2a617f817 veux: sepolicy: Label aware properties
* W libc    : Access denied finding property "ro.vendor.aware_available"

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-05-21 10:53:06 +02:00
Amrito | アンブロシア
4e9b076c2b veux: vendorsetup: Switch Vendor repo to github 2025-05-21 10:53:06 +02:00
kamikaonashi
def1b433ca veux: fastcharge: add IRestrictedCurrent
add IRestrictedCurrent to stop log spam
2025-05-21 10:53:06 +02:00
Amrito Das
63ae132332 [SQUASH] veux: fastcharge implementation
this commit contains following commits to introduce the fastcharge toggle for veux device that use this tree

they were renamed from sm8250-common to veux

 sm8250-common: add fastcharge implementation

 * Disabling fast charge may be useful for reducing the heat produced by
   the device while charging, or for extending the lifespan of the battery

 * This commit introduces the fastcharge HIDL, which writes in the node

              /sys/class/qcom-battery/restrict_chg

   0 or 1 depeding on user selection.
   0 means that fastcharge is enabled, while 1 means that fastcharge is
     disabled

Change-Id: I369ba9c437b3a83a88c2ce74d603b7d7ddd9cfbb
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>
Signed-off-by: althafvly <althafvly@gmail.com>

6510782439

 sm8250-common: fastcharge: Make user setting persistent

Change-Id: I4ff051d6f9685e94022eab32035bfe86a65264b8
Signed-off-by: Davide Garberi <dade.garberi@gmail.com>

e050f0dab0

 sm8250-common: fastcharge: Use pragma once

Change-Id: I9a9e193a6f66f045f41394d059af8b71778e8d72

ff8e5f6173

 sm8250-common: fastcharge: Migrate to blueprint

Change-Id: I200fd6c685183c98f0815b207adae5aa75a37238

4e0d22f486

sm8250-common: Build fastcharge implementation
Change-Id: I3e6994d2c2f419dc8ce98a060204fda3dd16df81

136d369c4e

sm8250-common: Sepolicy: Label FastCharge more general

7a619945ca

sm8250-common: Sepolicy: Fastcharge: Provide needed permissions

https: //github.com/kamikaonashi/device_xiaomi_sm8250-common/commit/298ff28a2ab9c04f953780958de6a8971a947c51

batterysecret hack
51ebc8de81

Co-Authored-By: Ivan Martynov <johnivan19999@gmail.com>
Co-Authored-By: Bruno Martins <1696148+bgcngm@users.noreply.github.com>
Co-Authored-By: Francescodario Cuzzocrea <bosconovic@gmail.com>
Co-Authored-By: Davide Garberi <dade.garberi@gmail.com>
Co-Authored-By: Mohammed Althaf Thayyil <me@althafvly.com>
Co-Authored-By: blazerpaul15 <107421375+blazerpaul15@users.noreply.github.com>
2025-05-21 10:53:06 +02:00
Terminator-J
435506d9c7 veux: Fix the battery drain due to statsd
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2025-05-21 10:53:04 +02:00
Lup Gabriel
854000133a veux: DeviceSettings: change settingslib widget to collapsingtoolbar
device/xiaomi/veux/parts/src/org/lineageos/settings/touchsampling/TouchSamplingSettingsActivity.java
error: cannot find symbol
import com.android.settingslib.widget.R;
Signed-off-by: pabloescobar-reborn <pabloescobarreborn77@gmail.com>
2025-03-20 09:46:49 +01:00
ahmedtohamy1
a8e25dbe19 veux: sepolicy: remove multiple different specifications for vendor.nxp.nxpnfc_aidl.INxpNfc/default 2025-03-20 09:46:49 +01:00
Arian
6f40641601 veux: sepolicy: Import initial sepolicy for Xiaomi parts
Signed-off-by: pabloescobar-reborn <pabloescobarreborn77@gmail.com>
2025-03-20 09:46:49 +01:00
GreekSummer
5b154b2a2c veux: Switch to common light HAL
Lineage has switched to common light HAL. Xiaomi light was also removed completely. (#3)

* dc3069c44b

Signed-off-by: Amrito Das <bhabanidas431@gmail.com>
2025-03-20 09:46:49 +01:00
RahulGorai0206
fc63ae5b03 veux: enable window-level blur effect
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 09:46:49 +01:00
Pabloescobar-reborn
45891ef52e veux: parts: Introduce Display Satutaion Service and TileUtils
* Adjust Saturation Value Handling for Device Color Mode Compatibility

parts: Rename xiaomiparts title to Xiaomi Settings

This update refines the saturation adjustment mechanism. When the seek bar progress is set, the method executes
the command "service call SurfaceFlinger 1022 f [saturation]" via Runtime.getRuntime().exec() to apply the saturation changes.
However, it was observed that when the device's color mode is set to "saturated," a saturation value of 1.0 does not trigger any visual changes.
To address this, the code now sets a value of 1.001 for a seek bar value of 100, ensuring the desired effect is consistently applied.

* TileUtils Implementation: Implemented TileUtils to handle the addition of Quick Settings tiles, specifically for the saturation feature.
This is done with reference to the guidelines provided by Google
https://developer.android.com/develop/ui/views/quicksettings-tiles#prompt-user
this ensuring a seamless integration and user experience when creating new tiles.

Signed-off-by: Pabloescobar-reborn <pabloescobarreborn77@gmail.com>
Co-Authored-By: kenway214 <kenway214@outlook.com>
Co-Authored-By: AnierinB <anierin@evolution-x.org>
Co-Authored-By: SKULSHADY <anushekprasal@gmail.com>
Co-Authored-By: jhenrique09 <jhenrique09.mcz@hotmail.com>
2025-03-20 09:46:49 +01:00
johnmart19
e319b1f0a1 veux: parts: Implement SeekBarPreference
* Updated custom Seekbar layout
* Fixed icon behavior in custom SeekBarPreference
* Fixed iconSpaceReserved behavior on our custom Seekbar

Co-Authored-By: TheScarastic <warabhishek@gmail.com>
Co-Authored-By: Nauval Rizky <enuma.alrizky@gmail.com>
2025-03-20 09:46:48 +01:00
johnmart19
2310ebbefd veux: parts: Move to SwitchPreferenceCompat for QPR2
* More modern view and matching QPR2 settings
* Pre-QPR2 builds might expect visual issues, so recommended A14 QPR2 and higher.

Co-Authored-By: Michael Bestas <mkbestas@lineageos.org>
2025-03-20 09:46:48 +01:00
Ramii Ahmed
5eff57199a veux: parts: Initialize High Touch Polling Rate support
Used to handle our node to force enable Xiaomi's High Touch polling rate mode from kernel

Adapted High Touch Polling Rate support to S style
2025-03-20 09:46:48 +01:00
wangchaohui
9683c15870 veux: parts: Dirac: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
2025-03-20 09:46:48 +01:00
Peter Kalauskas
8c545ab44b veux: parts: dirac: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Fix for UQPR2
2025-03-20 09:46:48 +01:00
kamikaonashi
2e7be67627 veux: parts: import dirac from marble 2025-03-20 09:46:48 +01:00
Taki
03443e47ce veux: Add mediacodecs support For Dolby
* Useful for Apple Music

Co-Authored-By: Abhay Singh Gill <abhaygill017@gmail.com>
Co-Authored-By: Zenka <54382817+zenkabestia@users.noreply.github.com>
2025-03-20 09:46:48 +01:00
Arindam Bhattacharjee
5d0ccc4ef0 veux: Add Support For Sony Dolby
in this commit, we are adding support for Sony's Dolby Atmos.

Signed-off-by: mnasibzade <euoryexe@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 09:46:48 +01:00
Murat Kozan
b75187a5ad veux: sepolicy: Address Google WirelessCharger hal denial
avc:  denied  { find } for interface=vendor.google.wireless_charger::IWirelessCharger sid=u:r:platform_app:s0:c512,c768 pid=2811 scontext=u:r:platform_app:s0:c512,c768 tcontext=u:object_r:default_android_hwservice:s0 tclass=hwservice_manager permissive=0
2025-03-20 09:46:48 +01:00
RobertGarciaa
a65cd25410 veux: Define missing HALs in FCM
The following HALs in device manifest are not declared in FCM <= level 5:
android.hardware.drm.IDrmFactory/clearkey (@1)
android.hardware.biometrics.fingerprint@2.3::IBiometricsFingerprint/default
android.hardware.bluetooth.audio.IBluetoothAudioProviderFactory/default (@4)
android.hardware.boot@1.2::IBootControl/default
android.hardware.usb.IUsb/default (@1)
android.hardware.power.IPower/default (@5)
android.hardware.memtrack.IMemtrack/default (@1)
android.hardware.health.IHealth/default (@3)
android.hardware.ir.IConsumerIr/default (@1)
android.hardware.sensors.ISensors/default (@2)
android.hardware.wifi.IWifi/default (@1)
android.hardware.wifi.IWifi/default (@2)
android.hardware.wifi.hostapd.IHostapd/default (@2)
android.hardware.wifi.supplicant.ISupplicant/default (@3)
COMPATIBLE

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 09:46:48 +01:00
afterallafk
ebf297041e veux: Enable LTO Optimizations
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
2025-03-20 09:46:48 +01:00
alternoegraha
e3fe67bbca veux: prop: Update Skia Tracing Properties
Since Android 14 (U), debug.hwui.skia_atrace_enabled prop have been replaced with debug.hwui.skia_tracing_enabled and new prop called debug.hwui.skia_use_perfetto_track_events that allows Skia renderengine traced with Perfetto instead of ATrace. So, let's replace debug.hwui.skia_atrace_enabled prop from A13 (or older) with debug.hwui.skia_tracing_enabled and add debug.hwui.skia_use_perfetto_track_events into the properties, and set both props to false since we're going to disable Skia Tracing on Android 14.

Ref: 799b574b2d%5E%21/#F1
2025-03-20 09:46:48 +01:00
Yohan Black
5c8b45bec3 veux: props: disable Skia tracing by default
If the prop "debug.hwui.skia_atrace_enabled" is enabled, too many skia tracing calls will be printed in every frame. This has obvious overhead on performance/power, and can cause many janks. So disable it by default, and user can set it manually if necessary.

Co-Authored-By: CHRISL7 <70589286+CHRISL7@users.noreply.github.com>
2025-03-20 09:46:48 +01:00
Amrito | アンブロシア
3507e2b593 vendorsetup: Track vendor_xiaomi_miuicamera from my bitbucket 2025-03-20 09:46:48 +01:00
luk1337
5dd8c5dac8 veux: Add script to update sha1sums of kanged blobs
Squash of:
* Add script to update sha1sums of kanged blobs
* Handle moved blobs in update-sha1sums.py script
* Add unpinning support to update-sha1sums.py script
* Format update-sha1sums.py with yapf
* Better handle line breaks
* Handle line with opts

Signed-off-by: LuK1337 <priv.luk@gmail.com>
Change-Id: Ia5c2a7fcdd6e8472f43b2b2d2f4aa2a0de81b188
2025-03-20 09:46:48 +01:00
sdm695dev
0890e3807f veux: Add ViPER4Android FX support
Signed-off-by: sdm695dev <sdm695dev@gmail.com>
2025-03-20 09:46:46 +01:00
dianlujitao
8fcf83d3ae veux: remove OMX
* OMX HW video codecs are no longer used after enabling Codec2
 * OMX HW audio codecs won't work without QCOM A/V enhancements, which
   we don't have on Lineage.

Change-Id: I65852151c8fb6387add5fc4402ba3f13c97b5f64
2025-03-20 09:46:10 +01:00
dianlujitao
8435215da8 veux: nuke ATFWD
It's normally not used at all.

Change-Id: Idb824b3b8c783b6ac962e604df05f9154beb4ed2
2025-03-20 09:46:10 +01:00
Amrito | アンブロシア
8beffa8775 veux: Reorder libs with the help of the script
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 09:46:10 +01:00
Devin Moore
8d0523f869 veux: Switch to new AIDL IR service
Test: atest VtsHalIrTargetTest hal_implementation_test
Bug: 205000342
Change-Id: I70c54aa8e8962939cc8f4b42fbbe828e9dad7f0d
Signed-off-by: Ramadhani <ramadhanifals@gmail.com>
2025-03-20 08:58:11 +01:00
someone5678
63e1a0d505 veux: Build vendor.qti.hardware.capabilityconfigstore@1.0
Log:
07-08 14:11:18.637  1300  1300 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:18.724  1366  1366 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/vppservice": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by /vendor/lib64/libvpplibrary.so in namespace (default)
07-08 14:11:23.638  3100  3100 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:28.644  3177  3177 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:33.651  3194  3194 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:28.395  5816  5816 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable
07-08 14:11:45.348  7112  7112 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service": library "vendor.qti.hardware.capabilityconfigstore@1.0.so" not found: needed by main executable

Signed-off-by: sdm695dev <sdm695dev@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:11 +01:00
Omkar Chandorkar
6cd27537e2 veux: Use AOSP assert seperator
- why deviate?

Change-Id: I07a016d4d793c855ccbfac3c5251c22efdeb0a68
Signed-off-by: sdm695dev <sdm695dev@gmail.com>
2025-03-20 08:58:11 +01:00
Sebastiano Barezzi
21b1479af2 veux: Add a script to reorder blobs list
Change-Id: I76e85e07f5a562b7e2a3683da264ccebff5c3613
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:11 +01:00
pkm774
72d836c5ec veux: Disable slow blur effect to avoid laggish blur effect
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:11 +01:00
zeelog
aa3e20d972 veux: overlay: enable config_ui_enableFadingMarquee
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
UtsavBanar1231
dd9dd1471f veux: configs: Disable logging from camx module
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
UtsavBanar1231
8a9bf28549 veux: Import camxoverride settings configuration
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
Amrito | アンブロシア
7ae7a2ddac veux: overlay: Configure Regulatory info
* Extracted From Redmi/veux_global/veux:13/TKQ1.221114.001/V816.0.12.0.TKCMIXM:user/release-keys

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
Fabian Leutenegger
204eb3cbd5 veux: overlays: Add more modern camera icon overlay for aperture camera
* Fix Some Typo Issues Too
2025-03-20 08:58:10 +01:00
Sarthak Roy
308c953ee1 veux: overlays: Add Aperture QRCodeComponent support
* Fixes QR QS tile in All Builds (Which Have Same Bugs)

Signed-off-by: Sarthak Roy <sarthakroy2002@gmail.com>
Change-Id: Idd692578418f662ce6aa42ed10b227cd4816d9c9
Signed-off-by: Sushrut1101 <guptasushrut@gmail.com>
Co-Authored-By: Michael Bestas <mikeNG@users.noreply.github.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
Omkar Chandorkar
3793d2cdbe veux: overlay: Configure Aperture camera
- Also add overlay to unlock additional camera framerates
This unlocks 60fps recording on main back camera (cam ID 0) and secondary back camera (cam ID 1). As for front facing camera (cam ID 1), it only supports 30fps recording on resolutions up to 1080p.

[amritokun]: Adapt to sm6375-common

Change-Id: I14e9bf9ba71c9d9f4aca04f3b558a1d72e248a60
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
kamikaonashi
fbfc6f8d4e veux: Set low memory mode
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
kamikaonashi
164fedb1fa veux: set ART debug to release mode 2025-03-20 08:58:10 +01:00
kamikaonashi
3d4f372bd6 veux: parts: update clear_speaker_sound.mp3
nobody uses it, so include easter egg :)
2025-03-20 08:58:10 +01:00
karthik558
7b0ae38051 veux: Add props to improve battery backup
Change-Id: I1a81620df08180ded82fd527e17aa9a8fe0d01d3
Signed-off-by: tanvirr007 <tanvir.mymnsngh@gmail.com>
2025-03-20 08:58:10 +01:00
Amrito | アンブロシア
25343d8c21 veux: Nuke libqti-perfd-client.so from public.libraries.txt
* We are using `libperfmgr`

Signed-off-by: Amrito | アンブロシア <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
Ramii Ahmed
c9b19dd302 veux: import public libraries list
* From veux_global-user 11 RKQ1.211001.001 V13.0.10.0.RKCMIXM release-keys

Change-Id: Ibb726df72d42e5836c3591bd28a836aa9b674c8e
2025-03-20 08:58:10 +01:00
wshamroukh
0b30a3e446 veux: rootdir: Disable adsprpcd
ADSP is spamming the logs:
E adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/adsprpcd.farf. (No such file or directory)
E adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/adsp/adsprpcd.farf. (No such file or directory)
E adsprpcd: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/adsprpcd.farf. (No such file or directory)
E sscrpcd : vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2846: Error 0x200: apps_dev_init failed for domain 2, errno Transport endpoint is not connected
E sscrpcd : vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2944: Error 0x200: open_dev (-1) failed for domain 2 (errno Transport endpoint is not connected)
E sscrpcd : vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1334: Error 0x200: remote_handle_open failed for adsp_default_listener (errno Success)
2025-03-20 08:58:10 +01:00
DennySPb
70578033f2 veux: Ship liba2dpoffload.so from stock
This reverts commit 90b58e5c07346f7c1a0d04a182796cf7b89321ca.
-fixes crash on audio service
01-19 23:18:42.254 30055 30055 F DEBUG   :       #00 pc 000034e0  /vendor/lib/libtinyalsa.so (mixer_get_ctl_by_name+16) (BuildId: db2bf4d0ca706ad6d995570ca7224631)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #01 pc 00008e27  /vendor/lib/liba2dpoffload.so (reset_a2dp_enc_config_params+46) (BuildId: a5badbc2ec4caa8aa8bc51178a100607)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #02 pc 00008cf3  /vendor/lib/liba2dpoffload.so (reset_codec_config+2) (BuildId: a5badbc2ec4caa8aa8bc51178a100607)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #03 pc 00007db9  /vendor/lib/liba2dpoffload.so (a2dp_set_parameters+1248) (BuildId: a5badbc2ec4caa8aa8bc51178a100607)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #04 pc 00045f49  /vendor/lib/hw/audio.primary.veux.so (adev_set_parameters+1508) (BuildId: ae56f34eb3e3f0a9c019e9b0828a5d3e)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #05 pc 000175df  /vendor/lib/hw/android.hardware.audio@6.0-impl.so (android::hardware::audio::V6_0::implementation::ParametersUtil::setParametersImpl(android::hardware::hidl_vec<android::hardware::audio::V6_0::ParameterValue> const&, android::hardware::hidl_vec<android::hardware::audio::V6_0::ParameterValue> const&)+266) (BuildId: 32ec11fe38cbe1b8386a5049ed0c26c1)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #06 pc 000156f3  /vendor/lib/hw/android.hardware.audio@6.0-impl.so (android::hardware::audio::V6_0::implementation::Device::setParameters(android::hardware::hidl_vec<android::hardware::audio::V6_0::ParameterValue> const&, android::hardware::hidl_vec<android::hardware::audio::V6_0::ParameterValue> const&)+10) (BuildId: 32ec11fe38cbe1b8386a5049ed0c26c1)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #07 pc 0001801d  /vendor/lib/hw/android.hardware.audio@6.0-impl.so (android::hardware::audio::V6_0::implementation::PrimaryDevice::setParameters(android::hardware::hidl_vec<android::hardware::audio::V6_0::ParameterValue> const&, android::hardware::hidl_vec<android::hardware::audio::V6_0::ParameterValue> const&)+12) (BuildId: 32ec11fe38cbe1b8386a5049ed0c26c1)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #08 pc 0003905b  /vendor/lib/android.hardware.audio@6.0.so (android::hardware::audio::V6_0::BnHwDevice::_hidl_setParameters(android::hidl::base::V1_0::BnHwBase*, android::hardware::Parcel const&, android::hardware::Parcel*, std::__1::function<void (android::hardware::Parcel&)>)+286) (BuildId: 3de82f5f37dab67def58a76fd3720beb)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #09 pc 000507b5  /vendor/lib/android.hardware.audio@6.0.so (android::hardware::audio::V6_0::BnHwPrimaryDevice::onTransact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+2620) (BuildId: 3de82f5f37dab67def58a76fd3720beb)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #10 pc 0003a85b  /vendor/lib/libhidlbase.so (android::hardware::BHwBinder::transact(unsigned int, android::hardware::Parcel const&, android::hardware::Parcel*, unsigned int, std::__1::function<void (android::hardware::Parcel&)>)+94) (BuildId: 7f62dcadb51cbf1ea118537bfdaea0a0)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #11 pc 00031e89  /vendor/lib/libhidlbase.so (android::hardware::IPCThreadState::joinThreadPool(bool)+636) (BuildId: 7f62dcadb51cbf1ea118537bfdaea0a0)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #12 pc 0000309d  /vendor/bin/hw/android.hardware.audio.service (main+4056) (BuildId: cc22e9aec32327099cce91a22eea1db9)
01-19 23:18:42.254 30055 30055 F DEBUG   :       #13 pc 0003636b  /apex/com.android.runtime/lib/bionic/libc.so (__libc_init+74) (BuildId: ce474fc58869ea891c1ed8c192c84527)

Signed-off-by: DennySPb <dennyspb@gmail.com>
Signed-off-by: sdm695dev <sdm695dev@gmail.com>
2025-03-20 08:58:10 +01:00
Danny Lin
6fb5e25804 veux: rootdir: kill statsd service
When opening and closing activities in Settings, a measurably
significant amount of CPU time is spent processing and logging stats
events in statsd:

0.02%     /apex/com.android.os.statsd/lib64/libstatspull.so                                                                                         @plt
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    @plt
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    SocketListener::runListener()
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    android::os::statsd::LogEvent::parseBuffer(unsigned char*, unsigned long)
0.01%     /apex/com.android.os.statsd/bin/statsd                                                                                                    android::os::statsd::LogEvent::parseAnnotations(unsigned char, int)

Over longer device uptimes with real-world usage, statsd uses a
substantial amount of total CPU time. We have no use for the stats
recorded by statsd, so disable the service entirely to save CPU in
potential hotpaths.

This is the system/core part of the change; changes to frameworks/base
are also required.

Test: simpleperf record -a; verify that statsd no longer appears in
      sample hits
Change-Id: Idf6fdb0eff987169bd5f370dd72315e831a669e6
2025-03-20 08:58:10 +01:00
Amrito | アンブロシア
0da9d6ab26 veux: Make masterclear.allow_retain_esim_profiles_after_fdr veriant specific
* Only Japanese variant has E sim , so let it be the part of Japanese variant not  all variants across the globe
2025-03-20 08:58:10 +01:00
dlwlrma123
938d8ed333 veux: props: add touch improvements sysprops
* i was surpised that these props still exists (codewise) at [1] and [2], iirc this was also discussed on xda [3].

[1]: https://github.com/projectarcana-aosp/platform_frameworks_native/blob/12.x/services/inputflinger/reader/InputReader.cpp
[2]: https://github.com/projectarcana-aosp/platform_frameworks_native/blob/12.x/services/inputflinger/reader/mapper/TouchInputMapper.cpp
[3]: https://forum.xda-developers.com/t/possible-fix-for-touchscreen-issues-misses-updated-08-29.3172100/

Change-Id: Ic9fa4b4105ffcc44fd7e05f52b7d609e1193d92e
Signed-off-by: saikiran2001 <bjsaikiran@gmail.com>
Signed-off-by: JaswalAshish <ashish@m.ms.evolution-x.org>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2025-03-20 08:58:10 +01:00
Danny Trunk
dbe740ed76 veux: Do not block binder thread on incoming calls 2025-03-20 08:58:10 +01:00
Alexander Martinz
6969d9c242 veux: disable partial split strategy in sm
Disable the partial SRC split strategy in SDM.

Signed-off-by: Amrito Das <bhabanidas431@gmail.com>
2025-03-20 08:58:10 +01:00
Amrito | アンブロシア
ab7776e4b3 veux: shallow clone everything and switch to bit bucket for vendor 2025-01-29 21:59:01 +05:30
Amrito | アンブロシア
01d039f99a veux: parts: Add 90hz per app refresh rate 2025-01-29 21:59:01 +05:30
kamikaonashi
40b376ec06 veux: configs: move task_profiles.json to dt 2025-01-27 23:03:30 +05:30
Ryan Mitchell
663772ffd1 veux: Use component-override to configure Bluetooth
Runtime Resource Overlays (RROs) can no longer change the value of
resources in manifest when read during PackagerParser.

This change uses component-override to enable the service by default.

Remove usages of profile_supported_* from overlays as they no
longer configure the enable state of Bluetooth components.

Bug: 135048762
Test: adb shell pm query-services \
      com.android.bluetooth/.avrcpcontroller.AvrcpControllerService
      adb shell pm query-services \
      com.android.bluetooth/.hid.HidDeviceService
      adb shell pm query-services \
      com.android.bluetooth/.sap.SapService

Change-Id: I284d254a921b14d1533745611a083f4b5a27d9dc
2025-01-27 23:03:30 +05:30
RealJohnGalt
26cbd09e3a veux: media: add dav1d av1 decoder entry
Based on 10bit av1 for msmnile which can do up to 1080p60 10bit av1
without frame drops.

NOTE: YouTube app ignores perf limits
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2025-01-27 23:03:30 +05:30
Terminator-J
97762a0b2d veux: Fix the battery drain due to statsd...?
- Could it really be so simple?

Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2025-01-27 23:03:30 +05:30
Cyber Knight
75f7828206 veux: Apply dex2oat optimizations
- Set only 4 threads to be utilized for dex2oat as dex2oat supports concurrent jobs since [1].
- Moreover, set only 4 threads to be utilized for boot image dex2oat as well.

[1]: 93c605c0d6

Change-Id: I8cf2544efeb4cd0c9befbaa2c208eed68c4204ac
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: angelomds42 <angelomds42@gmail.com>
Signed-off-by: alternoegraha <noegrahachan@gmail.com>
2025-01-27 23:03:30 +05:30
Vaisakh Murali
b502f42b23 veux: Use HintManager for HWUI
This will send HWUI timings to HintManager for better CPU scheduling.
Setting a 30% margin for CPU should heavily reduce CPU loads for HWUI and
use GPU for the rest.

Change-Id: Icc1fe5fbd4712e385464b9b340a7e53e166316f2
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: alternoegraha <noegrahachan@gmail.com>
2025-01-27 23:03:30 +05:30
kdrag0n
ff2f1999d6 veux: Disable RescueParty
RescueParty's aggressive approach to error recovery almost never helps
with the problems we're likely to face, and its risk of data loss is far
too high. Force-disable it entirely and remove all other conditions,
especially those that depend on data integrity in the first place, to
reduce the risk of RescueParty triggering falsely and causing data loss.

Note that it is still possible to force-enable RescueParty for testing
purposes using the persist.sys.enable_rescue property.

Change-Id: I72e833e0fcea8833a91448a2eac1a4fd5f65c007
Signed-off-by: tanvirr007 <tanvir.mymnsngh@gmail.com>
Signed-off-by: alternoegraha <noegrahachan@gmail.com>
2025-01-27 23:03:30 +05:30
angelomds42
f277455b7b veux: Add lmkd properties to improve responsiveness
- `ro.lmk.kill_heaviest_task=true`: Prioritizes killing the heaviest task.
- `ro.lmk.thrashing_limit=50`: Sets a balanced thrashing threshold.
- `ro.lmk.thrashing_limit_decay=25`: Adjusts thrashing decay dynamically.
- `ro.lmk.psi_complete_stall_ms=80`: Speeds up critical stall detection.
- `ro.lmk.psi_partial_stall_ms=50`: Prevents performance degradation.

- Some of these values are balanced between Google's recommendations for low-RAM and high-end devices, as our device fits this mid-range category.
- The adjustments reduce overhead without significant regression in multitasking.

Signed-off-by: angelomds42 <angelomds42@gmail.com>
2025-01-27 23:03:30 +05:30
kamikaonashi
58a43b88e0 veux: rootdir: label IRQs correctly
209 = kgsl_3d0_irq
218 = msm_drm
2025-01-27 23:03:30 +05:30
EmanuelCN
34f984aa0b veux: rootdir: Move KGSL and MSM_DRM to cores 6 and 7
By putting them on the bigger cores, they can be processed quicker,
resulting in improved responsiveness.
2025-01-27 23:03:30 +05:30
Jake Weinstein
7fc62ea31a veux: Do not balance msm_drm and kgsl_3d0 IRQs
These are critical for display performance and should not be balanced
in order to improve latency and responsiveness.
2025-01-27 23:03:30 +05:30
Michael Bestas
9c20f9e830 veux: Drop COMMON_LUNCH_CHOICES
As of 14 QPR2 this is broken, let's remove it instead of updating it
every 3 months. breakfast is the way to go.

Change-Id: I097bd54b894d9a49c7ce8b1ab6f343349e268fd8
2025-01-27 23:03:30 +05:30
kamikaonashi
8ec10281cc veux: configs: move msm_irqbalance to device tree
move from vendor to device tree
2025-01-27 23:03:30 +05:30
lahaina
7028d50e4b veux: rootdir: Disable EuiccGoogle in non-JP SKUs 2025-01-27 23:03:30 +05:30
Ramii Ahmed
f5450f93b2 veux: Import snapdragon color configs
* From veux_global-user 11 RKQ1.211001.001 V13.0.10.0.RKCMIXM release-keys

Change-Id: Iefd4a4cfc026ec3ff9e888e694c84a1dbf711c1f
2025-01-27 23:03:30 +05:30
Amrito | アンブロシア
2c5526e7cd veux: move config.fs to config directory
Signed-off-by: Amrito Das / <amrito@myyahoo.com>
2025-01-27 23:03:30 +05:30
Amrito | アンブロシア
a5198b702c veux: move FCM and other manifest files to different directory
Some times cleaning main dir is better

Signed-off-by: Amrito Das / <amrito@myyahoo.com>
2025-01-27 23:03:30 +05:30
npjohnson
f332bae97f veux: Ensure we build the vendor version of libcrypto_shim
Fix:
F linker  : CANNOT LINK EXECUTABLE /vendor/bin/hw/android.hardware.drm@1.3-service.widevine: library libcrypto_shim.so not found: needed by /vendor/lib64/libwvhidl.so in namespace (default)

Reference: Ia42de59ff157cddc930a111f8ce5e36e645055ed
Change-Id: Ie9823e19a86e3066343c010f34f7832b167a2633
Signed-off-by: alternoegraha <noegrahachan@gmail.com>
2025-01-27 23:03:30 +05:30
lahaina
c6dddd053f veux: Configure eSIM & Regulatory info 2025-01-27 23:03:30 +05:30
lahaina
5e0437bda3 veux: extract-files: Fixup for enable felica 2025-01-27 23:03:30 +05:30
lahaina
e2f4291797 veux: Don't presign EuiccGoogle
* Fixes compilation issues after QPR2.
2025-01-27 23:03:30 +05:30
lahaina
43ffbd8284 veux: Pull Japan-specific blobs 2025-01-27 23:03:30 +05:30
Amrito | アンブロシア
9a70b8bfe7 veux: Switch Vendor To Gitea 2025-01-27 23:03:30 +05:30
Amrito | アンブロシア
639d3aaabe veux: Update To V816.0.12.0.TKCMIXM 2025-01-27 23:03:30 +05:30
Prathamk07
927ca695ba veux: Include AGC Camera
Signed-off-by: Prathamk07 <prathamkalra.dev@gmail.com>
2025-01-27 23:03:30 +05:30
Alexander Winkowski
8816e7a454 veux: Include MiuiCamera
Change-Id: Ic043018f738c92212564ae499e05e34f6b3e6d11
Signed-off-by: MrTopia <redkarmakar@gmail.com>
2025-01-27 23:03:30 +05:30
Amrito Das /
30f7717136 vendorsetup: Use My Fork Of hardware_qcom-caf_sm8350_audio_configs_holi 2025-01-27 23:03:30 +05:30
ghostrider-reborn
b502e17124 veux: Fix battery and USB OTG detection
* In cape (msm-5.10) pmic driver now lies in adsp [1], so
   adsp firmware must to be loaded along with qti battery/
   charger kernel module, in order to get battery and usb
   power_supply up & running

 * With this, we dont need to set usb mode to peripheral
   explicitly either

 * The GKI kernel for 5.10 explicitly disabled
   FW_LOADER_USER_HELPER_FALLBACK, and the right way to enable it is to
   echo 1 to the /proc/sys/kernel/firmware_config/force_sysfs_fallback,
   so do this before writing to adsp sysfs node.

[1]: 4e2b0f663a

Depends-On: Id0e64302dbbdc53620cbc1825c36e13bb9e58aef
Change-Id: I835fa5daaa53eb704cc6c0777d7069d47ecbe10c
Signed-off-by: MrTopia <redkarmakar@gmail.com>
2025-01-27 23:03:30 +05:30
MrTopia
539b809f84 veux: Add Support for BCR
Signed-off-by: MrTopia <redkarmakar@gmail.com>
2025-01-27 23:03:30 +05:30
Lunarixus
ad5c46d5f7 veux: Remove unwanted GApps
Signed-off-by: MrTopia <redkarmakar@gmail.com>
2025-01-27 23:03:30 +05:30
Taki /
82bd6f1f29 veux: audio: Use QCOM implementation for audio effects
* AOSP effects doesn't give as thicc'n'sicc bass boost as the QC effects do.

Co-Authored-By: ANUSH MADATHUMKARA <Anush.4376@gmail.com>
Co-Authored-By: Ivan Martynov <johnivan19999@gmail.com>
Co-Authored-By: Murat Kozan <muratkozan350@gmail.com>
2025-01-27 23:03:30 +05:30
Frost
9119452353 veux: Update from V816.0.9.0.TKCMIXM
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-27 23:03:30 +05:30
Frost
8f0e38d802 veux: Fix soname of renamed libraries
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-27 23:03:30 +05:30
Sebastiano Barezzi
ff16eba6c1 veux: Rename prebuilt audio HAL and libs
Change-Id: Ia46a5ba431767795135f058f092aa38999e860ae
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-27 23:03:30 +05:30
Frost
4528b4aaa8 veux: Update proprietary files list
Add missing libs

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-27 23:03:30 +05:30
Park Ju Hyung
9d91ded6c5 veux: Optimize everything on preopt We have plenty of space left at /system
Change-Id: I39d552259b66ec329c56cd4f4a7fc46fb2c07457
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: orgesified <gesishabani1@gmail.com>
Signed-off-by: clarencelol <clarencekuiek@icloud.com>
Signed-off-by: mutixd <afatsum.605@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2025-01-27 23:03:30 +05:30
DarkJoker360
81581b436a veux: rootdir: Stop bootanimation service after boot * Some users reported bootanimation lags and freezes after a while. Looking from logs it fails to exit once boot is completed. Stopping bootanimation service, as workaround, is preventing this issue.
Signed-off-by: improbir <ghosh_probir@yahoo.com>
Signed-off-by: kssrao13882 <kssrao13882@gmail.com>
Signed-off-by: Omar Mohamed <omarcoptan9@gmail.com>
Signed-off-by: Arijit78 <sahaarijit2007@gmail.com>
2025-01-27 23:03:30 +05:30
Eric Laurent
7872ed359c veux: 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
- updated spatial audio blobs from cheetah-14-AP1A.240405.002

Bug: 237677573
Test: spatial audio playback
Change-Id: Ic9c32d813a19ba2789425e12ee9016d53ab30678
Signed-off-by: ULTIMATE-RITESH <ultimateritesh987@gmail.com>
Signed-off-by: MrTopia <redkarmakar@gmail.com>
2025-01-27 23:03:30 +05:30
Chenyang Zhong
fcff21282a veux: enable Seamless Transfer
It allows users to switch between audio output devices by tapping the music
note icon on the notification of a music app.

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: krtonia <krtonia@gmail.com>
2025-01-27 23:03:30 +05:30
Daniel Jacob Chittoor
2c36c1aaa5 veux: init: Enable suspend to RAM
* Improve idle drain considerably
2025-01-27 23:03:30 +05:30
ZVNexus
e8354787f0 veux: properties: Enable Qualcomm TrueWireless™ Stereo audio
* Enable/Disable TWS plus feature support using persist property - persist.vendor.btstack.enable.twsplus

* TWS plus feature is supported only if property is set to True else feature is not supported.By default property is set to False.

Signed-off-by: kibria5 <mdkibria687@gmail.com>
2025-01-27 23:03:30 +05:30
Tommaso Fonda
5eff01a540 veux: gps: Use GrapheneOS's SUPL server 2025-01-27 23:03:23 +05:30
Amrito Das /
61832e4f6c veux: Migrate Some Audio Configs [2/2]
* From - https://github.com/Amrito-Projects/hardware_qcom-caf_sm8350_audio_configs_holi.git
2025-01-23 14:08:47 +05:30
kamikaonashi
1cac48164a veux: switch to AOSP WFD 2025-01-23 14:08:47 +05:30
Amrito Das /
dfecebad48 stone: Introduce Vendorsetup.sh To Clone Device Tree Dependencies 2025-01-23 14:08:47 +05:30
danielml
2a64862a3d veux: Build xiaomi-telephony-stub
To provide the required Xiaomi IMS methods

Change-Id: I1e75476a0d2ed55b5eae2a0a2c6ca4c3c4e2c0f1
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
kleidione Freitas
fb9564251c veux: parts: Drop doze settings
Signed-off-by: kleidione <kleidione@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Malathi Gottam
83f9b863c5 veux: media_profiles: Edit profiles xml in accordance with schema
Export of Video Editor codec profiles & levels and
configuration of Video editor capalibilies,
these two entries are no longer needed hence removed.

Original-Change-Id: I8252415f37f2b1089e7281eec32deda9fd6e98cf
Change-Id: Ib8b4f52b4b83a0a31a66d118c75005ac9945a4e9
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Bruno Martins
5a4d080af0 veux: Remove software OMX blobs
Default to C2 codecs from swcodec apex.

Change-Id: I32f0b0abe680c1f350268115a3cc5488a2a57ec3
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Michael Bestas
ca38ce9667 veux: Remove media_codecs_google_c2*
AOSP codecs can be used by default and it is not necessary to include
them device side.

Change-Id: I8227b06f0466b614f12fa9008402b92461ea3dd0
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Michael Bestas
4caa5c965d veux: Use AOSP default Codec2/OMX ranks
debug.stagefright.ccodec=4
is the default value in frameworks.

debug.stagefright.omx_default_rank=0
was used to rank OMX SW codecs lower than OMX HW codecs
but we have removed all OMX SW codecs now.

Change-Id: Idf55ec02c2c0f4d2fa73f949cffef0d820a54570
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Aaron Kling
e3171b8e6b veux: Remove software omx codec references
These are no longer available as of Android 14 QPR3. The C2 codecs
available by default in the swcodec apex will be used instead.

Change-Id: I8cdf3e700823779a7382c66c3df8410d41209b7c
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Frost
3f5af6f742 veux: Import media configs
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Michael Bestas
a6a8cccf3c veux: Switch to AIDL USB HAL
Change-Id: I70f6a4e57eef577d86987bfae44f381a4f107624
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Frost
ed5eb9816d veux: Update proprietary files list
Add missing files

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Frost
095396c63a veux: Update from V816.0.8.0.TKCMIXM
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:47 +05:30
Michael Bestas
65b1544d5d veux: Switch to AIDL thermal HAL
Change-Id: I6ae621194044ab66fad69b9ef997b3b347bf6120
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Manish Kushwaha
fe57bebf65 veux: Migrate sensor HAL to AIDL interface
Bug: 247478991
Test: tested on-device (P23) ab/P46941077
Test: `sensor_test -ahal list` and `sensor_test list`
Test: `sensor_test -ahal sample -s0` and `sensor_test sample -s0`

Change-Id: I40f6ab6b7780c53cd638a1f77c95f6c324dc2d15
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Michael Bestas
a4a8e47e3e veux: Shim libwvhidl and libwvdrmengine with libcrypto_shim
The following change
e202e51cb0
removed symbols that our libs require.

Change-Id: I1325c34ecec3d339dd68c665010ecb36fa2e6a29
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Michael Bestas
0b2985e4e1 veux: Sync extract scripts with 22 templates
Change-Id: I7963ae050cfb193c5d0c2636da9c1e8f82bcdbdb
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Frost
6055f17895 veux: sepolicy: Label qcom rtc sysfs
* rtc-pm8xxx: probe of 1c40000.qcom,spmi:qcom,pm6125@0:qcom,pm6125_rtc failed with error -1

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
blazerpaul15
c88530e0ab veux: props: Silence ACDB-LOADER log spam
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Rheygine Medel
13da909ceb veux: Add IDisplayConfig 2.0 libraries to product packages
This will generate the 32-bit version of vendor.display.config@2.0
and libdisplayconfig.qti.so libraries.

Change-Id: Id4e49fa23a89bf4e5f62a7bbf7a8768a8197f50c
CRs-Fixed: 2672109
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Bruno Martins
d7012fa37a veux: Declare EGL libs as symlinks during extraction
Change-Id: I4b2f3e79b5e518889d9771bf8990e27babca8b61
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Frost
c5768cd748 Revert "veux: Inherit common partition reserved sizes"
This reverts commit 448d360799dbd980cc70a4de2d0f954d8ead2286.

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-23 14:08:20 +05:30
Master
ecffd99448 veux: audio: Set correct channel mask
* AidlConversionCppNdk: legacy2aidl_audio_channel_mask_t_AudioChannelLayout: no AudioChannelLayout found for legacy output audio_channel_mask_t value 0x10

Change-Id: I31fa119c7bdaae2d6df27864f738fb0af11c0a39
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Kyuofox
77e141465d veux: Allow gettid call for atfwd
We never know what upstream is thinking:
W ATFWD-daemon: libminijail[4756]: failed to get path of fd 3: No such file or directory
W ATFWD-daemon: libminijail[4756]: allowing syscall: connect
W ATFWD-daemon: libminijail[4756]: allowing syscall: fcntl
W ATFWD-daemon: libminijail[4756]: allowing syscall: sendto
W ATFWD-daemon: libminijail[4756]: allowing syscall: socket
W ATFWD-daemon: libminijail[4756]: allowing syscall: writev
W ATFWD-daemon: libminijail[4756]: logging seccomp filter failures
E ATFWD-daemon: libminijail[4756]: blocked syscall: gettid

Change-Id: I42e638f9f25395b37df57471fce68cc73e11e83f
Signed-off-by: Kyuofox <kyuofox@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Yumi Yukimura
f37edfd759 veux: Disable UFFD GC via OVERRIDE_ENABLE_UFFD_GC
Unable to determine UFFD GC flag for kernel version "5.4.259-qgki".
You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true"
or
"false" based on the kernel version.
1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports
userfaultfd(2)
   and MREMAP_DONTUNMAP.
2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise.

Change-Id: Ia8a17467e13d343c03ee29e514994946e7e84985
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Frost
a028c2785e Revert "[TMP] veux: Use prebuilt DTBO"
This reverts commit b9a34b74bd77db26944c8f6feeef5a2c44004f2b.

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Frost
0d60a3e73e veux: Update from V816.0.6.0.TKCMIXM
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
minaripenguin
e87392b4e9 veux: sepolicy: Allow system apps to access zram nodes
* needed by settings app

E ndroid.settings: Can't find memory status under: /sys/block/zram0/

Signed-off-by: minaripenguin <minaripenguin@users.noreply.github.com>
Signed-off-by: Pranav Temkar <pranavtemkar@gmail.com>
Change-Id: Ic40d2aef2812344d0a94bcd1da4367a2ee9272fe
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Michael Bestas
c6ae175ee4 veux: Sync extract scripts with templates
Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Pawin Vongmasa
b75902fc43 veux: props: Move input surface to CCodec
Test: atest CtsMediaTestCases -- \
--module-arg CtsMediaTestCases:size:small
Bug: 131800183
Change-Id: I8783a7de4a4fdf7ff2eac6697c71f6592c9a9e06
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
basamaryan
43219b8a23 veux: rootdir: Fix PowerOffAlarm
* As seen on sweet MIUI V14.0.7.0.TKFMIXM

Change-Id: I5d4e6f515d52290463d4f46882ec771fba7049b1
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Kanishk
4d296b4b9f veux: props: Disable backpressure propagation
• According to 42bc4bf8e0

Signed-off-by: Kanishk <kanishkthederp@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Michael Bestas
cd867154b1 veux: sepolicy: Move common wakeup nodes to qcom sepolicy
These are not device specific and don't belong here.

Change-Id: I47de84155fa4bd81fb67b3d6ba5465b0b5db4437
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Yumi Yukimura
174b561531 veux: Switch to QTI Memtrack AIDL HAL
Change-Id: Ibcbaff02fd56fbccc3a88c01a5f46a89cb212ef5
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
roynatech2544
d73e2021c0 veux: audio: Disable DRC
* DRC is audio policy to 'compress' volume table, which causes low max volume. Disable it for now

Change-Id: I2e2d8729a8cc5886861e09bf71f5a170f1deb121
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
LuK1337
af9a02aa78 veux: props: Enable ro.audio.monitorRotation
Adjusts stereo speaker according to device orientation.

Change-Id: I3084018f6caec67c42959dc97bde8dee00eba388
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Zhou Song
ee978acf81 veux: rootdir: Start audio rpc daemon early to improve performance
Audio HAL initialization relies on rpc daemon to load
dynamic libs, if daemon is not ready when HAL tries
to load libs, HAL has to wait until that finished.
Start this daemon early can smooth boot up of audio HAL
process, as this can save time for dynamic libs loading.

Change-Id: Id05ffc46fab812a718b6cb601e0610974b123679
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
SamarV-121
6eb4e8a228 veux: props: Disable continuous transaction tracing on all build types
Change-Id: I95657a00e38f1229675682e784b20cca12c119b0
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
UtsavBalar1231
99c2ab37ae veux: sepolicy: Label qcom extcon sysfs
Error -
W ExtconUEventObserver: Unable to read /sys/devices/platform/soc/1628000.qcom,msm-eud/extcon/extcon0/cable.1/name. This probably means the selinux policies need to be changed.
W ExtconUEventObserver: java.io.FileNotFoundException: /sys/class/extcon/extcon0/cable.1/name: open failed: EACCES (Permission denied)
W ExtconUEventObserver: Unable to read /sys/devices/platform/soc/soc:rt-pd-manager/extcon/extcon5/cable.1/name. This probably means the selinux policies need to be changed.
W ExtconUEventObserver: java.io.FileNotFoundException: /sys/class/extcon/extcon5/cable.1/name: open failed: EACCES (Permission denied)

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:15:52 +05:30
Frost
6d44031797 veux: Update from V816.0.5.0.TKCMIXM
- Blobs from veux-user-13-TKQ1.221114.001-V816.0.5.0.TKCMIXM-release-keys

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
PainKiller3
2807faa5df veux: props: Disable vsync for CPU rendered Apps
Choreographer VSync has some performance impact for CPU rendered apps
as the app has to wait for VSync to start a new frame draw. When the
frame draw time exceeds one VSync, this has a direct impact on the FPS.
debug.cpurend.vsync property controls the VSync for CPU rendered apps.

Disable VSync for CPU rendered app, by setting this property to false.

Change-Id: I6fd7f570aef796ed2b16f9531d5d897f2c533e4d
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
LiMee233
df8559d489 veux: overlay: Auto brightness adjustment
* Make auto brightness more stable, prevent the brightness from
  jittering repeatedly in dim environment.

Change-Id: I720e04dc4ea28a73af2c48967fd0f943c825245c
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Kanishk
207f96257e veux: powerhint: Drop SUSTAINED_PERFORMANCE
• This sometimes keeps the CPU frequencies locked at the set limit even when it's not needed, i.e. playing videos which need hardware decoder, leading to increased power draw, battery drain and heat. Drop SUSTAINED_PERFORMANCE tick from powerhint and let the CPU ramp up it's frequencies when needed, i.e. on demand to counteract the said issue.

Signed-off-by: Kanishk <kanishkthederp@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Frost
8dee7088aa veux: powerhint: Set launch boost to 3000ms (3s)
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Adithya R
5b390698b4 veux: parts: Get rid of proguard flags
This is obsolete.

Change-Id: I1b692d3e1a96c49ac6efd54907ea23c4b4494f7e
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Jyotiraditya Panda
4aa60d0af9 veux: parts: Refactor ClearSpeakerFragment code
- Remove unused imports
- Proper resource release by using try-finally block
- Add null checks for MediaPlayer methods
- Remove audio parameter as it's unused

Change-Id: I7dc2ba7baf6e0193e13583a7454da296254d7333
Signed-off-by: Jyotiraditya Panda <jyotiraditya@aospa.co>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
kssrao13882
5d29cdaaac veux: parts: Remove order preference for Thermal Profiles
- In VoltageOS this tab at top spoils the look of Battery section

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
truly-irham
445bd558b7 veux: sepolicy: Address denial for per-app thermal profile parts
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Chaohui Wang
2d6175edd0 veux: parts: Migrate to CompoundButton.OnCheckedChangeListener
Switch and SwitchCompat are both CompoundButton.

Using CompoundButton in Java will helps migration in the future.

Bug: 306658427
Test: manual - check Settings pages
Test: m RunSettingsLibRoboTests
Change-Id: I85a70d4c504d8584030ea4a058f30d74206ab835
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Peter Kalauskas
0d6daeb2bb veux: parts: Enable use_resource_processor for all sysui deps
This will make the build faster

Test: m checkbuild
Bug: 295208392
Change-Id: I0c1bd901429bbe3bf81c1530e156735f8637a96e
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Adithya R
fc9390f9d0 veux: parts: Fix thermal profile screen state handling
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
EmanuelCN
12412399a9 veux: parts: Checkout thermal profiles to xiaomi-sm8250 implementation
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Arian
ee8f6209e0 veux: parts: Import from xiaomi_sdm845-common
e261035d91/parts

Change-Id: I442f48780ca020f3e420ee4ccaf8ac07b05457cb
Signed-off-by: Anush02198 <anush.4376@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Arian
fb3311544d veux: props: Redefine bluetooth a2dp offload capabilities
Drop unsupported aptx codecs and rank aac below aptx

Change-Id: Ic0c4cefce9f4c39b609490b124230882dec605e9
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Bruno Martins
158d15aa81 veux: Unset BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qualcomm targets can now build hermetic partitions.

Change-Id: I241105e01d85fea983b34846ca675666ac07541b
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Bruno Martins
e8861fe9bd veux: Convert WiFi firmware symlink to install_symlink target
The last bit that was preventing building hermetic images.

Change-Id: I75bb7de4593a7992f6015317cf97e088beeba0cb
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Bruno Martins
b9a6a4c017 veux: Move to new RFS install_symlink targets
Change-Id: I9560fd0da00958d9349a0881b5a5f64a2c02e495
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Sebastiano Barezzi
76451d8187 veux: Use the fragment for QTI vibrator HAL
Change-Id: Id07088526d4698af0872ab427d1b823e098e39d1
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Michael Bestas
772b7f66b7 veux: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Bruno Martins
d2e4e9a53a veux: Inherit from common Xiaomi FCM
Change-Id: I8d4d54bba1b3dff27c11b0034852697b818ee609
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
helliscloser
8f678d4e92 veux: props: Explicitly disable GL comp backpressure
When blur is enabled, There is severe lag in Launcher3 while scrolling apps in App drawer, scrolling through recents and occasionally on QS pull down. Lag & janks are gone now, even with blur.

Signed-off-by: helliscloser <mrumais@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Bart Van Assche
99b43abec3 veux: rootdir: 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>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
TheStrechh
e1cb5380db veux: props: Enable WiFi calling over IMS
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Alex Sarraf
1bf6750934 veux: props: Set debug.sf.auto_latch_unsignaled to 0
Need to explicitly set auto_latch_unsignaled property to
disabled state to keep latch-unsignaled as the default
behavior.

Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Alexander Winkowski
6e42a3ed22 veux: props: Fix vendor.qcom.bluetooth.soc value
BT stack sets persist.vendor.qcom.bluetooth.soc which has
the correct value. This fixes FM radio.

Change-Id: I28f9bd479e966264b3d615f7d5fc5ee891cd31d6
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Alan Chen
7eef457d05 veux: wifi: Enable Optimized Power Management
- This config was renamed as of CLO commit [1] and [2].

[1]: 10989ba376
[2]: 9ef1447db3

Change-Id: Ie6ffbeebb45e5dd97b98592b7dfc195a4fb7045d
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Michael Bestas
8002d028e4 veux: Inherit common partition reserved sizes
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
markakash
8bb68ccc74 veux: audio: Fix mic issues in apps like WhatsApp
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:33 +05:30
Bruno Martins
4c1ef0e0f6 veux: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
adi8900
780fa845f1 veux: Address QCOM WFD denials
* Fixes buggy QCOM WFD connections.

Change-Id: I9e0b92e7bc9d0ae5e3f50a4f18a0b19988da9a00
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Edwin Moquete
170e956869 veux: Build android.media.audio.common.types-V2-cpp
* Needed for WFD, and not built by default on QPR2

Change-Id: If860613ef4cb6bae7f7a7e72707c24510e36abd6
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Georg Veichtlbauer
201caa6ff3 veux: powerhint: Add DT2W
Change-Id: I7d0dfe249798864a39afd4f339b692584faaf3ec
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
UtsavBalar1231
621dabf80e veux: Define AAPT configuration
Change-Id: Ic12fc243a6b86a0972ef5dc0bb26148be540be57
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Mathieu Chartier
22c326690b veux: Speed profile services and wifi-service
* Reduce RAM and Storage

Change-Id: I1d907b24cb2760ddd9cc65ac4335730c8e61a0a3
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Albert I
c37f3d30c9 veux: Configure zRAM using fstab
* "32-bit overflow" CAF mentioned in the function wrapper inside post-boot
  script sounds very bs, since if it's 64-bit it won't be affected anyways

* We do the setup using fstab instead to allow setting up more flags such
  as setting up backing device and compression streams; as such kanged from
  Pixels

* zRAM size = 50% and swappiness 30%

* Use LZ4 compression even for regular devices

Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
Change-Id: Ia6efb3d28e56fb026d9b28fc6633b2eac77dfa47
Signed-off-by: Nippon <adamayyad1999@hotmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Sebastiano Barezzi
567d0c0937 veux: Switch to common Xiaomi light HAL
Change-Id: Ic773e6e411a5cf178bba3a61b20457d62d177db0
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Alex Naidis
b6aa28ec9d veux: wifi: Tune bmps listening interval
Tune the BMPS listening interval for the moderate power level to achieve
 power savings during wifi idle.

Change-Id: I0f5f8fafb6f6b3eaa6a855aa1a7dc12c3886ddce
Signed-off-by: Alex Naidis <alex.naidis@linux.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
GeoPD
445f9dfe5c veux: props: Disable camera perflock
* Seems to improve the HDR processing in Gcam a bit fast
   and we don't have any boostframework binaries either

Signed-off-by: GeoPD <geoemmanuelpd2001@gmail.com>
Signed-off-by: LinkBoi00 <linkdevel@protonmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Pranav Vashi
78da980dc1 veux: overlay: Support smart pixels
- Disabled by default in source, enable it by device side overlay
 - Reference : 0449022bdc (diff-afc3235e8e72a3a65b4bbb5c62a40d0c3624b40f1a1f1eac9b751b2038c140b1)

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Rajan Palaniya
90b1063b5d veux: overlay: Set smooth display config to false
* Enabling smooth display causes flicker to some screens in veux

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Alex Naidis
3a8d750aa2 veux: wifi: Improve 5GHz AP selection preference
* Implement a smarter system on whether to connect to the provided 2Ghz or 5Ghz network.

Change-Id: Idd41e3d9a5e2bde3ea9b4873dffc4274d1530324
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Tim Zimmermann
c5f8a19eb4 veux: overlay: Disable STATE_DOZE_SUSPEND
* Screen content never gets updated with AOD

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
AtlanPrime
5aabdca6e3 veux: props: Set wide color display prop to false
* Fixes yellowish tint in Google-Photos

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Pranav Vashi
08b97d7606 veux: audio: Use 24 bit packed format
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
dataoutputstream
0998d9a071 veux: Build audio.primary.default
Fixes:
AudioSystem-JNI: AudioSystem::listAudioPorts error -19

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
LuK1337
27b550a79d veux: overlay: Don't check proximity sensor before pulsing
- Since we don't have a proper proximity sensor, doze is unable to perform a proximity check
- Fixes ambient display

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Demon000
a7e416ef83 veux: overlay: Disable proximity usage during doze
* We have a virtual (ultrasound) proximity sensor so this will never work

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Ramii Ahmed
b5effbd1ba veux: Allow OTA assert
* to support both variants of the device

Change-Id: Idbf3d58c306a317ff21636c93c34b1420c714cba
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
aryan
f73f315c15 veux: props: Use low gamma implementation for brightness curve
Change-Id: I976fc4fdf9c3baae089cb4aa1a64927deb13f87b
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
TheScarastic
658ad1d45c veux: overlay: Add support for doze auto brightness
- Based on observing it's values, xiaomi.sensor.aod reports
  the following events:

3.0: Dark environment
4.0: Bright environment
5.0: Switched from bright to dark environment

3.0 does not seem to be triggered anymore after bright
environment has been reported.

- Enable brightness buckets in doze to disable animation
  between the brightness levels.

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Doctor Strange
5046f7567b veux: overlay: disable STATE_DOZE
- Our device doesn't support doze
- Fixes AOD flickering issues

Change-Id: I44855e85f7d9e26666a8efb79afc202c69770615
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Michael Bestas
1df37897d5 veux: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
sashascurtu
6e2a7d1fc1 veux: Build sensorservice 1.0 HAL
Fixes:
W HidlServiceManagement: Waited one second for android.frameworks.sensorservice@1.0::ISensorManager/default
I hwservicemanager: Since android.frameworks.sensorservice@1.0::ISensorManager/default is not registered, trying to start it as a lazy HAL (if it's not configured to be a lazy HAL, it may be stuck starting or still starting).
I HidlServiceManagement: getService: Trying again for android.frameworks.sensorservice@1.0::ISensorManager/default...
W libc    : Unable to set property "ctl.interface_start" to "android.frameworks.sensorservice@1.0::ISensorManager/default": error code: 0x20
I hwservicemanager: Tried to start android.frameworks.sensorservice@1.0::ISensorManager/default as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.

Change-Id: If6fdef9dc39daaba9138fe3f8acf06cb6a0e78f8
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
ghostrider-reborn
ed3f020865 veux: props: Enable QCRIL radio power saving
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
¨raystef66¨
67f4859f9c veux: overlay: Push 120 FPS for ScreenRecorder
Our Device is with 120hz display and Snapdragon 695, there is no reason to lock on 60fps

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Cole Faust
cce760c2ec veux: Add BUILD_BROKEN_INCORRECT_PARTITION_IMAGES
Qcom has issues that prevent it from working with a hermetic
partition build.

Bug: 205632228
Test: Presubmits
Change-Id: I490a29da38a6f68e7dd3650d8140cb11adaa8c7a
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
sabarop
41eeb16dd5 veux: props: Silence OpenGLRenderer logspam
E OpenGLRenderer: Unable to match the desired swap behavior

Signed-off-by: BalayBera <balaybera@proton.me>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
ExactExampl
e6890ee9f2 veux: props: Enable ro.hwui.render_ahead
* Rendering ahead makes some animations handling better (especially qs pulldown on a13 qpr2)

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Alessio Balsini
e1d19e1a8e veux: props: Use FUSE passthrough by default
Enable the persist.sys.fuse.passthrough.enable flag for the veux device
configuration to enable the FUSE passthrough feature.
This feature has been enabled on Cuttlefish, Wembley and Redbull devices for
months and no issues have been detected yet.

Fixup:
- The prop is supposed to be set in product instead of system as per [1].

[1]: https://source.android.com/docs/core/storage/fuse-passthrough

Bug: 168023149
Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable',
    ScopedStorageTest
Signed-off-by: Alessio Balsini <balsini@google.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
afterallafk
0def20655a veux: props: Enable IMS Volte
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
pengfeix
4cd437b6a4 veux: overlay: Enable IMS feature flags for supported carriers
- Enable VoLTE/VoWIFI for all indian cariers
- Enable VoLTE for Viettel Vietnam
- Enable VoLTE for Mobifone Vietnam
- Add full Support Carrier Smartfren VoLTE
- Enable VoLTE support for Indosat and XL Axiata
- Enable VoLTE support for Telkomsel (Indonesia)
- Enable VoLTE support for Three
- Enable VoLTE support for Bakcell (Azerbaijan)

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
johnmart19
be9ba9e153 veux: props: Enable VoNR Calls support
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Adithya R
cd2996acd2 veux: Enable VoNR on Jio 5G
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
basamaryan
796556f43a veux: Don't explicitly include updatable_apex.mk
It is inherited by base_system.mk as of QPR2

Change-Id: I020a05b233f61ea28d03199cbc76051e6e97e1dc
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Ido Ben-Hur
7369895f64 veux: overlay: Limit AOD refresh rate to 60hz
- This is second part of VoltageOS/frameworks_base@cb296b8

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Frost
720a397d25 veux: props: Move to proper path
- Minor Cleanup
- Add system.prop
- Copy out props from BoardConfig.mk

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
mikeNG
1b233d6ff9 veux: overlay: Enable battery cycle count
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Tomasz Wasilczyk
5f1995a47d veux: gps: Don't include cutils/threads.h
Bug: 289414897
Test: buildserver
Change-Id: I14b99f42feaae7af00cbd17cfe482eb2e5da71e8
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
Frost
b27c98b473 veux: Update from V816.0.3.0.TKCMIXM
* Update blobs from latest HyperOS update

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2025-01-22 00:14:08 +05:30
chuspita
e8aeac976a veux: Add props for better signal
Signed-off-by: Frost <karanraj132804@gmail.com>
2025-01-22 00:14:08 +05:30
spkal01
3d84251568 veux: Add Battery Information in battery settings
Signed-off-by: Frost <karanraj132804@gmail.com>
2025-01-05 20:26:03 +05:30
Frost
c68331cec0 veux: README: Update with proper information
Update according to device

Signed-off-by: Frost <karanraj132804@gmail.com>
2025-01-05 20:26:03 +05:30
Alexander Winkowski
f5bbf337ab veux: overlay: Override WifiCustomization resources
Change-Id: I13e70f752d4688189ef301d515876294a0fc0677
Signed-off-by: Frost <karanraj132804@gmail.com>
2025-01-05 20:26:03 +05:30
Alexander Winkowski
6c038b4503 [TMP] veux: Use prebuilt DTBO
Change-Id: I879c4080c8edc9bf645c49ff14b888843240290e
2025-01-05 20:26:03 +05:30
Alexander Winkowski
8d1c1f2a6f veux: Update WFD blobs
Change-Id: I663d4132969fc50c117ac29760b36536269712c2
2025-01-05 20:26:03 +05:30
Alexander Winkowski
3e7463c029 veux: Include MiuiCamera
Change-Id: Ic043018f738c92212564ae499e05e34f6b3e6d11
2025-01-05 20:26:03 +05:30
Alexander Winkowski
a836057489 veux: overlay: Allow lower auto brightness
Change-Id: I493ed432717dc19b1014a106debaaea47f8c0459
2025-01-05 20:26:03 +05:30
Alexander Winkowski
e721889223 veux: Set device name as per the stock ROM
Change-Id: I611e5f912096b3853a7d80f4135656d20bbf7f26
2025-01-05 20:26:03 +05:30
Alexander Winkowski
66cf74c7d5 veux: Add support for different NFC variants
Change-Id: I28efbcacbabb8c00405eec2ca87a47fb09fa143a
2025-01-05 20:26:03 +05:30
Alexander Winkowski
d1f9e40007 veux: rootdir: Enable libperfmgr
Change-Id: I4d99ad4b474df8c3631d13735d1d72f7297ec5a8
2025-01-05 20:26:03 +05:30
Alexander Winkowski
296ab55e4f veux: sepolicy: Initial adaptation
* Reformat and alphabettically sort

* Remove cameraperf, camerapostproc_xiaomi,
  udfps, perfd, powershare, citsensor, mius
  and touchfeature parts

* nv_mac seems to be "merged" into BT HAL
  on this device

* Add libperfmgr rules from Xiaomi SM6250

Change-Id: I38d6934f94cc5615a72a58785f79c19e02df38b0
2025-01-05 20:26:03 +05:30
Alexander Winkowski
b4f5197dae veux: Pull SELinux policy from Xiaomi SM8350 tree
At commit 67b8a98cf0128e04a1f33614690b5bfa5ac443b9

Change-Id: I8cdf0dd602347a9a4440f2a2ab813eb734f55646
2025-01-05 20:26:03 +05:30
Alexander Winkowski
928f894425 veux: Reserve space in dynamic partitions
Reserve 1G in system partitions for flashing GApps packages when they're
not included, otherwise, reserve 24M in each partition.

Change-Id: I76d5583cd85d87a88a9b38aee5305927eb5067de
2025-01-05 20:26:03 +05:30
LuK1337
b376f93318 veux: Prevent adding same dependency twice in blob_fixup
Change-Id: Idedeb51e027a09f64a29ac67a3a2f2a0594213f6
2025-01-05 20:26:03 +05:30
althafvly
f59be6ee8e veux: Add libpiex_shim for com.mi.node.mialgocontrol.so
Change-Id: I9e8b125ab5dfaa325db63b02a7fcf51577ee7b0d
2025-01-05 20:26:03 +05:30
Arian
bbb438416c veux: Patch ims.apk
Patched to remove com.qti.permission.BIND_QTI_IMS_SERVICE and
Landroid/telephony/TelephonyBaseUtilsStub;->isMiuiRom()

Full patch: https://paste.myself5.de/zitiketuto.diff

Change-Id: I1ecff29d7089bffa50d41acb6b55c6d8e36d1d9c
2025-01-05 20:26:03 +05:30
Alexander Winkowski
701db1a72f veux: Update display blobs from tundra
To match the display HAL

Change-Id: Idb215acad93043cfd8d4cc5ba3696d9ebcd5fbb8
2025-01-05 20:26:03 +05:30
Jabiyeff
13b009e886 veux: Strip size of com.qti.node.mialgocontrol.so
* Size decreased from 148 mb to 12 mb.

Change-Id: If680f2b0511f9e348973ea2a98f9f832745f6d79
Signed-off-by: Jabiyeff <cebiyevanar@gmail.com>
2025-01-05 20:26:03 +05:30
Bruno Martins
fb9f762af4 veux: Fix charger init triggers after moving to health AIDL
Change-Id: I58e7c493d3b300b1efb1685fba637fee6b56bec3
2025-01-05 20:26:03 +05:30
Pig
d529a19b51 veux: Suppress CamX debug
Change-Id: I001be38a19664bcf4994fc88fa1f4448c8cc7891
2025-01-05 20:26:03 +05:30
dianlujitao
ae276fbaf2 veux: Drop dependencies on android.hidl.base@1.0.so
Change-Id: I4c6803a6f1bfdd3fde7d83f59c0642f3398f531b
2025-01-05 20:26:03 +05:30
Alexander Winkowski
745b875236 veux: Control wfdservice64 with vendor.wfdservice prop
Change-Id: I984c413ce2455065b717c04df02cd2d121640798
2025-01-05 20:26:03 +05:30
Alexander Winkowski
72fba1966a veux: Add SKU props from stock
Change-Id: Ib7b6a0d8b992f264762c21f477c42f2114e51c7f
2025-01-05 20:26:03 +05:30
Chirayu Desai
4a6f5475a3 veux: Set BOOT_SECURITY_PATCH
* This is put in vbmeta, and stock OS sets it

Change-Id: I69485c8207eca5ee9e7f1f4e02d684707c6dece3
2025-01-05 20:26:03 +05:30
Alexander Winkowski
e2daa24031 veux: Initial proprietary files list
Change-Id: Ie0b6450e1494fdb4342497c5c5f5e55ed7d916d3
2025-01-05 20:26:03 +05:30
Edwin Moquete
fb16daa101 veux: Disable display refresh rate override
This got enabled by default on U, and it causes apps like
Chrome and Youtube to set the refresh rate to 30FPS when
playing some videos.

Change-Id: I649bf03d550c2b9726c7957d15ed09e455d874ec
2025-01-05 20:26:03 +05:30
danielml
d763266ac0 veux: Override doze mode support
Change-Id: Ibdc4080dc66b5667993307f4c8ff6f83dc751e85
2025-01-05 20:26:03 +05:30
Midas Chien
3d6d47ebf6 veux: Don't latch unsignal buffers
Set debug.sf.latch_unsignaled=1 is used to allow surfaceflinger to
latch unsignal buffers that can give more time for buffer to render.
But if the buffer takes longer time to finish, it will block whole
display pipeline result to jank.

Bug: 157964883
Test: scrolling, launch
Change-Id: I56c3e05921de5fc9569bf3f93fde03022a64b6a4
2025-01-05 20:26:03 +05:30
LuK1337
1bfb6d0577 veux: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2025-01-05 20:26:03 +05:30
Arian
f20f036e97 veux: Set ro.media.xml_variant.profiles to choose media profiles
This was introduced with [1] and allows to choose target specific media
profiles without caf changes to frameworks/av. Unset media.settings.xml
so that the new property gets respected.

[1]: eaac82f33f#

Change-Id: I7ec306bf3dd595c09308ed26c9d3a6db8490c7f0
2025-01-05 20:26:03 +05:30
Alexander Winkowski
75e1613d7f veux: Inline init.qti.media.sh into build.prop
Change-Id: I23d206aef57ab0b729fe5180f94c035f93d7ef3d
2025-01-05 20:26:03 +05:30
Alexander Winkowski
13abb0f9f9 veux: Set vendor SKU in build.prop
Stock QCV scripts don't set it for holi platform.

Change-Id: I4b160246c24c889e80a5fa94e26d21fcbb7d91dd
2025-01-05 20:26:03 +05:30
Alexander Winkowski
43fcf8e65b veux: Import build properties from V14.0.6.0.TKCMIXM
Change-Id: I3e9ac05a2ef9d934ff2fcd26ac09c9100a9b9cb9
2025-01-05 20:26:03 +05:30
Sebastiano Barezzi
cb960bf7d1 veux: Build vendor interfaces libraries
Change-Id: I0c8760ff6923c2d2a43ec058554d724ca6600f3c
2025-01-05 20:26:03 +05:30
Sebastiano Barezzi
95c1688d5e veux: Build WFD libs
Change-Id: I859cd3ff8e1729323f2c72df4feca55559262878
2025-01-05 20:26:03 +05:30
Jimmy Chen
14c3c85be6 veux: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2025-01-05 20:26:03 +05:30
Alexander Winkowski
fa4d3ed867 veux: Import WiFi configs from V14.0.6.0.TKCMIXM
Change-Id: Idb380aa74bdf146739adefb076acb49c2e89bfbd
2025-01-05 20:26:03 +05:30
Mohammad Asaad Akram
444111da5a veux: Enable asynchronous library events in WPA supplicant
Change-Id: I3b028afa54605bd57d9fb5700d792cb9e5e0e76f
2025-01-05 20:26:03 +05:30
Demon000
1a8e2981c0 veux: Build WiFi packages
Change-Id: Id0e785d1d22bda58922658de6ab0b5b0cf1e9927
2025-01-05 20:26:03 +05:30
Fenglin Wu
622f7ccf5d veux: Add config to exclude haptics devices from input subsystem
Haptics devices which registers as input FF devices are not supposed to
be detected by input subsystem. Add excluded-input-devices.xml file for
input subsystem to exclude them.

Change-Id: I52dc6e502b29e2813299d073195a0991bb2cf692
2025-01-05 20:26:03 +05:30
Bharat Pawar
2c66b0ebd0 veux: Enable LED based vibrator
Enable LED based vibrator for talos, moorea and
atoll targets.

Change-Id: I079eefaefff77fe19304acc8749773febf91a7fc
2025-01-05 20:26:03 +05:30
LuK1337
10744a6c52 veux: Build vndservicemanager
* Needed for FCM >= R.

Change-Id: I6d5eb8084127e295e4abec2c0192c0ad5b07b867
2025-01-05 20:26:03 +05:30
Sebastiano Barezzi
be7b4b2109 veux: Use QTI USB init configs from USB HAL repo
Change-Id: I966d251a2756c9d9e91f621cbc5872448d022de4
2025-01-05 20:26:03 +05:30
Cosmin Tanislav
d17a3b6a53 veux: Build QTI USB service
Change-Id: I2c6ed5c909c31837321fc587050ff810422d95b0
2025-01-05 20:26:03 +05:30
Alex Deymo
5e1ebb998d veux: Build A/B update engine
Change-Id: I9dbf84e1531ed3e32b21c8fec13266cfe4d23cd3
2025-01-05 20:26:03 +05:30
LuK1337
bdbc377cc2 veux: Build android.hardware.thermal@2.0-service.qti
As seen on stock ROM.

Change-Id: I950ab50ded7b3c1164ff88ab18d7f1e3365a6086
2025-01-05 20:26:03 +05:30
Demon000
11c03d0848 veux: Build telephony packages
Change-Id: I5fafc22fc696b04abc2f79100306f1625ac03fbc
2025-01-05 20:26:03 +05:30
Alexander Winkowski
f0aab1f074 veux: Set shipping API level
Change-Id: Ic710848ea8329eb0b0eabbfb3771ecf9cba3c7e7
2025-01-05 20:26:03 +05:30
Alexander Winkowski
149f023bfa veux: Build Xiaomi common sensors Multi-HAL
Change-Id: I96425bc0907b37ebebfca8600eb07c71f3afaab8
2025-01-05 20:26:03 +05:30
Nolen Johnson
e03320c624 veux: Simplify AVB flag logic
* AVB's `--flags 3` argument builds a disabled VBMeta with
  disabled hashtree, so no need to set both flags individually.

Change-Id: Ibe9ee322a5af58f13e76d53e18dee49451fe8838
2025-01-05 20:26:03 +05:30
Christian Oder
efadedd2db veux: Build disabled VBMeta image
Partitions that use vbmeta_system can be found by looking at
avb flag in fstab from boot ramdisk.

--flags 2 makes the verification function of avb always return a
positive result.

--set_hashtree_disabled_flag builds the vbmeta images with the
HASHTREE_DISABLED bit set and as a result they don't need to manually
disable dm-verity via e.g. 'adb disable-verity'.

The rest of the configuration is taken from
https://source.android.com/devices/tech/ota/dynamic_partitions/implement#avb-configuration-changes

Change-Id: I381feef8f6fefc8449ca50d85d704b67bcc8a77e
2025-01-05 20:26:03 +05:30
Michael Bestas
82aca7d218 veux: Implement xtra-daemon control via property
Default to false if the property is not set.
Device init scripts will need to be adapted to restart
loc_launcher service when property change is detected.

Change-Id: Icbda789cd2a9a3391f437af2c07fc5127f2f09ab
2025-01-05 20:26:03 +05:30
Michael Bestas
a64c76be49 veux: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2025-01-05 20:26:03 +05:30
Michael Bestas
1a8181f2ea veux: ueventd: Remove stray line
Change-Id: Iddee28c06db20b20a8977c3d9d4982f86a279e92
2025-01-05 20:26:03 +05:30
PRANAY BHARGAV BHAVARAJU
84ef27863b veux: ueventd: Avoid setting permission for /dev/hw_random
Below patch from system/core is setting required access policy
for /dev/hw_random. And CTS test is updated accordingly

https://android-review.googlesource.com/c/platform/system/core/+/2229337
https://android-review.googlesource.com/c/platform/cts/+/2232052

Change-Id: I762dfa3b1e84dee6c49fc178b5b75cf1c134cfb7
2025-01-05 20:26:03 +05:30
Mohammed Mirza Mandayappurath Manzoor
96eebadd98 veux: ueventd: Set permissions for KGSL sysfs node
Some KGSL sysfs nodes need to be access controlled. Set proper
permissions for the same.

Change-Id: Idc7e2447d02742074873901c6539f2c6d9d25862
2025-01-05 20:26:03 +05:30
Albert I
c70ec864fd veux: fstab: Handle avb= fs_mgr flags correctly
Specifying avb=<vbmeta-partition> is only necessary for first entry of
partition groups that use same vbmeta partition. The following entry can have
<vbmeta-parititon> part omitted.

Test: None
Link: https://source.android.com/devices/architecture/kernel/mounting-partitions-early#fstab-entries
Change-Id: I5a42fd3de72c400acfae56d6a1e1b85c22a79537
Signed-off-by: Albert I <kras@raphielgang.org>
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
2025-01-05 20:26:03 +05:30
Alexander Winkowski
e2b73731d4 veux: fstab: Remove MIUI partitions
Change-Id: Iec571091763012f599c74f11d27e368e80371b38
2025-01-05 20:26:03 +05:30
LuK1337
2ebd063a0d veux: rootdir: Set SSR restart level to 'RELATED'
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2025-01-05 20:26:03 +05:30
Randall Huang
e106a1b33c veux: rootdir: Remove IO read_ahead_kb tune
If we set 2048KB ra value in the beginning of the
boot process, services initialized at this time would
keep 2048KB ra value even though we adjust the ra value
to 128KB after boot completion.

This may cause memory pressure.

Bug: 174700194
Signed-off-by: Randall Huang <huangrandall@google.com>
Change-Id: I97ee0ee9511eaada011f2634afd68d68cdca4570
2025-01-05 20:26:03 +05:30
Miguel de Dios
43470f2669 veux: rootdir: Change readahead to 128KiB on post-boot
Reduce readahead from 512KiB to 128KiB to reduce thrashing when we
have a lot of apps running.

Bug: 110908295
Bug:  80426378
Test: manual - device boots
Test: manual - check app launch does not take long
Test: cts-tradefed.sh run cts -m CtsCameraTestCases
Change-Id: I59c1f2f8a6fbb5e0d956ba07a40a2bfac3b61481
2025-01-05 20:26:03 +05:30
Prabhanjan Kandula
2ab8e5e563 veux: rootdir: Avoid delay for vblank disable from DRM
Set drm_vblank_offdelay parameter to -1, to make DRM
issue the vblank disable immediately with out delay.
By defailt  the DRM framework has a delay of 5 secs
timeout before issuing the vblank disable.

Change-Id: Idc1dfe6a6994f2ac2d3c60ae8fd5a4e883b675d9
2025-01-05 20:26:03 +05:30
Alexander Winkowski
f1e73bc7c0 veux: rootdir: Clean up
Change-Id: Id7277abb5725140fce1683e6d878e90dd7f17011
2025-01-05 20:26:03 +05:30
Kamal Wadhwa
ce90bcd3bc veux: Remove charger service restart and modem partition mount calls
Holi supports linux based charging and not via ADSP,
hence remove the modem partition mount logic.
This improves the entry time into power-off charging mode.

Change-Id: I69337e773f6078bc0847b7db199fc21e8c975a8a
2025-01-05 20:26:03 +05:30
Rama Aparna Mallavarapu
a8a6f4da35 veux: rootdir: Import kernel rc script to be run during the boot
All the kernel tunables are now part of the kernel scripts.
Invoke kernel RC script during the boot. Also move the kernel
related settings to kernel-scripts folder.

Change-Id: Ic8f1114377345f1dc6ca8ec441aa99de61a7a453
2025-01-05 20:26:03 +05:30
Alexander Winkowski
692e19ab59 veux: rootdir: Mark modem config copy completed unconditionally
Normally ro.vendor.ril.mbn_copy_completed is set by init.qcom.sh but
that script was dropped because it does nothing else on this platform.

Change-Id: I19edf64df2c8ed9ab405b5684cedbb1dc4248eab
2025-01-05 20:26:03 +05:30
Alexander Winkowski
4b49ec56c3 veux: Import rootdir from V14.0.6.0.TKCMIXM
Change-Id: I1b51318f885e734f322864f7c61a599e9a7113c6
2025-01-05 20:26:03 +05:30
Arian
fae3c5717f veux: Build librmnetctl
Change-Id: Ica941c1d2521e738d4990261bab41fee5daffa9d
2025-01-05 20:26:03 +05:30
Sebastiano Barezzi
0e8a214f4b veux: Build QTI Framework detect libs
Change-Id: Ic4db96f8bd5a19f4805bd9c40544ed51d0352c61
2025-01-05 20:26:03 +05:30
LuK1337
093c94ed50 veux: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2025-01-05 20:26:03 +05:30
Krzysztof Kosiński
da7c777c09 veux: Add prebuilt protobuf 3.9.1 to vendor partition
Needed to work around a Qualcomm HAL prebuilt.

Bug: 203713560
Bug: 258322017
Bug: 254854421
Test: Forrest
Change-Id: I4eebc60f10fbea6a66127ed3e08441db32536f78
2025-01-05 20:26:03 +05:30
Alexander Winkowski
9c0ebaeb3b veux: Refine powerhint according to freqbench results
Change-Id: Id4727badf9d85609c9a3697aadf1677906abb7b5
2025-01-05 20:26:03 +05:30
Alexander Winkowski
c380469132 veux: configs: Add initial powerhint for blair
Based on redbull, adapted nodes, removed unused/unneeded hints.

Change-Id: Iee610168800d9cbecccc4ca121418a9bce717cce
2025-01-05 20:26:03 +05:30
Alexander Winkowski
3dd20b99bb veux: Build Xiaomi common power AIDL HAL
Change-Id: I0e10f0b36598b8cbf25ee2dc08b8a4eced95c2ed
2025-01-05 20:26:03 +05:30
Alexander Winkowski
2f536d6bea veux: Copy permissions from V14.0.6.0.TKCMIXM
Add android.software.opengles.deqp.level.xml, which seems to be missing.

Change-Id: Idd2f358b4aefd74bed26a9450870be85e67a44cf
2025-01-05 20:26:03 +05:30
Alexander Winkowski
db0177336d veux: Override task_profiles.json
Change-Id: I7291a318d523c030bbb3f5aa71364d512eb7490c
2025-01-05 20:26:03 +05:30
Sebastiano Barezzi
8706a67f36 veux: libqti-perfd-client: Move to C
* Why bothering with C++ mangling when we can just build it as a standard C library?

Change-Id: I45ea977edf7ea7fab6fece76f3049654a8d24c5d
2025-01-05 20:26:03 +05:30
Chenyang Zhong
41531425a8 veux: libqti-perfd-client: return a dummy value
Return a positive integer for perf lock acquire and release so
that Goodix/FPC fingerprint sensor blobs will not complain.

Goodix:
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_acquire: Failed to acquire perf lock, err: 0
E [goodixHAL][gf_hal_milan_f_series]: goodix_perf_lock_release: Perf lock release error 0

FPC:
E fpc_tac : fpc_perf_lock_acquire: Incorrect params, Failed to acquire perf lock, err
E fpc_tac : fpc_perf_lock_release: Perf lock release error 0

Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Change-Id: I861672e9a738c2204755d802670f4b28b662f286
2025-01-05 20:26:03 +05:30
Bruno Martins
ef9d7f291a veux: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
2025-01-05 20:26:03 +05:30
Lucchetto
1e448dc0a3 veux: Create dummy libqti-perfd-client
* proprietary perfd blobs can finally be nuked without breaking goodix
* we could even map the functions to use libperfmgr powerhints in the future

Change-Id: I124652f3041761966a3e3bd97c757fecc39cc5fb
2025-01-05 20:26:03 +05:30
Demon000
1d4331384b veux: Use dynamic partitons
Change-Id: Iac89f608a7f8efa78da5200c68cb45ab2f439fd0
2025-01-05 20:26:03 +05:30
Danny Baumann
cc7a0c9be7 veux: overlay: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2025-01-05 20:26:03 +05:30
Alexander Winkowski
3bae00c883 veux: overlay: Initial LineageSDK overlay
Change-Id: Ifecb5f30cbc1e95c130781eb306bab96d1f1765b
2025-01-05 20:26:03 +05:30
Jake Weinstein
f8595591e4 veux: overlay: Allow VoLTE and VoWiFi/WFC by default
Change-Id: I0df3d87074378224a6b29b26166dcf2fc59f34c2
2025-01-05 20:26:03 +05:30
Dyneteve
64045a6978 veux: overlay: Remove "SIM x is HD capable" message
sed -i '/config_update_service_status/d' overlay/CarrierConfigOverlayCOMMON/res/xml/vendor.xml

Change-Id: I26ce187483d6d8c18bcd1901cd6d71ca6ec1e31f
2025-01-05 20:26:03 +05:30
Alexander Koskovich
efa4aa39d7 veux: overlay: Use CarrierConfig DTMF & CSP booleans
* Overlays were deprecated awhile ago for these.

Change-Id: I51b70aa15f128186063ce52446cb67715a957185
2025-01-05 20:26:03 +05:30
Alexander Winkowski
6145694f25 veux: overlay: Initial product overlays
Based on V14.0.6.0.TKCMIXM

Change-Id: I415b5877bf41fc3b78ae83a53450076a7c2b9386
2025-01-05 20:26:03 +05:30
Alexander Winkowski
1b2a7fca21 veux: overlay: Initial vendor overlays
Based on V14.0.6.0.TKCMIXM, brightness overlays from lynx.

Change-Id: I4a06896f7cc3a599794cd3affd304e2c25f077e1
2025-01-05 20:26:03 +05:30
Anton Hansson
695d09afab veux: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2025-01-05 20:26:03 +05:30
Alexander Winkowski
2f06b04a3a veux: Build extra NFC packages
Change-Id: Ide2ddbe1bd5e9626fa5c883475d1fafe6dcebbb1
2025-01-05 20:26:03 +05:30
LuK1337
c6d248a70b veux: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
2025-01-05 20:26:03 +05:30
Sebastiano Barezzi
6cde167e4f veux: Build mtdservice interface lib from source
Change-Id: Ie739f283c4be1b77d57aaee1941ed46957da1d1a
2025-01-05 20:26:03 +05:30
Bruno Martins
c34764393e veux: Build mlipay interface from source
Change-Id: I41361a4f1405950f73f94609171851972803d099
2025-01-05 20:26:03 +05:30
Alexander Koskovich
c8891b4148 veux: Copy out media permissions and build media packages
Change-Id: I26674be6f3d4d10685cd004b6dccf98a14d50f28
2025-01-05 20:26:03 +05:30
Volodymyr Zhdanov
8ee12b870f veux: Build IR HAL from source
Change-Id: I619157582ece00d6fb7adef00182347211716706
2025-01-05 20:26:03 +05:30
Volodymyr Zhdanov
a5c50603d1 veux: Build IPACM from source
Change-Id: Id40cea7059316370fc18dfbdb9e00b5b84f28b10
2025-01-05 20:26:03 +05:30
Giovanni Ricca
5a2f6e86ee veux: Build common iFAA service
Change-Id: Ib777523cbb3cbc29086c8f6ef3cc0c31d49b9405
2025-01-05 20:26:03 +05:30
Christian Oder
407b72ff58 veux: Add basic permission file for HotwordEnrollment
Change-Id: I2986ba3599fe65a8da27649d98d70cd548257aa8
2025-01-05 20:26:03 +05:30
Alexander Koskovich
ce7154e948 veux: Build vendor HIDL transport and HWBinder libraries
* Both these libraries are still widely used by QTI
   binaries & libraries.

Change-Id: Ib7a4576577426ffaf557ba8b9b4ca52573285fef
2025-01-05 20:26:03 +05:30
Alexander Koskovich
314cea81c6 veux: Build the QTI health HAL
Change-Id: I86abeb45119d1cdf05dfb1fd28090628cee64925
2025-01-05 20:26:03 +05:30
Alexander Winkowski
16d5e96af3 veux: Build GNSS HAL from source
Change-Id: I92f2767976ff9cd70effd884d7c0fe22dde56a9e
2025-01-05 20:26:03 +05:30
Alexander Winkowski
1f3385aed5 veux: gps: Enable lowi-server
To match Pixel setup.

Change-Id: I60097ef00debd3bcddb03d4e95c220d166d2a5de
2025-01-05 20:26:03 +05:30
Michael Bestas
f5dba3bdda veux: gps: Disable unused location services
Disable xtwifi & slim_daemon, matching Pixel setup.

Change-Id: I27156e772ef138c9b2e112469c264236ea5c398c
2025-01-05 20:26:02 +05:30
Alexander Winkowski
661438a1f1 veux: gps: Import izat.conf
From V14.0.3.0.TKCMIXM

Change-Id: I0d8a94672a011458d713e190a8e121f7ceb320ec
2025-01-05 20:26:02 +05:30
Michael Bestas
2c38b8513b veux: gps: Remove all Wno-error flags
Almost all warnings/errors have been fixed.
Ignore undefined bool conversion error on purpose.

Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb
2025-01-05 20:26:02 +05:30
Yi Kong
ad39ee3e10 veux: gps: Fix unqualified-std-cast-call warning
hardware/qcom/sm8150/gps/utils/LocIpc.cpp:315:24: error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
            mIpcRecver(move(ipcRecver)) {}
                       ^
                       std::

Test: presubmit
Change-Id: I7378416e788f20ebb3f8d1d065d60964dc76eb99
2025-01-05 20:26:02 +05:30
Madhanraj Chelladurai
25f6c3871b veux: gps: Add NULL check before object access
Correct the NULL check code block and add NULL check before
object access.

Change-Id: Ic41b781b41fb4e21bbff8801d500a41a6d7219d0
CRs-fixed: 3084543
2025-01-05 20:26:02 +05:30
Albert I
5b55d96bcb veux: gps: Implement list empty error code for msg_q
This fixes enum-conversion warning due to implicit type enum casting
between linked_list and msg_q which happens only for status -6.

Change-Id: I27ba74c4d840b7ba0cb1017d69a30fc25b80d6b9
2025-01-05 20:26:02 +05:30
Albert I
c5ce3457e5 veux: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2025-01-05 20:26:02 +05:30
Albert I
61b6b38b43 veux: gps: Reorder initializations list to satisfy warnings
-Wreorder-ctor is a compile-time, Clang-only flag which is enabled by
default since Clang 12, which will warn whenever a specified field will
be initialized right after field specified below it. However, since it
doesn't sweep through all fields, compiler may miss some of them.

This order has been checked thoroughly through many trial and errors to
ensure that no such warns will be triggered anymore.

Change-Id: Id24cbb7277dc8d6c02767f8f365818ab6c017683
2025-01-05 20:26:02 +05:30
Pirama Arumuga Nainar
19b261165f veux: gps: Fix -Wbitwise-instead-of-logical
Bug: http://b/215753485

Reported by clang-r445002

error: use of bitwise '|' with boolean operands [-Werro
r,-Wbitwise-instead-of-logical]

  if (gnssCbIface != nullptr || gnssCbIface_2_0 != nullptr| gnssCbIface_2_1 != nullptr) {
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                          ||

Test: build with clang-r445002
Change-Id: I9410eb5208227dd70bd036aee02fb2aeb912f266
Merged-In: I9410eb5208227dd70bd036aee02fb2aeb912f266
2025-01-05 20:26:02 +05:30
Michael Bestas
7b40e4d542 veux: gps: Lower debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2025-01-05 20:26:02 +05:30
Michael Bestas
31d066e9e9 veux: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2025-01-05 20:26:02 +05:30
Alexander Winkowski
726c510b5a veux: Import GPS HAL from LA.UM.9.14.r1-19100-LAHAINA.0
Cleaned up with commands:

rm -rf android/{1.*,2.0}/
rm -rf etc/seccomp_policy/
rm gps_vendor_*
find \( -name Makefile.am -o -name configure.ac -o -name '*.pc.in' \) -exec rm {} \;

Change-Id: If82619231c1a6d6eaa39adf9af94f341b8654320
2025-01-05 20:26:02 +05:30
Alexander Winkowski
12e84bcd8b veux: Build FM2 app
Change-Id: I6ff5a9352c5a2723e8850d1006707cad2458cfe0
2025-01-05 20:26:02 +05:30
Giovanni Ricca
0a7affa856 veux: Build Goodix interface from source
Change-Id: Ibaf1b9489b509318032c720c9c83e315cfe6ab3e
2025-01-05 20:26:02 +05:30
Giovanni Ricca
a963b1d6d8 veux: Build FPC interface from source
Change-Id: I80dd66139d1e53873beb14f7937cbfb721e582ca
2025-01-05 20:26:02 +05:30
Alexander Winkowski
95d386713c veux: Build Xiaomi common fingerprint service
Change-Id: Ie78d7d44630256162e41f1b22d22252e3377798b
2025-01-05 20:26:02 +05:30
Demon000
6f845f8679 veux: Build fastbootd
Change-Id: I1056d3ed331c1590dce00f980bc78c6a5e23a799
2025-01-05 20:26:02 +05:30
Robert Shih
16551d87c6 veux: enable AIDL DRM HALs
Bug: 219538389
Test: atest GtsMediaTestCases
Change-Id: I431554dcbef014f8235f048ee062a218a2131f9c
2025-01-05 20:26:02 +05:30
Alexander Winkowski
e845f1eb5a veux: configs: Pull brightness configs from lynx
Change-Id: Ic58fb5a638c290e68633d9716be9bf907841f0af
2025-01-05 20:26:02 +05:30
Alexander Winkowski
877fbd9ae0 veux: Import display config from V14.0.6.0.TKCMIXM
Change-Id: I7017b425c091a7ae67adb0e6e9509f49dd314442
2025-01-05 20:26:02 +05:30
Sebastiano Barezzi
10e0896b95 veux: Build display stack
Change-Id: I8aa97b9847fd49fb1bebd35f8193aefa7e8997e1
2025-01-05 20:26:02 +05:30
P.Adarsh Reddy
4d6d8f8d6c veux: Enforce android-S new launch debugfs restrictions
Change-Id: I78878e1c4177c07d66b13e5659d4360252c5f87b
2025-01-05 20:26:02 +05:30
Sebastiano Barezzi
17d996d9d7 veux: Build camera libs
Change-Id: I9b5d730c54018614c8e28a946a1d234663339b0c
2025-01-05 20:26:02 +05:30
LuK1337
7e2ddfe589 veux: Build QTI bootctrl HAL
Change-Id: I1e907c64ee4f88507bac78afe56e8fba0310f6d1
2025-01-05 20:26:02 +05:30
Cosmin Tanislav
43ceefd049 veux: gpt-utils: add system_ext and product to AB_PTN_LIST
Change-Id: I8d570695ed9d00c0b28f0e299ae11a61899d4dc9
2025-01-05 20:26:02 +05:30
Cosmin Tanislav
b8d34ed042 veux: gpt-utils: add vbmeta_system to PTN_SWAP_LIST
Change-Id: Icbc04d6f326a7852a407835169cfc9e3066fb7ac
2025-01-05 20:26:02 +05:30
Luofan Chen
7d5a015377 veux: gpt-utils: Check ufs device first before checking partition names
Change-Id: I51663ff8e074681191ac708fcd7b4d28e890deaf
2025-01-05 20:26:02 +05:30
Siddeswar Aluganti
6092ee0191 veux: gpt-utils: Add OTA handling for new partitions
Add new partitions to list of partitions needed for A/B update handling.

Change-Id: I9e1ad1b2d08730a0ab18728b5919c35ff5b6bc44
CRs-Fixed:: 2877573
2025-01-05 20:26:02 +05:30
Siddeswar Aluganti
03b1c9595a veux: gpt-utils: Update PTN_SWAP_LIST and handle multiimg(oem/qti)
* Update PTN_SWAP_LIST to reflect partition entry changes
   to BOOT LUN and handle "multiimgoem", "multiimgqti"
   partitions, similar to other BOOT LUN partitions.

Change-Id: I3fb2934c44f3c2555ef36437ae97c9a47bb874ed
2025-01-05 20:26:02 +05:30
LuK1337
cef599f2f9 veux: gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2025-01-05 20:26:02 +05:30
LuK1337
b6bc43cc2d veux: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
2025-01-05 20:26:02 +05:30
LuK1337
4b97c9ed81 veux: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   asm/byteorder.h will cause a warning due to
   unused static functions.

Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
2025-01-05 20:26:02 +05:30
Tao Bao
0223de540d veux: gpt-utils: Address the warnings
[ 11% 2/18] target  C++: libgptutils <= device/google/crosshatch/gpt-utils/gpt-utils.cpp
In file included from device/google/crosshatch/gpt-utils/gpt-utils.cpp:54:
system/core/libcutils/include_vndk/cutils/log.h:38:2: warning: "Deprecated: don't include cutils/log.h, use either android/log.h or log/log.h" [-W#warnings]
 ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:750:17: warning: unused variable 'ufs_dir_stat' [-Wunused-variable]
    struct stat ufs_dir_stat;
                ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:13: warning: unused variable 'r' [-Wunused-variable]
        int r, fd;
            ^
device/google/crosshatch/gpt-utils/gpt-utils.cpp:973:16: warning: unused variable 'fd' [-Wunused-variable]
        int r, fd;
               ^
4 warnings generated.

Test: lunch blueline-userdebug && m -j libgptutils
Change-Id: Idd9174276d8a5b7b77c2ec48c745a78184f65fcf
2025-01-05 20:26:02 +05:30
Alexander Koskovich
df3d99bf9b veux: Import gpt-utils from LA.UM.9.14.r1-19800.01-LAHAINA.QSSI12.0
Change-Id: I92baccc0524f88dcb439095288ac75fbc1401ae7
2025-01-05 20:26:02 +05:30
Sebastiano Barezzi
91908c435f veux: Build bluetooth libs
Change-Id: I999905b2b7a0f7fe8f808e88c7ab428f1d50b263
2025-01-05 20:26:02 +05:30
iovxw
3f36ab14f8 veux: Remove FM Tuner from audio input devices
* This fixes google voice recorder

Change-Id: Id90fc9ac1ad24b5d439592aecfdf4f8912893935
2025-01-05 20:26:02 +05:30
llololo
a2c136cae5 veux: Remove A2DP input module in audio policy configuration
No Pixel device support A2DP sink functionality.

Bug: 163050296
Test: A2DP related test.
Change-Id: I269220cf29451ea79362fc004fa073713f72fdb2
2025-01-05 20:26:02 +05:30
dianlujitao
078bc0e173 veux: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2025-01-05 20:26:02 +05:30
LuK1337
bc23a4eb9c veux: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2025-01-05 20:26:02 +05:30
Alexander Winkowski
f4b9e9d55b veux: Import audio configs from V14.0.6.0.TKCMIXM
* Use generic configs when possible

* Audio policy configuration from /vendor/etc/audio
  (identified by running dumpsys media.audio_policy on stock ROM)

* Mixer paths and sound_trigger configs from /vendor/etc

* audio_tuning_mixer.txt is copied to /vendor/etc
  because this is the only path libacdbloader supports

* Other configs from /vendor/etc/audio/sku_holi

* audio_policy_volumes.xml was edited to be compatible with AOSP

Change-Id: I424b4df55add814d29e713497f7f323766b8b72b
2025-01-05 20:26:02 +05:30
Bruno Martins
eb7e328055 veux: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2025-01-05 20:26:02 +05:30
Sebastiano Barezzi
79a30a9c2d veux: Build audio stack
Change-Id: Id1e28604c0c83093e309656a2059c517084984f5
2025-01-05 20:26:02 +05:30
Demon000
c2f31ba636 veux: Include QCOM SEPolicy
Change-Id: Iaf54a187cda5e6921b791031fa2132a91a62d184
2025-01-05 20:26:02 +05:30
Demon000
9f565e7096 veux: Define vendor RIL service usage
This can be checked by looking for a rild service in system.
If it's missing, then a vendor ril service is being used, in
our case, it is qcrild.

Change-Id: I5378de6eec4ff2511a49c19c0fc474658efe338f
2025-01-05 20:26:02 +05:30
Alexander Winkowski
b295f44004 veux: Add recovery flags
Change-Id: I3def36bfc0644fae2c94531aecc5831bf389a8f9
2025-01-05 20:26:02 +05:30
Alexander Winkowski
8abf5a094a veux: Add platform flags
Change-Id: I4b583a43f133293dfee20d093aa0c0e5b17b2769
2025-01-05 20:26:02 +05:30
Alexander Winkowski
8b561ab03b veux: Add partition flags
Change-Id: Iab108c3b116a0ab76d0ad33a3d32ea9a3a1931ba
2025-01-05 20:26:02 +05:30
Leo Liou
b765fd805d veux: Inherit the virtual A/B config
For devices launching with virtual A/B, inherit the virtual A/B
device base configuration.

Bug: 146466421
Test: Build and boot & manual OTA.
Change-Id: I752178c2525335b3cebafa0254c077d93831b8ba
2025-01-05 20:26:02 +05:30
Alexander Winkowski
5db4263997 veux: Add kernel flags
Based on boot.img and vendor_boot.img from V14.0.6.0.TKCMIXM

Change-Id: I75c18ca39d3377eac10029b9bc20e6bc632c5020
2025-01-05 20:26:02 +05:30
180 changed files with 6497 additions and 5667 deletions

View File

@@ -7,7 +7,6 @@
soong_namespace {
imports: [
"hardware/lineage/interfaces/power-libperfmgr",
"hardware/qcom-caf/bootctrl",
"hardware/qcom-caf/common/libqti-perfd-client",
"hardware/xiaomi",
],

View File

@@ -1,34 +0,0 @@
#
# Copyright (C) 2023-2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
LOCAL_PATH := $(call my-dir)
ifneq ($(filter veux,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
include $(CLEAR_VARS)
# A/B builds require us to create the mount points at compile time.
# Just creating it for all cases since it does not hurt.
FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/firmware_mnt
$(FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(FIRMWARE_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/firmware_mnt
BT_FIRMWARE_MOUNT_POINT := $(TARGET_OUT_VENDOR)/bt_firmware
$(BT_FIRMWARE_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(BT_FIRMWARE_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/bt_firmware
DSP_MOUNT_POINT := $(TARGET_OUT_VENDOR)/dsp
$(DSP_MOUNT_POINT): $(LOCAL_INSTALLED_MODULE)
@echo "Creating $(DSP_MOUNT_POINT)"
@mkdir -p $(TARGET_OUT_VENDOR)/dsp
ALL_DEFAULT_INSTALLED_MODULES += $(FIRMWARE_MOUNT_POINT) $(BT_FIRMWARE_MOUNT_POINT) $(DSP_MOUNT_POINT)
endif

View File

@@ -7,7 +7,3 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_veux.mk
COMMON_LUNCH_CHOICES := \
lineage_veux-user \
lineage_veux-userdebug \
lineage_veux-eng

View File

@@ -10,7 +10,6 @@ BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
# A/B
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS := \
boot \
dtbo \
@@ -27,13 +26,15 @@ AB_OTA_PARTITIONS := \
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-2a-dotprod
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_VARIANT := cortex-a55
TARGET_CPU_VARIANT := cortex-a76
TARGET_CPU_VARIANT_RUNTIME := cortex-a76
TARGET_2ND_ARCH := arm
TARGET_2ND_ARCH_VARIANT := armv8-2a
TARGET_2ND_CPU_ABI := armeabi-v7a
TARGET_2ND_CPU_ABI2 := armeabi
TARGET_2ND_CPU_VARIANT := cortex-a55
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a55
# Audio
AUDIO_FEATURE_ENABLED_DLKM := true
@@ -46,41 +47,38 @@ AUDIO_FEATURE_ENABLED_SVA_MULTI_STAGE := true
BOARD_SUPPORTS_OPENSOURCE_STHAL := true
BOARD_SUPPORTS_SOUND_TRIGGER := true
BOARD_USES_ALSA_AUDIO := true
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := true
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := veux
TARGET_NO_BOOTLOADER := true
# Camera
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true
# Display
TARGET_SCREEN_DENSITY := 440
# Filesystem
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/configs/config.fs
# GNSS
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
LOC_HIDL_VERSION := 4.0
# HIDL
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml \
hardware/xiaomi/vintf/xiaomi_framework_compatibility_matrix.xml \
$(DEVICE_PATH)/device_framework_matrix.xml
$(DEVICE_PATH)/configs/vintf/device_framework_matrix.xml
DEVICE_MANIFEST_FILE := \
$(DEVICE_PATH)/manifest.xml
$(DEVICE_PATH)/configs/vintf/manifest.xml
DEVICE_MATRIX_FILE := \
$(DEVICE_PATH)/compatibility_matrix.xml
$(DEVICE_PATH)/configs/vintf/compatibility_matrix.xml
ODM_MANIFEST_SKUS += \
sn100
ODM_MANIFEST_SN100_FILES := \
$(DEVICE_PATH)/manifest_ese.xml
$(DEVICE_PATH)/configs/vintf/manifest_ese.xml
# Kernel
BOARD_KERNEL_BASE := 0x00000000
@@ -113,14 +111,16 @@ BOARD_KERNEL_CMDLINE := \
firmware_class.path=/vendor/firmware
TARGET_KERNEL_CONFIG := veux_defconfig
TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6375
TARGET_KERNEL_SOURCE := kernel/xiaomi/veux
TARGET_KERNEL_NO_GCC := true
# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false
# Global LTO
TARGET_GLOBAL_LTO := thin
TARGET_GLOBAL_OPTIMIZATION := O3
TARGET_GLOBAL_THINLTO := true
# OTA assert
TARGET_OTA_ASSERT_DEVICE := peux,veux
TARGET_OTA_ASSERT_DEVICE := peux|veux
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728
@@ -187,7 +187,7 @@ VENDOR_SECURITY_PATCH := $(BOOT_SECURITY_PATCH)
# SELinux
include device/qcom/sepolicy_vndr/SEPolicy.mk
include vendor/xiaomi/miuicamera-veux/SEPolicy-veux.mk
include device/lineage/sepolicy/libperfmgr/sepolicy.mk
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public
BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor

46
RemovePackages/Android.bp Normal file
View File

@@ -0,0 +1,46 @@
cc_prebuilt_binary {
name: "RemovePackagesVeux",
overrides: [
"AmbientSensePrebuilt",
"arcore",
"Chrome",
"Chrome-Stub",
"ConnMO",
"ConnMetrics",
"DCMO",
"DevicePolicyPrebuilt",
"DMService",
"GCS",
"GoogleTTS",
"Maps",
"MyVerizonServices",
"OBDM_Permissions",
"obdm_stub",
"OdadPrebuilt",
"OemDmTrigger",
"OPScreenRecord",
"Ornament",
"PixelBuds",
"PixelLiveWallpaperPrebuilt",
"RecorderPrebuilt",
"SafetyHubPrebuilt",
"SCONE",
"ScribePrebuilt",
"Showcase",
"SoundAmplifierPrebuilt",
"SprintDM",
"SprintHM",
"Tycho",
"USCCDM",
"Via",
"Videos",
"VZWAPNLib",
"VzwOmaTrigger",
"YouTube",
"YouTubeMusicPrebuilt",
],
strip: {
none: true,
},
srcs: ["RemovePackagesVeux"],
}

View File

@@ -1,49 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := RemovePackages
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_TAGS := optional
LOCAL_OVERRIDES_PACKAGES := \
AmbientSensePrebuilt \
Aperture \
arcore \
Chrome \
Chrome-Stub \
ConnMO \
ConnMetrics \
DCMO \
DevicePolicyPrebuilt \
DMService \
GCS \
GoogleTTS \
Maps \
MyVerizonServices \
OBDM_Permissions \
obdm_stub \
OdadPrebuilt \
OemDmTrigger \
OPScreenRecord \
Ornament \
PixelBuds \
PixelLiveWallpaperPrebuilt \
RecorderPrebuilt \
SafetyHubPrebuilt \
SCONE \
ScribePrebuilt \
Showcase \
SoundAmplifierPrebuilt \
SprintDM \
SprintHM \
Tycho \
USCCDM \
Via \
Videos \
VZWAPNLib \
VzwOmaTrigger \
YouTube \
YouTubeMusicPrebuilt
LOCAL_UNINSTALLABLE_MODULE := true
LOCAL_CERTIFICATE := PRESIGNED
LOCAL_SRC_FILES := /dev/null
include $(BUILD_PREBUILT)

View File

View File

@@ -1,367 +0,0 @@
# List of effect libraries to load. Each library element must contain a "path" element
# giving the full path of the library .so file.
# libraries {
# <lib name> {
# path <lib path>
# }
# }
libraries {
bundle {
path /vendor/lib/soundfx/libbundlewrapper.so
}
reverb {
path /vendor/lib/soundfx/libreverbwrapper.so
}
qcbassboost {
path /vendor/lib/soundfx/libqcbassboost.so
}
qcvirt {
path /vendor/lib/soundfx/libqcvirt.so
}
qcreverb {
path /vendor/lib/soundfx/libqcreverb.so
}
visualizer_sw {
path /vendor/lib/soundfx/libvisualizer.so
}
visualizer_hw {
path /vendor/lib/soundfx/libqcomvisualizer.so
}
downmix {
path /vendor/lib/soundfx/libdownmix.so
}
loudness_enhancer {
path /vendor/lib/soundfx/libldnhncr.so
}
dynamics_processing {
path /vendor/lib/soundfx/libdynproc.so
}
proxy {
path /vendor/lib/soundfx/libeffectproxy.so
}
offload_bundle {
path /vendor/lib/soundfx/libqcompostprocbundle.so
}
audio_pre_processing {
path /vendor/lib/soundfx/libqcomvoiceprocessing.so
}
volume_listener {
path /vendor/lib/soundfx/libvolumelistener.so
}
audiosphere {
path /vendor/lib/soundfx/libasphere.so
}
shoebox {
path /vendor/lib/soundfx/libshoebox.so
}
}
# Default pre-processing library. Add to audio_effect.conf "libraries" section if
# audio HAL implements support for default software audio pre-processing effects
#
# pre_processing {
# path /vendor/lib/soundfx/libaudiopreprocessing.so
# }
# list of effects to load. Each effect element must contain a "library" and a "uuid" element.
# The value of the "library" element must correspond to the name of one library element in the
# "libraries" element.
# The name of the effect element is indicative, only the value of the "uuid" element
# designates the effect.
# The uuid is the implementation specific UUID as specified by the effect vendor. This is not the
# generic effect type UUID.
# effects {
# <fx name> {
# library <lib name>
# uuid <effect uuid>
# }
# ...
# }
effects {
# additions for the proxy implementation
# Proxy implementation
#effectname {
#library proxy
#uuid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
# SW implemetation of the effect. Added as a node under the proxy to
# indicate this as a sub effect.
#libsw {
#library libSW
#uuid yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
#} End of SW effect
# HW implementation of the effect. Added as a node under the proxy to
# indicate this as a sub effect.
#libhw {
#library libHW
#uuid zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
#}End of HW effect
#} End of effect proxy
bassboost {
library proxy
uuid 14804144-a5ee-4d24-aa88-0002a5d5c51b
libsw {
library qcbassboost
uuid 23aca180-44bd-11e2-bcfd-0800200c9a66
}
libhw {
library offload_bundle
uuid 2c4a8c24-1581-487f-94f6-0002a5d5c51b
}
}
virtualizer {
library proxy
uuid d3467faa-acc7-4d34-acaf-0002a5d5c51b
libsw {
library qcvirt
uuid e6c98a16-22a3-11e2-b87b-f23c91aec05e
}
libhw {
library offload_bundle
uuid 509a4498-561a-4bea-b3b1-0002a5d5c51b
}
}
equalizer {
library proxy
uuid c8e70ecd-48ca-456e-8a4f-0002a5d5c51b
libsw {
library bundle
uuid ce772f20-847d-11df-bb17-0002a5d5c51b
}
libhw {
library offload_bundle
uuid a0dac280-401c-11e3-9379-0002a5d5c51b
}
}
volume {
library bundle
uuid 119341a0-8469-11df-81f9-0002a5d5c51b
}
reverb_env_aux {
library proxy
uuid 48404ac9-d202-4ccc-bf84-0002a5d5c51b
libsw {
library qcreverb
uuid a8c1e5f3-293d-43cd-95ec-d5e26c02e217
}
libhw {
library offload_bundle
uuid 79a18026-18fd-4185-8233-0002a5d5c51b
}
}
reverb_env_ins {
library proxy
uuid b707403a-a1c1-4291-9573-0002a5d5c51b
libsw {
library qcreverb
uuid 791fff8b-8129-4655-83a4-59bc61034c3a
}
libhw {
library offload_bundle
uuid eb64ea04-973b-43d2-8f5e-0002a5d5c51b
}
}
reverb_pre_aux {
library proxy
uuid 1b78f587-6d1c-422e-8b84-0002a5d5c51b
libsw {
library qcreverb
uuid 53ef1db5-c0c0-445b-b060-e34d20ebb70a
}
libhw {
library offload_bundle
uuid 6987be09-b142-4b41-9056-0002a5d5c51b
}
}
reverb_pre_ins {
library proxy
uuid f3e178d2-ebcb-408e-8357-0002a5d5c51b
libsw {
library qcreverb
uuid b08a0e38-22a5-11e2-b87b-f23c91aec05e
}
libhw {
library offload_bundle
uuid aa2bebf6-47cf-4613-9bca-0002a5d5c51b
}
}
visualizer {
library proxy
uuid 1d0a1a53-7d5d-48f2-8e71-27fbd10d842c
libsw {
library visualizer_sw
uuid d069d9e0-8329-11df-9168-0002a5d5c51b
}
libhw {
library visualizer_hw
uuid 7a8044a0-1a71-11e3-a184-0002a5d5c51b
}
}
downmix {
library downmix
uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f
}
hw_acc {
library offload_bundle
uuid 7d1580bd-297f-4683-9239-e475b6d1d69f
}
loudness_enhancer {
library loudness_enhancer
uuid fa415329-2034-4bea-b5dc-5b381c8d1e2c
}
dynamics_processing {
library dynamics_processing
uuid e0e6539b-1781-7261-676f-6d7573696340
}
aec {
library audio_pre_processing
uuid 0f8d0d2a-59e5-45fe-b6e4-248c8a799109
}
ns {
library audio_pre_processing
uuid 1d97bb0b-9e2f-4403-9ae3-58c2554306f8
}
music_helper {
library volume_listener
uuid 08b8b058-0590-11e5-ac71-0025b32654a0
}
ring_helper {
library volume_listener
uuid 0956df94-0590-11e5-bdbe-0025b32654a0
}
alarm_helper {
library volume_listener
uuid 09f303e2-0590-11e5-8fdb-0025b32654a0
}
# voice_helper is called when stream type is voice_call in VoIP usecase
voice_helper {
library volume_listener
uuid 0ace5c08-0590-11e5-ae9e-0025b32654a0
}
notification_helper {
library volume_listener
uuid 0b776dde-0590-11e5-81ba-0025b32654a0
}
audiosphere {
library audiosphere
uuid 184e62ab-2d19-4364-9d1b-c0a40733866c
}
shoebox {
library shoebox
uuid 1eab784c-1a36-4b2a-b7fc-e34c44cab89e
}
}
# additional effect from vendor
# UUID generated using version 1
output_session_processing {
music {
music_helper {
}
}
ring {
ring_helper {
}
}
alarm {
alarm_helper {
}
}
# stream type voice_call is used for VoIP call
voice_call {
voice_helper {
}
}
notification {
notification_helper {
}
}
}
# Added aec, ns effects for voice_communication, which are supported by the board
pre_processing {
voice_communication {
aec {
}
ns {
}
}
}
# Default pre-processing effects. Add to audio_effect.conf "effects" section if
# audio HAL implements support for them.
#
# agc {
# library pre_processing
# uuid aa8130e0-66fc-11e0-bad0-0002a5d5c51b
# }
# aec {
# library pre_processing
# uuid bb392ec0-8d4d-11e0-a896-0002a5d5c51b
# }
# ns {
# library pre_processing
# uuid c06c8400-8e06-11e0-9cb6-0002a5d5c51b
# }
# Audio preprocessor configurations.
# The pre processor configuration consists in a list of elements each describing
# pre processor settings for a given input source. Valid input source names are:
# "mic", "camcorder", "voice_recognition", "voice_communication"
# Each input source element contains a list of effects elements. The name of the effect
# element must be the name of one of the effects in the "effects" list of the file.
# Each effect element may optionally contain a list of parameters and their
# default value to apply when the pre processor effect is created.
# A parameter is defined by a "param" element and a "value" element. Each of these elements
# consists in one or more elements specifying a type followed by a value.
# The types defined are: "int", "short", "float", "bool" and "string"
# When both "param" and "value" are a single int, a simple form is allowed where just
# the param and value pair is present in the parameter description
# pre_processing {
# <input source name> {
# <fx name> {
# <param 1 name> {
# param {
# int|short|float|bool|string <value>
# [ int|short|float|bool|string <value> ]
# ...
# }
# value {
# int|short|float|bool|string <value>
# [ int|short|float|bool|string <value> ]
# ...
# }
# }
# <param 2 name > {<param> <value>}
# ...
# }
# ...
# }
# ...
# }
#
# TODO: add default audio pre processor configurations after debug and tuning phase
#

View File

@@ -45,6 +45,16 @@
<library name="volume_listener" path="libvolumelistener.so"/>
<library name="audiosphere" path="libasphere.so"/>
<library name="shoebox" path="libshoebox.so"/>
<library name="misoundfx" path="libmisoundfx.so"/>
<!--DOLBY DAP-->
<library name="dap" path="libswdap.so"/>
<!--DOLBY END-->
<!--DOLBY GAME-->
<library name="gamedap" path="libswgamedap.so"/>
<!--DOLBY END-->
<!--DOLBY VQE-->
<library name="vqe" path="libswvqe.so"/>
<!--DOLBY END-->
</libraries>
<effects>
<effectProxy name="bassboost" library="proxy" uuid="14804144-a5ee-4d24-aa88-0002a5d5c51b">
@@ -94,23 +104,27 @@
<effect name="audiosphere" library="audiosphere" uuid="184e62ab-2d19-4364-9d1b-c0a40733866c"/>
<effect name="shoebox" library="shoebox" uuid="1eab784c-1a36-4b2a-b7fc-e34c44cab89e"/>
<effect name="misoundfx" library="misoundfx" uuid="5b8e36a5-144a-4c38-b1d7-0002a5d5c51b"/>
<effect name="spatializer" library="spatializer" uuid="cc4677de-ff72-11eb-9a03-0242ac130003"/>
<!--DOLBY DAP-->
<effect name="dap" library="dap" uuid="9d4921da-8225-4f29-aefa-39537a04bcaa"/>
<!--DOLBY END-->
<!--DOLBY GAME-->
<effect name="gamedap" library="gamedap" uuid="3783c334-d3a0-4d13-874f-0032e5fb80e2"/>
<!--DOLBY END-->
<!--DOLBY VQE-->
<effect name="vqe" library="vqe" uuid="64a0f614-7fa4-48b8-b081-d59dc954616f"/>
<!--DOLBY END-->
</effects>
<postprocess>
<stream type="music">
<apply effect="music_helper"/>
</stream>
<stream type="ring">
<apply effect="ring_helper"/>
</stream>
<stream type="alarm">
<apply effect="alarm_helper"/>
</stream>
<stream type="voice_call">
<apply effect="voice_helper"/>
</stream>
<stream type="notification">
<apply effect="notification_helper"/>
</stream>
</postprocess>
<preprocess>

View File

@@ -62,7 +62,7 @@ outputs {
}
compress_passthrough {
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING|AUDIO_OUTPUT_FLAG_COMPRESS_PASSTHROUGH
formats AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD
formats AUDIO_FORMAT_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_E_AC3_JOC|AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD
sampling_rates 32000|44100|48000|88200|96000|176400|192000|352800
bit_width 16
app_type 69941

View File

@@ -61,7 +61,12 @@ limitations under the License.
<mixPort name="primary output" role="source" flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_PRIMARY">
<profile name="" format="AUDIO_FORMAT_PCM_24_BIT_PACKED"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
</mixPort>
<mixPort name="raw" role="source"
flags="AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW">
<profile name="" format="AUDIO_FORMAT_PCM_16_BIT"
samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/>
</mixPort>
<mixPort name="deep_buffer" role="source"
flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
@@ -295,55 +300,55 @@ limitations under the License.
<devicePort tagName="USB Headset In" type="AUDIO_DEVICE_IN_USB_HEADSET" role="source">
</devicePort>
</devicePorts>
<!-- route declaration, i.e. list all available sources for a given sink -->
<routes>
<route type="mix" sink="Earpiece"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Speaker"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Wired Headset"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Wired Headphones"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Line"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="HDMI"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/>
<route type="mix" sink="Proxy"
sources="primary output,deep_buffer,direct_pcm,compressed_offload"/>
<route type="mix" sink="FM"
sources="primary output"/>
<route type="mix" sink="BT SCO"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
<route type="mix" sink="BT SCO Headset"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
<route type="mix" sink="BT SCO Car Kit"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
<route type="mix" sink="USB Device Out"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
<route type="mix" sink="USB Headset Out"
sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
<route type="mix" sink="Telephony Tx"
sources="voice_tx,incall_music_uplink"/>
<route type="mix" sink="voice_rx"
sources="Telephony Rx"/>
<route type="mix" sink="primary input"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,Telephony Rx"/>
<route type="mix" sink="usb_surround_sound"
sources="USB Device In,USB Headset In"/>
<route type="mix" sink="fast input"
sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/>
<route type="mix" sink="quad mic"
sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/>
<route type="mix" sink="voip_tx"
sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic,Telephony Rx"/>
<route type="mix" sink="record_24"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
<route type="mix" sink="mmap_no_irq_in"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/>
<route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
</routes>
</devicePorts>
<!-- route declaration, i.e. list all available sources for a given sink -->
<routes>
<route type="mix" sink="Earpiece"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Speaker"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Wired Headset"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Wired Headphones"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="Line"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/>
<route type="mix" sink="HDMI"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/>
<route type="mix" sink="Proxy"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload"/>
<route type="mix" sink="FM"
sources="primary output"/>
<route type="mix" sink="BT SCO"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
<route type="mix" sink="BT SCO Headset"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
<route type="mix" sink="BT SCO Car Kit"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx"/>
<route type="mix" sink="USB Device Out"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
<route type="mix" sink="USB Headset Out"
sources="primary output,raw,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/>
<route type="mix" sink="Telephony Tx"
sources="voice_tx,incall_music_uplink"/>
<route type="mix" sink="voice_rx"
sources="Telephony Rx"/>
<route type="mix" sink="primary input"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,Telephony Rx"/>
<route type="mix" sink="usb_surround_sound"
sources="USB Device In,USB Headset In"/>
<route type="mix" sink="fast input"
sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/>
<route type="mix" sink="quad mic"
sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic"/>
<route type="mix" sink="voip_tx"
sources="Built-In Mic,Built-In Back Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Wired Headset Mic,Telephony Rx"/>
<route type="mix" sink="record_24"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic"/>
<route type="mix" sink="mmap_no_irq_in"
sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/>
<route type="mix" sink="hifi_input" sources="USB Device In,USB Headset In" />
</routes>
</module>

1857
audio/dax-default.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +0,0 @@
//
// Copyright (C) 2022 The Android Open Source Project
// SPDX-License-Identifier: Apache-2.0
//
cc_library_shared {
name: "android.hardware.boot@1.2-impl-qti",
stem: "android.hardware.boot@1.0-impl-1.2-qti",
defaults: ["android.hardware.boot@1.2-impl-qti_defaults"],
static_libs: ["libgptutils.veux"],
}

View File

@@ -0,0 +1,20 @@
MultiCameraEnable=TRUE
enable3ADebugData=FALSE
enableMCTF=TRUE
vsquality=6@30|5@30
iseispreviewSupported=TRUE
is3rdLightWeightSupported=TRUE
vsquality=6@30|5@30
iseispreviewSupported=TRUE
isPhyicalMultiCameraSupported=TRUE
overrideFlashTorchCurrent=375
isColorEnhancementSupported=1
numPCRsBeforeStreamOn=1
enableBayerSAT=FALSE
multiCameraSWFrameSyncInterval=0
multiCameraHWSyncMask=0x1
multiCameraFPSMatchMask=0x1
multiCameraFrameSyncMask=0x1
multiCameraExposureTimeMatch=FALSE
enableTOFInterface=FALSE
disableFocusIndication=1

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2019 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<config>
<component-override package="com.android.bluetooth" >
<component class=".avrcpcontroller.AvrcpControllerService" enabled="true" />
<component class=".hid.HidDeviceService" enabled="true" />
<component class=".sap.SapService" enabled="true" />
</component-override>
</config>

View File

@@ -48,6 +48,12 @@
<Limit name="measured-frame-rate-1280x720" range="3-6" />
<Limit name="measured-frame-rate-1920x1080" range="2-3" />
</MediaCodec>
<MediaCodec name="c2.android.av1-dav1d.decoder" type="video/av01" update="true">
<Limit name="measured-frame-rate-320x240" range="121-286" />
<Limit name="measured-frame-rate-720x480" range="60-120" />
<Limit name="measured-frame-rate-1280x720" range="60-90" />
<Limit name="measured-frame-rate-1920x1080" range="40-60" />
</MediaCodec>
<MediaCodec name="c2.android.h263.encoder" type="video/3gpp" update="true">
<Limit name="measured-frame-rate-176x144" range="256-349" />
</MediaCodec>

View File

@@ -0,0 +1,36 @@
###########################################################################
# Copyright (c) 2020 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# Copyright (c) 2017, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of The Linux Foundation nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
###########################################################################
PRIO=1,1,0,0,0,0,0,0
#arch_timer, arm-pmu, arch_mem_timer
IGNORED_IRQ=19,21,38,209,218

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<permissions>
<privapp-permissions package="com.google.android.euicc">
<permission name="android.permission.ACCESS_NETWORK_STATE"/>
<permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
<permission name="android.permission.FOREGROUND_SERVICE"/>
<permission name="android.permission.MODIFY_PHONE_STATE"/>
<permission name="android.permission.INTERNET"/>
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<permission name="android.permission.REBOOT"/>
<permission name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<permission name="android.permission.VIBRATE"/>
<permission name="android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
<permission name="com.android.permission.INSTALL_EXISTING_PACKAGES" />
<permission name="com.android.permission.WRITE_EMBEDDED_SUBSCRIPTIONS"/>
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
<permission name="com.google.android.setupwizard.SETUP_COMPAT_SERVICE"/>
<permission name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
</privapp-permissions>
</permissions>

View File

@@ -4,3 +4,6 @@ ro.vendor.qti.va_odm.support=1
# SKU properties
ro.product.property_source_order=odm,product,vendor,system_ext,system
import /odm/etc/build_${ro.boot.board_id}.prop
# Display
vendor.display.vds_allow_hwc=false

View File

@@ -16,3 +16,32 @@ persist.log.tag.OpenGLRenderer=S
# Declare use of spatial audio
ro.audio.spatializer_enabled=true
# LMKD
ro.lmk.kill_heaviest_task=true
ro.lmk.thrashing_limit=50
ro.lmk.thrashing_limit_decay=25
ro.lmk.psi_complete_stall_ms=80
ro.lmk.psi_partial_stall_ms=50
# Disable RescueParty due to high risk of data loss
persist.sys.disable_rescue=true
# Battery Saving
persist.radio.add_power_save=1
pm.sleep_mode=1
ro.ril.disable.power.collapse=0
ro.ril.fast.dormancy.rule=1
ro.ril.fast.dormancy.timeout=3
ro.mot.eri.losalert.delay=100
ro.vold.umsdirtyratio=20
power.saving.mode=1
# Skia tracing
debug.hwui.skia_tracing_enabled=false
debug.hwui.skia_use_perfetto_track_events=false
# Blur
ro.surface_flinger.supports_background_blur=1
ro.sf.blurs_are_expensive=1
persist.sysui.disableBlur=false

View File

@@ -11,3 +11,29 @@ persist.log.tag.ACDB-LOADER=S
persist.radio.is_vonr_enabled_0=true
persist.radio.is_vonr_enabled_1=true
persist.vendor.vonr_setting_support=1
# Ram Management
ro.config.fha_enable=true
ro.sys.fw.bg_apps_limit=32
ro.config.dha_cached_max=16
ro.config.dha_empty_max=42
ro.config.dha_empty_init=32
ro.config.dha_lmk_scale=0.545
ro.config.dha_th_rate=2.3
ro.config.sdha_apps_bg_max=64
ro.config.sdha_apps_bg_min=8
# IMS Debugging
persist.vendor.ims.disableADBLogs=1
persist.vendor.ims.disableDebugLogs=1
persist.vendor.ims.disableIMSLogs=1
persist.vendor.ims.disableQXDMLogs=1
# Audio
ro.audio.usb.period_us=20375
af.resampler.quality=7
ro.audio.resampler.psd.stopband=132
ro.audio.resampler.psd.halflength=960
ro.audio.resampler.psd.cutoff_percent=98
ro.audio.resampler.psd.tbwcheat=0
persist.bluetooth.sbc_hd_higher_bitrate=1

View File

@@ -24,3 +24,17 @@ persist.vendor.data.mode=concurrent
# WFD
persist.debug.wfd.enable=1
# Legit Touch Hax
touch.size.scale=1
touch.size.bias=0
touch.size.isSummed=0
touch.pressure.scale=0.001
touch.distance.calibration=none
touch.distance.scale=0
touch.coverage.calibration=box
touch.gestureMode=spots
MultitouchSettleInterval=1ms
MultitouchMinDistance=1px
TapInterval=1ms
TapSlop=1px

View File

@@ -20,7 +20,7 @@ ro.audio.monitorRotation=true
ro.config.vc_call_vol_steps=11
ro.vendor.audio.sdk.fluencetype=fluence
ro.vendor.audio.sdk.ssr=false
vendor.audio.adm.buffering.ms=2
vendor.audio.adm.buffering.ms=12
vendor.audio.chk.cal.spk=2
vendor.audio.chk.cal.us=2
vendor.audio.dolby.ds2.enabled=false
@@ -47,7 +47,7 @@ vendor.audio.feature.ext_hw_plugin.enable=false
vendor.audio.feature.fluence.enable=true
vendor.audio.feature.fm.enable=true
vendor.audio.feature.hdmi_edid.enable=true
vendor.audio.feature.hdmi_passthrough.enable=true
vendor.audio.feature.hdmi_passthrough.enable=false
vendor.audio.feature.hfp.enable=true
vendor.audio.feature.hifi_audio.enable=false
vendor.audio.feature.hwdep_cal.enable=false
@@ -61,7 +61,7 @@ vendor.audio.feature.record_play_concurency.enable=false
vendor.audio.feature.snd_mon.enable=true
vendor.audio.feature.spkr_prot.enable=true
vendor.audio.feature.src_trkn.enable=true
vendor.audio.feature.ssrec.enable=true
vendor.audio.feature.ssrec.enable=false
vendor.audio.feature.usb_offload_burst_mode.enable=true
vendor.audio.feature.usb_offload.enable=true
vendor.audio.feature.usb_offload_sidetone_volume.enable=false
@@ -73,7 +73,7 @@ vendor.audio.hal.output.suspend.supported=true
vendor.audio_hal.period_multiplier=3
vendor.audio_hal.period_size=192
vendor.audio.hw.aac.encoder=true
vendor.audio.offload.buffer.size.kb=32
vendor.audio.offload.buffer.size.kb=256
vendor.audio.offload.gapless.enabled=true
vendor.audio.offload.multiaac.enable=true
vendor.audio.offload.multiple.enabled=false
@@ -86,9 +86,6 @@ vendor.audio.use.sw.mpegh.decoder=true
vendor.audio.volume.headset.gain.depcal=true
vendor.voice.path.for.pcm.voip=true
# Audio hardware
ro.hardware.audio.primary=veux
# Bluetooth
bluetooth.profile.a2dp.source.enabled=true
bluetooth.profile.asha.central.enabled=false
@@ -122,19 +119,28 @@ persist.vendor.btstack.enable.twsplussho=true
# Camera
camera.disable_zsl_mode=true
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera
persist.vendor.camera.logInfoMask=false
persist.vendor.camera.perflock.enable=0
# Dalvik
dalvik.vm.dex2oat64.enabled=true
dalvik.vm.dex2oat-cpu-set=4,5,6,7
dalvik.vm.dex2oat-threads=4
dalvik.vm.image-dex2oat-cpu-set=4,5,6,7
dalvik.vm.image-dex2oat-threads=4
# Display
debug.sf.frame_rate_multiple_threshold=120
ro.surface_flinger.enable_frame_rate_override=false
ro.surface_flinger.force_hwc_copy_for_virtual_displays=true
ro.surface_flinger.game_default_frame_rate_override=120
ro.surface_flinger.has_wide_color_display=false
ro.surface_flinger.max_frame_buffer_acquired_buffers=3
ro.surface_flinger.max_virtual_display_dimension=4096
ro.surface_flinger.protected_contents=true
ro.surface_flinger.use_color_management=true
ro.surface_flinger.set_display_power_timer_ms=800
ro.surface_flinger.set_idle_timer_ms=3500
ro.surface_flinger.set_touch_timer_ms=4000
ro.surface_flinger.wcg_composition_dataspace=143261696
ro.vendor.display.sensortype=2
ro.vendor.display.svi=1
@@ -161,6 +167,7 @@ vendor.display.svi.config=1
vendor.display.svi.config_path=/vendor/etc/SVIConfig.xml
vendor.display.target.version=3
vendor.display.use_smooth_motion=1
vendor.display.disable_partial_split=1
# DPM
persist.vendor.dpmhalservice.enable=1
@@ -174,9 +181,7 @@ ro.frp.pst=/dev/block/bootdevice/by-name/frp
# Graphics
debug.sf.auto_latch_unsignaled=0
debug.sf.disable_backpressure=1
debug.sf.disable_client_composition_cache=1
debug.sf.enable_advanced_sf_phase_offset=1
debug.sf.enable_gl_backpressure=0
debug.sf.enable_transaction_tracing=false
debug.sf.high_fps_early_gl_phase_offset_ns=-4000000
debug.sf.high_fps_early_phase_offset_ns=-4000000
@@ -195,11 +200,22 @@ vendor.gralloc.secure_preview_buffer_format=420_sp
vendor.gralloc.secure_preview_only=1
# HWUI
ro.hwui.render_ahead=2
ro.hwui.render_ahead=5
debug.hwui.use_hint_manager=true
debug.hwui.target_cpu_time_percent=30
# Incremental FS
ro.incremental.enable=true
# Logcat spam
persist.log.tag.BackgroundInstallControlService=S
persist.log.tag.HWUI=S
persist.log.tag.ConnectivityService=S
persist.log.tag.vendor.qti.bluetooth@1.0-ibs_handler=S
persist.log.tag.vendor.qti.bluetooth@1.0-wake_lock=S
persist.log.tag.AppOps=S
persist.log.tag.FrameTracker=S
# Media
debug.stagefright.c2inputsurface=-1
vendor.media.target_variant=_blair
@@ -207,6 +223,7 @@ vendor.netflix.bsp_rev=Q4350-32962-1
# Perf
ro.vendor.extension_library=libqti-perfd-client.so
vendor.perf.framepacing.enable=1
# Radio
persist.dbg.ims_volte_enable=1
@@ -227,6 +244,7 @@ persist.vendor.radio.rat_on=combine
persist.vendor.radio.sib16_support=1
ro.telephony.default_network=33,33
persist.cust.tel.eons=1
ro.telephony.block_binder_thread_on_incoming_calls=false
# Sensors
persist.vendor.sensors.enable.bypass_worker=true
@@ -242,6 +260,8 @@ ro.soc.manufacturer=QTI
ro.soc.model=SM6375
# USB
ro.usb.uvc.disable_video_encode_flag=true
ro.usb.uvc.enabled=true
sys.usb.mtp.batchcancel=1
vendor.usb.controller=4e00000.dwc3
vendor.usb.diag.func.name=ffs
@@ -251,7 +271,8 @@ vendor.usb.rmnet.func.name=gsi
vendor.usb.rmnet.inst.name=rmnet
vendor.usb.rndis.func.name=gsi
vendor.usb.use_ffs_mtp=1
vendor.usb.use_gadget_hal=0
vendor.usb.use_gadget_hal=1
vendor.usb.uvc.payload_transfer_size=1024
# WiFi
wifi.aware.interface=wifi-aware0

View File

@@ -0,0 +1,8 @@
libadsprpc.so
libcdsprpc.so
libsdsprpc.so
libfastcvopt.so
liblistensoundmodel2.so
libOpenCL.so
libmialgoengine.so 64

View File

@@ -0,0 +1,33 @@
<?xml version='1.0' encoding='utf-8'?>
<!--
Copyright (c) 2020, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of The Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<StcLibraries>
<Library>
<Name>libsnapdragoncolor-qdcm.so</Name>
<ProcessingOrder>1</ProcessingOrder>
</Library>
</StcLibraries>

578
configs/task_profiles.json Normal file
View File

@@ -0,0 +1,578 @@
{
"Attributes": [
{
"Name": "LowCapacityCPUs",
"Controller": "cpuset",
"File": "background/cpus"
},
{
"Name": "HighCapacityCPUs",
"Controller": "cpuset",
"File": "foreground/cpus"
},
{
"Name": "MaxCapacityCPUs",
"Controller": "cpuset",
"File": "top-app/cpus"
},
{
"Name": "AudioAppCapacityCPUs",
"Controller": "cpuset",
"File": "audio-app/cpus"
},
{
"Name": "MemLimit",
"Controller": "memory",
"File": "memory.limit_in_bytes"
},
{
"Name": "MemSoftLimit",
"Controller": "memory",
"File": "memory.soft_limit_in_bytes"
},
{
"Name": "MemSwappiness",
"Controller": "memory",
"File": "memory.swappiness"
},
{
"Name": "UClampMin",
"Controller": "cpu",
"File": "cpu.uclamp.min"
},
{
"Name": "UClampMax",
"Controller": "cpu",
"File": "cpu.uclamp.max"
}
],
"Profiles": [
{
"Name": "HighEnergySaving",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpu",
"Path": "background"
}
}
]
},
{
"Name": "NormalPerformance",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpu",
"Path": ""
}
}
]
},
{
"Name": "HighPerformance",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpu",
"Path": "foreground"
}
}
]
},
{
"Name": "MaxPerformance",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpu",
"Path": "top-app"
}
}
]
},
{
"Name": "RealtimePerformance",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpu",
"Path": "rt"
}
}
]
},
{
"Name": "AudioAppPerformance",
"Actions" : [
{
"Name" : "JoinCgroup",
"Params" :
{
"Controller": "cpu",
"Path": "audio-app"
}
}
]
},
{
"Name": "CameraServicePerformance",
"Actions" : [
{
"Name" : "JoinCgroup",
"Params" :
{
"Controller": "cpu",
"Path": "camera-daemon"
}
}
]
},
{
"Name": "VrKernelCapacity",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": ""
}
}
]
},
{
"Name": "VrServiceCapacityLow",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "system/background"
}
}
]
},
{
"Name": "VrServiceCapacityNormal",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "system"
}
}
]
},
{
"Name": "VrServiceCapacityHigh",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "system/performance"
}
}
]
},
{
"Name": "VrProcessCapacityLow",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "application/background"
}
}
]
},
{
"Name": "VrProcessCapacityNormal",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "application"
}
}
]
},
{
"Name": "VrProcessCapacityHigh",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "application/performance"
}
}
]
},
{
"Name": "ProcessCapacityLow",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "background"
}
}
]
},
{
"Name": "ProcessCapacityNormal",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": ""
}
}
]
},
{
"Name": "ProcessCapacityHigh",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "foreground"
}
}
]
},
{
"Name": "ProcessCapacityMax",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "top-app"
}
}
]
},
{
"Name": "ServiceCapacityLow",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "system-background"
}
}
]
},
{
"Name": "ServiceCapacityRestricted",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "restricted"
}
}
]
},
{
"Name": "CameraServiceCapacity",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "cpuset",
"Path": "camera-daemon"
}
}
]
},
{
"Name": "AudioAppCapacity",
"Actions" : [
{
"Name" : "JoinCgroup",
"Params" :
{
"Controller": "cpuset",
"Path": "audio-app"
}
}
]
},
{
"Name": "BlkIOForeground",
"Actions" : [
{
"Name" : "JoinCgroup",
"Params" :
{
"Controller": "blkio",
"Path": ""
}
}
]
},
{
"Name": "BlkIOBackground",
"Actions" : [
{
"Name" : "JoinCgroup",
"Params" :
{
"Controller": "blkio",
"Path": "bg"
}
}
]
},
{
"Name": "LowIoPriority",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "blkio",
"Path": "background"
}
}
]
},
{
"Name": "NormalIoPriority",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "blkio",
"Path": ""
}
}
]
},
{
"Name": "HighIoPriority",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "blkio",
"Path": ""
}
}
]
},
{
"Name": "MaxIoPriority",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "blkio",
"Path": ""
}
}
]
},
{
"Name": "TimerSlackHigh",
"Actions": [
{
"Name": "SetTimerSlack",
"Params":
{
"Slack": "40000000"
}
}
]
},
{
"Name": "TimerSlackNormal",
"Actions": [
{
"Name": "SetTimerSlack",
"Params":
{
"Slack": "50000"
}
}
]
},
{
"Name": "PerfBoost",
"Actions": [
{
"Name": "SetClamps",
"Params":
{
"Boost": "50%",
"Clamp": "0"
}
}
]
},
{
"Name": "PerfClamp",
"Actions": [
{
"Name": "SetClamps",
"Params":
{
"Boost": "0",
"Clamp": "30%"
}
}
]
},
{
"Name": "LowMemoryUsage",
"Actions": [
{
"Name": "SetAttribute",
"Params":
{
"Name": "MemSoftLimit",
"Value": "16MB"
}
},
{
"Name": "SetAttribute",
"Params":
{
"Name": "MemSwappiness",
"Value": "150"
}
}
]
},
{
"Name": "HighMemoryUsage",
"Actions": [
{
"Name": "SetAttribute",
"Params":
{
"Name": "MemSoftLimit",
"Value": "512MB"
}
},
{
"Name": "SetAttribute",
"Params":
{
"Name": "MemSwappiness",
"Value": "100"
}
}
]
},
{
"Name": "SystemMemoryProcess",
"Actions": [
{
"Name": "JoinCgroup",
"Params":
{
"Controller": "memory",
"Path": "system"
}
}
]
}
],
"AggregateProfiles": [
{
"Name": "SCHED_SP_DEFAULT",
"Profiles": [ "TimerSlackNormal" ]
},
{
"Name": "SCHED_SP_BACKGROUND",
"Profiles": [ "HighEnergySaving", "LowIoPriority", "TimerSlackHigh" ]
},
{
"Name": "SCHED_SP_FOREGROUND",
"Profiles": [ "HighPerformance", "HighIoPriority", "TimerSlackNormal" ]
},
{
"Name": "SCHED_SP_TOP_APP",
"Profiles": [ "MaxPerformance", "MaxIoPriority", "TimerSlackNormal" ]
},
{
"Name": "SCHED_SP_RT_APP",
"Profiles": [ "RealtimePerformance", "MaxIoPriority", "TimerSlackNormal" ]
},
{
"Name": "CPUSET_SP_DEFAULT",
"Profiles": [ "TimerSlackNormal" ]
},
{
"Name": "CPUSET_SP_BACKGROUND",
"Profiles": [ "HighEnergySaving", "ProcessCapacityLow", "LowIoPriority", "TimerSlackHigh" ]
},
{
"Name": "CPUSET_SP_FOREGROUND",
"Profiles": [ "HighPerformance", "ProcessCapacityHigh", "HighIoPriority", "TimerSlackNormal" ]
},
{
"Name": "CPUSET_SP_TOP_APP",
"Profiles": [ "MaxPerformance", "ProcessCapacityMax", "MaxIoPriority", "TimerSlackNormal" ]
},
{
"Name": "CPUSET_SP_SYSTEM",
"Profiles": [ "ServiceCapacityLow", "TimerSlackNormal" ]
},
{
"Name": "CPUSET_SP_RESTRICTED",
"Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ]
}
]
}

View File

@@ -3,14 +3,6 @@
SPDX-License-Identifier: BSD-3-Clause
-->
<compatibility-matrix version="1.0" type="device">
<hal format="hidl" optional="false">
<name>android.frameworks.schedulerservice</name>
<version>1.0</version>
<interface>
<name>ISchedulingPolicyService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="false">
<name>android.frameworks.sensorservice</name>
<version>1.0</version>

View File

@@ -0,0 +1,212 @@
<!--
Copyright (C) 2023-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<compatibility-matrix version="2.0" type="framework">
<hal format="aidl" optional="true">
<name>vendor.lineage.health</name>
<version>2</version>
<interface>
<name>IChargingControl</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>vendor.lineage.health</name>
<version>2</version>
<interface>
<name>IFastCharge</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.goodix.hardware.biometrics.fingerprint</name>
<version>2.0-1</version>
<interface>
<name>IGoodixFingerprintDaemon</name>
<instance>default</instance>
</interface>
<interface>
<name>IGoodixFingerprintDaemonExt</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.qti.hardware.radio.qcriNvOpt</name>
<version>1.0</version>
<interface>
<name>IqcriNvOpt</name>
<instance>qcrinvopt0</instance>
<instance>qcrinvopt1</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.silead.hardware.fingerprintext</name>
<version>1.0</version>
<interface>
<name>ISileadFingerprint</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.mlipay</name>
<version>1.0-1</version>
<interface>
<name>IMlipayService</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.boot</name>
<version>1</version>
<interface>
<name>IBootControl</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.drm</name>
<version>1</version>
<interface>
<name>IDrmFactory</name>
<instance>clearkey</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.ir</name>
<version>1</version>
<interface>
<name>IConsumerIr</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.biometrics.fingerprint</name>
<version>2.3</version>
<interface>
<name>IBiometricsFingerprint</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.bluetooth.audio</name>
<version>4</version>
<interface>
<name>IBluetoothAudioProviderFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>android.hardware.boot</name>
<version>1.2</version>
<interface>
<name>IBootControl</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.health</name>
<version>3</version>
<interface>
<name>IHealth</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.light</name>
<version>2</version>
<interface>
<name>ILights</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.sensors</name>
<version>2</version>
<interface>
<name>ISensors</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.power</name>
<version>5</version>
<interface>
<name>IPower</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.memtrack</name>
<version>1</version>
<interface>
<name>IMemtrack</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.usb</name>
<version>1</version>
<interface>
<name>IUsb</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.thermal</name>
<version>1</version>
<interface>
<name>IThermal</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.vibrator</name>
<version>2</version>
<interface>
<name>IVibrator</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.wifi.hostapd</name>
<version>2</version>
<interface>
<name>IHostapd</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.wifi.supplicant</name>
<version>3</version>
<interface>
<name>ISupplicant</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.dolby.hardware.dms</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IDms</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>android.hardware.wifi</name>
<version>1-2</version>
<interface>
<name>IWifi</name>
<instance>default</instance>
</interface>
</hal>
<hal format="aidl" optional="true">
<name>vendor.google.google_battery</name>
<version>1</version>
<interface>
<name>IGoogleBattery</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

View File

@@ -2,7 +2,7 @@
Copyright (C) 2019-2020 The Linux Foundation
SPDX-License-Identifier: BSD-3-Clause
-->
<manifest version="1.0" type="device" target-level="5">
<manifest version="1.0" type="device" target-level="6">
<hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>
@@ -28,22 +28,11 @@
<transport>hwbinder</transport>
<fqname>@1.0::IGatekeeper/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.ir</name>
<transport>hwbinder</transport>
<fqname>@1.0::IConsumerIr/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.keymaster</name>
<transport>hwbinder</transport>
<fqname>@4.1::IKeymasterDevice/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.media.omx</name>
<transport>hwbinder</transport>
<fqname>@1.0::IOmx/default</fqname>
<fqname>@1.0::IOmxStore/default</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.radio</name>
<transport>hwbinder</transport>
@@ -70,7 +59,7 @@
<hal format="hidl">
<name>android.hardware.tetheroffload.control</name>
<transport>hwbinder</transport>
<fqname>@1.0::IOffloadControl/default</fqname>
<fqname>@1.1::IOffloadControl/default</fqname>
</hal>
<hal format="hidl">
<name>com.qualcomm.qti.dpm.api</name>
@@ -271,5 +260,12 @@
<transport>hwbinder</transport>
<fqname>@1.0::ISileadFingerprint/default</fqname>
</hal>
<hal format="aidl">
<name>vendor.google.google_battery</name>
<interface>
<name>IGoogleBattery</name>
<instance>default</instance>
</interface>
</hal>
<kernel target-level="5"/>
</manifest>

125
device.mk
View File

@@ -36,6 +36,12 @@ PRODUCT_PACKAGES += \
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# ART
ART_BUILD_TARGET_NDEBUG := true
ART_BUILD_TARGET_DEBUG := false
ART_BUILD_HOST_NDEBUG := true
ART_BUILD_HOST_DEBUG := false
# Audio
PRODUCT_PACKAGES += \
android.hardware.audio@6.0-impl \
@@ -74,6 +80,7 @@ PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/audio,$(TARGET_COPY_OUT_VENDOR)/etc/audio/$(AUDIO_SKU_DIR))
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/dax-default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dolby/dax-default.xml \
$(AUDIO_HAL_DIR)/configs/holi/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt
PRODUCT_COPY_FILES += \
@@ -90,9 +97,8 @@ PRODUCT_PACKAGES += \
# Boot control
PRODUCT_PACKAGES += \
android.hardware.boot@1.2-impl-qti \
android.hardware.boot@1.2-impl-qti.recovery \
android.hardware.boot@1.2-service
android.hardware.boot-service.qti \
android.hardware.boot-service.qti.recovery
# Camera
PRODUCT_PACKAGES += \
@@ -100,9 +106,15 @@ PRODUCT_PACKAGES += \
android.hardware.camera.provider@2.4-service_64
PRODUCT_PACKAGES += \
vendor.qti.hardware.camera.device@1.0.vendor \
vendor.qti.hardware.camera.postproc@1.0.vendor
# Camera Health
$(call soong_config_set,camera,override_format_from_reserved,true)
# Camx overrides
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/camxoverridesettings.txt:$(TARGET_COPY_OUT_VENDOR)/etc/camera/camxoverridesettings.txt
PRODUCT_PACKAGES += \
libpiex_shim
@@ -110,13 +122,23 @@ PRODUCT_PACKAGES += \
liblz4.vendor \
libpng.vendor
# Configstore
PRODUCT_PACKAGES += \
vendor.qti.hardware.capabilityconfigstore@1.0 \
vendor.qti.hardware.capabilityconfigstore@1.0.vendor
# DebugFS
PRODUCT_SET_DEBUGFS_RESTRICTIONS := true
# Device-specific settings
PRODUCT_PACKAGES += \
XiaomiDolby \
XiaomiParts
# Device as Webcam
PRODUCT_PACKAGES += \
DeviceAsWebcam
# Display
PRODUCT_PACKAGES += \
vendor.qti.hardware.display.composer-service
@@ -141,11 +163,17 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/display_id_4630947081618265473.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_id_4630947081618265473.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/snapdragon_color_libs_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/snapdragon_color_libs_config.xml
# DRM
PRODUCT_PACKAGES += \
android.hardware.drm-service.clearkey \
android.hardware.drm@1.3.vendor \
android.hardware.drm-service.clearkey
PRODUCT_PACKAGES += \
android.hardware.drm@1.3.vendor \
libcrypto_shim \
libcrypto_shim.vendor
# Fastbootd
PRODUCT_PACKAGES += \
@@ -215,11 +243,14 @@ PRODUCT_PACKAGES += \
# IR
PRODUCT_PACKAGES += \
android.hardware.ir@1.0-impl \
android.hardware.ir@1.0-service
android.hardware.ir-service.lineage
# IRQ
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf
# Kernel
OVERRIDE_ENABLE_UFFD_GC := false
PRODUCT_ENABLE_UFFD_GC := true
# Keymaster
PRODUCT_PACKAGES += \
@@ -227,26 +258,21 @@ PRODUCT_PACKAGES += \
# Light
PRODUCT_PACKAGES += \
android.hardware.light-service.xiaomi
android.hardware.light-service.lineage
# Lineage health
$(call soong_config_set,lineage_health,charging_control_supports_bypass,false)
# Media
PRODUCT_PACKAGES += \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxG711Enc \
libOmxQcelp13Enc \
libavservices_minijail \
libavservices_minijail.vendor \
libcodec2_hidl@1.0.vendor \
libcodec2_vndk.vendor \
libmm-omxcore \
libstagefright_softomx.vendor \
libstagefrighthw
libcodec2_vndk.vendor
PRODUCT_PACKAGES += \
libstagefright_softomx_plugin.vendor
libstagefright_softomx_plugin.vendor \
libstagefright_foundation-v33
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/media_codecs_blair.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_blair.xml \
@@ -304,7 +330,10 @@ PRODUCT_ENFORCE_RRO_TARGETS := *
PRODUCT_PACKAGES += \
CarrierConfigOverlayCOMMON \
DialerOverlayCOMMON \
TelephonyOverlayCOMMON
TelephonyOverlayCOMMON \
ApertureOverlay \
ApertureQRScannerOverlay \
ApertureIconOverlay
PRODUCT_PACKAGES += \
FrameworkOverlayVEUX \
@@ -321,20 +350,30 @@ PRODUCT_PACKAGES += \
SettingsProviderOverlay2201116PG \
SettingsProviderOverlay2201116PI
PRODUCT_PACKAGES += \
EuiccOverlay2201116SR \
SettingsOverlay2201116SR
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/overlay/config-odm.xml:$(TARGET_COPY_OUT_ODM)/overlay/config/config.xml \
$(LOCAL_PATH)/overlay/config-vendor.xml:$(TARGET_COPY_OUT_VENDOR)/overlay/config/config.xml
# Component overrides
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
# Partitions
PRODUCT_PACKAGES += \
vendor_bt_firmware_mountpoint \
vendor_dsp_mountpoint \
vendor_firmware_mnt_mountpoint
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Perf
PRODUCT_PACKAGES += \
libqti-perfd-client
PRODUCT_COPY_FILES += \
system/core/libprocessgroup/profiles/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
@@ -356,6 +395,7 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \
frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.euicc.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
@@ -369,6 +409,7 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
frameworks/native/data/etc/android.hardware.wifi.rtt.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.rtt.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.ipsec_tunnel_migration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnel_migration.xml \
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
@@ -376,6 +417,9 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.verified_boot.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.verified_boot.xml \
frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/privapp-permissions-euicc.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-euicc.xml
# Power
PRODUCT_PACKAGES += \
android.hardware.power-service.lineage-libperfmgr
@@ -384,7 +428,12 @@ PRODUCT_PACKAGES += \
libssl.vendor
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
$(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json \
$(LOCAL_PATH)/configs/task_profiles.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json
# Public libraries
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
# Protobuf
PRODUCT_PACKAGES += \
@@ -468,8 +517,10 @@ PRODUCT_BOOT_JARS += \
xiaomi-telephony-stub
# Thermal
ifeq ($(TARGET_USE_QTI_THERMAL_SERVICE),true)
PRODUCT_PACKAGES += \
android.hardware.thermal-service.qti
endif
# Update engine
PRODUCT_PACKAGES += \
@@ -479,18 +530,24 @@ PRODUCT_PACKAGES += \
# USB
PRODUCT_PACKAGES += \
android.hardware.usb-service.qti
android.hardware.usb-service.qti \
android.hardware.usb.gadget-service.qti
PRODUCT_PACKAGES += \
init.qcom.usb.rc \
init.qcom.usb.sh
init.qcom.usb.sh \
usb_compositions.conf
# Vendor service manager
PRODUCT_PACKAGES += \
vndservicemanager
# Vibrator
$(call inherit-product, vendor/qcom/opensource/vibrator/vibrator-vendor-product.mk)
PRODUCT_PACKAGES += \
vendor.qti.hardware.vibrator.service
PRODUCT_COPY_FILES += \
vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml
# WiFi
PRODUCT_PACKAGES += \
@@ -516,10 +573,4 @@ $(call inherit-product, vendor/xiaomi/veux/veux-vendor.mk)
# Remove unwanted packages
PRODUCT_PACKAGES += \
RemovePackages
# AGC CAMERA
$(call inherit-product, vendor/xiaomi/AGC-Camera/config.mk)
# MiuiCamera
$(call inherit-product, vendor/xiaomi/miuicamera-veux/MiuiCamera-veux.mk)
RemovePackagesVeux

View File

@@ -1,50 +0,0 @@
<!--
Copyright (C) 2023-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<compatibility-matrix version="2.0" type="framework">
<hal format="aidl" optional="true">
<name>vendor.lineage.health</name>
<interface>
<name>IChargingControl</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.goodix.hardware.biometrics.fingerprint</name>
<version>2.0-1</version>
<interface>
<name>IGoodixFingerprintDaemon</name>
<instance>default</instance>
</interface>
<interface>
<name>IGoodixFingerprintDaemonExt</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.qti.hardware.radio.qcriNvOpt</name>
<version>1.0</version>
<interface>
<name>IqcriNvOpt</name>
<instance>qcrinvopt0</instance>
<instance>qcrinvopt1</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.silead.hardware.fingerprintext</name>
<version>1.0</version>
<interface>
<name>ISileadFingerprint</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.mlipay</name>
<version>1.0-1</version>
<interface>
<name>IMlipayService</name>
<instance>default</instance>
</interface>
</hal>
</compatibility-matrix>

26
evolution.dependencies Normal file
View File

@@ -0,0 +1,26 @@
[
{
"repository": "Xiaomi-Development/device_xiaomi_camera",
"target_path": "device/xiaomi/camera",
"remote": "github-non-los",
"branch": "aosp-15"
},
{
"repository": "hardware_xiaomi",
"target_path": "hardware/xiaomi"
},
{
"repository": "kernel_xiaomi_veux",
"target_path": "kernel/xiaomi/veux"
},
{
"repository": "vendor_xiaomi_veux",
"target_path": "vendor/xiaomi/veux"
},
{
"repository": "xiaomi-development/vendor_xiaomi_camera",
"target_path": "vendor/xiaomi/camera",
"remote": "gitlab",
"branch": "aosp-15"
}
]

87
extract-files.py Normal file
View File

@@ -0,0 +1,87 @@
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.fixups_blob import (
blob_fixup,
blob_fixups_user_type,
)
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
namespace_imports = [
'device/xiaomi/veux',
'hardware/qcom-caf/sm8350',
'hardware/qcom-caf/wlan',
'hardware/xiaomi',
'vendor/qcom/opensource/commonsys/display',
'vendor/qcom/opensource/commonsys-intf/display',
'vendor/qcom/opensource/dataservices',
'vendor/qcom/opensource/display',
]
def lib_fixup_vendor_suffix(lib: str, partition: str, *args, **kwargs):
return f'{lib}_{partition}' if partition == 'vendor' else None
blob_fixups: blob_fixups_user_type = {
'odm/etc/build_*.prop': blob_fixup()
.regex_replace(r'.*marketname.*\n', r'')
.regex_replace(r'cert', r'model'),
'system_ext/etc/init/wfdservice.rc': blob_fixup()
.regex_replace(r'^(?!service)(.*)wfdservice$', r'\g<1>wfdservice64'),
'system_ext/lib64/libwfdnative.so': blob_fixup()
.remove_needed('android.hidl.base@1.0.so'),
'vendor/etc/camera/camxoverridesettings.txt': blob_fixup()
.regex_replace(r'0x10080', r'0')
.regex_replace(r'0x1F', r'0x0'),
'vendor/etc/init/init.batterysecret.rc': blob_fixup()
.regex_replace(r'on charger', r'on property:init.svc.vendor.charger=running'),
'vendor/etc/libnfc-pn557.conf': blob_fixup()
.call(lambda file_path, content:
content if "NXP RF" in content
else content + '\n' + open(f"{SRC}/vendor/libnfc-nxp_RF.conf").read()),
'vendor/lib64/android.hardware.secure_element@1.0-impl.so': blob_fixup()
.remove_needed('android.hidl.base@1.0.so'),
'vendor/lib64/camera/components/com.qti.node.mialgocontrol.so': blob_fixup()
.add_needed('libpiex_shim.so'),
('vendor/lib64/libwvhidl.so', 'vendor/lib64/mediadrm/libwvdrmengine.so'): blob_fixup()
.add_needed('libcrypto_shim.so'),
('vendor/lib64/libdlbdsservice.so',
'vendor/lib/libstagefright_soft_ac4dec.so',
'vendor/lib/libstagefright_soft_ddpdec.so'): blob_fixup()
.replace_needed('libstagefright_foundation.so', 'libstagefright_foundation-v33.so'),
'vendor/etc/libnfc-sn100.conf': blob_fixup()
.regex_replace(r'(DEFAULT_ISODEP_ROUTE.*?)0x01', r'\g<1>0xC0')
.regex_replace(r'(DEFAULT_SYS_CODE_ROUTE.*?)0x00', r'\g<1>0xC0')
.regex_replace(r'(DEFAULT_OFFHOST_ROUTE.*?)0x01', r'\g<1>0xC0')
.regex_replace(r'(OFFHOST_ROUTE_ESE.*?)01', r'\g<1>C0')
.regex_replace(r'$', r'\nDEFAULT_NFCF_ROUTE=0xC0'),
}
module = ExtractUtilsModule(
'veux',
'xiaomi',
blob_fixups=blob_fixups,
namespace_imports=namespace_imports,
)
if __name__ == '__main__':
utils = ExtractUtils.device(module)
utils.run()

View File

@@ -1,124 +0,0 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=veux
VENDOR=xiaomi
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
# If XML files don't have comments before the XML header, use this flag
# Can still be used with broken XML files by using blob_fixup
export TARGET_DISABLE_XML_FIXING=true
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
ONLY_FIRMWARE=
KANG=
SECTION=
while [ "${#}" -gt 0 ]; do
case "${1}" in
--only-firmware)
ONLY_FIRMWARE=true
;;
-n | --no-cleanup)
CLEAN_VENDOR=false
;;
-k | --kang)
KANG="--kang"
;;
-s | --section)
SECTION="${2}"
shift
CLEAN_VENDOR=false
;;
*)
SRC="${1}"
;;
esac
shift
done
if [ -z "${SRC}" ]; then
SRC="adb"
fi
function blob_fixup() {
case "${1}" in
odm/etc/build_*.prop)
[ "$2" = "" ] && return 0
sed -i "/marketname/d" "${2}"
sed -i "s/cert/model/" "${2}"
;;
system_ext/etc/init/wfdservice.rc)
[ "$2" = "" ] && return 0
sed -i "/^service/! s/wfdservice$/wfdservice64/g" "${2}"
;;
system_ext/lib64/libwfdnative.so)
[ "$2" = "" ] && return 0
"${PATCHELF}" --remove-needed "android.hidl.base@1.0.so" "${2}"
;;
vendor/etc/camera/camxoverridesettings.txt)
[ "$2" = "" ] && return 0
sed -i "s/0x10080/0/g" "${2}"
sed -i "s/0x1F/0x0/g" "${2}"
;;
vendor/etc/init/init.batterysecret.rc)
[ "$2" = "" ] && return 0
sed -i "s/on charger/on property:init.svc.vendor.charger=running/g" "${2}"
;;
vendor/etc/libnfc-pn557.conf)
[ "$2" = "" ] && return 0
grep -q "NXP RF" "${2}" || cat "${SRC}/vendor/libnfc-nxp_RF.conf" >> "${2}"
;;
vendor/lib/hw/audio.primary.veux.so)
[ "$2" = "" ] && return 0
"${PATCHELF}" --replace-needed "liba2dpoffload.so" "liba2dpoffload_veux.so" "${2}"
;;
vendor/lib64/android.hardware.secure_element@1.0-impl.so)
[ "$2" = "" ] && return 0
"${PATCHELF}" --remove-needed "android.hidl.base@1.0.so" "${2}"
;;
vendor/lib64/camera/components/com.qti.node.mialgocontrol.so)
[ "$2" = "" ] && return 0
llvm-strip --strip-debug "${2}"
grep -q "libpiex_shim.so" "${2}" || "${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
;;
*)
return 1
;;
esac
return 0
}
function blob_fixup_dry() {
blob_fixup "$1" ""
}
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
if [ -z "${ONLY_FIRMWARE}" ]; then
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
fi
"${MY_DIR}/setup-makefiles.sh"

View File

@@ -2,19 +2,3 @@ GNSS_CFLAGS = [
"-Werror",
"-Wno-undefined-bool-conversion",
]
/* Activate the following for debug purposes only,
comment out for production */
GNSS_SANITIZE_DIAG = {
/*
diag: {
cfi: true,
misc_undefined: [
"bounds",
"null",
"unreachable",
"integer",
],
},
*/
}

View File

@@ -1,28 +0,0 @@
ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)
# Set required flags
GNSS_CFLAGS := \
-Werror \
-Wno-undefined-bool-conversion
GNSS_HIDL_VERSION = 2.1
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += msm8937
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += msm8953
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += msm8998
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += apq8098_latv
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += sdm710
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += qcs605
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += sdm845
GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST += sdm660
ifneq (,$(filter $(GNSS_HIDL_LEGACY_MEASURMENTS_TARGET_LIST),$(TARGET_BOARD_PLATFORM)))
GNSS_HIDL_LEGACY_MEASURMENTS = true
endif
LOCAL_PATH := $(call my-dir)
include $(call all-makefiles-under,$(LOCAL_PATH))
GNSS_SANITIZE_DIAG := cfi bounds null unreachable integer address
endif # ifneq ($(BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE),)

View File

@@ -1,50 +0,0 @@
# Copyright (C) 2007 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# If you don't need to do a full clean build but would like to touch
# a file or delete some intermediate files, add a clean step to the end
# of the list. These steps will only be run once, if they haven't been
# run before.
#
# E.g.:
# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
#
# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
# files that are missing or have been moved.
#
# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
# Use $(OUT_DIR) to refer to the "out" directory.
#
# If you need to re-do something that's already mentioned, just copy
# the command and add it to the bottom of the list. E.g., if a change
# that you made last week required touching a file and a change you
# made today requires touching the same file, just copy the old
# touch step and add it to the end of the list.
#
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
# For example:
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libloc_api*)

View File

@@ -0,0 +1,96 @@
cc_library_shared {
name: "android.hardware.gnss@2.1-impl-qti",
vendor: true,
relative_install_path: "hw",
srcs: [
"AGnss.cpp",
"Gnss.cpp",
"AGnssRil.cpp",
"GnssMeasurement.cpp",
"GnssConfiguration.cpp",
"GnssBatching.cpp",
"GnssGeofencing.cpp",
"GnssNi.cpp",
"GnssDebug.cpp",
"GnssAntennaInfo.cpp",
"MeasurementCorrections.cpp",
"GnssVisibilityControl.cpp",
] + [
"location_api/GnssAPIClient.cpp",
"location_api/MeasurementAPIClient.cpp",
"location_api/GeofenceAPIClient.cpp",
"location_api/BatchingAPIClient.cpp",
"location_api/LocationUtil.cpp",
],
local_include_dirs: ["location_api"],
header_libs: [
"libgps.utils_headers",
"libloc_core_headers",
"libloc_pla_headers",
"liblocation_api_headers",
"liblocbatterylistener_headers",
],
shared_libs: [
"liblog",
"libhidlbase",
"libcutils",
"libutils",
"android.hardware.gnss@1.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
"android.hardware.gnss.measurement_corrections@1.0",
"android.hardware.gnss.measurement_corrections@1.1",
"android.hardware.gnss.visibility_control@1.0",
"android.hardware.health@1.0",
"android.hardware.health@2.0",
"android.hardware.health@2.1",
"android.hardware.power@1.2",
"libbase",
] + [
"libloc_core",
"libgps.utils",
"libdl",
"liblocation_api",
],
cflags: GNSS_CFLAGS,
static_libs: ["liblocbatterylistener"] + ["libhealthhalutils"],
}
cc_binary {
name: "android.hardware.gnss@2.1-service-qti",
vintf_fragments: ["android.hardware.gnss@2.1-service-qti.xml"],
vendor: true,
relative_install_path: "hw",
init_rc: ["android.hardware.gnss@2.1-service-qti.rc"],
srcs: ["service.cpp"],
header_libs: [
"libgps.utils_headers",
"libloc_core_headers",
"libloc_pla_headers",
"liblocation_api_headers",
],
shared_libs: [
"liblog",
"libcutils",
"libdl",
"libbase",
"libutils",
"libgps.utils",
"libqti_vndfwk_detect",
] + [
"libhidlbase",
"android.hardware.gnss@1.0",
"android.hardware.gnss@1.1",
"android.hardware.gnss@2.0",
"android.hardware.gnss@2.1",
],
cflags: GNSS_CFLAGS + ["-DLOC_HIDL_VERSION=\"4.0\""],
}

View File

@@ -1,115 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.gnss@2.1-impl-qti
# activate the following line for debug purposes only, comment out for production
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := \
AGnss.cpp \
Gnss.cpp \
AGnssRil.cpp \
GnssMeasurement.cpp \
GnssConfiguration.cpp \
GnssBatching.cpp \
GnssGeofencing.cpp \
GnssNi.cpp \
GnssDebug.cpp \
GnssAntennaInfo.cpp \
MeasurementCorrections.cpp \
GnssVisibilityControl.cpp
LOCAL_SRC_FILES += \
location_api/GnssAPIClient.cpp \
location_api/MeasurementAPIClient.cpp \
location_api/GeofenceAPIClient.cpp \
location_api/BatchingAPIClient.cpp \
location_api/LocationUtil.cpp \
ifeq ($(GNSS_HIDL_LEGACY_MEASURMENTS),true)
LOCAL_CFLAGS += \
-DGNSS_HIDL_LEGACY_MEASURMENTS
endif
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/location_api
LOCAL_HEADER_LIBRARIES := \
libgps.utils_headers \
libloc_core_headers \
libloc_pla_headers \
liblocation_api_headers \
liblocbatterylistener_headers
LOCAL_SHARED_LIBRARIES := \
liblog \
libhidlbase \
libcutils \
libutils \
android.hardware.gnss@1.0 \
android.hardware.gnss@1.1 \
android.hardware.gnss@2.0 \
android.hardware.gnss@2.1 \
android.hardware.gnss.measurement_corrections@1.0 \
android.hardware.gnss.measurement_corrections@1.1 \
android.hardware.gnss.visibility_control@1.0 \
android.hardware.health@1.0 \
android.hardware.health@2.0 \
android.hardware.health@2.1 \
android.hardware.power@1.2 \
libbase
LOCAL_SHARED_LIBRARIES += \
libloc_core \
libgps.utils \
libdl \
liblocation_api \
LOCAL_CFLAGS += $(GNSS_CFLAGS)
LOCAL_STATIC_LIBRARIES := liblocbatterylistener
LOCAL_STATIC_LIBRARIES += libhealthhalutils
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := android.hardware.gnss@2.1-service-qti
# activate the following line for debug purposes only, comment out for production
#LOCAL_SANITIZE_DIAG += $(GNSS_SANITIZE_DIAG)
LOCAL_VINTF_FRAGMENTS := android.hardware.gnss@2.1-service-qti.xml
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_INIT_RC := android.hardware.gnss@2.1-service-qti.rc
LOCAL_SRC_FILES := \
service.cpp \
LOCAL_HEADER_LIBRARIES := \
libgps.utils_headers \
libloc_core_headers \
libloc_pla_headers \
liblocation_api_headers
LOCAL_SHARED_LIBRARIES := \
liblog \
libcutils \
libdl \
libbase \
libutils \
libgps.utils \
libqti_vndfwk_detect \
LOCAL_SHARED_LIBRARIES += \
libhidlbase \
android.hardware.gnss@1.0 \
android.hardware.gnss@1.1 \
android.hardware.gnss@2.0 \
android.hardware.gnss@2.1 \
LOCAL_CFLAGS += $(GNSS_CFLAGS)
ifneq ($(LOC_HIDL_VERSION),)
LOCAL_CFLAGS += -DLOC_HIDL_VERSION='"$(LOC_HIDL_VERSION)"'
endif
include $(BUILD_EXECUTABLE)

View File

@@ -1,2 +0,0 @@
LOCAL_PATH := $(call my-dir)
include $(call all-subdir-makefiles)

View File

@@ -33,5 +33,6 @@ cc_library_static {
cc_library_headers {
name: "liblocbatterylistener_headers",
vendor: true,
export_include_dirs: ["."],
}

View File

@@ -141,8 +141,11 @@ public:
unordered_set<KEY>* goneKeys, unordered_set<VAL>* goneVals) {
for (auto key : keys) {
auto iter = mMap.find(key);
if (iter != mMap.end() && trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) {
goneKeys->insert(iter->first);
if (iter != mMap.end()) {
KEY goneKey = iter->first;
if (trimOrRemove(iter, rVals, goneVals) && nullptr != goneKeys) {
goneKeys->insert(goneKey);
}
}
}
}

View File

@@ -1,22 +0,0 @@
//
// Copyright (C) 2022 The Android Open Source Project
// SPDX-License-Identifier: Apache-2.0
//
cc_library {
name: "libgptutils.veux",
cflags: ["-D_BSG_FRAMEWORK_KERNEL_HEADERS"],
export_include_dirs: ["."],
header_libs: ["qti_kernel_headers"],
recovery_available: true,
shared_libs: [
"libcutils",
"liblog",
"libz",
],
srcs: [
"gpt-utils.cpp",
"recovery-ufs-bsg.cpp",
],
vendor: true,
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,195 +0,0 @@
/*
* Copyright (c) 2013,2016,2020 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef __GPT_UTILS_H__
#define __GPT_UTILS_H__
#include <vector>
#include <string>
#include <map>
#ifdef __cplusplus
extern "C" {
#endif
#include <unistd.h>
#include <stdlib.h>
/******************************************************************************
* GPT HEADER DEFINES
******************************************************************************/
#define GPT_SIGNATURE "EFI PART"
#define HEADER_SIZE_OFFSET 12
#define HEADER_CRC_OFFSET 16
#define PRIMARY_HEADER_OFFSET 24
#define BACKUP_HEADER_OFFSET 32
#define FIRST_USABLE_LBA_OFFSET 40
#define LAST_USABLE_LBA_OFFSET 48
#define PENTRIES_OFFSET 72
#define PARTITION_COUNT_OFFSET 80
#define PENTRY_SIZE_OFFSET 84
#define PARTITION_CRC_OFFSET 88
#define TYPE_GUID_OFFSET 0
#define TYPE_GUID_SIZE 16
#define PTN_ENTRY_SIZE 128
#define UNIQUE_GUID_OFFSET 16
#define FIRST_LBA_OFFSET 32
#define LAST_LBA_OFFSET 40
#define ATTRIBUTE_FLAG_OFFSET 48
#define PARTITION_NAME_OFFSET 56
#define MAX_GPT_NAME_SIZE 72
/******************************************************************************
* AB RELATED DEFINES
******************************************************************************/
//Bit 48 onwords in the attribute field are the ones where we are allowed to
//store our AB attributes.
#define AB_FLAG_OFFSET (ATTRIBUTE_FLAG_OFFSET + 6)
#define GPT_DISK_INIT_MAGIC 0xABCD
#define AB_PARTITION_ATTR_SLOT_ACTIVE (0x1<<2)
#define AB_PARTITION_ATTR_BOOT_SUCCESSFUL (0x1<<6)
#define AB_PARTITION_ATTR_UNBOOTABLE (0x1<<7)
#define AB_SLOT_ACTIVE_VAL 0x3F
#define AB_SLOT_INACTIVE_VAL 0x0
#define AB_SLOT_ACTIVE 1
#define AB_SLOT_INACTIVE 0
#define AB_SLOT_A_SUFFIX "_a"
#define AB_SLOT_B_SUFFIX "_b"
#define PTN_XBL "xbl"
#define PTN_XBL_CFG "xbl_config"
#define PTN_MULTIIMGOEM "multiimgoem"
#define PTN_MULTIIMGQTI "multiimgqti"
#define PTN_SWAP_LIST PTN_XBL, PTN_XBL_CFG, PTN_MULTIIMGOEM, PTN_MULTIIMGQTI, "sbl1", "rpm", "tz", "aboot", "abl", "hyp", "lksecapp", "keymaster", "cmnlib", "cmnlib32", "cmnlib64", "pmic", "apdp", "devcfg", "hosd", "keystore", "msadp", "mdtp", "mdtpsecapp", "dsp", "aop", "qupfw", "vbmeta", "vbmeta_system", "dtbo", "imagefv", "ImageFv", "vm-bootsys", "shrm", "cpucp", "uefi", "aop_config", "uefisecapp", "featenabler", "vendor_boot"
#define AB_PTN_LIST PTN_SWAP_LIST, "boot", "product", "system", "system_ext", "vendor", "odm", "modem", "bluetooth"
#define BOOT_DEV_DIR "/dev/block/bootdevice/by-name"
/******************************************************************************
* HELPER MACROS
******************************************************************************/
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
/******************************************************************************
* TYPES
******************************************************************************/
enum boot_update_stage {
UPDATE_MAIN = 1,
UPDATE_BACKUP,
UPDATE_FINALIZE
};
enum gpt_instance {
PRIMARY_GPT = 0,
SECONDARY_GPT
};
enum boot_chain {
NORMAL_BOOT = 0,
BACKUP_BOOT
};
struct gpt_disk {
//GPT primary header
uint8_t *hdr;
//primary header crc
uint32_t hdr_crc;
//GPT backup header
uint8_t *hdr_bak;
//backup header crc
uint32_t hdr_bak_crc;
//Partition entries array
uint8_t *pentry_arr;
//Partition entries array for backup table
uint8_t *pentry_arr_bak;
//Size of the pentry array
uint32_t pentry_arr_size;
//Size of each element in the pentry array
uint32_t pentry_size;
//CRC of the partition entry array
uint32_t pentry_arr_crc;
//CRC of the backup partition entry array
uint32_t pentry_arr_bak_crc;
//Path to block dev representing the disk
char devpath[PATH_MAX];
//Block size of disk
uint32_t block_size;
uint32_t is_initialized;
};
/******************************************************************************
* FUNCTION PROTOTYPES
******************************************************************************/
int prepare_boot_update(enum boot_update_stage stage);
//GPT disk methods
struct gpt_disk* gpt_disk_alloc();
//Free previously allocated gpt_disk struct
void gpt_disk_free(struct gpt_disk *disk);
//Get the details of the disk holding the partition whose name
//is passed in via dev
int gpt_disk_get_disk_info(const char *dev, struct gpt_disk *disk);
//Get pointer to partition entry from a allocated gpt_disk structure
uint8_t* gpt_disk_get_pentry(struct gpt_disk *disk,
const char *partname,
enum gpt_instance instance);
//Update the crc fields of the modified disk structure
int gpt_disk_update_crc(struct gpt_disk *disk);
//Write the contents of struct gpt_disk back to the actual disk
int gpt_disk_commit(struct gpt_disk *disk);
//Return if the current device is UFS based or not
int gpt_utils_is_ufs_device();
//Swtich betwieen using either the primary or the backup
//boot LUN for boot. This is required since UFS boot partitions
//cannot have a backup GPT which is what we use for failsafe
//updates of the other 'critical' partitions. This function will
//not be invoked for emmc targets and on UFS targets is only required
//to be invoked for XBL.
//
//The algorithm to do this is as follows:
//- Find the real block device(eg: /dev/block/sdb) that corresponds
// to the /dev/block/bootdevice/by-name/xbl(bak) symlink
//
//- Once we have the block device 'node' name(sdb in the above example)
// use this node to to locate the scsi generic device that represents
// it by checking the file /sys/block/sdb/device/scsi_generic/sgY
//
//- Once we locate sgY we call the query ioctl on /dev/sgy to switch
//the boot lun to either LUNA or LUNB
int gpt_utils_set_xbl_boot_partition(enum boot_chain chain);
//Given a vector of partition names as a input and a reference to a map,
//populate the map to indicate which physical disk each of the partitions
//sits on. The key in the map is the path to the block device where the
//partiton lies and the value is a vector of strings indicating which of
//the passed in partiton names sits on that device.
int gpt_utils_get_partition_map(std::vector<std::string>& partition_list,
std::map<std::string,std::vector<std::string>>& partition_map);
#ifdef __cplusplus
}
#endif
#endif /* __GPT_UTILS_H__ */

View File

@@ -1,255 +0,0 @@
/*
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#define LOG_TAG "recovery_ufs"
#include "recovery-ufs-bsg.h"
#ifndef _BSG_FRAMEWORK_KERNEL_HEADERS
#ifndef _GENERIC_KERNEL_HEADERS
#include <scsi/ufs/ioctl.h>
#include <scsi/ufs/ufs.h>
#endif
#endif
//Size of the buffer that needs to be passed to the UFS ioctl
#define UFS_ATTR_DATA_SIZE 32
#ifdef _BSG_FRAMEWORK_KERNEL_HEADERS
static int get_ufs_bsg_dev(void)
{
DIR *dir;
struct dirent *ent;
int ret = -ENODEV;
if ((dir = opendir ("/dev")) != NULL) {
/* read all the files and directories within directory */
while ((ent = readdir(dir)) != NULL) {
if (!strcmp(ent->d_name, "ufs-bsg") ||
!strcmp(ent->d_name, "ufs-bsg0")) {
snprintf(ufs_bsg_dev, FNAME_SZ, "/dev/%s", ent->d_name);
ret = 0;
break;
}
}
if (ret)
ALOGE("could not find the ufs-bsg dev\n");
closedir (dir);
} else {
/* could not open directory */
ALOGE("could not open /dev (error no: %d)\n", errno);
ret = -EINVAL;
}
return ret;
}
int ufs_bsg_dev_open(void)
{
int ret;
if (!fd_ufs_bsg) {
fd_ufs_bsg = open(ufs_bsg_dev, O_RDWR);
ret = errno;
if (fd_ufs_bsg < 0) {
ALOGE("Unable to open %s (error no: %d)",
ufs_bsg_dev, errno);
fd_ufs_bsg = 0;
return ret;
}
}
return 0;
}
void ufs_bsg_dev_close(void)
{
if (fd_ufs_bsg) {
close(fd_ufs_bsg);
fd_ufs_bsg = 0;
}
}
static int ufs_bsg_ioctl(int fd, struct ufs_bsg_request *req,
struct ufs_bsg_reply *rsp, __u8 *buf, __u32 buf_len,
enum bsg_ioctl_dir dir)
{
int ret;
struct sg_io_v4 sg_io{};
sg_io.guard = 'Q';
sg_io.protocol = BSG_PROTOCOL_SCSI;
sg_io.subprotocol = BSG_SUB_PROTOCOL_SCSI_TRANSPORT;
sg_io.request_len = sizeof(*req);
sg_io.request = (__u64)req;
sg_io.response = (__u64)rsp;
sg_io.max_response_len = sizeof(*rsp);
if (dir == BSG_IOCTL_DIR_FROM_DEV) {
sg_io.din_xfer_len = buf_len;
sg_io.din_xferp = (__u64)(buf);
} else {
sg_io.dout_xfer_len = buf_len;
sg_io.dout_xferp = (__u64)(buf);
}
ret = ioctl(fd, SG_IO, &sg_io);
if (ret)
ALOGE("%s: Error from sg_io ioctl (return value: %d, error no: %d, reply result from LLD: %d\n)",
__func__, ret, errno, rsp->result);
if (sg_io.info || rsp->result) {
ALOGE("%s: Error from sg_io info (check sg info: device_status: 0x%x, transport_status: 0x%x, driver_status: 0x%x, reply result from LLD: %d\n)",
__func__, sg_io.device_status, sg_io.transport_status,
sg_io.driver_status, rsp->result);
ret = -EAGAIN;
}
return ret;
}
static void compose_ufs_bsg_query_req(struct ufs_bsg_request *req, __u8 func,
__u8 opcode, __u8 idn, __u8 index, __u8 sel,
__u16 length)
{
struct utp_upiu_header *hdr = &req->upiu_req.header;
struct utp_upiu_query *qr = &req->upiu_req.qr;
req->msgcode = UTP_UPIU_QUERY_REQ;
hdr->dword_0 = DWORD(UTP_UPIU_QUERY_REQ, 0, 0, 0);
hdr->dword_1 = DWORD(0, func, 0, 0);
hdr->dword_2 = DWORD(0, 0, length >> 8, (__u8)length);
qr->opcode = opcode;
qr->idn = idn;
qr->index = index;
qr->selector = sel;
qr->length = htobe16(length);
}
static int ufs_query_attr(int fd, __u32 value,
__u8 func, __u8 opcode, __u8 idn,
__u8 index, __u8 sel)
{
struct ufs_bsg_request req{};
struct ufs_bsg_reply rsp{};
enum bsg_ioctl_dir dir = BSG_IOCTL_DIR_FROM_DEV;
int ret = 0;
if (opcode == QUERY_REQ_OP_WRITE_DESC || opcode == QUERY_REQ_OP_WRITE_ATTR)
dir = BSG_IOCTL_DIR_TO_DEV;
req.upiu_req.qr.value = htobe32(value);
compose_ufs_bsg_query_req(&req, func, opcode, idn, index, sel, 0);
ret = ufs_bsg_ioctl(fd, &req, &rsp, 0, 0, dir);
if (ret)
ALOGE("%s: Error from ufs_bsg_ioctl (return value: %d, error no: %d\n)",
__func__, ret, errno);
return ret;
}
int32_t set_boot_lun(char *sg_dev __unused,uint8_t lun_id)
{
int32_t ret;
__u32 boot_lun_id = lun_id;
ret = get_ufs_bsg_dev();
if (ret)
return ret;
ALOGV("Found the ufs bsg dev: %s\n", ufs_bsg_dev);
ret = ufs_bsg_dev_open();
if (ret)
return ret;
ALOGV("Opened ufs bsg dev: %s\n", ufs_bsg_dev);
ret = ufs_query_attr(fd_ufs_bsg, boot_lun_id, QUERY_REQ_FUNC_STD_WRITE,
QUERY_REQ_OP_WRITE_ATTR, QUERY_ATTR_IDN_BOOT_LU_EN, 0, 0);
if (ret) {
ALOGE("Error requesting ufs attr idn %d via query ioctl (return value: %d, error no: %d)",
QUERY_ATTR_IDN_BOOT_LU_EN, ret, errno);
goto out;
}
out:
ufs_bsg_dev_close();
return ret;
}
#endif
#ifndef _BSG_FRAMEWORK_KERNEL_HEADERS
int32_t set_boot_lun(char *sg_dev, uint8_t boot_lun_id)
{
#ifndef _GENERIC_KERNEL_HEADERS
int fd = -1;
int rc;
struct ufs_ioctl_query_data *data = NULL;
size_t ioctl_data_size = sizeof(struct ufs_ioctl_query_data) + UFS_ATTR_DATA_SIZE;
data = (struct ufs_ioctl_query_data*)malloc(ioctl_data_size);
if (!data) {
fprintf(stderr, "%s: Failed to alloc query data struct\n",
__func__);
goto error;
}
memset(data, 0, ioctl_data_size);
data->opcode = UPIU_QUERY_OPCODE_WRITE_ATTR;
data->idn = QUERY_ATTR_IDN_BOOT_LU_EN;
data->buf_size = UFS_ATTR_DATA_SIZE;
data->buffer[0] = boot_lun_id;
fd = open(sg_dev, O_RDWR);
if (fd < 0) {
fprintf(stderr, "%s: Failed to open %s(%s)\n",
__func__,
sg_dev,
strerror(errno));
goto error;
}
rc = ioctl(fd, UFS_IOCTL_QUERY, data);
if (rc) {
fprintf(stderr, "%s: UFS query ioctl failed(%s)\n",
__func__,
strerror(errno));
goto error;
}
close(fd);
free(data);
return 0;
error:
if (fd >= 0)
close(fd);
if (data)
free(data);
return -1;
#else
return 0;
#endif
}
#endif

View File

@@ -1,131 +0,0 @@
#ifndef __RECOVERY_UFS_BSG_H__
#define __RECOVERY_UFS_BSG_H__
/*
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of The Linux Foundation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <linux/bsg.h>
#include <scsi/scsi_bsg_ufs.h>
#include <endian.h>
#include <dirent.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#ifdef ANDROID
#include "cutils/log.h"
#endif
#ifdef OE
#include <syslog.h>
#define LOGI(...) syslog(LOG_NOTICE, "INFO:" __VA_ARGS__)
#define LOGV(...) syslog(LOG_NOTICE,"VERB:" __VA_ARGS__)
#define LOGD(...) syslog(LOG_DEBUG,"DBG:" __VA_ARGS__)
#define LOGE(...) syslog(LOG_ERR,"ERR:" __VA_ARGS__)
#define LOGW(...) syslog(LOG_WARNING,"WRN:" __VA_ARGS__)
#define strlcat(d,s,l) snprintf(d+strlen(d),l,"%s",s)
#endif
#define FNAME_SZ 64
#define SG_IO 0x2285
#define DWORD(b3, b2, b1, b0) htobe32((b3 << 24) | (b2 << 16) |\
(b1 << 8) | b0)
/* UFS BSG device nodes */
char ufs_bsg_dev[FNAME_SZ] = "/dev/ufs-bsg";
int fd_ufs_bsg;
int32_t set_ufs_lun(uint8_t lun_id);
#ifdef _BSG_FRAMEWORK_KERNEL_HEADERS
/* UPIU Transaction Codes */
enum {
UTP_UPIU_NOP_OUT = 0x00,
UTP_UPIU_COMMAND = 0x01,
UTP_UPIU_DATA_OUT = 0x02,
UTP_UPIU_TASK_REQ = 0x04,
UTP_UPIU_QUERY_REQ = 0x16,
};
/* UPIU Query Function field */
enum {
QUERY_REQ_FUNC_STD_READ = 0x01,
QUERY_REQ_FUNC_STD_WRITE = 0x81,
};
enum query_req_opcode {
QUERY_REQ_OP_READ_DESC = 0x1,
QUERY_REQ_OP_WRITE_DESC = 0x2,
QUERY_REQ_OP_READ_ATTR = 0x3,
QUERY_REQ_OP_WRITE_ATTR = 0x4,
QUERY_REQ_OP_READ_FLAG = 0x5,
QUERY_REQ_OP_SET_FLAG = 0x6,
QUERY_REQ_OP_CLEAR_FLAG = 0x7,
QUERY_REQ_OP_TOGGLE_FLAG = 0x8,
};
enum query_desc_idn {
QUERY_DESC_IDN_DEVICE = 0x0,
QUERY_DESC_IDN_UNIT = 0x2,
QUERY_DESC_IDN_GEOMETRY = 0x7,
};
enum query_desc_size {
QUERY_DESC_SIZE_DEVICE = 0x40,
QUERY_DESC_SIZE_GEOMETRY = 0x48,
QUERY_DESC_SIZE_UNIT = 0x23,
};
enum bsg_ioctl_dir {
BSG_IOCTL_DIR_TO_DEV,
BSG_IOCTL_DIR_FROM_DEV,
};
enum query_attr_idn {
QUERY_ATTR_IDN_BOOT_LU_EN = 0x00,
QUERY_ATTR_IDN_RESERVED = 0x01,
QUERY_ATTR_IDN_POWER_MODE = 0x02,
QUERY_ATTR_IDN_ACTIVE_ICC_LVL = 0x03,
};
#endif /* _BSG_FRAMEWORK_KERNEL_HEADERS */
#endif /* __RECOVERY_UFS_BSG_H__ */

View File

@@ -1,10 +0,0 @@
[
{
"repository": "android_hardware_xiaomi",
"target_path": "hardware/xiaomi"
},
{
"repository": "android_kernel_xiaomi_sm6375",
"target_path": "kernel/xiaomi/sm6375"
}
]

View File

@@ -14,15 +14,15 @@ $(call inherit-product, $(LOCAL_PATH)/device.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# EvolutionX flags
BUILD_BCR := true
EVO_BUILD_TYPE := Official
TARGET_USES_MINI_GAPPS := true
# Boot animation
TARGET_SCREEN_HEIGHT := 2400
TARGET_SCREEN_WIDTH := 1080
# Evolution flags
EVO_BUILD_TYPE := Official
WITH_GMS := true
PRODUCT_BRAND := Redmi
PRODUCT_DEVICE := veux
PRODUCT_MANUFACTURER := Xiaomi
@@ -33,6 +33,9 @@ PRODUCT_SYSTEM_NAME := veux_global
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="veux_global-user 13 TKQ1.221114.001 V816.0.9.0.TKCMIXM release-keys" \
BuildDesc="veux_global-user 13 TKQ1.221114.001 V816.0.12.0.TKCMIXM release-keys" \
BuildFingerprint=Redmi/veux_global/veux:13/TKQ1.221114.001/V816.0.12.0.TKCMIXM:user/release-keys \
DeviceProduct=$(PRODUCT_DEVICE)
BuildFingerprint=Redmi/veux_global/veux:13/TKQ1.221114.001/V816.0.9.0.TKCMIXM:user/release-keys
# Camera
include device/xiaomi/camera/miuicamera.mk

View File

@@ -0,0 +1,10 @@
//
// Copyright (C) 2023 Paranoid Android
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "ApertureIconOverlay",
product_specific: true,
}

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.aperture.overlay.icon">
<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="org.lineageos.aperture" />
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@@ -0,0 +1,11 @@
//
// Copyright (C) 2024 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "ApertureOverlay",
sdk_version: "current",
product_specific: true,
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2022 The PixelExperience Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.lineageos.aperture.overlay">
<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="org.lineageos.aperture" />
</manifest>

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<!-- An array of triplets made of (camera ID, qualities, framerates).
These video modes will be added to the available
quality/framerate combinations of a camera device.
Make sure the device is able to handle those configurations
and maintain a stable framerate at any condition.
Note that you can't add video qualities that aren't
exposed by the camera, only new framerates.
Valid values of resolution are:
- "sd" (480p)
- "hd" (720p)
- "fhd" (1080p)
- "uhd" (2160p)
Valid values of framerate are:
- "24"
- "30"
- "60"
- "120"
Example:
<string-array name="config_additionalVideoConfigurations">
<item>0</item> <item>sd|hd|fhd</item> <item>60|120</item>
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
</string-array>
-->
<string-array name="config_additionalVideoConfigurations">
<item>0</item> <item>sd|hd|fhd|uhd</item> <item>30|60</item>
</string-array>
</resources>

View File

@@ -0,0 +1,12 @@
//
// Copyright (C) 2024 The LineageOS Project
//
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "ApertureQRScannerOverlay",
sdk_version: "current",
resource_dirs: ["res"],
system_ext_specific: true,
}

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2022 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.qrscanner.overlay">
<application android:hasCode="false" />
<overlay
android:targetPackage="android"
android:isStatic="true"
android:priority="1"/>
</manifest>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/**
* Copyright (c) 2009, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Default component for QR code scanner -->
<string name="config_defaultQrCodeComponent">org.lineageos.aperture/.QrScannerActivity</string>
</resources>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
//
// Copyright (C) 2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "EuiccOverlay2201116SR",
vendor: true,
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.euicc.s88008ba1">
<overlay
android:requiredSystemPropertyName="ro.boot.board_id"
android:requiredSystemPropertyValue="S88008BA1"
android:targetPackage="com.google.android.euicc" />
</manifest>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="sim_slot_mappings_json">
{\"sim-slot-mappings\": [{
\"devices\": [\"veux\"],
\"esim-slot-ids\": [1],
\"psim-slot-ids\": [0]
}]}
</string>
</resources>

View File

@@ -5,118 +5,6 @@
-->
<resources>
<!-- Array of hysteresis constraint values for brightening, represented as tenths of a
percent. The length of this array is assumed to be one greater than
config_ambientThresholdLevels. The brightening threshold is calculated as
lux * (1.0f + CONSTRAINT_VALUE). When the current lux is higher than this threshold,
the screen brightness is recalculated. See the config_ambientThresholdLevels
description for how the constraint value is chosen. -->
<integer-array name="config_ambientBrighteningThresholds">
<item>5186</item>
<item>4333</item>
<item>3666</item>
<item>2999</item>
<item>2759</item>
<item>2519</item>
<item>2279</item>
<item>2039</item>
<item>1799</item>
<item>799</item>
<item>527</item>
<item>499</item>
<item>470</item>
<item>517</item>
<item>565</item>
<item>612</item>
<item>660</item>
<item>708</item>
<item>742</item>
<item>636</item>
<item>582</item>
<item>549</item>
<item>369</item>
<item>294</item>
<item>269</item>
<item>220</item>
<item>220</item>
</integer-array>
<!-- Array of hysteresis constraint values for darkening, represented as tenths of a
percent. The length of this array is assumed to be one greater than
config_ambientThresholdLevels. The darkening threshold is calculated as
lux * (1.0f - CONSTRAINT_VALUE). When the current lux is lower than this threshold,
the screen brightness is recalculated. See the config_ambientThresholdLevels
description for how the constraint value is chosen. -->
<integer-array name="config_ambientDarkeningThresholds">
<item>525</item>
<item>683</item>
<item>666</item>
<item>650</item>
<item>640</item>
<item>630</item>
<item>620</item>
<item>610</item>
<item>600</item>
<item>500</item>
<item>500</item>
<item>440</item>
<item>385</item>
<item>382</item>
<item>379</item>
<item>376</item>
<item>373</item>
<item>371</item>
<item>367</item>
<item>387</item>
<item>397</item>
<item>403</item>
<item>380</item>
<item>345</item>
<item>333</item>
<item>283</item>
<item>283</item>
</integer-array>
<!-- Array of ambient lux threshold values. This is used for determining hysteresis constraint
values by calculating the index to use for lookup and then setting the constraint value
to the corresponding value of the array. The new brightening hysteresis constraint value
is the n-th element of config_ambientBrighteningThresholds, and the new darkening
hysteresis constraint value is the n-th element of config_ambientDarkeningThresholds.
The (zero-based) index is calculated as follows: (MAX is the largest index of the array)
condition calculated index
value < level[0] 0
level[n] <= value < level[n+1] n+1
level[MAX] <= value MAX+1 -->
<integer-array name="config_ambientThresholdLevels">
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>6</item>
<item>7</item>
<item>8</item>
<item>9</item>
<item>10</item>
<item>20</item>
<item>30</item>
<item>40</item>
<item>50</item>
<item>60</item>
<item>70</item>
<item>80</item>
<item>90</item>
<item>100</item>
<item>200</item>
<item>300</item>
<item>400</item>
<item>500</item>
<item>1000</item>
<item>2000</item>
<item>3000</item>
<item>4000</item>
</integer-array>
<!-- Flag indicating whether we should enable the automatic brightness.
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
<bool name="config_automatic_brightness_available">true</bool>
@@ -429,7 +317,7 @@
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<item name="config_screenBrightnessDozeFloat" format="float" type="dimen">0.00342131</item>
<integer name="config_screenBrightnessDoze">55</integer>
<!-- Minimum screen brightness setting allowed by power manager.
The user is forbidden from setting the brightness below this level. -->
@@ -467,6 +355,13 @@
<!-- Shutdown if the battery temperature exceeds (this value * 0.1) Celsius. -->
<integer name="config_shutdownBatteryTemperature">550</integer>
<!-- Whether device has turbo power charging support -->
<bool name="config_hasTurboPowerCharger">true</bool>
<!-- Path to fast charging status file to detect whether an oem fast charger is active -->
<!-- For Turbo : -->
<string name="config_oemFastChargerStatusPath" translatable="false">/sys/class/qcom-battery/fastcharge_mode</string>
<!-- set to false if we need to show user confirmation
when alpha identifier is not provided by the UICC -->
<bool name="config_stkNoAlphaUsrCnf">false</bool>
@@ -549,5 +444,18 @@
<!-- The maximum range of gamma adjustment possible using the screen
auto-brightness adjustment setting. -->
<fraction name="config_autoBrightnessAdjustmentMaxGamma">150%</fraction>
<!-- Enables or disables fading edges when marquee is enabled in TextView.
Off by default, since the framebuffer readback used to implement the
fading edges is prohibitively expensive on most GPU's. -->
<bool name="config_ui_enableFadingMarquee">true</bool>
<!-- Flag indicating whether the surface flinger is inefficient
at performing a blur. Used by parts of the UI to turn off
the blur effect where it isn't worth the performance hit.
As of Honeycomb, blurring is not supported anymore. -->
<bool name="config_sf_slowBlur">false</bool>
<!-- Whether the new Auto Selection Network UI should be shown -->
<bool name="config_enableNewAutoSelectNetworkUI">true</bool>
</resources>

View File

@@ -39,9 +39,9 @@
<!-- Defines the actions shown in advanced reboot submenu -->
<string-array name="config_restartActionsList">
<item>restart</item>
<item>restart_systemui</item>
<item>restart_recovery</item>
<item>restart_bootloader</item>
<item>restart_fastboot</item>
</string-array>
</resources>

View File

@@ -0,0 +1,9 @@
//
// Copyright (C) 2024 The LineageOS Project
// SPDX-License-Identifier: Apache-2.0
//
runtime_resource_overlay {
name: "SettingsOverlay2201116SR",
vendor: true,
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.settings.overlay.s88008ba1">
<overlay
android:requiredSystemPropertyName="ro.boot.board_id"
android:requiredSystemPropertyValue="S88008BA1"
android:targetPackage="com.android.settings" />
</manifest>

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Default for Settings.Global.DEVICE_NAME $1=MODEL-->
<string name="def_device_name_simple" translatable="false">Redmi Note 11 Pro 5G</string>
</resources>

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -43,4 +43,10 @@
<!-- Show battery cycle count -->
<bool name="config_show_battery_cycle_count" translatable="false">true</bool>
<!-- Whether to show a preference item for regulatory information in About phone -->
<bool name="config_show_regulatory_info">true</bool>
<!-- Android version screen, build maintainer -->
<string name="build_maintainer_summary" translatable="false">PrathamK07 (Rex)</string>
<string name="build_maintainer_donate_url" translatable="false">https://paypal.me/PrathamKalra</string>
</resources>

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023-2024 The LineageOS Project
Copyright (C) 2023-2025 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
@@ -77,4 +77,9 @@
<!-- Doze: does this device support STATE_DOZE_SUSPEND? -->
<bool name="doze_suspend_display_state_supported">false</bool>
<!-- Whether to play turbulence noise after clicking the play button -->
<bool name="config_turbulenceNoise">false</bool>
<!-- The CPU temperature divider, if needed -->
<integer name="config_cpuTempDivider" translatable="false">1000</integer>
</resources>

View File

@@ -55,4 +55,7 @@
range string like '1-6,11'. -->
<string name="config_wifiSoftap2gChannelList" translatable="false" />
<!-- Indicate the driver support NL80211_REG_CHANGED event. -->
<bool translatable="false" name="config_wifiDriverSupportedNl80211RegChangedEvent">false</bool>
</resources>

View File

@@ -7,4 +7,6 @@
<overlay package="com.android.settings.overlay.veux" mutable="false" enabled="true" />
<overlay package="com.android.systemui.overlay.veux" mutable="false" enabled="true" />
<overlay package="com.android.wifi.resources.overlay.veux" mutable="false" enabled="true" />
<overlay package="com.android.settings.overlay.s88008ba1" mutable="false" enabled="true" />
<overlay package="com.android.euicc.s88008ba1" mutable="false" enabled="true" />
</config>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023-24 Paranoid Android
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Dolby Atmos -->
<string-array name="dolby_profile_entries">
<item>@string/dolby_profile_dynamic</item>
<item>@string/dolby_profile_video</item>
<item>@string/dolby_profile_music</item>
<item>@string/dolby_profile_game</item>
<item>@string/dolby_profile_voice</item>
</string-array>
<string-array name="dolby_profile_values">
<item>0</item>
<item>1</item>
<item>2</item>
<item>8</item>
<item>9</item>
</string-array>
</resources>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023-24 Paranoid Android
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Dolby profiles -->
<string name="dolby_profile_dynamic">Dynamic</string>
<string name="dolby_profile_video">Movie/Video</string>
<string name="dolby_profile_music">Music</string>
<string name="dolby_profile_game">Game</string>
<string name="dolby_profile_voice">Voice</string>
</resources>

View File

@@ -0,0 +1,8 @@
[
"/dev/video0",
"/dev/video1",
"/dev/video2",
"/dev/video3",
"/dev/video32",
"/dev/video33"
]

View File

@@ -17,4 +17,15 @@ android_app {
static_libs: [
"org.lineageos.settings.resources",
],
required: [
"privapp_whitelist_org.lineageos.settings.xml",
],
}
prebuilt_etc {
name: "privapp_whitelist_org.lineageos.settings.xml",
src: "permissions/privapp_whitelist_org.lineageos.settings.xml",
sub_dir: "permissions",
system_ext_specific: true,
}

View File

@@ -16,19 +16,26 @@
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.lineageos.settings"
android:versionCode="1"
android:versionName="1.0"
android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-sdk
android:minSdkVersion="24"
android:targetSdkVersion="30"/>
<application
android:label="@string/device_settings_app_name"
android:label="@string/app_title"
android:persistent="true"
android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true"
@@ -40,6 +47,21 @@
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</receiver>
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
tools:replace="android:authorities"/>
<receiver
android:name=".Startup"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
</intent-filter>
</receiver>
<activity
android:name=".dirac.DiracActivity"
android:label="@string/dirac_title"
@@ -47,25 +69,24 @@
<intent-filter>
<action android:name="com.android.settings.action.IA_SETTINGS" />
</intent-filter>
<meta-data
<meta-data
android:name="com.android.settings.category"
android:value="com.android.settings.category.ia.sound" />
<meta-data
android:name="com.android.settings.summary"
android:resource="@string/dirac_summary" />
</activity>
<service
android:name=".dirac.DiracTileService"
android:icon="@drawable/ic_qs_dirac"
android:label="@string/dirac_title"
android:exported="true"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE"/>
</intent-filter>
</service>
</activity>
<service
android:name=".dirac.DiracTileService"
android:icon="@drawable/ic_qs_dirac"
android:label="@string/dirac_title"
android:exported="true"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE"/>
</intent-filter>
</service>
<activity
android:name=".thermal.ThermalActivity"
android:label="@string/thermal_title">
@@ -74,13 +95,10 @@
</intent-filter>
<meta-data
android:name="com.android.settings.category"
android:value="com.android.settings.category.ia.system" />
android:value="com.android.settings.category.ia.battery" />
<meta-data
android:name="com.android.settings.summary"
android:resource="@string/thermal_summary" />
<meta-data
android:name="com.android.settings.icon"
android:resource="@drawable/ic_thermal_settings" />
</activity>
<service
@@ -123,5 +141,48 @@
android:permission="RefreshService">
</service>
<!-- Display Saturation activity -->
<activity
android:name=".saturation.SaturationActivity"
android:label="@string/saturation_title"
android:exported="true">
<intent-filter>
<action android:name="com.android.settings.action.IA_SETTINGS" />
</intent-filter>
<meta-data
android:name="com.android.settings.category"
android:value="com.android.settings.category.ia.display" />
<meta-data
android:name="com.android.settings.summary"
android:resource="@string/saturation_summary" />
</activity>
<!-- Display Saturation tile service -->
<service
android:name=".saturation.SaturationTileService"
android:label="@string/saturation_title"
android:icon="@drawable/ic_saturation_tile"
android:exported="true"
android:permission="android.permission.BIND_QUICK_SETTINGS_TILE">
<intent-filter>
<action android:name="android.service.quicksettings.action.QS_TILE" />
</intent-filter>
</service>
<activity
android:name=".touchsampling.TouchSamplingSettingsActivity"
android:label="@string/htsr_enable_title"
android:theme="@style/Theme.SubSettingsBase"
android:exported="false">
<intent-filter>
<action android:name="com.android.settings.action.IA_SETTINGS" />
</intent-filter>
<meta-data
android:name="com.android.settings.category"
android:value="com.android.settings.category.ia.display" />
<meta-data
android:name="com.android.settings.summary"
android:resource="@string/htsr_enable_summary" />
</activity>
</application>
</manifest>

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023 Paranoid Android
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<permissions>
<privapp-permissions package="org.lineageos.settings">
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
</privapp-permissions>
</permissions>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Some files were not shown because too many files have changed in this diff Show More