278 Commits
bka ... udc

Author SHA1 Message Date
Prathamk07
bba833cf13 dump 2024-12-29 04:29:12 +01:00
Prathamk07
87cd8a8b5b veux: Add missing Camera Blob resulting in Broken Camera API
ref : 43fcf674a4/common.mk (L130)
Signed-off-by: Prathamk07 <prathamkalra.dev@gmail.com>
2024-12-26 12:41:40 +01:00
Prathamk07
93ecc8b248 veux: Welcome to EvolutionX 2024-12-26 05:06:02 +05:30
LuK1337
b83aa23489 veux: audio: Disable ULL mode
* Ultra low latency playback is currently broken. Crackling audio
   can be well noticed while playing WhatsApp audio messages or even
   during some games.

 * This patch routes all audio that normally used audio-ull-playback
   paths to low-latency-playback paths instead, thus meaning we're
   switching from ULL to LL mode.

Change-Id: I7d672f1ff10b984c8096c9c4ca83475e730fd16f
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-12-26 04:58:55 +05:30
kleidione Freitas
97071f51e6 veux: parts: Drop doze settings
Signed-off-by: kleidione <kleidione@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-12-26 04:58:55 +05:30
Alexander Winkowski
269181ab67 veux: Include MiuiCamera
Change-Id: Ic043018f738c92212564ae499e05e34f6b3e6d11
Signed-off-by: MrTopia <redkarmakar@gmail.com>
2024-12-26 04:58:55 +05:30
Prathamk07
285f725a73 veux: Include AGC Camera
Signed-off-by: Prathamk07 <prathamkalra.dev@gmail.com>
2024-12-26 04:58:55 +05:30
ghostrider-reborn
45b007139d 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>
2024-12-26 04:58:55 +05:30
Lunarixus
23be56c831 veux: Remove unwanted GApps
Signed-off-by: MrTopia <redkarmakar@gmail.com>
2024-12-26 04:58:55 +05:30
Taki /
1ab863d10e 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>
2024-12-26 04:58:55 +05:30
Frost
7b26811e23 veux: Update from V816.0.9.0.TKCMIXM
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-12-26 04:58:47 +05:30
Frost
e1b48f0353 veux: Fix soname of renamed libraries
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-12-26 04:40:11 +05:30
Sebastiano Barezzi
675c164916 veux: Rename prebuilt audio HAL and libs
Change-Id: Ia46a5ba431767795135f058f092aa38999e860ae
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-12-26 04:39:25 +05:30
Frost
c1bb328c3e veux: Update proprietary files list
Add missing libs

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-12-26 04:39:03 +05:30
Park Ju Hyung
9597ab96ee 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>
2024-12-26 04:38:42 +05:30
DarkJoker360
2d40559065 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>
2024-12-26 04:37:52 +05:30
Taki
7757c1e281 veux: overlay: Steal CarrierConfig from phone1
* From Nothing OS 2.0.4

Change-Id: I8b761a30c86d72d6bd454332ec3042a22c1a7aac
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Co-Authored-By: Omkar Chandorkar <forumomkar@gmail.com>
2024-12-26 04:37:06 +05:30
Eric Laurent
fce16e5c73 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>
2024-12-26 04:37:06 +05:30
Chenyang Zhong
f0e82e9b44 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>
2024-12-26 04:37:06 +05:30
Daniel Jacob Chittoor
53b77f8fd6 veux: init: Enable suspend to RAM
* Improve idle drain considerably
2024-12-26 04:37:06 +05:30
ZVNexus
21cfe4d8fc 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>
2024-12-26 04:37:06 +05:30
Tommaso Fonda
5645183ac2 veux: gps: Use GrapheneOS's SUPL server 2024-12-26 04:36:52 +05:30
Mudit200408
0883dbf803 veux: parts: Move Thermal Settings to System 2024-12-26 04:33:38 +05:30
Peter Kalauskas
80a7799d06 veux: parts: dirac: Fixup for QPR2 2024-12-26 04:33:19 +05:30
wangchaohui
c9aa905be0 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
2024-12-26 04:32:12 +05:30
Taki
47be66e2a9 veux: parts: Import Dirac from Marble
Co-Authored-By: Shaz <joey@evolution-x.org>
2024-12-26 04:31:52 +05:30
kamikaonashi
b255425762 veux: parts: update clear_speaker_sound.mp3
nobody uses it, so include easter egg :)
2024-12-26 04:31:24 +05:30
Amrito Das /
588ad3037f veux: Migrate Some Audio Configs [2/2]
* From - https://github.com/Amrito-Projects/hardware_qcom-caf_sm8350_audio_configs_holi.git
2024-12-26 04:31:04 +05:30
kamikaonashi
9176cf4396 veux: switch to AOSP WFD 2024-12-26 04:30:43 +05:30
danielml
2350ef46a0 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>
2024-12-26 04:30:01 +05:30
Malathi Gottam
3871a0886b 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>
2024-10-18 18:33:00 +05:30
Bruno Martins
7f3d5daec7 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>
2024-10-18 18:33:00 +05:30
Michael Bestas
0bde6a0203 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>
2024-10-18 18:33:00 +05:30
Michael Bestas
508963b866 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>
2024-10-18 18:33:00 +05:30
Aaron Kling
3aab763cf5 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>
2024-10-18 18:33:00 +05:30
Frost
8c8fd7785e veux: Import media configs
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Frost
2cbea04f8a veux: Update from V816.0.8.0.TKCMIXM
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Manish Kushwaha
490534372f 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>
2024-10-18 18:33:00 +05:30
Frost
b56c46cc83 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>
2024-10-18 18:33:00 +05:30
blazerpaul15
64f01485ed veux: props: Silence ACDB-LOADER log spam
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Rheygine Medel
6559df72e5 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>
2024-10-18 18:33:00 +05:30
Bruno Martins
8f7e6caa15 veux: Declare EGL libs as symlinks during extraction
Change-Id: I4b2f3e79b5e518889d9771bf8990e27babca8b61
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Master
6bc2792c9b 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>
2024-10-18 18:33:00 +05:30
Yumi Yukimura
6f8cf0657e 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>
2024-10-18 18:33:00 +05:30
Frost
a82f7d709d veux: Update from V816.0.6.0.TKCMIXM
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
minaripenguin
656e642ff9 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>
2024-10-18 18:33:00 +05:30
Michael Bestas
486071702c veux: Sync extract scripts with templates
Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Pawin Vongmasa
b3cc170036 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>
2024-10-18 18:33:00 +05:30
basamaryan
37de36b2da 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>
2024-10-18 18:33:00 +05:30
Kanishk
aebaa8ef1c 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>
2024-10-18 18:33:00 +05:30
Michael Bestas
c003d5281c 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>
2024-10-18 18:33:00 +05:30
Yumi Yukimura
42b587c239 veux: Switch to QTI Memtrack AIDL HAL
Change-Id: Ibcbaff02fd56fbccc3a88c01a5f46a89cb212ef5
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
roynatech2544
dc9730364d 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>
2024-10-18 18:33:00 +05:30
LuK1337
3e5643e053 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>
2024-10-18 18:33:00 +05:30
Zhou Song
24e5269b29 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>
2024-10-18 18:33:00 +05:30
SamarV-121
f9747ed8b8 veux: props: Disable continuous transaction tracing on all build types
Change-Id: I95657a00e38f1229675682e784b20cca12c119b0
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
UtsavBalar1231
7ae7168247 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>
2024-10-18 18:33:00 +05:30
Frost
2fa92eabd6 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>
2024-10-18 18:33:00 +05:30
PainKiller3
8ed19bf0bc 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>
2024-10-18 18:33:00 +05:30
LiMee233
f19908d9c9 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>
2024-10-18 18:33:00 +05:30
Kanishk
33a147ffcc 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>
2024-10-18 18:33:00 +05:30
Frost
8e9818ed41 veux: powerhint: Set launch boost to 3000ms (3s)
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Adithya R
8428bc5647 veux: parts: Get rid of proguard flags
This is obsolete.

