Commit Graph

164 Commits

Author SHA1 Message Date
LuK1337 5669d23373 sm8150-common: overlay-lineage: Load OnePlusCameraHelper keyhandler class
Change-Id: Idd4f3dc973a3893683369c052ab2db339a43737d
2019-07-05 16:20:11 +02:00
LuK1337 c6fe0a637d Revert "sm8150-common: KeyHandler: handle camera motor key events"
This reverts commit 791f89485c.
2019-07-05 15:59:52 +02:00
Peter Cai 791f89485c
sm8150-common: KeyHandler: handle camera motor key events
* When the camera motor gets forced down, a KEY_F14 down/up sequence is
sent to userspace. We use this information to show a warning dialog to
the user and also stop any foreground app.
* For op7, which has no motorized camera whatsoever, this makes no
difference. It is not very convenient to have two separate KeyHandlers,
so let's just put them all in one place.
2019-07-05 19:38:18 +08:00
LuK1337 182487c2ad sm8150-common: Use device/qcom/sepolicy
Change-Id: I8064593caab0e057724fec74d072a63217282651
2019-07-04 20:54:02 +02:00
LuK1337 993287d22a sm8150-common: Set partition sizes
* These will allow us to use device/qcom/sepolicy
  in the near future.

Change-Id: I6aa8daac3d3e795e798c9cfa4a46d1a3246367cc
2019-07-04 20:42:44 +02:00
LuK1337 6db771311e sm8150-common: sensors: Use std::min() for calculating rgb_min
Change-Id: I77609ea08813e0c3ade54c5906acc4adb73473ad
2019-07-04 12:48:05 +02:00
LuK1337 1049d72271 sm8150-common: overlay-lineage: Sync config_needCustomFODView comment with gerrit
Change-Id: I3c698b660c2460607631b2a267d02e8ced81c89e
2019-07-04 12:23:10 +02:00
Peter Cai c2cae22e74
sm8150-common: sensors: calibrate ALS from /persist
* The factory calibration data of the ambient light sensor is stored in
/persist. Make use of this and calibrate the sensor readings so we at
least won't get those crazy values any more.
2019-07-04 17:53:29 +08:00
Peter Cai ccc92116a1
sm8150-common: overlay: set doze brightness to 27 2019-07-04 16:52:35 +08:00
LuK1337 8c248dc1c3 Revert "sm8150-common: Move hidl_package_root definition to root directory"
This reverts commit 1aba36563e.
2019-07-04 01:42:28 +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
LuK1337 1aba36563e sm8150-common: Move hidl_package_root definition to root directory
Change-Id: I1758e896f694ca66fa6ef41139a0dfec560a2f38
2019-07-03 17:41:19 +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
LuK1337 07b7b5aab7 sm8150-common: Sync config.fs with stock
Change-Id: Idb97ef88a05eba9e751457fd9fabf921dee385b1
2019-07-03 12:50:50 +02:00
Peter Cai d6a3275071
sm8150-common: extract-files: fix vendor path 2019-07-03 14:42:35 +08:00
Peter Cai 34c5710f28
Revert "sm8150-common: update gps config"
This reverts commit 4a00ea70c6.
2019-07-03 14:40:32 +08:00
Peter Cai 3bbed58d92
sm8150-common: overlay: remove com.qualcomm.location
* We don't use it at all.
2019-07-03 13:06:50 +08:00
LuK1337 6fb2a849f4 sm8150-common: fingerprint: Brackets should be here
Change-Id: I8093287b3f4e1b1d0c3deff384a1cb5e6e17dbff
2019-07-03 02:14:18 +02:00
LuK1337 755f75839f sm8150-common: fod: Sync with sdm845-common
Change-Id: I2f12dbe73e271cb1b12cf8a5a4f1e7a59e2e9bcc
2019-07-03 02:06:10 +02:00
LuK1337 0f1e326a5f sm8150-common: Get rid of framework_*.mk
Change-Id: I89db15b83564fc7fc0081afbc1b53b7a1caa46aa
2019-07-02 23:49:15 +02: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
LuK1337 a2891a4c46 sm8150-common: Update dt2w node
Change-Id: Iaa24fb587952952e30d51e4f5a738e39d26909bf
2019-07-02 22:59:03 +02:00
LuK1337 9f7ed6cc78 sm8150-common: fod: Implement handleAcquire, handleError()
Change-Id: Ica796fbd468e2df0ee666a0d0c6cbde628d6989f
2019-07-02 15:05:43 +02:00
LuK1337 e0bb872092 sm8150-common: fod: sdm845 -> msmnile
Change-Id: I813c616cebcd053b24e565f0fb5f710e1321acb8
2019-07-02 13:15:00 +02:00
LuK1337 5989333d36 sm8150-common: fod: Drop netlink related code
Change-Id: I90531b222b5f67845a0e8d240953cebacbb9860c
2019-07-02 12:39:48 +02:00
Peter Cai aa2a51329d
sm8150-common: fod: prettify soong variables 2019-07-02 18:28:12 +08: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
Peter Cai 37474082d5 sm8150-common: ueventd: add /vendor/firmware to firmware paths 2019-07-02 17:51:16 +08:00
LuK1337 38e2b50a99 sm8150-common: fod: Add back missing nullptr checks
Change-Id: I5077d989e21f788e15c70a8045def65444f3e615
2019-07-02 11:18:49 +02:00
LuK1337 6914430a3b sm8150-common: fod: Use proper way of handling fingerprint events
* This device uses netlink to notify userspace.

