Commit Graph

225 Commits

Author SHA1 Message Date
Anton Hansson 7f4ce9e075 sm8150-common: doze: Set LOCAL_PRIVATE_PLATFORM_APIS
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Bug: 73535841
Change-Id: I61299717ab2a6a1fd9a14dde7e1c7961388f722a
2019-07-07 02:51:21 +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 ada0ebf48a sm8150-common: Build bootctrl from source
Change-Id: I9568c625e4c5b526eb300f5c73de9892d0beb48d
2019-07-07 01:15:18 +02:00
LuK1337 39cf9619b3 sm8150-common: Reorder more soundfx effect blobs
Change-Id: I4f379a8c275b59a03801d7443369af4d0668322d
2019-07-07 01:12:33 +02:00
LuK1337 297c17f3a2 sm8150-common: Clean up NFC blobs list
Change-Id: Ic17534a1a2c2f8bcbda4f8e7c1aca2c774f4505a
2019-07-07 01:11:37 +02:00
LuK1337 04e44b9185 sm8150-common: Begin cleaning up proprietary files list
Change-Id: I17e8efc77cdddf4bf88342a5c73e1cb32fe554be
2019-07-07 00:36:39 +02:00
LuK1337 9de0703797 sm8150-common: Unpin dashd
Change-Id: I2cae90e512bff897af6411e346857b5a023ec579
2019-07-06 00:26:33 +02:00
LuK1337 a948a4e19a sm8150-common: Update NxpNfc stack
Change-Id: Ib7fd95e9dc8e81ab7620449339b18ec0fafb337c
2019-07-05 21:26:56 +02:00
LuK1337 175633c562 sm8150-common: Oops, that shouldn't have been there
Change-Id: Iedc85314cbfd4d86c1a3b31e2d8dd7e2f5de8cf3
2019-07-05 21:26:55 +02:00
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