Commit Graph

37 Commits

Author SHA1 Message Date
LuK1337 f63996e4ec sm8150-common: Implement custom Vibrator 1.2 HAL
* This HAL implements interface needed for
  amplitude control and use of vibrator effects:
  - click
  - double click
  - tick
  - heavy click
  - pop
  - thud
* The implementation was inspired by darkobas's
  OmniROM HAL but it was totally rewritten by me.

Change-Id: I8574c5676bfb8711222e864394d77dcd7042956f
2019-08-03 19:17:56 +02:00
LuK1337 74200ccb93 sm8150-common: Build most of display HAL stack from source
* TODO: figure out why oss hwcomposer and sdmcore does not work.

Change-Id: I8a276230b28f48ad38f4bd92d56742850d71aae1
2019-07-29 19:34:57 +02:00
LuK1337 f9bd1913b8 sm8150-common: Switch to vendor.lineage.biometrics.fingerprint.inscreen permission
Change-Id: I0c71ea28544c254b30782776f8c7b903f53180e8
2019-07-24 00:03:00 +02:00
LuK1337 3638c19f67 sm8150-common: Build some soundfx/audio related stuff from source
Change-Id: I552c9935f7fc9d0fb65322ba25537f42f68520e0
2019-07-21 14:53:16 +02:00
LuK1337 64f5ce4d6e sm8150-common: Build some OnePlus HIDL interfaces from source
Change-Id: If02fe5ce09d1c5ab82bd08b4510150308580a2d1
2019-07-21 14:18:53 +02:00
LuK1337 53801c075b sm8150-common: Build vendor.display.config@1.7.vendor from source
Change-Id: I43e3321a6e1617ffb352ec9d6fab265271049c88
2019-07-21 13:13:53 +02:00
LuK1337 d64d5bad98 sm8150-common: Build OMX from source
Change-Id: Ib9632b7d9dbf405b8b72ac65781f4991796fc55e
2019-07-21 12:38:19 +02:00
Christian Oder e57d870d40 sm8150-common: Add basic permission file for HotwordEnrollment
Change-Id: I2986ba3599fe65a8da27649d98d70cd548257aa8
2019-07-12 00:53:42 +02:00
LuK1337 ebaa0f01ad sm8150-common: Drop bt-mac-generator
* Our bluetooth HAL is able to read mac address
  from /data without any additional help.

Change-Id: I3ba9ad48b8834cd4e67ef05266a46eef283de613
2019-07-08 14:37:01 +02:00
LuK1337 7a50301ba7 sm8150-common: Finish up cleaning proprietary-files.txt
Change-Id: I808347beef355a003e40ca9b0a492b0ad244cebd
2019-07-07 18:49:18 +02:00
LuK1337 bcea65afbe sm8150-common: Copy seccomp from device tree
Change-Id: I75df9015352a7fceff62803d5f50a82b3d11e1a0
2019-07-07 14:25:35 +02:00
LuK1337 9e6cfe3e1d sm8150-common: Copy sound trigger mixer paths from device tree
Change-Id: If6553e6c39efde51b37fd6c7f50075364d865e8c
2019-07-07 14:22:16 +02:00
LuK1337 9e7c7b7fef sm8150-common: Copy media_codecs_google_video_le from fw/av
Change-Id: Ic88c7946c089b4f055393e44b97268a79885b113
2019-07-07 14:17:18 +02:00
Peter Cai e5e3d60456
sm8150-common: remove non-existent permission xml 2019-07-07 15:09:00 +08:00
LuK1337 09d1c68522 sm8150-common: Remove bunch of prebuilt android.hardware blobs
Change-Id: I52cf2adee23e143ffe24298371a754b0868bd94a
2019-07-07 03:23:02 +02:00
LuK1337 e8b65af949 sm8150-common: Add OnePlusDoze app for pickup sensor handling
* Based off android_device_oneplus_oneplus3 doze app but
  with proximity related features stripped out and updated
  pickup sensor name.

