Commit Graph

750 Commits

Author SHA1 Message Date
Martin Bouchet 5d5a569ee6 klte-common: libril: fix network operator search
* For search, the number of strings returned for
  RIL_REQUEST_QUERY_AVAILABLE_NETWORKS should be defined in the system
  prop ro.ril.telephony.qan_resp_strings

Change-Id: Ie5bb8ba80c5ac93b7502da3b1bb3d2b4404ecd5e
2018-01-19 16:07:35 -07:00
Kevin F. Haggerty 345ceb6a2c klte-common: libril: Fix SMS on certain variants
* Samsung added an int to the end of the RIL_SMS_Response
  struct in some of the variants (like vzw) but not all
* The presence of this field was discovered by examining
  the stock RIL.java, which conditionally read an extra
  int from the parcel, based on the device specific
  CscFeature_RIL_SmsErrorClassRetry feature
* This causes SMS messages to show as "failed to send"
  in the app, when they actually suceeded in sending
* Allow Samsung's custom struct and AOSP's to fix it

* Forward port to ril-caf on lineage-15.1

Change-Id: I6b3e545c2c42ab2de2ac11e93dfdf9546248080a
2018-01-19 16:07:35 -07:00
solk2 613d3fdea2 klte-common: libril: Fix RIL_Call structure
* Samsung added call_id as the second byte of index
* Split index to avoid a workaround in RIL subclass
* Add Samsung call detail fields, reorganize to fix
  incorrect structure, to avoid hacks in RIL class

Change-Id: I023228c05165c0cef9b698846a96484a6d318092
2018-01-19 16:07:35 -07:00
Paul Keith 1bafc74e01 [DO NOT MERGE] klte-common: libril: Add Samsung changes
* Changes in ril.cpp based off of hardware/samsung/libril

[haggertk]: Forward port to ril-caf on lineage-15.1 by
            remapping all the samsung unsol responses
            to NULL with the old response in a comment,
            and all the samsung requests to NULL with
            the old request mapping in a comment.
            This is safe because nothing in AOSP knows
            about any of Samsung's requests/responses

***** SIGNAL STRENGTH HACKS NOT PORTED YET *****

Change-Id: I59bad9925d141e6cefbc24d4eefdc0c79017852a
2018-01-19 16:07:35 -07:00
Kevin F. Haggerty bcc9a6c694 [DO NOT MERGE] klte-common: import libril from hardware/ril-caf
* Branch LineageOS/android_hardware_ril@55fb07ad (staging/lineage-15.1-caf)
  + https://review.lineageos.org/#/c/199884/

Change-Id: Ic2095f4da30a599cf25a51e286a5b9ce9096dc82
2018-01-19 16:07:35 -07:00
Kevin F. Haggerty 09d3880491 klte-common: Update DSDS init script handling
* Importing this in init.qcom.rc, especially when not all builds
  have it is hacky. We'll have those devices install the script
  into vendor/etc/init and let init handle it automatically, just
  like the primary rild.rc script.
* Update the package name to align with the new name of the script.

Change-Id: I8eaf76c5c4f0aa590ebb1a396afa837597ebc26d
2018-01-19 21:41:18 +00:00
Paul Keith fb7006f016 klte-common: power: Update power hal extension for new qti hal
* And fix the LOG_TAG while we're at it

Change-Id: I81678e10385fef4c6881c17813f8ffa89caa2629
2018-01-19 20:08:28 +00:00
Paul Keith 26ec92cc67 klte-common: Cleanup symlink code
* Remove compat symlink migration
* Fix comment about symlinking

Change-Id: Id92408bdcbdbe7f8331563750ba645445138ff80
2018-01-19 20:05:03 +00:00
Paul Keith f1fa05ecd0 klte-common: Fix nfcee_access.xml copying
* The Nfc package still expects this in /etc

Change-Id: Id8e9714f96ad1ff145f90838be8e2670a26eb342
2018-01-18 22:07:35 +01:00
Kevin F. Haggerty b01f551ffa klte-common: Drop GPS HAL source
* This has moved to msm8974-common

Change-Id: Ie6e09145d26ad7e32e073fd64ec497c7bb72a9f4
2018-01-18 11:56:24 +00:00
Kevin F. Haggerty 48aebf6ac7 klte-common: Drop GPS configs/PRODUCT_PACKAGES/blobs
* These have moved to msm8974-common

