summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fastboot: Implement oem getprop commandHEADs12.1Michael Bestas2022-06-032-2/+42
| | | | | | | | | | | Loosely adapted doOemCommand from pixel fastboot HAL. Test: fastboot oem getprop ro.boot.project_codename (bootloader) ro.boot.project_codename:lemonade OKAY [ 0.000s] Finished. Total time: 0.000s Change-Id: Ied18e52a793a2fab62bb6a01a713c1c421b634fa
* Initial fastboot custom implMichael Bestas2022-06-033-0/+153
| | | | | | * Copied from mock 1.1 impl Change-Id: I7ed50695bedaf1918571171dedf0e5f348b4cbae
* interfaces: rebrand kscope -> lineage for compatibilitySemavi Ulusoy2022-05-129-21/+21
| | | | Change-Id: I0ecfa9b862b918f04db20980800d59c5b4a4e8c6
* Add charge control HALLibXZR2022-05-128-0/+274
| | | | | Change-Id: I212501f4c93b875c8a1c280d17c319a5fb8e303f Signed-off-by: LibXZR <i@xzr.moe>
* trust: Allow devices to customize usb control {path,enable,disable}LuK13372022-03-232-8/+6
| | | | Change-Id: I0bf9b8918b11a9ef6ce85c56ca85377b2031b114
* Introduce IHighTouchPollingRateRamii Ahmed2022-03-082-0/+23
| | | | | | * to Handle Nodes used to Enforce High Touch Polling Rates Change-Id: If89c7d4e59004ee078db87e590a4b487e003d252
* power: Deprecate lineage power HALBruno Martins2022-01-3011-269/+0
| | | | Change-Id: Id8f7bd48e61ecb347ac709b8eaf706ac87b298aa
* biometrics: Deprecate inscreen HALBruno Martins2022-01-143-129/+0
| | | | Change-Id: I2dbdb2a2b31a2aaeaa536f89e23cfd129c4dbf8e
* Revert "Temporarily disable cryptfshw HALs"LuK13372021-12-262-0/+0
| | | | | | This reverts commit f20c5f4f9e5280105f9df6f8c84b640ee3cedfa4. Change-Id: I02b7499fa381a3de6dcad76562436f3d57185772
* Temporarily disable cryptfshw HALsMichael Bestas2021-10-072-0/+0
| | | | Change-Id: I47649ac964e413321a0898491cae0a6fade4fb30
* power: Remove 1.0 HIDLLuca Stefani2021-10-073-74/+0
| | | | | | * All the user must migrate to AIDL Change-Id: I3fe112a682b2c4eccc75213f0dc53610037947ae
* livedisplay: 2.1: Fix interfaces orderSebastiano Barezzi2021-06-141-1/+1
| | | | | * Corrected by update-makefiles.sh Change-Id: I7db3ab604472de1f8cdf01305028718267be6ef8
* lineage/interfaces: usb 1.1-typec: add VINTF fragmentjosip-k2021-05-042-0/+12
| | | | Change-Id: I78c3b410d30b740f3f26c063336affaac0231eff
* usb 1.1-typec: Add interface info to .rc filesFelix2021-05-041-0/+2
| | | | | Signed-off-by: Felix <google@ix5.org> Change-Id: I10dc4056071db08acdbc24c05db1093d8e020211
* usb 1.1-typec: Remove libhwbinder/libhidltransport depsSteven Moreland2021-05-041-1/+0
| | | | | | | | Since these were combined into libhidlbase. Bug: 135686713 Test: build only (libhwbinder/libhidltransport are empty) Change-Id: Iba2cd20b8b20fac3e7564de6b853b475fd4ebd2a
* lineage/interfaces: Rename USB HAL suffix to typecRashed Abdel-Tawab2021-05-044-5/+5
| | | | Change-Id: Iffc638b3bf747be07e9ce34278edeb546b905948
* lineage/interfaces: USB: Use -WerrorChih-Hung Hsieh2021-05-042-2/+4
| | | | | | | | | * Remove unused variables. * Return result of registerAsService(). Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I79d1add6190e835de20a0b0c247bbbb259096c14
* lineage/interfaces: USB: Add 'vendor.' prefix to a vendor HAL service nameJaekyun Seok2021-05-041-1/+1
| | | | | | | | | | To prevent property name collisions between properties of system and vendor, 'vendor.' prefix must be added to a vendor HAL service name. You can see the details in http://go/treble-sysprop-compatibility. Test: succeeded building and tested on a walleye device Bug: 36796459 Change-Id: Idc995c550657feca5e0f934444a31805bc3538f9
* lineage/interfaces: USB: Fix potential racing by wall time change in USBhalWei Wang2021-05-042-8/+33
| | | | | | | | | | | pthread_cond_timedwait used wall time so it might introduce racing, pthread_cond_timedwait_monotonic_np is Android specific but it is being deprecated. And now Android support pthread_condattr_setclock so use it to wait on CLOCK_MONOTONIC instead. Bug: 64623895 Test: USB switch function works, charging/MTP/PTP Change-Id: I136533ff90ef1be2b042ef1e0829643f2f7aa968
* lineage/interfaces: USB: HAL: enable auto suspend for USB headsetsYueyao Zhu2021-05-041-2/+75
| | | | | | | | | | | | | | | | | | | Adds a thread that handles add uevents of USB devices, and enables auto suspend on that USB device (i.e. set power/control to auto) if the device idProduct/idVendor is whitelisted. The android kernel will already autosuspend audio devices, however this enables autosuspend for the Google USB-C to 3.5mm adapter, which presents an HID-only interface when no 3.5mm headset is connected. Test: with the selinux and .rc changes for access permission - MIR without headset: power/control set to auto - MIR with headset: power/control set to auto - regular mouse: power/control set to on Bug: 38352281 Change-Id: I81572584ea02f6bdc814e70ab3439ab86c34a50a
* lineage/interfaces: USB: HAL: run as user root, group root systemYueyao Zhu2021-05-041-2/+2
| | | | | | | This allows USB HAL to write USB sysfs nodes. Bug: 38352281 Change-Id: Iaf8f1bad1a0394e553996b7a42bc34745b769b16
* lineage/interfaces: USB HAL: Use 1.1 IUsb intead of 1.0 IUsbBadhri Jagan Sridharan2021-05-042-2/+2
| | | | | | | | | | | | Use 1.1 IUsb in order to make register the service as 1.1 compatible. This enables lshal to recognize the hal service as 1.1 implementation. Bug: 62917546 Test: Manually verified lshal output android.hardware.usb@1.0::IUsb/default 0/1 782 6024 568 android.hardware.usb@1.1::IUsb/default 0/1 782 6024 568 Change-Id: I9b0817841dbcc345a1d854ee4a5193797181ea3f
* lineage/interfaces: Usb: HAL: Update wahoo HALBadhri Jagan Sridharan2021-05-043-71/+247
| | | | | | | | | | | This CL rebases wahoo HAL based on the kernel change to update sysfs interface. https://partner-android-review.googlesource.com/#/c/836088/ Bug: 62272992 Test: Verify USB dialog on wahoo Change-Id: I8bc8f494176c7648abeb9783fbd18dc837793bda
* lineage/interfaces: USB: HAL: update hal to V1_1Badhri Jagan Sridharan2021-05-046-85/+127
| | | | | | | | | This CL adds support to notify frameworks when an audio or debug accessory is attached. Bug: 36604276 Test: Manually test inserting an Audio accessory. Change-Id: I9ec0f88ed85ed593b31132ba58bfedb51a435cd8
* lineage/interfaces: USB: HIDL: check the status of registerAsServiceBadhri Jagan Sridharan2021-05-041-1/+13
| | | | | | | registerAsService call could fail. Hence check the return value. Bug: 36704362 Change-Id: I46dcd74dbee6aba72cf344f10854e5d4b1b6de18
* lineage/interfaces: The IUsb interface uses "default" service nameBadhri Jagan Sridharan2021-05-041-3/+1
| | | | | | | | | | | By default, it is expected that the service does not rename itself unless there is more than one service exposed by the interface. This CL changes the usb hal service name back to "default" instead of "usb_hal" Bug: 36097487 Test: Manually tested role swap and UI behavior Change-Id: I4a0aa4423c80cd893c578bc58b9276956daba732
* lineage/interfaces: USB HAL: initial type-c halBadhri Jagan Sridharan2021-05-045-0/+634
| | | | | | Bug: 36097487 Test: Manually tested role swap and UI behavior Change-Id: I5ce520da521e0714001b60164ac850dddbd644c3
* Introduce 2.1 LiveDisplay interface with IAntiFlicker supportArian2021-04-0911-0/+144
| | | | Change-Id: Ib5e1d0f3bfb6974ce37d1da624dd8d8f9302e542
* WifiNanIface: Validate interface before cleanup.Nate Jiang2021-03-291-0/+3
| | | | | | | | | | Calling invalidate() API twice would lead to fatal error. This commit is to check if interface isValid() before doing other operations in invalidate() API. Bug: 166412651 Test: atest VtsHalWifiNanV1_4TargetTest WifiNanIfaceTest Change-Id: Ia3fc48bb3d98660705bba9a32b7a5845ff7af79f
* wifi: Update wifi_wait_for_driver_ready return status handlingVeerendranath Jakkam2021-03-291-2/+2
| | | | | | | | | Now wifi_wait_for_driver_ready can return WIFI_ERROR_UNKNOWN also thus update return status handling. Bug: 157090295 Test: Basic function test, SSR test Change-Id: Iea459bc2801418b1b21d15ce1ca3da9be64a4fe3
* Ringbuffer stops logging after wifi togglexshu2021-03-291-2/+14
| | | | | | | | | | | | | Forces ringbuffer updates before writing zipped files to bugreport. Also properly resets the ringbuffer callback when it's deregistered. Bug: 161307741 Test: make vts -j64 && vts-tradefed run commandAndExit vts --module VtsHalWifiV1_0Target Test: manual verification with triggering a bugreport Test: manual verification with wifi toggles Change-Id: I74deffda917054e20cfcf4f0dd90d778626c89d3 Merged-In: I74deffda917054e20cfcf4f0dd90d778626c89d3 (cherry picked from commit 0a0fe51a6aa50a4ade84ad26207fef45ed2c9c3e)
* wlan: add supported interfaces in rc fileTF Huang2021-03-291-0/+4
| | | | | | | | | | | Service vendor.wifi_hal_legacy should add all supported interface into relevant .rc files. Bug: 160377428 Test: Wifi presubmit tests Change-Id: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37 Merged-In: I68e8d3e7ddb1470a92c5ccd30f6d4d5f90ad9e37 (cherry picked from commit ca7a8c9559ecc330160c52eb26874300ff8fd215)
* Drop VNDK support from vendor.lineage.power aidl interfaceLuK13372021-03-241-5/+0
| | | | | | | | | We aren't allowed to change VNDK library list, see following error msg: Added VNDK-core: vendor.lineage.power-V1-ndk_platform.so error: VNDK library list has been changed. Changing the VNDK library list is not allowed in API locked branches. Change-Id: I35dc9837740810278eb7e651471ec217ce065b5a
* Add AIDL lineage power HALdianlujitao2021-03-2111-0/+274
| | | | | | Based on the HIDL variant and redesigned the APIs. Change-Id: I259ec61084c988db9b1a44e3c49060c51b95786a
* Regenerate fastcharge HIDL blueprintLuK13372021-03-141-1/+1
| | | | Change-Id: I4d7f74d2191a94d46f89de6a764abcce6eeaf49a
* Import Motorola Health HALVachounet2021-02-244-0/+47
| | | | | | | * This support Mod battery levels along with mod efficiency mode. Change-Id: I4b4e88683ad6ce89ffc75a0aed951c31ec96fab4
* lineage/interfaces: add fastcharge HALFrancescodario Cuzzocrea2021-01-222-0/+35
| | | | | | | | | | | | | | | | * Several OEMs let the user decide whether to enable or disable quick charging technology when using a quickcharge charger. Samsung, for example, exposes a sysfs node to disable it at will, depending on what the user sets in battery settings UI. * Disabling fast charge may be useful for reducing the heat produced by the device while charging, or for extending the lifespan of the battery. * This commit introduces the fastcharge HAL to implement the possibility to disable fastcharge at will by the user for devices that support such feature. Change-Id: I7ce6862d42e7087808fa6e1f023d6bb1f106fb0e
* Add 'vendor.' prefix to a vendor HAL service nameJaekyun Seok2021-01-131-1/+1
| | | | | | | | | | | To prevent property name collisions between properties of system and vendor, 'vendor.' prefix must be added to a vendor HAL service name. You can see the details in http://go/treble-sysprop-compatibility. Test: succeeded building and tested on device Bug: 36796459 Change-Id: I4e8fbee791ec917a8f627a1366f4d44ec7e6febc
* Add interface info to .rc filesFelix2021-01-138-0/+8
| | | | | Signed-off-by: Felix <google@ix5.org> Change-Id: I6d70bbdb66c3dce280bf6908c3750316a6f6cf70
* touch: Add keys swap interfaceArian2021-01-072-0/+23
| | | | Change-Id: Iaff504e5a7e6eea5045d3ed8723ed7af9d4c8398
* trust: set system vintf fragment xml to frameworkMichael Benedict2021-01-071-1/+1
| | | | | | * fixes bootloop when building system side trust Change-Id: I39c6a8b7bcf63b8527ec9059cb86bfaeb4ca7a3d
* gnss: fix -Wreorder-init-listNick Desaulniers2021-01-051-14/+14
| | | | | | | | | | C++20 will require members in a designated initializer to be in order unlike C99. Bug: 139945549 Test: mm Change-Id: Ifdccde48c47c0495467f438002caf91cfdbd8091 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
* trust: Include VINTF fragmentsMichael Bestas2021-01-053-0/+24
| | | | Change-Id: I95bd460ad76d5cd9b3f5787a6267a8ade7408bef
* interfaces: camera: Implement lockYCbCr stub for Mapper 4.0Jason Macnak2020-11-271-0/+1
| | | | | | | | (Includes bpfmt changes from repo hook) Bug: b/146515640 Test: cts -m CtsCameraTestCases Change-Id: Ibd882db1883e0976c2baf95257e51c29de6e6853
* interfaces: camera: fix two potential null pointer usesGeorge Burgess IV2020-11-271-0/+2
| | | | | | | | | | | Caught by the static analyzer: hardware/interfaces/camera/device/1.0/default/CameraDevice.cpp:401:9: warning: Called C++ object pointer is null [clang-analyzer-core.CallAndMessage] Bug: None Test: TreeHugger Change-Id: Ia6d0a2ab4b4d04cfc171629c7dbf60ead181625d
* interfaces: Camera: add IAllocator/IMapper 4.0 to camera HIDLMarissa Wall2020-11-272-0/+2
| | | | | | | | | | Add support for gralloc 4.0 to camera interface. Bug: 136016160 Test: VtsHalCameraProviderV2_4TargetTest on a pixel with a local rev'd version of gralloc 4.0. Change-Id: I7f2e14c291fbdafcb68c1e9c6e94fed87d810191
* Revert "Add IWifiApIface@1.4 (configurable MAC address)"Arne Coucheron2020-11-232-43/+2
| | | | | | | | Breaks tethering in that clients are unable to connect to hotspot. This reverts commit 3e64379225f4e782ad59b47b3e0fb577ac55b665. Change-Id: Ia1bd604bfdf3e59119657a97e1c8a6151f495ebc
* Regenerate HIDL blueprintsLuK13372020-11-207-20/+7
| | | | Change-Id: I07d9570f24484eeaf05fd43ccc9bd5a56ef85c3f
* Add new lazy wifi HAL targetPeter Kalauskas2020-11-072-0/+40
| | | | | | | | | | Devices can use the lazy wifi HAL to allow it to exit when wifi is not in use. Test: Flash walleye_svelte-userdebug and check that HAL only runs when wifi is on. Bug: 123307146 Change-Id: If20120f902a7e102372666447b39cf9fdad7d352
* Fix NAN validate interface existenceNate Jiang2020-11-073-2/+7
| | | | | | | Bug: 156879576 Test: atest android.hardware.wifi@1.0-service-tests Change-Id: I8505e343f5b2ea5ea522cbb2ea344ff8914aea3d