Change-Id: I1b692d3e1a96c49ac6efd54907ea23c4b4494f7e
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Jyotiraditya Panda
4c455881e5 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>
2024-10-18 18:33:00 +05:30
kssrao13882
e2931f888c 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>
2024-10-18 18:33:00 +05:30
truly-irham
9597a98894 veux: sepolicy: Address denial for per-app thermal profile parts
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Adithya R
b4d028fa26 veux: parts: Move to device encrypted storage
Kill unnecessary explicit app version while we're at it.

Change-Id: I678e3598b28b57e1920da584102d8c526ab452ef
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Chaohui Wang
dbf35ef9c8 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>
2024-10-18 18:33:00 +05:30
Peter Kalauskas
4a91d632b9 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>
2024-10-18 18:33:00 +05:30
Adithya R
ae7593b87a veux: parts: Fix thermal profile screen state handling
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
EmanuelCN
6940ed9b90 veux: parts: Checkout thermal profiles to xiaomi-sm8250 implementation
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Arian
35596f162b 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>
2024-10-18 18:33:00 +05:30
Arian
6c07102cd2 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>
2024-10-18 18:33:00 +05:30
Bruno Martins
aeb4f07d9e 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>
2024-10-18 18:33:00 +05:30
Bruno Martins
c36da4c3b1 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>
2024-10-18 18:33:00 +05:30
Bruno Martins
e8b27e9e92 veux: Move to new RFS install_symlink targets
Change-Id: I9560fd0da00958d9349a0881b5a5f64a2c02e495
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Sebastiano Barezzi
d253b473b8 veux: Use the fragment for QTI vibrator HAL
Change-Id: Id07088526d4698af0872ab427d1b823e098e39d1
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Michael Bestas
acb581c0c0 veux: Build missing libraries for 14 QPR3
Change-Id: I6a84526ca1e9f4e5140c8068646433cab3fe85b2
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Bruno Martins
b3a7b5f5a6 veux: Inherit from common Xiaomi FCM
Change-Id: I8d4d54bba1b3dff27c11b0034852697b818ee609
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
helliscloser
9b45bd6168 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>
2024-10-18 18:33:00 +05:30
Bart Van Assche
534f9f7fcc 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>
2024-10-18 18:33:00 +05:30
TheStrechh
bd33596089 veux: props: Enable WiFi calling over IMS
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Alex Sarraf
5a7395cdb1 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>
2024-10-18 18:33:00 +05:30
Alexander Winkowski
714f25e0f4 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>
2024-10-18 18:33:00 +05:30
Alan Chen
b6580beb9a 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>
2024-10-18 18:33:00 +05:30
markakash
9b62cfd6c8 veux: audio: Fix mic issues in apps like WhatsApp
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Dmitrii
c6525e228f veux: Correct bootanimation res
- ref: https://github.com/VoltageOS/vendor_voltage/blob/14/config/bootanimation.mk#L7

Signed-off-by: Dmitrii <bankersenator@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Bruno Martins
8e5b4072c9 veux: Use common libqti-perfd-client and power-libperfmgr
Change-Id: I22d6b35c72629553817005deaefcae60abc72cfd
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
adi8900
a829eb912e veux: Address QCOM WFD denials
* Fixes buggy QCOM WFD connections.

Change-Id: I9e0b92e7bc9d0ae5e3f50a4f18a0b19988da9a00
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Edwin Moquete
30ca8a5f11 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>
2024-10-18 18:33:00 +05:30
Georg Veichtlbauer
b1ae2d1628 veux: powerhint: Add DT2W
Change-Id: I7d0dfe249798864a39afd4f339b692584faaf3ec
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
UtsavBalar1231
a8514195b7 veux: Define AAPT configuration
Change-Id: Ic12fc243a6b86a0972ef5dc0bb26148be540be57
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Mathieu Chartier
c2c037ceda 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>
2024-10-18 18:33:00 +05:30
Albert I
e2123901be 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>
2024-10-18 18:33:00 +05:30
Sebastiano Barezzi
b0dfac7927 veux: Switch to common Xiaomi light HAL
Change-Id: Ic773e6e411a5cf178bba3a61b20457d62d177db0
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Alex Naidis
8a960eaecd 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>
2024-10-18 18:33:00 +05:30
GeoPD
f1d00a5720 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>
2024-10-18 18:33:00 +05:30
Pranav Vashi
bf6410fdc6 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>
2024-10-18 18:33:00 +05:30
Rajan Palaniya
4dda766714 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>
2024-10-18 18:33:00 +05:30
Alex Naidis
45db78e231 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>
2024-10-18 18:33:00 +05:30
Tim Zimmermann
c39dd37c44 veux: overlay: Disable STATE_DOZE_SUSPEND
* Screen content never gets updated with AOD

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
AtlanPrime
8d9a4ac624 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>
2024-10-18 18:33:00 +05:30
Pranav Vashi
13a97723a4 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>
2024-10-18 18:33:00 +05:30
dataoutputstream
0ca7896ae3 veux: Build audio.primary.default
Fixes:
AudioSystem-JNI: AudioSystem::listAudioPorts error -19

Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
LuK1337
b02f85e0dc 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>
2024-10-18 18:33:00 +05:30
Demon000
3c7147ba26 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>
2024-10-18 18:33:00 +05:30
Ramii Ahmed
322ba9c44a 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>
2024-10-18 18:33:00 +05:30
aryan
603d46e1ab veux: props: Use low gamma implementation for brightness curve
Change-Id: I976fc4fdf9c3baae089cb4aa1a64927deb13f87b
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
TheScarastic
95f317e68a 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>
2024-10-18 18:33:00 +05:30
Doctor Strange
8f71e729f7 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>
2024-10-18 18:33:00 +05:30
Michael Bestas
b98b02aebf veux: Build Lineage Health HAL
Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
sashascurtu
c121beea3c 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>
2024-10-18 18:33:00 +05:30
ghostrider-reborn
4ddd46f8d3 veux: props: Enable QCRIL radio power saving
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
¨raystef66¨
db38f499b8 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>
2024-10-18 18:33:00 +05:30
Cole Faust
c097aa01ba 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>
2024-10-18 18:33:00 +05:30
sabarop
b28b5fd51d 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>
2024-10-18 18:33:00 +05:30
ExactExampl
7da38a9c12 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>
2024-10-18 18:33:00 +05:30
Alessio Balsini
645a1b3dbe 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>
2024-10-18 18:33:00 +05:30
afterallafk
2b272b72c1 veux: props: Enable IMS Volte
Signed-off-by: afterallafk <shivamatiet2001@gmail.com>
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
pengfeix
c84b313428 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>
2024-10-18 18:33:00 +05:30
johnmart19
70fe51dcc3 veux: props: Enable VoNR Calls support
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Adithya R
c64d79af02 veux: Enable VoNR on Jio 5G
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
basamaryan
13700ee78b 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>
2024-10-18 18:33:00 +05:30
Ido Ben-Hur
bad20562fb 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>
2024-10-18 18:33:00 +05:30
Frost
e2bfa25e01 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>
2024-10-18 18:33:00 +05:30
mikeNG
57c7362682 veux: overlay: Enable battery cycle count
Signed-off-by: Frost <159105703+Karan-Frost@users.noreply.github.com>
2024-10-18 18:33:00 +05:30
Tomasz Wasilczyk
19e2a5ab3b 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>
2024-10-18 18:33:00 +05:30
Frost
f051197fc6 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>
2024-10-18 18:33:00 +05:30
chuspita
a2e588557e veux: Add props for better signal
Signed-off-by: Frost <karanraj132804@gmail.com>
2024-10-18 18:33:00 +05:30
spkal01
a4df00734e veux: Add Battery Information in battery settings
Signed-off-by: Frost <karanraj132804@gmail.com>
2024-10-18 18:33:00 +05:30
Frost
ba57af2c58 veux: README: Update with proper information
Update according to device