Change-Id: Ib4cd06549a862f098da692b3a9bd111fd9e9eab7
2018-01-18 04:54:37 -07:00
Kevin F. Haggerty 22b58b4cc9 klte-common: Drop GPS overlays
* These have moved to msm8974-common

Change-Id: Idd45ab56f93b6391e6111933b2cf551910acd6b0
2018-01-18 04:53:43 -07:00
Kevin F. Haggerty a4695ab180 Revert "klte-common: Add bootdevice to kernel cmdline"
This reverts commit 6daa361afe.

* We're out of cmdline space and we don't even make use of the symlink
  that this used to automatically create.
* If we ever want to use the bootdevice symlink, just create it
  explicitly (without prop) in init.qcom.rc

Change-Id: I1c45c3ed3605f4020d824be2775639c04ba8b60d
2018-01-16 00:21:55 -07:00
Kevin F. Haggerty cf10d879d0 klte-common: Drop the hacky deferred initcalls trigger script
* Yes, I could do the sepolicy that lets this run correctly, but why?
  Even if the phone takes 0.5s longer to boot, will you really even
  notice? We are going to disable the deferred initcalls in the
  kernel and let it do its thing the more "normal" way.

Change-Id: I2a9c50f12f4309923f3cdf6e646cad8edf717560
2018-01-15 21:12:19 +00:00
Kevin F. Haggerty 18cd7a3e13 klte-common: Move charger service into the charger domain
* O split charger and healthd into different processes, with healthd
  running only in an full Android environment and charger running in
  charge-only and recovery. It also updated the healthd sepolicy and
  created a separate charger one.
* We've been using the charger symlink for ages, but the healthd
  domain is no longer appropriate.
* See for details:
  LineageOS/android_system_sepolicy@dc08245c
  LineageOS/android_system_core@526f8cf3

Change-Id: I6f528ffdcb7b14f9a51fd4246770ceecf8fb968b
2018-01-14 22:15:04 +00:00
Kevin F. Haggerty fb15556b51 klte-common: Kill blur overlay
* Not ported to lineage-15.x (yet!?!?)

Change-Id: I741dc74d1e374edd8f1cf6a7fdddd9fa6c4f7fdf
2018-01-14 11:55:16 +00:00
Bruno Martins db7b5ef06a klte-common: overlay: Update for moved hardware key overlays
* These have now been moved to the SDK

Change-Id: Iff6c01ac3313928b79e5575064dce6070c23c114
2018-01-13 01:34:14 -07:00
Kevin F. Haggerty e692c8cfed klte-common: Fragment NFC support based on chip type
* Configs and board/product makefiles are split into discrete
  directories based on NFC chip. These chain to truly common
  makefiles that add permissions and shared PRODUCT_PACKAGES.
* Relocate libpn547_fw under the nfc/pn547 directory.

Change-Id: Ie9e87fc0566eac76fc411b3e5669564c5fa54123
2018-01-08 06:40:16 +00:00
Luca Stefani b75813297e klte-common: fstab: Update ZRAM comp streams flag
* AOSP now support it as max_comp_streams

Change-Id: I094f1e15f386cb7aa7909df2f7c91b93148eb840
2018-01-08 05:50:58 +00:00
Bruno Martins acf40073dd klte-common: Enable radio service 1.1
Change-Id: Ie3cb5f7075c66f6870961415b1096ca6eeb50d0e
2018-01-05 18:47:35 +00:00
Kevin F. Haggerty cbbf8571ad klte-common: Chain extract-files and setup-makefiles to msm8974-common
* This is necessary to fully-execute both of these processes

Change-Id: I6f7a5542541ae30b999e617fe84aa6c0e9cab563
2018-01-02 13:58:27 +00:00
Kevin F. Haggerty 507b5e013d klte-common: Drop shared blobs from proprietary files list
* These come from msm8974-common now

Change-Id: If14f618c9dad2c2bb19b0a806f85fb19b2b97318
2018-01-02 13:57:58 +00:00
Kevin F. Haggerty 7915dc24f9 klte-common: Enable single/dual SIM support with fragments
* klte-common has to support both single- and dual-SIM devices, and
  there are multiple devices of each kind. It makes most sense to
  provide fragments in the -common tree that these devices can inherit
  to configure HIDL manifest, system properties, audio support, and
  any additional services necessary for MSIM support.

