Commit Graph

381 Commits

Author SHA1 Message Date
Mashopy
4cdcb94010 oplus: Run bpfix
Change-Id: Ida4dd24167f0f15b1e67a3ae3f73454caa4e1f6e
2025-04-13 23:45:13 +00:00
LuK1337
1fc2c39807 sepolicy: qti: Label just crtc early_wakeup
Prevents us from overriding QCOM sepolicy rules.

Change-Id: I8c7446b4aa04503af7efc11a53f67b1edb6e3b1e
2025-04-09 19:21:16 +02:00
LineageOS Infra
93e25021b2 Automatic translation import
Change-Id: Ife02e8ee27d8d656c6a24e28b86ffaab03b762e2
2025-04-07 16:25:24 +00:00
Bruno Martins
ba4c32da03 oplus: Declare hidl_pixelworks_feature_interface
Change-Id: I0896a93cc6c44628d5b79c75e58db9dcf6f58683
2025-04-06 00:51:34 +01:00
Bruno Martins
d5f168f6a8 aidl: vibrator: Drop compile_multilib from dummy richtap lib
Not necessarily needed and prevents builds to start on 32-bit-only
targets with this repository also present.

Change-Id: Ic9838753240a25883d591b4be385691f2e070a07
2025-03-31 17:39:50 +00:00
Bruno Martins
fd03aaaed9 fingerprint: Do not notify AIDL HAL about touch events
As previously noticed with uff fingerprint HIDL HAL, Oplus makes
use of touch down/up events for product testing. With the most
recent AIDL HAL, entering the code paths for factory tests breaks
fingerprint registration.

By setting halHandlesDisplayTouches prop to true, the framework
will skip passing the display touch events in ISession#onPointerDown
and ISession#onPointerUp down to the HAL.

Change-Id: I194719f27c182d044c0f4e349c3e0ef032361fbd
2025-03-28 08:03:04 +00:00
Edwin Moquete
a6435e6bc0 doze: Fix compilation on V QPR2
Change-Id: If1693603abc530af3b761b53396f2dda8225177e
2025-03-12 23:35:45 +00:00
Cosmin Tanislav
18ef7dd547 oplus: switch to common QCOM AIDL bootctrl HAL
Change-Id: I04ab771d3b1c38b58913607fbff1bb3b55e1fe25
2025-03-12 04:36:08 +00:00
LuK1337
41fb946c65 audio_amplifier: Add lahaina SoC
Change-Id: Icb52dd78e34e6cfd8f4f3e93917f32e9660ca602
2025-03-07 14:53:54 +01:00
AnierinB
e50dfe2d6c doze: Move to PreferenceFragmentCompat
PreferenceFragment was deprecated in API level 28.

https://developer.android.com/jetpack/androidx/releases/preference#1.1.0

Change-Id: Ie8a4b04bd588afbbbc5882349ddbc05f988f80bf
Signed-off-by: AnierinB <anierin@evolution-x.org>
2025-02-26 23:00:34 +00:00
Bruno Martins
aaf90056ca sepolicy: qti: Address new denials with fingerprint AIDL HAL
Change-Id: I6c0834bc7fba8e9ea7bb1955e8ff29b7009de383
2025-02-26 00:22:54 +00:00
LuK1337
7591d33cea fingerprint: Add a shim to manipulate fingerprint SensorProps
OPlus fingerprint AIDL reports sensor properties through custom system
properties rather than the standard IFingerprint::getSensorProps
interface, so AOSP is not aware of them.

Provide a shim to hijack the binder interface and standardize these
custom system properties.

These properties are read from TA and automatically set when the
fingerprint AIDL starts. Possible values are based on observation from
OplusCommercialEngineerMode.apk.