Signed-off-by: Frost <karanraj132804@gmail.com>
2024-10-18 18:33:00 +05:30
Alexander Winkowski
daa24c2825 veux: overlay: Override WifiCustomization resources
Change-Id: I13e70f752d4688189ef301d515876294a0fc0677
Signed-off-by: Frost <karanraj132804@gmail.com>
2024-10-18 18:33:00 +05:30
Alexander Winkowski
0d1fc8a2e3 veux: Update WFD blobs
Change-Id: I663d4132969fc50c117ac29760b36536269712c2
2024-10-18 18:33:00 +05:30
Alexander Winkowski
4a6cf62fa7 veux: overlay: Allow lower auto brightness
Change-Id: I493ed432717dc19b1014a106debaaea47f8c0459
2024-10-18 18:33:00 +05:30
Alexander Winkowski
6d9339ce7c veux: Set device name as per the stock ROM
Change-Id: I611e5f912096b3853a7d80f4135656d20bbf7f26
2024-10-18 18:33:00 +05:30
Alexander Winkowski
3ccabc2a06 veux: Add support for different NFC variants
Change-Id: I28efbcacbabb8c00405eec2ca87a47fb09fa143a
2024-10-18 18:33:00 +05:30
Alexander Winkowski
d2f5e33dff veux: rootdir: Enable libperfmgr
Change-Id: I4d99ad4b474df8c3631d13735d1d72f7297ec5a8
2024-10-18 18:33:00 +05:30
Alexander Winkowski
518ad01b2d 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
2024-10-18 18:33:00 +05:30
Alexander Winkowski
6bbb9a9231 veux: Pull SELinux policy from Xiaomi SM8350 tree
At commit 67b8a98cf0128e04a1f33614690b5bfa5ac443b9

Change-Id: I8cdf0dd602347a9a4440f2a2ab813eb734f55646
2024-10-18 18:33:00 +05:30
Alexander Winkowski
c46196f34c 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
2024-10-18 18:33:00 +05:30
LuK1337
93515bd6cf veux: Prevent adding same dependency twice in blob_fixup
Change-Id: Idedeb51e027a09f64a29ac67a3a2f2a0594213f6
2024-10-18 18:33:00 +05:30
althafvly
59d6666ea8 veux: Add libpiex_shim for com.mi.node.mialgocontrol.so
Change-Id: I9e8b125ab5dfaa325db63b02a7fcf51577ee7b0d
2024-10-18 18:33:00 +05:30
Arian
5c21eb8921 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
2024-10-18 18:33:00 +05:30
Alexander Winkowski
c7656e6290 veux: Update display blobs from tundra
To match the display HAL

Change-Id: Idb215acad93043cfd8d4cc5ba3696d9ebcd5fbb8
2024-10-18 18:33:00 +05:30
Jabiyeff
f105f6c501 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>
2024-10-18 18:33:00 +05:30
Bruno Martins
485a5d9f14 veux: Fix charger init triggers after moving to health AIDL
Change-Id: I58e7c493d3b300b1efb1685fba637fee6b56bec3
2024-10-18 18:33:00 +05:30
Pig
ccbad365fd veux: Suppress CamX debug
Change-Id: I001be38a19664bcf4994fc88fa1f4448c8cc7891
2024-10-18 18:33:00 +05:30
dianlujitao
9286f09867 veux: Drop dependencies on android.hidl.base@1.0.so
Change-Id: I4c6803a6f1bfdd3fde7d83f59c0642f3398f531b
2024-10-18 18:33:00 +05:30
Alexander Winkowski
8610b8681e veux: Control wfdservice64 with vendor.wfdservice prop
Change-Id: I984c413ce2455065b717c04df02cd2d121640798
2024-10-18 18:33:00 +05:30
Alexander Winkowski
dd7c9609ec veux: Add SKU props from stock
Change-Id: Ib7b6a0d8b992f264762c21f477c42f2114e51c7f
2024-10-18 18:33:00 +05:30
Chirayu Desai
792e952f0f veux: Set BOOT_SECURITY_PATCH
* This is put in vbmeta, and stock OS sets it

Change-Id: I69485c8207eca5ee9e7f1f4e02d684707c6dece3
2024-10-18 18:33:00 +05:30
Alexander Winkowski
52a932044b veux: Initial proprietary files list
Change-Id: Ie0b6450e1494fdb4342497c5c5f5e55ed7d916d3
2024-10-18 18:33:00 +05:30
Edwin Moquete
084799fbe4 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
2024-10-18 18:33:00 +05:30
danielml
42e589355a veux: Override doze mode support
Change-Id: Ibdc4080dc66b5667993307f4c8ff6f83dc751e85
2024-10-18 18:33:00 +05:30
Midas Chien
ab853c821d 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
2024-10-18 18:33:00 +05:30
LuK1337
53f9de110f veux: Pull appropriate USB props from vendor_product.mk
Change-Id: I93b25c5d0989c83d1c8d7b7946a083771febdddd
2024-10-18 18:33:00 +05:30
Arian
933fd2e814 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
2024-10-18 18:32:59 +05:30
Alexander Winkowski
36837bf025 veux: Inline init.qti.media.sh into build.prop
Change-Id: I23d206aef57ab0b729fe5180f94c035f93d7ef3d
2024-10-18 18:32:59 +05:30
Alexander Winkowski
f122a18dae veux: Set vendor SKU in build.prop
Stock QCV scripts don't set it for holi platform.

Change-Id: I4b160246c24c889e80a5fa94e26d21fcbb7d91dd
2024-10-18 18:32:59 +05:30
Alexander Winkowski
d6eb8d64ea veux: Import build properties from V14.0.6.0.TKCMIXM
Change-Id: I3e9ac05a2ef9d934ff2fcd26ac09c9100a9b9cb9
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
cccfa74a18 veux: Build vendor interfaces libraries
Change-Id: I0c8760ff6923c2d2a43ec058554d724ca6600f3c
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
d217dc7549 veux: Build WFD libs
Change-Id: I859cd3ff8e1729323f2c72df4feca55559262878
2024-10-18 18:32:59 +05:30
Jimmy Chen
80d0cbe71a veux: Move supplicant service init to wpa_supplicant
Bug: 138790309
Test: boot and wifi function is ok
Change-Id: I35cf3e03566443e20799623045eacd423fd7f5c4
2024-10-18 18:32:59 +05:30
Alexander Winkowski
a89342742b veux: Import WiFi configs from V14.0.6.0.TKCMIXM
Change-Id: Idb380aa74bdf146739adefb076acb49c2e89bfbd
2024-10-18 18:32:59 +05:30
Mohammad Asaad Akram
4187437ce7 veux: Enable asynchronous library events in WPA supplicant
Change-Id: I3b028afa54605bd57d9fb5700d792cb9e5e0e76f
2024-10-18 18:32:59 +05:30
Demon000
7edf5eccff veux: Build WiFi packages
Change-Id: Id0e785d1d22bda58922658de6ab0b5b0cf1e9927
2024-10-18 18:32:59 +05:30
Fenglin Wu
7453ea17cf 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
2024-10-18 18:32:59 +05:30
Bharat Pawar
d7379ef77a veux: Enable LED based vibrator
Enable LED based vibrator for talos, moorea and
atoll targets.