Change-Id: Ic3b04fa500615c33cef9b0f0a999209150969123
2017-12-30 15:07:32 -07:00
Christopher R. Palmer 1dbfdd79c5 klte-common: gps: Unlock the GPS
[haggertk]:
 * During bring-up of O, GPS was exhibiting different behavior from
   N -- an appropriate number of satellites would immediately lock,
   but a fix would not resolve for 30-90 seconds. Digging up this
   change from the L-era allows GPS to resolve a fix in a nominal
   amount of time.

Change-Id: If9fd67483fedee915d46f7b9d2a7e0851400de3c
2017-12-30 04:41:02 +00:00
Kevin F. Haggerty 6a8a736148 klte-common: Move common things to msm8974-common
* All of these are/can/will be shared by this, hlte, lt03lte for
  O and beyond

Change-Id: I096948538dcf14d6070bb6cc2102e7b7586fd0c7
2017-12-29 14:45:54 -07:00
Paul Keith f999621c0c klte-common: Split out fingerprint support
* kltesprsports doesn't have a fingerprint scanner, so variants
  supporting one can include fingerprint/board.mk in BoardConfig.mk,
  and fingerprint/product.mk in device.mk to avoid polluting the
  kltesprsports build with fingerprint-related items.

Change-Id: I2fb1652d771740d05c3ec083054960fbe326bea4
2017-12-28 20:19:21 -07:00
Kevin F. Haggerty 86e804dce2 klte-common: Migrate to COMMON_PATH
* Replace the LOCAL_PATH instances with a variable not prone to
  getting stomped
* Replace all expanded values with the variable

Change-Id: I91ef536c038fb38d250633bfdad82c2a6537c1da
2017-12-28 20:19:20 -07:00
Kevin F. Haggerty 207093e3bc klte-common: Move macloader to vendor partition
Change-Id: Ie9de86f6bea652dc64c254148f3bfbfcc33b42b9
2017-12-26 21:03:03 -07:00
Ethan Chen 0fbb91945a klte-common: Replace QCOM group identifiers with oem_29XX
* Currently, config.fs doesn't give the ability to add AIDs to Android
   init such that they can actually be used in the init scripts.
 * Replace all instances of qcom_diag, rfs and rfs_shared with the
   appropriate IDs (2950, 2951, 2952).

Change-Id: Ie983fd582d4f81c17d730df17363417f87249837
2017-12-26 21:03:03 -07:00
Ritesh Harjani c4a708a54f klte-common: Add AID_QCOM_DIAG, AID_RFS, and AID_RFS_SHARED to config.fs
Change-Id: I9da576900ed29a2633bb997dbbea4565b489a418
2017-12-26 21:02:59 -07:00
Daniel Rosenberg 2da648e9d8 klte-common: Sdcardfs is now the default. Remove unnecessary prop.
Test: Boot device. Ensure device boots using sdcardfs
Change-Id: I70cdfdf1947f62bd2e1b2188dc3dfb4cafbef7fb
2017-12-26 21:02:59 -07:00
Kevin F. Haggerty f3945ec6cf klte-common: wifi: Update wpa/p2p overlay configs
Change-Id: Ib3c797870d27da563d340f931603dfe744011123
2017-12-26 21:02:59 -07:00
Kevin F. Haggerty 3c479a24ec klte-common: proprietary-files: Update Widevine blob
* Google Package Version: angler OPR6.170623.017 factory image

Change-Id: I7d86754f725a29f586605002172cc00755c80fd1
2017-12-26 21:02:59 -07:00
Kevin F. Haggerty 992851037e klte-common: Move partition sizes to -common
* All of the variants are close enough to each other that
  carrying these in the device-specific trees doesn't
  add much.
* Sizes picked by selecting the smallest value from each
  of the device-specific trees for each variable.

Change-Id: Ibe024ec857db971ff1522d05cf55e8492816b7ec
2017-12-26 16:35:48 -07:00
Rashed Abdel-Tawab f0a4e31300 klte-common: Update for early-mounted system partition
* This removes /system entry from fstab, since this partition
   is now early-mounted and the fstab entry is specified in device tree.

 * At the same time, also include a fully populated fstab, in order to avoid
   build breakage while generating recovery updater scripts.

Change-Id: I8e558458b984e97a45a920c3751a6b7c3f2ebc5c
2017-12-26 14:24:56 -07:00
Kevin F. Haggerty 0e74d98093 klte-common: overlay: remove config_safeModeEnabledVibePattern
* This is gone now.
* See LineageOS/android_frameworks_base@33d6c08a for details