Change-Id: Ie727cdd175893b55d47b3b54940208a266c86505
2019-07-02 10:57:51 +02:00
Peter Cai f36ea1ade1
sm8150-common: fod: implement position / size interface
* pass the position and size as SOONG_CONFIG_ variables. see guacamole
tree for example.
2019-07-02 14:52:47 +08:00
LuK1337 f2aa152027 sm8150-common: overlay: Disable config_allowAutoBrightnessWhileDozing
Change-Id: I6b506e9cfa0dee9cb63c92fa66f68d4b7548c9db
2019-07-01 23:56:51 +02:00
Bruno Martins 0bd4970200 sm8150-common: overlay: Declare STATE_DOZE support
* This is required for Ambient Display to work properly.

Change-Id: Ibad86be4e1c43a221fc2224d0a8f8ca2c938a6c7
2019-07-01 23:56:48 +02:00
LuK1337 ceada27b00 sm8150-common: overlay: Set config_screenBrightnessDoze to 17
Change-Id: I4b20a380e712125821e330c3b4a6445928f02a83
2019-07-01 23:20:15 +02:00
LuK1337 57944fd7ba sm8150-common: overlay: Reset config_displayBlanksAfterDoze to default
Change-Id: Iea605534c06fc9186617bb25162ea408cd54db97
2019-07-01 23:19:54 +02:00
LuK1337 a1efcb2909 sm8150-common: overlay: Don't use openLegacy() for Snap
* This prevents opening front cam twice.

Change-Id: I6c1c3d8817cfa632379b91dc5a491507d9c9bd10
2019-07-01 22:35:12 +02:00
LuK1337 cc9c51c687 sm8150-common: overlay: Clean up
* Remove weird/wrong/missing options
* Sync copyright headers with appropriate files
* Sync comments

Change-Id: I9cfe6e331d7de3c96fc5813dda4983897c375fb5
2019-07-01 20:11:26 +02:00
LuK1337 1fee64762f sm8150-common: overlay: Enable Wifi Display related stuff
Change-Id: Ia74ab9137f6660a3f7f730a25d25b260ef2c893a
2019-07-01 19:30:44 +02:00
LuK1337 e2eef9fdf9 sm8150-common: overlay: Remove config_supportSystemNavigationKeys
* Yeah, I don't think we support that.

Change-Id: Ied4cb798887c21e4026f543e412a881e5417b004
2019-07-01 19:25:27 +02:00
Jesse Chan b5d39c0deb sm8150-common: overlay-lineage: Enable option for full screen aspect ratio
Change-Id: I2a1b2acc5ed97ccb6795dc371c2b3ac9cb4f9d03
2019-07-01 19:11:10 +02:00
LuK1337 c9a4fc263d sm8150-common: overlay-lineage: Set hardware (wake) keys
Change-Id: I19e056ae0f944837f8beea8c6832116aa0cb19c8
2019-07-01 19:10:32 +02:00
LuK1337 a114285174 sm8150-common: overlay-lineage: Add missing copyright header
Change-Id: If962069705c3ae191b56ec02e24985c13bd24fb6
2019-07-01 19:09:13 +02:00
LuK1337 9477c121f0 sm8150-common: Declare android XML namespace for nfcee_access.xml
Change-Id: I138d8e56bbc12f6c7d8b4c0050a6fb7f2dcb082f
2019-07-01 17:46:41 +02:00
LuK1337 e2f0d8c5af sm8150-common: Remove unnecessary system OnePlus HIDL libs
Change-Id: I48f299d77ce6788a63bf612846b3d028467b2c93
2019-07-01 17:46:39 +02: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 d387574dfc sm8150-common: Sync extract-files.sh with sdm845-common
Change-Id: I4d8097ee18939b18970508702eb2177d2d4e574d
2019-07-01 15:31:18 +02:00
LuK1337 9bdc2d9b24 sm8150-common: Remove unnecessary empty line
Change-Id: Iaecebcc6eb231205249f893c2704bdb0c2dba147
2019-07-01 15:23:31 +02:00
LuK1337 9097849d49 sm8150-common: Sort proprietart-files.txt
Change-Id: I23abc5ab292ada961fffc350a72339b8caa9d7cd
2019-07-01 15:23:08 +02:00