Change-Id: I079eefaefff77fe19304acc8749773febf91a7fc
2024-10-18 18:32:59 +05:30
LuK1337
4b24e43c42 veux: Build vndservicemanager
* Needed for FCM >= R.

Change-Id: I6d5eb8084127e295e4abec2c0192c0ad5b07b867
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
d57335f185 veux: Use QTI USB init configs from USB HAL repo
Change-Id: I966d251a2756c9d9e91f621cbc5872448d022de4
2024-10-18 18:32:59 +05:30
Cosmin Tanislav
e99242b226 veux: Build QTI USB service
Change-Id: I2c6ed5c909c31837321fc587050ff810422d95b0
2024-10-18 18:32:59 +05:30
Alex Deymo
2229f08815 veux: Build A/B update engine
Change-Id: I9dbf84e1531ed3e32b21c8fec13266cfe4d23cd3
2024-10-18 18:32:59 +05:30
LuK1337
a5ce4298a1 veux: Build android.hardware.thermal@2.0-service.qti
As seen on stock ROM.

Change-Id: I950ab50ded7b3c1164ff88ab18d7f1e3365a6086
2024-10-18 18:32:59 +05:30
Demon000
a72fc32c2e veux: Build telephony packages
Change-Id: I5fafc22fc696b04abc2f79100306f1625ac03fbc
2024-10-18 18:32:59 +05:30
Alexander Winkowski
dc8a347687 veux: Set shipping API level
Change-Id: Ic710848ea8329eb0b0eabbfb3771ecf9cba3c7e7
2024-10-18 18:32:59 +05:30
Alexander Winkowski
2ed7b1e08e veux: Build Xiaomi common sensors Multi-HAL
Change-Id: I96425bc0907b37ebebfca8600eb07c71f3afaab8
2024-10-18 18:32:59 +05:30
Nolen Johnson
5d99aa3761 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
2024-10-18 18:32:59 +05:30
Christian Oder
4d3d7d1a5a 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
2024-10-18 18:32:59 +05:30
Michael Bestas
f2db59df5f 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
2024-10-18 18:32:59 +05:30
Michael Bestas
c2c19d4103 veux: ueventd: Remove all permissions from /sys/devices/soc0/serial_number
Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897
2024-10-18 18:32:59 +05:30
Michael Bestas
cf9c0179dd veux: ueventd: Remove stray line
Change-Id: Iddee28c06db20b20a8977c3d9d4982f86a279e92
2024-10-18 18:32:59 +05:30
PRANAY BHARGAV BHAVARAJU
11d4c0bbc4 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
2024-10-18 18:32:59 +05:30
Mohammed Mirza Mandayappurath Manzoor
4329310a6d 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
2024-10-18 18:32:59 +05:30
Albert I
8d2429bcf5 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>
2024-10-18 18:32:59 +05:30
Alexander Winkowski
8c72cdc256 veux: fstab: Remove MIUI partitions
Change-Id: Iec571091763012f599c74f11d27e368e80371b38
2024-10-18 18:32:59 +05:30
LuK1337
3254b0b998 veux: rootdir: Set SSR restart level to 'RELATED'
Change-Id: I32fc08c9ad36b9c8ebfc019fc87a19eece18f0b4
2024-10-18 18:32:59 +05:30
Randall Huang
f3605e89a4 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
2024-10-18 18:32:59 +05:30
Miguel de Dios
9572494bf1 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
2024-10-18 18:32:59 +05:30
Prabhanjan Kandula
1e1f924fa1 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
2024-10-18 18:32:59 +05:30
Alexander Winkowski
e01e78c408 veux: rootdir: Clean up
Change-Id: Id7277abb5725140fce1683e6d878e90dd7f17011
2024-10-18 18:32:59 +05:30
Kamal Wadhwa
a407903eed 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
2024-10-18 18:32:59 +05:30
Rama Aparna Mallavarapu
f5e4371a7f 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
2024-10-18 18:32:59 +05:30
Alexander Winkowski
0e09a44a2c 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
2024-10-18 18:32:59 +05:30
Alexander Winkowski
5c2a49f05e veux: Import rootdir from V14.0.6.0.TKCMIXM
Change-Id: I1b51318f885e734f322864f7c61a599e9a7113c6
2024-10-18 18:32:59 +05:30
Arian
5c612a45d8 veux: Build librmnetctl
Change-Id: Ica941c1d2521e738d4990261bab41fee5daffa9d
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
28b7fbbc7f veux: Build QTI Framework detect libs
Change-Id: Ic4db96f8bd5a19f4805bd9c40544ed51d0352c61
2024-10-18 18:32:59 +05:30
LuK1337
199238d971 veux: Build libprotobuf-cpp-lite-3.9.1-vendorcompat
Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2
2024-10-18 18:32:59 +05:30
Krzysztof Kosiński
022111fd5d 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
2024-10-18 18:32:59 +05:30
Alexander Winkowski
6213d6ebf5 veux: Refine powerhint according to freqbench results
Change-Id: Id4727badf9d85609c9a3697aadf1677906abb7b5
2024-10-18 18:32:59 +05:30
Alexander Winkowski
6558937dd6 veux: configs: Add initial powerhint for blair
Based on redbull, adapted nodes, removed unused/unneeded hints.

Change-Id: Iee610168800d9cbecccc4ca121418a9bce717cce
2024-10-18 18:32:59 +05:30
Alexander Winkowski
e6a42c70e8 veux: Build Xiaomi common power AIDL HAL
Change-Id: I0e10f0b36598b8cbf25ee2dc08b8a4eced95c2ed
2024-10-18 18:32:59 +05:30
Alexander Winkowski
1bc813e46f veux: Copy permissions from V14.0.6.0.TKCMIXM
Add android.software.opengles.deqp.level.xml, which seems to be missing.

Change-Id: Idd2f358b4aefd74bed26a9450870be85e67a44cf
2024-10-18 18:32:59 +05:30
Alexander Winkowski
0bb2f4916c veux: Override task_profiles.json
Change-Id: I7291a318d523c030bbb3f5aa71364d512eb7490c
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
9ded0719c8 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
2024-10-18 18:32:59 +05:30
Chenyang Zhong
893bddd28b 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
2024-10-18 18:32:59 +05:30
Bruno Martins
fe45a92829 veux: libqti-perfd-client: Remove namespace declaration
It's pointless when using extern "C".

Change-Id: Ibdf9f06a70aa3a75687b33781c78cf2172bb334d
2024-10-18 18:32:59 +05:30
Lucchetto
d53fab4127 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
2024-10-18 18:32:59 +05:30
Demon000
63c67e45ba veux: Use dynamic partitons
Change-Id: Iac89f608a7f8efa78da5200c68cb45ab2f439fd0
2024-10-18 18:32:59 +05:30
Danny Baumann
060914ed16 veux: overlay: Enable call recording
Change-Id: I1b4478b330b13cf5d0fe1ed0d40f43e4b3825f33
2024-10-18 18:32:59 +05:30
Alexander Winkowski
66c6186ff5 veux: overlay: Initial LineageSDK overlay
Change-Id: Ifecb5f30cbc1e95c130781eb306bab96d1f1765b
2024-10-18 18:32:59 +05:30
Jake Weinstein
6908a6d66c veux: overlay: Allow VoLTE and VoWiFi/WFC by default
Change-Id: I0df3d87074378224a6b29b26166dcf2fc59f34c2
2024-10-18 18:32:59 +05:30
Dyneteve
d697ec7503 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
2024-10-18 18:32:59 +05:30
Alexander Koskovich
2d2c0833fe veux: overlay: Use CarrierConfig DTMF & CSP booleans
* Overlays were deprecated awhile ago for these.

Change-Id: I51b70aa15f128186063ce52446cb67715a957185
2024-10-18 18:32:59 +05:30
Alexander Winkowski
1650756195 veux: overlay: Initial product overlays
Based on V14.0.6.0.TKCMIXM