Change-Id: I66e6b175487222f99998ef559f125515ea7481f8
2017-12-26 14:22:55 -07:00
Kevin F. Haggerty 0ccdd170ac klte-common: cmhw: Kill local addition to BOARD_HARDWARE_CLASS
* cmhw is dead, but we don't actually carry any local classes. Just
  stop appending to the variable altogether

Change-Id: I075ad79ed99b0b85a21af594db0036136c984542
2017-12-26 14:20:52 -07:00
Bruno Martins f2790812bb klte-common: Fixup aptX codec support for Oreo
* This now matches the expected library name for Oreo and the scheduler
   library is removed at the same time because it's not needed

Change-Id: Iec80b9fd871f82d4c34d54f70360eed77559f52f
2017-12-26 13:45:45 -07:00
Bruno Martins ad1b0c1098 klte-common: Add compatiblity matrix
Change-Id: Ibf6053f1a7e9df5384664379772cb8757e897622
2017-12-26 13:45:45 -07:00
Bruno Martins fb460c7500 klte-common: Declare camera HAL instance as legacy
Change-Id: I02ea93f480658282ddfb10d8a877a7c721a7e3d3
2017-12-26 13:45:45 -07:00
Rashed Abdel-Tawab c2eb30c314 klte-common: CameraWrapper: Include nativebase headers
* This is required as of android-8.0.0_r23

Change-Id: Ic76cfff3a5bfe46c0ea6974e1ffce9fb7ed069c6
2017-12-26 13:45:45 -07:00
Kevin F. Haggerty 44c978a05d klte-common: Move thermal-engine configs to vendor/
* Auto-hex thermal-engine on extract

Change-Id: I373b8a3933a3e5ce58783c8914f4d85f35ad36bf
2017-12-26 13:45:38 -07:00
Kevin F. Haggerty 0b73a22c27 klte-common: Move proprietary binaries to vendor
Change-Id: If8f69a66f6168869e2a7578110d1200510b73ddd
2017-12-24 10:31:18 -07:00
Paul Keith 4821531912 klte-common: Use opensource libril and rild
Change-Id: I2f68ce9e37806edd90727bc3ddedc173ef666967
2017-12-24 10:31:18 -07:00
Bruno Martins 52569e9c1e klte-common: Include DRM service
Change-Id: I4999809c288c84d6e9c39383ff76f9ee85a97cae
2017-12-23 10:41:09 -07:00
Adrian DC 924baf9ba2 klte-common: Only use AUDIO_FORMAT_PCM_16_BIT in policy configuration
* The updated audio HAL sources (for instance 8.0.0_r33) use
   the formats directly through the pcm_format_from_audio_format
   inline functions to resolve and validate provided formats,
   however in our case the formats include values outside
   of the allowed AUDIO_FORMAT_PCM_... values and fail

 * Crash situation was happening upon 3.5 Jack plug only

Change-Id: I4b613c25ea7fd202a434c18c2fdd06e55a57c456
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-12-23 10:41:02 -07:00
D. Andrei Măceș 739a62ccb2 klte-common: bluetooth: Add custom vendor configuration fixes
The current HIDL implementation needs BT_WAKE_VIA_PROC_NOTIFY_DEASSERT,
and PROC_BTWRITE_TIMER_TIMEOUT_MS = 0, same as angler.

Change-Id: I1b5d12788ab2689b3fb1779957d263c804def590
2017-12-23 10:09:49 -07:00
Pawin Vongmasa a9add7876d klte-common: Disable Treble OMX by default.
Test: Manual use of Camera, Movies, Photos and YouTube apps.

Test: With CtsMediaTestCases.apk installed,
adb shell am instrument -e size small -w
'android.media.cts/android.support.test.runner.AndroidJUnitRunner'

Bug: 31399200
Change-Id: Ib2d43fcfc7bbd00d47cf81a98b415d2be2e0e12a
2017-12-23 10:03:39 -07:00
Kevin F. Haggerty 405894f9eb klte-common: Add configstore to manifest
Change-Id: Ie2e8947f49f1e96a087f0cbf51f3b6ee98ff024a
2017-12-23 09:59:12 -07:00
Kevin F. Haggerty 90ddf6e3d8 klte-common: Add power HAL to manifest
Change-Id: Ie1241e8d9bd441d67731f8abedf4e8b9bf4077ad
2017-12-23 09:57:45 -07:00