230 Commits

Author SHA1 Message Date
rio004
06c2f57a69 mediatek: Add dummy libperfctl_vendor library
Change-Id: Ia28f02499fcb798d5b59d261070d93b947852b0e
Signed-off-by: rio004 <riyon336@gmail.com>
Signed-off-by: Saikrishna1504 <saikrishna26918@gmail.com>
2025-12-09 22:18:32 +05:30
rio004
f02501ff7e interfaces: Initial reverse engineered mtkpower AIDL interface
Change-Id: I214ac76ec5fb787f8dce11878fd8e0c6e822af1a
Signed-off-by: rio004 <riyon336@gmail.com>
Signed-off-by: Saikrishna1504 <saikrishna26918@gmail.com>
2025-12-09 22:18:18 +05:30
rio004
2865516922 vintf: Import/Upstream more FCMs
Change-Id: I52e7c2b17090e882f1bb3854f84ab336a03b4127
Signed-off-by: rio004 <riyon336@gmail.com>
Signed-off-by: Saikrishna1504 <saikrishna26918@gmail.com>
2025-12-09 22:18:07 +05:30
Giovanni Ricca
1e84e87354 interfaces: Generic-ify hidl_package_root name
Change-Id: I85a185ef6abce31579f3e2cfdd3b02e9beabfef6
2025-09-29 14:46:30 +05:30
Giovanni Ricca
9e49c20982 interfaces: Inherit update-makefiles-helper.sh
Change-Id: I949f69fca66e2ecab47f26210a60c7b0fa150c85
2025-09-29 14:46:30 +05:30
Giovanni Ricca
8177a9f16f Revert "interfaces: Add Script to generate vendor hal make files"
This reverts commit 1d2aaa2cec.

Change-Id: I1d77908767f8d0b9654fb3cfb5d3baf92626c7d6
2025-09-29 14:46:30 +05:30
LuK1337
7e6ad56dd0 sensors: Move to hardware/lineage/interfaces
Change-Id: I8feae553f68240edd7d5dd8137d9cba74bdf2b7c
2025-09-29 14:46:25 +05:30
Mashopy
6a4e845500 aidl: bluetooth: Add BT_VND_OP_SET_FW_ASSERT
Change-Id: Iec844f1c09778805b902572bd05c2be1280ee12f
2025-09-22 02:53:25 +05:30
Mashopy
d69ebb67b6 aidl: bluetooth: Only warn when no bluetooth MAC address is found
MediaTek bluetooth stack retrieve the bluetooth MAC address from NVRAM.

Change-Id: Ib5dbc79d534eb10445f18aefe57aa0838cb44417
2025-09-22 02:53:24 +05:30
Mashopy
96411cd475 aidl: bluetooth: Remove fuzzer test
We don't plan to build that target

Change-Id: I9c3d284e2191890d4e8653a4101ed999d1cf5ab4
2025-09-22 02:53:24 +05:30
Mashopy
1c6ddd1071 aidl: bluetooth: Rebrand to mediatek
Change-Id: I14a32311adb0bfe9bd0e5da9b5e808a1f92ef07d
2025-09-22 02:53:23 +05:30
Mashopy
76e2ea2bff aidl: Import bluetooth AIDL service from NXP IMX
HEAD: nxp-imx-android/android-imx_platform_hardware_imx @ 548c10ad8b2

Change-Id: Ifdf989640394927da64b937ee9c53c38b8899898
2025-09-22 02:53:23 +05:30
Cyber Knight
24c21ae287 aidl: gadget: Link mass_storage.0 when MTP is enabled
- This fixes DriveDroid functionality when coupled together with [1].

[1]: 0e435675d7

Test: Open DriveDroid, host an image, change usb configuration to File Transfer and try to boot an OS on PC by plugging in the phone.
Change-Id: I7956e14fb8239d273e687b61ed4154a0695460ce
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-09-22 02:53:22 +05:30
Mashopy
21f75f574b vintf: Add vendor.trustonic.tee.tui.ITui/default
Change-Id: Ifd54bcd8c28929e9b66f07a46f20c4438fbc7cf5
2025-09-22 02:53:22 +05:30
Mashopy
e89a3ed9d3 vintf: Add vendor.trustonic.tee.ITee/default
Change-Id: Ieec045a8608a3e947d3a7540eeec6d492bf218c7
2025-09-22 02:53:21 +05:30
Mashopy
c1c7955271 interfaces: Add IMms 1.7 into the Mms prebuilt interfaces definition
Seen on MediaTek 5.15 devices

Change-Id: I86027db90c76be3a9991aaa0fff0e049330a890f
2025-09-22 02:53:21 +05:30
Giovanni Ricca
7af94913de interfaces: Add prebuilt interfaces definitions for keymaster_attestation
Change-Id: I2a8a6d8eba1e60e209358bc47700aa7e73067582
2025-09-22 02:53:20 +05:30
Woomymy
7ae41b3ffb interfaces: Add prebuilt interfaces definitions for Mms and MMAgent
* Required to make build complete now that `host_init_verifier` checks
  the init scripts for missing interfaces definitions