Change-Id: I415b5877bf41fc3b78ae83a53450076a7c2b9386
2024-10-18 18:32:59 +05:30
Alexander Winkowski
41bb557145 veux: overlay: Initial vendor overlays
Based on V14.0.6.0.TKCMIXM, brightness overlays from lynx.

Change-Id: I4a06896f7cc3a599794cd3affd304e2c25f077e1
2024-10-18 18:32:59 +05:30
Anton Hansson
ae15b2c0a4 veux: Enforce RRO for all resource overlays
Bug: 118823052
Test: make
Change-Id: I579d09480c7a482543ea616dd5c493d825bb98b1
2024-10-18 18:32:59 +05:30
Alexander Winkowski
57b7497699 veux: Build extra NFC packages
Change-Id: Ide2ddbe1bd5e9626fa5c883475d1fafe6dcebbb1
2024-10-18 18:32:59 +05:30
LuK1337
2810dcf117 veux: Build AIDL NXP NFC HAL
Change-Id: I6ace3ac149c84d2cb9e2773e7ef5ddbf24c35b92
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
bdd55d3896 veux: Build mtdservice interface lib from source
Change-Id: Ie739f283c4be1b77d57aaee1941ed46957da1d1a
2024-10-18 18:32:59 +05:30
Bruno Martins
06c5fecaf8 veux: Build mlipay interface from source
Change-Id: I41361a4f1405950f73f94609171851972803d099
2024-10-18 18:32:59 +05:30
Alexander Koskovich
2a943266b3 veux: Copy out media permissions and build media packages
Change-Id: I26674be6f3d4d10685cd004b6dccf98a14d50f28
2024-10-18 18:32:59 +05:30
Volodymyr Zhdanov
5d67ff3cd4 veux: Build IR HAL from source
Change-Id: I619157582ece00d6fb7adef00182347211716706
2024-10-18 18:32:59 +05:30
Volodymyr Zhdanov
ae32235d4b veux: Build IPACM from source
Change-Id: Id40cea7059316370fc18dfbdb9e00b5b84f28b10
2024-10-18 18:32:59 +05:30
Giovanni Ricca
f9eeaacf67 veux: Build common iFAA service
Change-Id: Ib777523cbb3cbc29086c8f6ef3cc0c31d49b9405
2024-10-18 18:32:59 +05:30
Christian Oder
6ce96a5e61 veux: Add basic permission file for HotwordEnrollment
Change-Id: I2986ba3599fe65a8da27649d98d70cd548257aa8
2024-10-18 18:32:59 +05:30
Alexander Koskovich
407d743bd5 veux: Build vendor HIDL transport and HWBinder libraries
* Both these libraries are still widely used by QTI
   binaries & libraries.

Change-Id: Ib7a4576577426ffaf557ba8b9b4ca52573285fef
2024-10-18 18:32:59 +05:30
Alexander Koskovich
d0e78513ee veux: Build the QTI health HAL
Change-Id: I86abeb45119d1cdf05dfb1fd28090628cee64925
2024-10-18 18:32:59 +05:30
Alexander Winkowski
1605d50a5d veux: Build GNSS HAL from source
Change-Id: I92f2767976ff9cd70effd884d7c0fe22dde56a9e
2024-10-18 18:32:59 +05:30
Alexander Winkowski
6c767ce374 veux: gps: Enable lowi-server
To match Pixel setup.

Change-Id: I60097ef00debd3bcddb03d4e95c220d166d2a5de
2024-10-18 18:32:59 +05:30
Michael Bestas
fc179be7dc veux: gps: Disable unused location services
Disable xtwifi & slim_daemon, matching Pixel setup.

Change-Id: I27156e772ef138c9b2e112469c264236ea5c398c
2024-10-18 18:32:59 +05:30
Alexander Winkowski
6d4e4bcf24 veux: gps: Import izat.conf
From V14.0.3.0.TKCMIXM

Change-Id: I0d8a94672a011458d713e190a8e121f7ceb320ec
2024-10-18 18:32:59 +05:30
Michael Bestas
6d5dfe2612 veux: gps: Remove all Wno-error flags
Almost all warnings/errors have been fixed.
Ignore undefined bool conversion error on purpose.

Change-Id: I00cb5f38711fa9f873da030fc6a0ebc6cde3ceeb
2024-10-18 18:32:59 +05:30
Yi Kong
43c91cd373 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
2024-10-18 18:32:59 +05:30
Madhanraj Chelladurai
9dcddf4d06 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
2024-10-18 18:32:59 +05:30
Albert I
cb8f989f32 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
2024-10-18 18:32:59 +05:30
Albert I
087eb376cc veux: gps: Address logical-op-parentheses warning
Change-Id: I45d621a2b995afeb7757df3f89614a0d95552f33
2024-10-18 18:32:59 +05:30
Albert I
eba96e191d 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
2024-10-18 18:32:59 +05:30
Pirama Arumuga Nainar
d4828721cf 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
2024-10-18 18:32:59 +05:30
Michael Bestas
e7cd05c266 veux: gps: Lower debug level
* Kill logcat spam

Change-Id: I20d1f698d3c2d1b56e79f6eb6c5c17069e43c60f
2024-10-18 18:32:59 +05:30
Michael Bestas
6f1d76d781 veux: gps: Resolve unused parameter warnings
Change-Id: I0acef3da2c3567a28edd0a71dac89a5828f7725d
2024-10-18 18:32:59 +05:30
Alexander Winkowski
0ae6746228 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
2024-10-18 18:32:59 +05:30
Alexander Winkowski
96a83cbe71 veux: Build FM2 app
Change-Id: I6ff5a9352c5a2723e8850d1006707cad2458cfe0
2024-10-18 18:32:59 +05:30
Giovanni Ricca
ee62b64217 veux: Build Goodix interface from source
Change-Id: Ibaf1b9489b509318032c720c9c83e315cfe6ab3e
2024-10-18 18:32:59 +05:30
Giovanni Ricca
dabf45b58c veux: Build FPC interface from source
Change-Id: I80dd66139d1e53873beb14f7937cbfb721e582ca
2024-10-18 18:32:59 +05:30
Alexander Winkowski
c95e5f57c5 veux: Build Xiaomi common fingerprint service
Change-Id: Ie78d7d44630256162e41f1b22d22252e3377798b
2024-10-18 18:32:59 +05:30
Demon000
c3a4466d97 veux: Build fastbootd
Change-Id: I1056d3ed331c1590dce00f980bc78c6a5e23a799
2024-10-18 18:32:59 +05:30
Robert Shih
8ed4ca9d5d veux: enable AIDL DRM HALs
Bug: 219538389
Test: atest GtsMediaTestCases
Change-Id: I431554dcbef014f8235f048ee062a218a2131f9c
2024-10-18 18:32:59 +05:30
Alexander Winkowski
8d6d6ddcee veux: configs: Pull brightness configs from lynx
Change-Id: Ic58fb5a638c290e68633d9716be9bf907841f0af
2024-10-18 18:32:59 +05:30
Alexander Winkowski
77ad293d2f veux: Import display config from V14.0.6.0.TKCMIXM
Change-Id: I7017b425c091a7ae67adb0e6e9509f49dd314442
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
1fcf03fad5 veux: Build display stack
Change-Id: I8aa97b9847fd49fb1bebd35f8193aefa7e8997e1
2024-10-18 18:32:59 +05:30
P.Adarsh Reddy
050ca79fa0 veux: Enforce android-S new launch debugfs restrictions
Change-Id: I78878e1c4177c07d66b13e5659d4360252c5f87b
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
194b9ab923 veux: Build camera libs
Change-Id: I9b5d730c54018614c8e28a946a1d234663339b0c
2024-10-18 18:32:59 +05:30
LuK1337
921a54460d veux: Build QTI bootctrl HAL
Change-Id: I1e907c64ee4f88507bac78afe56e8fba0310f6d1
2024-10-18 18:32:59 +05:30
Cosmin Tanislav
3bb275d8e7 veux: gpt-utils: add system_ext and product to AB_PTN_LIST
Change-Id: I8d570695ed9d00c0b28f0e299ae11a61899d4dc9
2024-10-18 18:32:59 +05:30
Cosmin Tanislav
1dfe38c7cb veux: gpt-utils: add vbmeta_system to PTN_SWAP_LIST
Change-Id: Icbc04d6f326a7852a407835169cfc9e3066fb7ac
2024-10-18 18:32:59 +05:30
Luofan Chen
52a0bff2ef veux: gpt-utils: Check ufs device first before checking partition names
Change-Id: I51663ff8e074681191ac708fcd7b4d28e890deaf
2024-10-18 18:32:59 +05:30
Siddeswar Aluganti
72dada0c4c 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
2024-10-18 18:32:59 +05:30
Siddeswar Aluganti
2b2e4f1455 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
2024-10-18 18:32:59 +05:30
LuK1337
49106a1f42 veux: gpt-utils: Fix build errors
Change-Id: Ie8245d1637e12b5979a8af1b864cc713135b5c95
2024-10-18 18:32:59 +05:30
LuK1337
08d39ee1c9 veux: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
   stdio.h will cause errors due to redefined macros.

Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
2024-10-18 18:32:59 +05:30
LuK1337
e0ca079412 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
2024-10-18 18:32:59 +05:30
Tao Bao
aadffacfcf 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
2024-10-18 18:32:59 +05:30
Alexander Koskovich
629583b946 veux: Import gpt-utils from LA.UM.9.14.r1-19800.01-LAHAINA.QSSI12.0
Change-Id: I92baccc0524f88dcb439095288ac75fbc1401ae7
2024-10-18 18:32:59 +05:30
Sebastiano Barezzi
bd4ee70c2e veux: Build bluetooth libs
Change-Id: I999905b2b7a0f7fe8f808e88c7ab428f1d50b263
2024-10-18 18:32:59 +05:30
iovxw
cd23f682dc veux: Remove FM Tuner from audio input devices
* This fixes google voice recorder