Co-authored-by: dianlujitao <dianlujitao@lineageos.org>
Change-Id: Ia25e0c007af845c14fb98cb201bac334d70a74a4
2025-02-26 00:22:54 +00:00
Bruno Martins
63127da10c fingerprint: Move shims and UDFPS extension out of HIDL
Change-Id: I29e31088c6380076221ad419a195a460079165d6
2025-02-26 00:22:54 +00:00
Bruno Martins
48f3da9e08 sepolicy: Label commondcs service and adjust rules
Change-Id: If5d76109413e54c9f5a78aea7490b71dd7687d1e
2025-02-26 00:22:54 +00:00
Bruno Martins
5134fa4830 Introduce vendor.oplus.hardware.commondcs-service
Change-Id: I4d91094cc2274a168b147a53d5ebe412a867e920
2025-02-26 00:22:54 +00:00
Bruno Martins
9f1f2c1765 interfaces: Add vendor.oplus.hardware.commondcs V1
Change-Id: I181fd1da49dc124ebfe631f9139149327ed4f847
2025-02-26 00:22:54 +00:00
Albert Tang
2f24de9fb5 audio_amplifier: Add holi SoC
Change-Id: Iea9d6e446d9e394eafced3062232a4a65f577296
2025-02-22 20:40:55 +01:00
LuK1337
c0e82d61b6 audio_amplifier: Use hw_module_t->dso instead of RTLD_NEXT
W audio_amplifier: amp_module_open: enable_snd_device not found (undefined symbol: enable_snd_device)
E audio_hw_primary: Amplifier initialization failed

Change-Id: If313889c4749c589d0682982f1d804e4069ffff9
2025-02-22 20:40:55 +01:00
Michael Bestas
ee64733e0f Remove no longer used Android.mk guard
Change-Id: Ia284075607a1ce3d9312c593258d0b1afcd868b2
2025-02-19 22:58:04 +00:00
Michael Bestas
fff84ef56b audio_amplifier: Convert to blueprint
dlopen audio.primary instead of linking against it to avoid soong
namespace hell.

Change-Id: Ic9d420864cb5a6f1018210a84f0f3e6636550caa
2025-02-19 22:58:04 +00:00
Alexander Winkowski
5a4c2cf7a4 audio_amplifier: Make all the functions static
Change-Id: I64b94b6995399b773046928528d9fe5a29cb26f9
2025-02-19 22:58:04 +00:00
Alexander Winkowski
1166219abe audio_amplifier: Fix PCM device check
It should've been && instead of ||, but pcm_open() always
returns a valid pointer, so we just drop the NULL check.

Change-Id: Ibf1d0b34b02ca5910cd4c1bee4d55a04205e2203
2025-02-19 22:58:04 +00:00
Bruno Martins
1177faa26d sepolicy: qti: Allow audio HAL to read debug audio props
Change-Id: Ibe64d56f8451ee1d90f4087ca45e075424a4749b
2025-02-16 17:17:57 +00:00
Bruno Martins
d6563515fa sepolicy: qti: Label ro.sys.engineering.pre prop
Change-Id: I5b25f13b158df6a3e0b63efde70f8750798875e4
2025-02-16 17:17:57 +00:00
LineageOS Infra
81d0ee9346 Automatic translation import
Change-Id: I2607a25274068809ee540c55b4afd42270b5d96a
2025-02-15 15:47:19 +00:00
Bruno Martins
a4ba2641dd sepolicy: qti: Remove duplicate snxxx AIDL rules
These now became a duplicate of qcom/sepolicy_vndr.

Change-Id: I7cac7b77322d88181d0a119ce0b28c678c0202e0
2025-02-14 08:44:04 +00:00
LuK1337
8d237bfc07 bootctrl: Remove HIDL variants
No longer used by anything.

Change-Id: I2dc8a42f8f758b8247eb7b14846e731c48d1601e
2025-02-11 19:05:16 +00:00
Michael Bestas
8aa74e5081 gpt-utils: Make BSG/SG configurable
Change-Id: Ibbadee63bddcf03a259649aec9cb0dab6c206833
2025-02-11 19:05:16 +00:00
Bruno Martins
95e9749902 interfaces: Update OplusTouch to V2
Change-Id: I6982de269930a321a58d5145470ccef5b2da4e45
2025-02-11 01:41:54 +00:00
John Galt
37688c9479 sepolicy: qti: add rules for URCC
Change-Id: I449705696de0bc303df6ae27ef322f2cc74b95b5
2025-02-11 00:18:26 +00:00
John Galt
e3197d473f interfaces: unfreeze touch aidl
Allows building deps for proprietary touch stack