Change-Id: I9f81b153948069cd4370c75817f12e91f6869e1d
2019-07-07 02:51:21 +02:00
LuK1337 fb29f1a031 sm8150-common: Use qti_whitelist.xml and privapp-permissions-qti.xml from vendor
Change-Id: I4aa3e446293cf9f39699492d80796776d85b7bd5
2019-07-07 01:18:13 +02:00
LuK1337 433fb94884 sm8150-common: Copy keylayouts to vendor
Change-Id: I887d81bc2312419f7bc0acb475123b3cfdce9506
2019-07-07 01:17:04 +02:00
LuK1337 297c17f3a2 sm8150-common: Clean up NFC blobs list
Change-Id: Ic17534a1a2c2f8bcbda4f8e7c1aca2c774f4505a
2019-07-07 01:11:37 +02:00
LuK1337 ff02df1d2a sm8150-common: Add recovery support
Change-Id: Id44d9793e0ea5fd1359f661ec6a9a1784514dbd2
2019-07-04 01:42:28 +02:00
LuK1337 37551a6817 sm8150-common: Clean up device layout
Change-Id: Icee155f555f2280092fe7d82c216a47366cfb434
2019-07-04 01:42:26 +02:00
Peter Cai 29ceb93032
sm8150-common: use stock blob GNSS HAL
* It seems that the stock GNSS blobs has some modified header files,
causing incompatibility with the OSS GNSS HAL. For now, let's just
switch to stock ones.
2019-07-03 21:50:38 +08:00
Danny Baumann 2f76c010f5 sm8150-common: Add touchscreen gestures HIDL HAL
Change-Id: I02380e387f01fe20f984d2e6daa095f2056c03f9
2019-07-02 23:49:15 +02:00
LuK1337 6c38da437e sm8150-common: Drop custom touchpanel keylayout
* No longer needed.

Change-Id: Idcd074fe6f61221821877087687a12b4ea2c62f5
2019-07-02 23:05:23 +02:00
Daniel Hillenbrand 255563ba50 sm8150-common: read wlan / bt mac addresses from NV
* OnePlus does not use wlan_mac.bin to store the MAC addresses, but
qcacld expects this file. Instead, OP stores the MAC in oemnvitems,
which can be retrieved from `/data/vendor/oemnvitems`.
* We read the correct MAC addresses from these files, and then store it
properly to the paths that qcacld expects.
* This was kanged from msm8998-common
(6f8e20feb8 (diff-db7000ec192d00397a3c4523bcc899d4))
2019-07-02 17:51:16 +08:00
Artem Borisov 035687f7db sm8150-common: Add QCOM's WFD implementation
* Sadly, out-of-the-box Miracast support was killed in P, so
  we need this to keep Wi-Fi display feature working.
* Additionally libwfdnative has been modified to load
  libhidlbase.so instead of android.hidl.base@1.0.so using
  following command:
    sed -i 's/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/' proprietary/lib64/libwfdnative.so proprietary/lib/libwfdnative.so

Change-Id: Id680d918b64c0e3733251db45992ec477b6fbdfb
2019-07-01 15:53:57 +02:00
LuK1337 9bdc2d9b24 sm8150-common: Remove unnecessary empty line
Change-Id: Iaecebcc6eb231205249f893c2704bdb0c2dba147
2019-07-01 15:23:31 +02:00
LuK1337 a65885e9b1 sm8150-common: Convert tabs to spaces in common.mk × vendor_props.mk
Change-Id: Ib4b69a107e2e85971454121caeee0194a11b0007
2019-07-01 13:50:10 +02:00
Peter Cai 81a9dc6a9e
[WIP] sm8150-common: enable LiveDisplay HAL
* but it's not working.
2019-06-29 12:51:59 +08:00
Peter Cai b38c4814dd
sm8150-common: fix double-tap-to-wake
* Added a kernel interface at `/proc/touchpanel/gesture_dt2w` for easier
interaction with power HAL.
* Add parameter to OSS power HAL to use this interface
* Added keycode for touchpanel to wake up the device
* TODO: Maybe add support for more touchscreen gestures?
2019-06-28 20:14:29 +08:00
Peter Cai 9c7485da81
sm8150-common: import sensors multihal
* with a full vendor image, we can modify the sensors hal as we want. We
can replace the reported sensor type directly from HAL, instead of
relying on a framework patch.
2019-06-25 19:17:37 +08:00
Peter Cai 6441c01537
sm8150-common: kang fingerprint hal wrapper from violet
* OnePlus / OnePlus 7 Pro has two possible fingerprint vendors: silead
and goodix. Try loading one of them, and only use the one that
succeeded.
2019-06-25 18:16:37 +08:00
Peter Cai 26f51de8cf
sm8150-common: use blob wifi hals
* Somehow the OSS HAL always fails with timeout awaiting for driver
ready. The `wlan0` interface just does not show up with OSS HAL. For
now, let's just live with the stock ones..
2019-06-25 16:27:21 +08:00
Peter Cai cf2c5b0dc5
sm8150-common: build radio hal 2019-06-25 10:39:56 +08:00
Peter Cai 19f1dc77d9
sm8150-common: remove usb gadget hal 2019-06-25 07:53:16 +08:00
Peter Cai 382d8fee8d
[WIP, DO NOT MERGE] sm8150-common: build vendor image
* Initial full vendor building. Do not merge, does not boot.
2019-06-24 21:32:23 +08:00
Peter Cai 529ec479f0
sm8150-common: commonize
* guacamole and guacamoleb share a lot of common configurations. Put
them all in a common tree.
2019-06-24 12:12:35 +08:00