Change-Id: Id90fc9ac1ad24b5d439592aecfdf4f8912893935
2024-10-18 18:32:58 +05:30
llololo
733dcdc4d0 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
2024-10-18 18:32:58 +05:30
dianlujitao
7ef0445510 veux: audio: Enable AOSP bluetooth audio HAL v2
Change-Id: I4d12752ae5fb2829d6612647c8740c84967f5434
2024-10-18 18:32:58 +05:30
LuK1337
a03b2d959e veux: audio: Don't advertise vorbis offloading support
* Doesn't work at all.

Change-Id: I8cd6341b240c3820dbbdef497e23e785b6ed99dc
2024-10-18 18:32:58 +05:30
Alexander Winkowski
291564c5d2 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
2024-10-18 18:32:58 +05:30
Bruno Martins
fdac214ce8 veux: Build opensource soundtrigger HAL
Change-Id: I956d53a67841a9e1e296de6b73f08ef2efac7470
2024-10-18 18:32:58 +05:30
Sebastiano Barezzi
45718b5282 veux: Build audio stack
Change-Id: Id1e28604c0c83093e309656a2059c517084984f5
2024-10-18 18:32:58 +05:30
Demon000
df39af87df veux: Include QCOM SEPolicy
Change-Id: Iaf54a187cda5e6921b791031fa2132a91a62d184
2024-10-18 18:32:58 +05:30
Demon000
364effd2ac 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
2024-10-18 18:32:58 +05:30
Alexander Winkowski
f5dbac551c veux: Add recovery flags
Change-Id: I3def36bfc0644fae2c94531aecc5831bf389a8f9
2024-10-18 18:32:58 +05:30
Alexander Winkowski
ebff9b029f veux: Add platform flags
Change-Id: I4b583a43f133293dfee20d093aa0c0e5b17b2769
2024-10-18 18:32:58 +05:30
Alexander Winkowski
5b6cc27718 veux: Add partition flags
Change-Id: Iab108c3b116a0ab76d0ad33a3d32ea9a3a1931ba
2024-10-18 18:32:58 +05:30
Leo Liou
f989d3e54b 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
2024-10-18 18:32:58 +05:30
Alexander Winkowski
b5389a984f veux: Add kernel flags
Based on boot.img and vendor_boot.img from V14.0.6.0.TKCMIXM

Change-Id: I75c18ca39d3377eac10029b9bc20e6bc632c5020
2024-10-18 18:32:58 +05:30
180 changed files with 5654 additions and 6563 deletions

View File

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

34
Android.mk Normal file
View File

@@ -0,0 +1,34 @@
#
# 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,3 +7,7 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_veux.mk
COMMON_LUNCH_CHOICES := \
lineage_veux-user \
lineage_veux-userdebug \
lineage_veux-eng

View File

@@ -10,6 +10,7 @@ BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
# A/B
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS := \
boot \
dtbo \
@@ -26,20 +27,13 @@ AB_OTA_PARTITIONS := \
TARGET_ARCH := arm64
TARGET_ARCH_VARIANT := armv8-2a-dotprod
TARGET_CPU_ABI := arm64-v8a
TARGET_CPU_VARIANT := cortex-a76
TARGET_CPU_VARIANT_RUNTIME := cortex-a76
TARGET_CPU_VARIANT := cortex-a55
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
# ART
WITH_DEXPREOPT := true
DEX_PREOPT_DEFAULT := generate-vdex-and-image
WITH_DEXPREOPT_DEBUG_INFO := false
# Audio
AUDIO_FEATURE_ENABLED_DLKM := true
@@ -52,41 +46,41 @@ 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)/configs/config.fs
TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/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)/configs/vintf/device_framework_matrix.xml
$(DEVICE_PATH)/device_framework_matrix.xml
DEVICE_MANIFEST_FILE := \
$(DEVICE_PATH)/configs/vintf/manifest.xml
$(DEVICE_PATH)/manifest.xml
DEVICE_MATRIX_FILE := \
$(DEVICE_PATH)/configs/vintf/compatibility_matrix.xml
$(DEVICE_PATH)/compatibility_matrix.xml
ODM_MANIFEST_SKUS += \
sn100
ODM_MANIFEST_SN100_FILES := \
$(DEVICE_PATH)/configs/vintf/manifest_ese.xml
# HWUI
HWUI_COMPILE_FOR_PERF := true
$(DEVICE_PATH)/manifest_ese.xml
# Kernel
BOARD_KERNEL_BASE := 0x00000000
@@ -112,7 +106,6 @@ BOARD_KERNEL_CMDLINE := \
service_locator.enable=1 \
androidboot.usbcontroller=4e00000.dwc3 \
swiotlb=0 \
kpti=off \
loop.max_part=7 \
cgroup.memory=nokmem,nosocket \
iptable_raw.raw_before_defrag=1 \
@@ -120,16 +113,14 @@ BOARD_KERNEL_CMDLINE := \
firmware_class.path=/vendor/firmware
TARGET_KERNEL_CONFIG := veux_defconfig
TARGET_KERNEL_SOURCE := kernel/xiaomi/veux
TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6375
TARGET_KERNEL_NO_GCC := true
# Global LTO
TARGET_GLOBAL_LTO := thin
TARGET_GLOBAL_OPTIMIZATION := O3
TARGET_GLOBAL_THINLTO := true
# Lineage Health
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false
# OTA assert
TARGET_OTA_ASSERT_DEVICE := peux|veux
TARGET_OTA_ASSERT_DEVICE := peux,veux
# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728
@@ -196,7 +187,7 @@ VENDOR_SECURITY_PATCH := $(BOOT_SECURITY_PATCH)
# SELinux
include device/qcom/sepolicy_vndr/SEPolicy.mk
include device/lineage/sepolicy/libperfmgr/sepolicy.mk
include vendor/xiaomi/miuicamera-veux/SEPolicy-veux.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