Change-Id: I647b27fa1985fa0ed1bff389295cc6333006495e
2025-02-11 00:18:26 +00:00
Dr-chen99
07bc326cf0 sepolicy: qti: Add touch aidl service as a client of power hal
Change-Id: I4824fadf7c4d590bc7adc3c35996d9101b820022
Signed-off-by: pppig236 <priv@pppig236.com>
2025-02-11 00:18:26 +00:00
John Galt
31ea1b8880 vintf: add oplus touch and urcc
Change-Id: I62ab1be42e0c54b8762a0375127225b87f28c92e
2025-02-11 00:18:26 +00:00
Dr-chen99
2ef6bca1a6 interfaces: import touch aidl
Change-Id: I72363277a140dadf08c39823072578d99dc65753
Signed-off-by: pppig236 <priv@pppig236.com>
2025-02-11 00:18:22 +00:00
pjgowtham
331acdbd34 sepolicy: qti: Label and write rules for oplus_consumer_ir device
Change-Id: I4bb3275183250531324f0a396be0c83c6a5b30fe
2025-02-08 23:25:14 +00:00
pjgowtham
c342915eda Introduce android.hardware.ir-service.oplus
Change-Id: Iffeb34f8c7864dad223d20e1de2a819a345678c6
2025-02-08 23:25:14 +00:00
Bruno Martins
465fa45b1a sepolicy: qti: Partially hide labels of services relocated by Oneplus
Keeping these common labels will break sm8650+ due to no longer existing
types, so make available only when applicable to legacy-um, sm8450 and
sm8550.

Change-Id: Ieb9c703c4cdf1d25bdccd7352055978b14cde8fd
2025-02-08 18:05:17 +00:00
Bruno Martins
71f8171439 oplus: Deprecate NXP NFC and old HALs for good
Seems like these are not used anymore.

Change-Id: I7cf12951fae70d87ef4e33e89c0aa88529c08ac4
2025-02-08 15:50:02 +00:00
Sebastiano Barezzi
ad80010b94 oplus: Keep a single clang-format in rootdir
Change-Id: Iffe5b37c311dc0ed0c9b5c91a2f94e9ff72f4a8a
2025-02-07 19:17:25 +00:00
LuK1337
b2c137ff35 aidl: vibrator: Clean up aac_vibra_function.h
Change-Id: I9ec5c9631679624d8dc710e790d84895de183d54
2025-02-07 12:49:19 +01:00
Bruno Martins
d2bc42dafc aidl: vibrator: Add dummy libaacvibrator shared_lib
All targets must provide it and dummy one will be overriden.

Change-Id: I64b6180e93cf2c34382282dc8574bf79814f096e
2025-02-07 01:09:54 +00:00
Cosmin Tanislav
fe3c661e29 sepolicy: qti: let vibrator service access richtap dev
Change-Id: I19cf413ebe128ac952e2f5237907b7bb7afcbc7f
2025-02-07 00:34:41 +00:00
Cosmin Tanislav
2823ba9b6c sepolicy: qti: label richtap vibrator service
Change-Id: I9e08ded8362b359b60523c07c172d26706e4246d
2025-02-07 00:34:41 +00:00
Cosmin Tanislav
538d6790d0 aidl: vibrator: implement richtap vibrator service
Change-Id: Ieab0cfca22c0fd8a63c33ce2a6a21e982e57aee8
2025-02-07 00:34:28 +00:00
Bruno Martins
32be43fe84 aidl: vibrator: Place modded QTI impl into its own dir
Change-Id: Ie21de7e1ddfd964c9d1b4a838521503887dcc994
2025-02-06 23:12:37 +00:00
Tim Zimmermann
2ac71df739 aidl: Add missing vintf version entries
* This is required for devices using a target-level that actually
  has these HALs in their compatibility matrix

Change-Id: I29cba455ab92e7708ece405bb29ea1c46e46cf41
2025-02-06 23:12:34 +00:00
dianlujitao
309c373f06 bootctrl: add AIDL variants
Change-Id: I2dbcd362490b171f402c080485226d90d8ffaa84
2025-02-06 20:21:18 +00:00
LineageOS Infra
566dd12b55 Automatic translation import
Change-Id: Ife9b592c7f9c5cee1c4b6745bacc1b135870ffca
2025-02-01 14:28:34 +00:00
dianlujitao
2194d3fbac gpt-utils: Add OTA support for pdp partition
Change-Id: Ide7bf934a2592fe50027ff0836190d3b20ea390b
2025-01-30 19:39:40 +08:00
LAVEENA FULWANI
5d9c06b541 gpt-utils: Adding partitions in PTN_SWAP_LIST
Change-Id: I9fadf0a5ff04b44a1cf9172c48a3e87c03511bc6
2025-01-30 19:39:40 +08:00