Change-Id: I85a293bb8b9272354c46bb9889aaa4a24bc6493b
Signed-off-by: Woomymy <woomy@woomy.be>
2025-09-22 02:53:20 +05:30
Mashopy
4c14b507aa mediatek: Run bpfix
Change-Id: I82d55ffd2ddcc30abe3123d8843687111623801d
2025-09-22 02:53:19 +05:30
Giovanni Ricca
e3935df351 aidl: thermal: Update AIDL Thermal HAL from android-15.0.0_r20
HEAD to 387cefaab6d1e4ac30a859f512387cffa640abc1 ("Merge changes from
topic "p25_thermal_config_checker" into main")

Change-Id: I63223eb7562c6218104b774c0ffaae8e8baeb02c
2025-09-22 02:53:18 +05:30
Giovanni Ricca
8070f6290a vintf: Add ISap/slot2 instance
Change-Id: I8c69bc9793e992c9d1a448dc413bb7a08089eeb6
2025-09-22 02:53:18 +05:30
Giovanni Ricca
0dea6e350c vintf: Add vendor.microtrust.hardware.thh.IThhDevice/default
Change-Id: Ie9919315641b03a20be09b72dba8bdb29c82f971
2025-09-22 02:53:17 +05:30
Giovanni Ricca
d0fb36158a vintf: Add vendor.microtrust.hardware.soter.ISoter/default
Change-Id: I0cebcc201922b2867fd47295f572cbadd0ed9e42
2025-09-22 02:53:17 +05:30
LuK1337
dc34b35ab0 vintf: Add vendor.nxp.nxpnfc_aidl.INxpNfc/default
Change-Id: I15696723afdac3074e96271c0be6c7f19bbed232
2025-09-22 02:53:16 +05:30
bengris32
3f2f8261fa sensors: Add a sensors 2.0 -> 1.0 subhal wrapper
* This converts a legacy sensors 1.0 implementation into a 2.0 implementation.

Change-Id: I2f76c69be280f09c8463442f47d9afd14a7ad67c
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2025-09-22 02:53:16 +05:30
Michael Bestas
542d9bbfef Remove unused Android.mk
Change-Id: I98105c127066f7de7012a1895d19c96356105921
2025-09-22 02:53:15 +05:30
Giovanni Ricca
9f581939b7 aidl: vibrator: Convert to blueprint
Change-Id: I1bf54d4c7bf74d4c122edc5b50ac9619e220c8e6
2025-09-22 02:53:15 +05:30
Giovanni Ricca
f35d9f7d91 aidl: power-mediatek: Convert to blueprint
Change-Id: I2b08202915b898e25ab19d8c9bd8dc43493723c0
2025-09-22 02:53:14 +05:30
Giovanni Ricca
6ee65a7cd8 aidl: thermal: Update AIDL Thermal HAL from android-15.0.0_r6
HEAD to 83141f9c394f5cb0fa73e0181920c146a01b7691 ("thermal: Refactor
genlinkHandleEvent")

Change-Id: I5e421d195f868a29f5bbaefcd27707d40c5f3eb3
2025-09-22 02:53:14 +05:30
bengris32
5ad19bc7b5 aidl: vibrator: Update vibrator strength nodes
Change-Id: I242600953cbcc9d6fb61b9700d536dcc7b669171
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2025-09-22 02:53:13 +05:30
Woomymy
f6e3a1b5c7 mediatek: Add dummy libpowerhalwrap_vendor library
* Required by some vendor blobs that depend on it

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I6d0b16800a372cb0094fc4cf910b01d3fe05a37e
2025-09-22 02:52:45 +05:30
Sunil Ravi
d367541636 libwifi-hal-wrapper: Fix build
- 6806a9dd81

Change-Id: I1f7784f67b575103bb5a6f3ce77fb9551f1f1471
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2024-11-15 05:20:23 +00:00
Gabriel Biren
abb9c5a7eb libwifi-hal-wrapper: Update legacy header file dependency
Bug: 271177978
Test: Presubmit builds pass
Change-Id: If72b87af87ba7806efe607692b1479c31cbb5c92
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2024-11-15 05:20:23 +00:00
Mashopy
d3b422e37e vintf: Add slot3 instance to ISap interface
Change-Id: Ib8c2d2c19c1d8d9425cb5e8f863fe7b0f4f08c16
2024-07-20 18:13:35 +02:00
bengris32
e0e01ce171 aidl: gadget: Switch to generic MediaTek vid/pids
Change-Id: I2b5ba0a2065e279056d0bd7f07b457071485b2fb
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-07-17 15:04:40 +02:00
Roker2
1d895036b3 BesLoudness: Add QS tile
Change-Id: I6506c97a4e7f178df0d79f331e3854a22932196d
(cherry picked from commit 447fe5af53fabbd0fc348552747ae3db42130179)
2024-07-17 13:03:18 +00:00
nift4
89868bf351 PowerOffAlarm: update english strings
Change-Id: I32e454ee81f5d690b458119fa6fb678d92f69ad4
(cherry picked from commit 6a9686c34f0b889f10bd1f4e04fe90a52f6fddc7)
2024-07-17 13:00:17 +00:00
bengris32
3a904a3d37 Revert "aidl: gadget: Return error status when failing to update saving state"
* MicroUSB devices do not have this node. As such, do not error when
  failing to write this node, as it is optional.

This reverts commit b5994cae09.

Change-Id: I5a2129ae81a74e3d85704c80d5f6cb7a8e686ba7
Signed-off-by: bengris32 <bengris32@protonmail.ch>
2024-06-23 12:22:15 +02:00
Sayanna Chandula
e5e60e6e74 aidl: thermal: virtualtemp: update vtestimation memebers initialization
- Initialize the members in constructor based on type to avoid
overlapping initializations.
- Update random() value generator test to use mC data and also
add a check for 55C

Bug: 308179047
Test: Build and boot on device

Change-Id: Ic59ab150cb2a8f923b3907fcf81d633c20f5a251
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-06-16 14:52:40 +02:00
sashwinbalaji
8d026f17f2 aidl: thermal: Fix nan check
Use std::isnan instead of comparing to NAN as NAN != NAN.

Bug: 325683988
Test: Build and test by hardcoding nan values
Change-Id: I6167f597c7249bd1763f4dacc6c054bfad8b428b
2024-06-16 14:52:40 +02:00
Jikai Ma
42bca1d29b aidl: thermal: virtualtemp_estimator: add support of historic samples
changes are made to support LSTM forecast model:
- add support of historic sample
- add support of multiple projected vs temperature on multiple hot spot

Bug: 308179047
Test: build, boot to home and validate with thermal_recorder

Change-Id: Ifd4087136f6f0d4017f3825c7863f226620a052e
Signed-off-by: Jikai Ma <jikai@google.com>
2024-06-16 14:52:40 +02:00
sashwinbalaji
33880316cf aidl: thermal: Set sensor value to nan before reading its temp.
When any subsensor value is nan, update to set sensor value also has nan
in place of 0.

Bug: 323995026
Test: Local build and use constant of NAN value as subsensor
Change-Id: I561f101ff8b31591dcf2599e113602dcb4852811
2024-06-16 14:52:40 +02:00
Sayanna Chandula
e4e2945038 aidl: thermal: support power rail data usage with min 2 samples
Use first sample for historical samples reference and allow average
power calculation taking first sample as reference.
This allows us to have a valid power value from second iteration itself.
For higher sample counts, this would mean that till we collect enough
data samples, we will calculate average power from first sample itself.

Bug: 323011971
Test: Build and boot on device. Check VT at boot

Change-Id: Ie6aace43d5435717efde6601d871ea9a679add0e
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-06-16 14:52:39 +02:00
TeYuan Wang
175a173437 aidl: thermal: Assign the default value for multiplier
Bug: 322243172
Test: dumpsys thermalservice
Change-Id: I05563fc8aa58a4dd52131460de15b282c1a50216
Signed-off-by: TeYuan Wang <kamewang@google.com>
2024-06-16 14:52:39 +02:00
TeYuan Wang
f629cb2368 aidl: thermal: support more logging for emul sensors
Bug: 321798970
Test: check thermal log with emul temp
Change-Id: I932324b22bf26899162422f0ac3e28e8007479ed
2024-06-16 14:52:39 +02:00
Sayanna Chandula
4a9f8b0010 aidl: thermal: add offset support for virtual-skin-model
Bug: 320595189
Test: Build and boot on device

Change-Id: I573516958e45e782c5bc2de17c9c3bd51b5167fe
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-06-16 14:52:39 +02:00
sashwinbalaji
ff59c46b72 aidl: thermal: Round trip#0 temp and hysteresis
Instead of using static_cast to convert to int use lround to round the
value.

Bug: 293393562
Test: Build and verify
/dev/thermal/tz-by-name/*/trip_point_0_{temp,hyst}

Change-Id: If03b21f2f3f8b9b969bdd6564a8ab08b44acd554
2024-06-16 14:52:39 +02:00
Sayanna Chandula
20bf915472 aidl: thermal: virtualtemp: fix uninitialized members
Bug: 315169778
Test: Build and boot on device

Change-Id: I363add547e1d7f0cdf899a89188534bed3e0fd02
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-06-16 14:52:39 +02:00
Sayanna Chandula
77c205f973 aidl: thermal: support historic samples for vt prediction
Bug: 315169778
Test: Build and boot on device

Change-Id: I5d967193fa27946c1c8b9d05865ccc40e14df24f
Signed-off-by: Sayanna Chandula <sayanna@google.com>
2024-06-16 14:52:39 +02:00
TeYuan Wang
30daada78d aidl: thermal: support cooling device status change notification
1. support the powercap in CoolingDevice
2. support the notification when CoolingDevice status changed

Bug: 312540064
Test: atest VtsHalThermalTargetTest
Change-Id: Idadc5ed60125763b83658015f22f1e02cfe5d36b
2024-06-16 14:52:39 +02:00