View File

@@ -1,46 +0,0 @@
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"],
}

49
RemovePackages/Android.mk Normal file
View File

@@ -0,0 +1,49 @@
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)

367
audio/audio_effects.conf Normal file
View File

@@ -0,0 +1,367 @@
# 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,16 +45,6 @@
<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">
@@ -104,27 +94,23 @@
<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"/>
<!--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-->
<effect name="spatializer" library="spatializer" uuid="cc4677de-ff72-11eb-9a03-0242ac130003"/>
</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_AC3|AUDIO_FORMAT_E_AC3|AUDIO_FORMAT_E_AC3_JOC|AUDIO_FORMAT_DTS|AUDIO_FORMAT_DTS_HD|AUDIO_FORMAT_DSD
formats 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,12 +61,7 @@ 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 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>
<mixPort name="deep_buffer" role="source"
flags="AUDIO_OUTPUT_FLAG_DEEP_BUFFER">
@@ -300,55 +295,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,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>
</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>
</module>

File diff suppressed because it is too large Load Diff

11
bootctrl/Android.bp Normal file
View File

@@ -0,0 +1,11 @@
//
// 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

@@ -3,6 +3,14 @@
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

@@ -1,20 +0,0 @@
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

@@ -1,19 +0,0 @@
<?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,12 +48,6 @@
<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

@@ -1,36 +0,0 @@
###########################################################################
# 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

@@ -1,21 +0,0 @@
<?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,6 +4,3 @@ 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,32 +16,3 @@ 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,37 +11,3 @@ 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
# RIL Powersaving
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=1000
# 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,17 +24,3 @@ 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=12
vendor.audio.adm.buffering.ms=2
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=false
vendor.audio.feature.hdmi_passthrough.enable=true
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=false
vendor.audio.feature.ssrec.enable=true
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=256
vendor.audio.offload.buffer.size.kb=32
vendor.audio.offload.gapless.enabled=true
vendor.audio.offload.multiaac.enable=true
vendor.audio.offload.multiple.enabled=false
@@ -86,6 +86,9 @@ 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
@@ -119,28 +122,19 @@ 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
@@ -167,7 +161,6 @@ 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
@@ -181,8 +174,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=0
debug.sf.enable_adpf_cpu_hint=true
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
@@ -203,22 +195,11 @@ vendor.gralloc.secure_preview_buffer_format=420_sp
vendor.gralloc.secure_preview_only=1
# HWUI
ro.hwui.render_ahead=5
debug.hwui.use_hint_manager=true
debug.hwui.target_cpu_time_percent=30
ro.hwui.render_ahead=2
# 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
@@ -226,7 +207,6 @@ 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
@@ -247,11 +227,6 @@ 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
# ScrollOptimizer
persist.sys.perf.scroll_opt=true
persist.sys.perf.scroll_opt.heavy_app=1
# Sensors
persist.vendor.sensors.enable.bypass_worker=true
@@ -267,8 +242,6 @@ 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
@@ -278,8 +251,7 @@ 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=1
vendor.usb.uvc.payload_transfer_size=1024
vendor.usb.use_gadget_hal=0
# WiFi
wifi.aware.interface=wifi-aware0

View File

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

View File

@@ -1,33 +0,0 @@
<?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>

View File

@@ -1,578 +0,0 @@
{
"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

@@ -1,219 +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>
<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="hidl" optional="true">
<name>android.hardware.graphics.allocator</name>
<interface>
<name>IAllocator</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>

133
device.mk
View File

@@ -36,13 +36,6 @@ 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
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
# Audio
PRODUCT_PACKAGES += \
android.hardware.audio@6.0-impl \
@@ -81,19 +74,12 @@ 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 += \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/$(AUDIO_SKU_DIR)/bluetooth_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/$(AUDIO_SKU_DIR)/r_submix_audio_policy_configuration.xml
$(call soong_config_set,android_hardware_audio,skip_speaker_layout_channel_mask_field,true)
# Audio service timeout
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
audio.service.client_wait_ms=10000
# Bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.1.vendor \
@@ -104,8 +90,9 @@ PRODUCT_PACKAGES += \
# Boot control
PRODUCT_PACKAGES += \
android.hardware.boot-service.qti \
android.hardware.boot-service.qti.recovery
android.hardware.boot@1.2-impl-qti \
android.hardware.boot@1.2-impl-qti.recovery \
android.hardware.boot@1.2-service
# Camera
PRODUCT_PACKAGES += \
@@ -113,15 +100,9 @@ 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
@@ -129,23 +110,13 @@ 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
@@ -170,17 +141,11 @@ 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
PRODUCT_PACKAGES += \
android.hardware.drm-service.clearkey \
android.hardware.drm@1.3.vendor \
libcrypto_shim \
libcrypto_shim.vendor
# Fastbootd
PRODUCT_PACKAGES += \
@@ -250,14 +215,11 @@ PRODUCT_PACKAGES += \
# IR
PRODUCT_PACKAGES += \
android.hardware.ir-service.lineage
# IRQ
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf
android.hardware.ir@1.0-impl \
android.hardware.ir@1.0-service
# Kernel
PRODUCT_ENABLE_UFFD_GC := true
OVERRIDE_ENABLE_UFFD_GC := false
# Keymaster
PRODUCT_PACKAGES += \
@@ -265,21 +227,26 @@ PRODUCT_PACKAGES += \
# Light
PRODUCT_PACKAGES += \
android.hardware.light-service.lineage
# Lineage health
$(call soong_config_set,lineage_health,charging_control_supports_bypass,false)
android.hardware.light-service.xiaomi
# Media
PRODUCT_PACKAGES += \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxG711Enc \
libOmxQcelp13Enc \
libavservices_minijail \
libavservices_minijail.vendor \
libcodec2_hidl@1.0.vendor \
libcodec2_vndk.vendor
libcodec2_vndk.vendor \
libmm-omxcore \
libstagefright_softomx.vendor \
libstagefrighthw
PRODUCT_PACKAGES += \
libstagefright_softomx_plugin.vendor \
libstagefright_foundation-v33
libstagefright_softomx_plugin.vendor
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/media_codecs_blair.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_blair.xml \
@@ -337,10 +304,7 @@ PRODUCT_ENFORCE_RRO_TARGETS := *
PRODUCT_PACKAGES += \
CarrierConfigOverlayCOMMON \
DialerOverlayCOMMON \
TelephonyOverlayCOMMON \
ApertureOverlay \
ApertureQRScannerOverlay \
ApertureIconOverlay
TelephonyOverlayCOMMON
PRODUCT_PACKAGES += \
FrameworkOverlayVEUX \
@@ -357,30 +321,20 @@ 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 \
@@ -402,7 +356,6 @@ 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 \
@@ -416,7 +369,6 @@ 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 \
@@ -424,9 +376,6 @@ 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
@@ -435,12 +384,7 @@ PRODUCT_PACKAGES += \
libssl.vendor
PRODUCT_COPY_FILES += \
$(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
$(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
# Protobuf
PRODUCT_PACKAGES += \
@@ -463,7 +407,6 @@ PRODUCT_PACKAGES += \
librmnetctl
PRODUCT_PACKAGES += \
android.hardware.radio-service.compat \
android.hardware.radio@1.5.vendor \
android.hardware.radio.config@1.2.vendor \
android.hardware.radio.deprecated@1.0.vendor \
@@ -525,10 +468,8 @@ 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 += \
@@ -538,24 +479,18 @@ PRODUCT_PACKAGES += \
# USB
PRODUCT_PACKAGES += \
android.hardware.usb-service.qti \
android.hardware.usb.gadget-service.qti
android.hardware.usb-service.qti
PRODUCT_PACKAGES += \
init.qcom.usb.rc \
init.qcom.usb.sh \
usb_compositions.conf
init.qcom.usb.sh
# Vendor service manager
PRODUCT_PACKAGES += \
vndservicemanager
# Vibrator
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
$(call inherit-product, vendor/qcom/opensource/vibrator/vibrator-vendor-product.mk)
# WiFi
PRODUCT_PACKAGES += \
@@ -581,4 +516,10 @@ $(call inherit-product, vendor/xiaomi/veux/veux-vendor.mk)
# Remove unwanted packages
PRODUCT_PACKAGES += \
RemovePackagesVeux
RemovePackages
# AGC CAMERA
$(call inherit-product, vendor/xiaomi/AGC-Camera/config.mk)
# MiuiCamera
$(call inherit-product, vendor/xiaomi/miuicamera-veux/MiuiCamera-veux.mk)

View File

@@ -0,0 +1,50 @@
<!--
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>

View File

@@ -1,26 +0,0 @@
[
{
"repository": "Xiaomi-Development/device_xiaomi_camera",
"target_path": "device/xiaomi/camera",
"remote": "github-non-los",
"branch": "aosp-16"
},
{
"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-16"
}
]

View File

@@ -1,87 +0,0 @@
#!/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()

124
extract-files.sh Executable file
View File

@@ -0,0 +1,124 @@
#!/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,3 +2,19 @@ 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",
],
},
*/
}

28
gps/Android.mk Normal file
View File

@@ -0,0 +1,28 @@
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),)

50
gps/CleanSpec.mk Normal file
View File

@@ -0,0 +1,50 @@
# 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

@@ -1,96 +0,0 @@
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\""],
}

115
gps/android/2.1/Android.mk Normal file
View File

@@ -0,0 +1,115 @@
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)

2
gps/android/Android.mk Normal file
View File

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

View File

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

View File

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

22
gpt-utils/Android.bp Normal file
View File

@@ -0,0 +1,22 @@
//
// 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,
}

1520
gpt-utils/gpt-utils.cpp Normal file

File diff suppressed because it is too large Load Diff

195
gpt-utils/gpt-utils.h Normal file
View File

@@ -0,0 +1,195 @@
/*
* 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

@@ -0,0 +1,255 @@
/*
* 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

@@ -0,0 +1,131 @@
#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__ */

10
lineage.dependencies Normal file
View File

@@ -0,0 +1,10 @@
[
{
"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,12 +33,6 @@ 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.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)
BuildDesc="veux_global-user 13 TKQ1.221114.001 V816.0.9.0.TKCMIXM release-keys" \
# TEMP
TARGET_DEVICE := veux
# Camera
include device/xiaomi/camera/miuicamera.mk
BuildFingerprint=Redmi/veux_global/veux:13/TKQ1.221114.001/V816.0.9.0.TKCMIXM:user/release-keys

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="6">
<manifest version="1.0" type="device" target-level="5">
<hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>
@@ -28,11 +28,22 @@
<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>
@@ -46,36 +57,6 @@
<transport>hwbinder</transport>
<fqname>@1.1::IRadioConfig/default</fqname>
</hal>
<hal format="aidl">
<name>android.hardware.radio.data</name>
<fqname>IRadioData/slot1</fqname>
<fqname>IRadioData/slot2</fqname>
</hal>
<hal format="aidl">
<name>android.hardware.radio.messaging</name>
<fqname>IRadioMessaging/slot1</fqname>
<fqname>IRadioMessaging/slot2</fqname>
</hal>
<hal format="aidl">
<name>android.hardware.radio.modem</name>
<fqname>IRadioModem/slot1</fqname>
<fqname>IRadioModem/slot2</fqname>
</hal>
<hal format="aidl">
<name>android.hardware.radio.network</name>
<fqname>IRadioNetwork/slot1</fqname>
<fqname>IRadioNetwork/slot2</fqname>
</hal>
<hal format="aidl">
<name>android.hardware.radio.sim</name>
<fqname>IRadioSim/slot1</fqname>
<fqname>IRadioSim/slot2</fqname>
</hal>
<hal format="aidl">
<name>android.hardware.radio.voice</name>
<fqname>IRadioVoice/slot1</fqname>
<fqname>IRadioVoice/slot2</fqname>
</hal>
<hal format="hidl">
<name>android.hardware.soundtrigger</name>
<transport>hwbinder</transport>
@@ -89,7 +70,7 @@
<hal format="hidl">
<name>android.hardware.tetheroffload.control</name>
<transport>hwbinder</transport>
<fqname>@1.1::IOffloadControl/default</fqname>
<fqname>@1.0::IOffloadControl/default</fqname>
</hal>
<hal format="hidl">
<name>com.qualcomm.qti.dpm.api</name>
@@ -290,12 +271,5 @@
<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>

View File

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

View File

@@ -1,10 +0,0 @@
<?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.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

View File

@@ -1,11 +0,0 @@
//
// 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

@@ -1,13 +0,0 @@
<?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

@@ -1,40 +0,0 @@
<?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

@@ -1,12 +0,0 @@
//
// 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

@@ -1,21 +0,0 @@
<?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

@@ -1,28 +0,0 @@
<?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

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

View File

@@ -1,12 +0,0 @@
<?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

@@ -1,14 +0,0 @@
<?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,6 +5,118 @@
-->
<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>
@@ -317,7 +429,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. -->
<integer name="config_screenBrightnessDoze">55</integer>
<item name="config_screenBrightnessDozeFloat" format="float" type="dimen">0.00342131</item>
<!-- Minimum screen brightness setting allowed by power manager.
The user is forbidden from setting the brightness below this level. -->
@@ -355,13 +467,6 @@
<!-- 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>
@@ -444,28 +549,5 @@
<!-- 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>
<!-- Flag indicating whether the surfaceflinger has limited
alpha compositing functionality in hardware. If set, the window
manager will disable alpha trasformation in animations where not
strictly needed. -->
<bool name="config_sf_limitedAlpha">true</bool>
<!-- Whether WM DisplayContent supports high performance transitions
(lower-end devices may want to disable) -->
<bool name="config_deviceSupportsHighPerfTransitions">false</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

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

View File

@@ -1,12 +0,0 @@
<?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.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

View File

@@ -1,11 +0,0 @@
<?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.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -43,10 +43,4 @@
<!-- 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">Onelots</string>
<string name="build_maintainer_donate_url" translatable="false">https://www.paypal.com/paypalme/0nelots</string>
</resources>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2023-2025 The LineageOS Project
Copyright (C) 2023-2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
@@ -77,9 +77,4 @@
<!-- 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,7 +55,4 @@
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,6 +7,4 @@
<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

@@ -1,24 +0,0 @@
<?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

@@ -1,14 +0,0 @@
<?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

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

View File

@@ -17,15 +17,4 @@ 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,26 +16,19 @@
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/app_title"
android:label="@string/device_settings_app_name"
android:persistent="true"
android:defaultToDeviceProtectedStorage="true"
android:directBootAware="true"
@@ -47,21 +40,6 @@
<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"
@@ -69,24 +47,25 @@
<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>
</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>
<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">
@@ -95,10 +74,13 @@
</intent-filter>
<meta-data
android:name="com.android.settings.category"
android:value="com.android.settings.category.ia.battery" />
android:value="com.android.settings.category.ia.system" />
<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
@@ -141,48 +123,5 @@
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

@@ -1,21 +0,0 @@
<?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.

Before

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 MiB

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