Commit Graph

228 Commits

Author SHA1 Message Date
Kevin F. Haggerty
24d70a1aec Revert "msm8974-common: Use QTI HIDL power HAL"
This reverts commit e955914336.

* As it turns out, the brand new HIDL power HAL isn't ready, at
  least not for legacy devices like msm8974. Symptoms were that
  after waking from sleep, cores 1-3 are not brought back online
  consistently.
* Let's go back to the old thing, at least for now.

Change-Id: Ica2ddbeb42635662167efe0b48f0fe4051591b26
2018-02-06 00:32:32 +00:00
Kevin F. Haggerty
68b75f9105 msm8974-common: sepolicy: Import common sepolicy from klte-common
* The bulk of the device family policy was common and applicable
  to all Samsung msm8974-devices. Move that common stuff here to
  ease maintenance.

Change-Id: I86516adfb1b9c55a6959a7faf4ee424a4b3385c8
2018-02-03 15:07:03 -07:00
Michael Bestas
635b864067 msm8974-common: Move permissions to vendor
Change-Id: Idf4022e03ba376f7971d02be973444e70dbc4521
2018-02-03 15:07:03 -07:00
Paul Keith
f0aad1c584 msm8974: Enable full dex preopt
* So, uh, it turns out we need to disable booting with all
  but 1 CPU core to fix CDMA RIL on klte (and hlte?), so
  let's enable full dex preopt so that we don't need to
  dex opt after system updates

Change-Id: I6fe57f9dcd1da8245eebd51d61055d6de7ffe6cd
2018-01-26 07:55:57 -07:00
Ritesh Harjani
7184df9837 msm8974-common: Add AID_QCOM_DIAG, AID_RFS, and AID_RFS_SHARED to config.fs
Change-Id: I9da576900ed29a2633bb997dbbea4565b489a418
2018-01-26 06:32:36 -07:00
Ziyan
79060a6bb2 msm8974-common: ril: add squash of OSS libsecnativefeature
msm8974-common: ril: add open-sourced libsecnativefeature, used by libsec-ril

 Change-Id: I2f487db23b31c63ba919863f393ca37cc9a81191

 libsecnativefeature: fix build with clang

 Change-Id: Ibda3234af2b1184e094913e35cb919a75f972c87

 msm8974-common: ril: Move device dependent modules to /vendor

 Change-Id: Ia2f4835e3325f3d8d53db26fb632b3b9eedcc382

Change-Id: Iaaa06fa527cedce6609a95b21d787c13dda6a30a
2018-01-23 06:42:56 -07:00
Artem Borisov
9cec898d4d msm8974-common: Use 64-bit binder API
AOSP and mainline are going towards removing old 32-bit binder API support.
64-bit binder is 100% compatible with 32-bit kernel and userspace,
so there is no reason for us to keep using the old solution anymore.
We've switched to new API in our kernel, same thing should be applied to our userspace.

Change-Id: I3c95bd7fbd023c5cb08e856b3a3889c03228e843
2018-01-20 06:47:06 +00:00
Paul Keith
e955914336 msm8974-common: Use QTI HIDL power HAL
* Let's use the new shiny binderized HAL in hardware/qcom/power

Change-Id: I2abf4ca9b0b5a0cb031f12c400a1159962f5e94c
2018-01-19 20:08:00 +00:00
Kevin F. Haggerty
04e9f0c1e4 msm8974-common: Build the GPS HAL and copy config files
Change-Id: I86fb9fff481b7bcf926b1ddce4f79fe0d87325a6
2018-01-18 04:37:27 -07:00
Kevin F. Haggerty
6912a15c55 msm8974-common: proprietary-files: Add GPS blobs
* OnePlus bacon - lineage-14.1-20170807-nightly-bacon-signed.zip

Change-Id: I880fb6f05310ac0d65489819148749f5479c6ceb
2018-01-18 04:37:20 -07:00
Kevin F. Haggerty
10320f7968 msm8974-common: Import GPS overlays
* Squash of:
  klte-common: Move to commonized, overlay-based GPS config
  Change-Id: I9a66eb156df69340d35c139d20f835fa8693a716

  klte-common: fw/b overlay: Change GPS capabilities bitmask
  Change-Id: I2b060a11795a97889e96b3d7de26b0ed28392841

  klte-common: Use https for XTRA download
  Change-Id: Ie16206b51e3eef729851fd5c8e3defd768581771

  klte-common: Refactor common gps configurations into gps.conf
  Change-Id: I888ef88c249cb09404336e7273088eeea4fc7d3d

  klte-common: Add GPS configuration for China
  Change-Id: I781a251bb20885c1a9e545b6678018b64ddce760

Change-Id: I2eabf59aaafec19ba5a03a7337dd5c76a7a5a031
2018-01-18 04:37:20 -07:00
Kevin F. Haggerty
772578a15a msm8974-common: gps: Import configs from klte-common
Change-Id: I92fbf38ecac658fa69191b89890b79e82e05acec
2018-01-18 04:37:20 -07:00
Christopher R. Palmer
c911560316 msm8974-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
2018-01-18 04:37:20 -07:00
Diego Wilson
f5411b66d1 msm8974-common: gps: Move device dependent modules to /vendor
Change-Id: I8229a6e4a9512a03cbc6c9522bb1dc0ce988d1c9
2018-01-18 04:37:20 -07:00
Kevin Tang
581ea51a62 msm8974-common: gps: LOC logging macro changes
The current logging macro always uses LOGE, which is
confusing to external developer looking at our logs.
Also changed LOC_LOGx definition to follow the same
syntax as that of LOC_LOGX.

Bug: 29499503

Change-Id: I803233a9d0b241bf9aeb2ee0d4bd2e7cc52ed75b
CRs-Fixed: 1113702
2018-01-18 04:37:20 -07:00
David Ng
b4741134f2 msm8974-common: gps: Add explicit liblog dependency
Explicitly add liblog as dependency for modules that use Android
logging.  Also remove obsolete build flag.

Change-Id: I91a458b44ff34c91a8f6875f5c3e931f620c613a
2018-01-18 04:37:20 -07:00
Saurabh Srivastava
08edaade5f msm8974-common: gps: Enabling CLANG compilation and fixing all resulting errors
Removing statement to set LOCAL_CLANG flag explicity to
true. It will be true by default.

Change-Id: I2eaba5a89e64088e3383b962dceaaa7e975e997a
CRs-Fixed: 989476
2018-01-18 04:37:20 -07:00
Michael Bestas
0551f61a2a msm8974-common: gps: Hack HAL for N
* Replace GnssSvStatus with HaxxSvStatus

Change-Id: Ib96e5caff7db7cf2a7bd1cd5d9ef147c9c4b70d7
2018-01-18 04:37:20 -07:00
Scott Mertz
f066fa2e3a msm8974-common: gps: Fix build for OSS builds
gps: Correct forward declaration in proprietary definitions

Fix gps runtime error

The qcom prebuilt binary relies on FlpExtLocation_s,
so we cannot change it to FlpExtLocation.
This patch fixes it.

gps: fix remove trailing space

In setXtraUserAgent,
size_t is unsigned and never being negative.
Will cause segmentation fault, if string is all space.

Change-Id: I1cf1f956943b0739640afe909954ade6921e28a1
2018-01-18 04:37:20 -07:00
Kevin F. Haggerty
4dd7fbc1e4 msm8974-common: gps: Remove etc/Android.mk
* We don't need the target, we'll PRODUCT_COPY_FILES like sane people

Change-Id: I7f4a79d95791d974cb4b6642ef3ba76fa93a5172
2018-01-18 04:37:20 -07:00
Michael Bestas
1a49af68a6 msm8974-common: gps: Cleanup makefiles and remove useless files
Change-Id: I66848d2e220817ae61642d7211f7eabf5e4efcea
2018-01-18 04:37:20 -07:00
Kevin F. Haggerty
9cf367bddf msm8974-common: gps: Delete libloc_api-rpc
* This isn't needed

Change-Id: I7b4b33256fac5ae71b2e556ed04f0069d1aa9f39
2018-01-18 04:37:20 -07:00
Kevin F. Haggerty
29b6ae6ad8 msm8974-common: gps: Add top-level Android.mk
Change-Id: I04b2ab8c5f348dcfce23cb49b0dfeb1d3e335641
2018-01-18 04:37:20 -07:00
Kevin F. Haggerty
9433f7ab16 msm8974-common: gps: Import CAF HAL
* https://source.codeaurora.org/quic/la/platform/hardware/qcom/gps
* Tag: LA.BF.1.1.3_rb1.13

Change-Id: Ied5197b459ccc51c8b7c8288a8b1d4a6839685e4
2018-01-18 04:37:20 -07:00
Kevin F. Haggerty
472c04c4d1 msm8974-common: manifest: Correct wifi HAL version
* 1.1 accidentally slipped in here while commonizing

Change-Id: Iea601c80a8411f7e57aecf000180a24632430f2e
2018-01-18 04:37:04 -07:00
Kevin F. Haggerty
904d0acb37 msm8974-common: Use AOSP charger
* Lineage charger is horrible brokenness

Change-Id: I91f781d566db5e894ea3c39598fbdac72e778309
2018-01-14 15:13:09 -07:00
Ethan Chen
84b97c9d61 msm8974-common: Add seccomp policy
Change-Id: I1d5017228a4a9318f8a77ef4036532d64718ecbb
2018-01-04 21:59:45 -07:00
Artem Borisov
9e14a9cbdf msm8974-common: Enable boot and system server dex-preopt
As stated in https://android.googlesource.com/platform/build/+/418258c
this is required in O-MR1 since sepolicy now prevents system server from
loading anything from /data making our system extremely slow and janky.

Change-Id: I215ec7ebe95981ef0b953fe938e12b83675795ab
2018-01-04 17:57:19 -07:00
Kevin F. Haggerty
c5a6d91889 msm8974-common: Fix setup-makefiles.sh typo
Change-Id: I19fbd61e8f028e62e900e031b97c0f6ddcef1977
2018-01-02 19:48:37 -07:00
Bruno Martins
034ccb8eb6 msm8974-common: Ship RenderScript HAL
Change-Id: Ia13a26c46c803f6853b1188449547c70d3305bfa
2018-01-02 06:55:04 -07:00
Kevin F. Haggerty
fe30e6b05f msm8974-common: Use shared blobs from vendor/
Change-Id: I8f8675b9fd1950cd7c64538f160e73514209be19
2018-01-01 09:02:19 -07:00
Kevin F. Haggerty
7477a67fb5 msm8974-common: Setup extractors for shared blobs
Change-Id: I21194e86f3f755510130118a0a1b7a47a6aa1a5a
2018-01-01 09:00:36 -07:00
Paul Keith
a34bca1130 Revert "msm8974-common: Add vsync phase offsets"
* This is causing an mdss pingpong timeout,
  which leads to a kernel panic in mdss
* While we could stop the kernel panic, that
  isn't the root cause of the problem
* Remove the offsets as we don't have
  proper panel documentation for this
* BUGBASH-953

This reverts commit 603779b03a.

Change-Id: Iec49aebc02c9a01b93f4bf23f34e787b338ea805
2017-12-31 09:48:28 -07:00
Kevin F. Haggerty
9f8650d177 msm8974-common: Make the common tree more common
* Compare things that are used in hlte, klte, lt03lte, and mondrian
  wifi and move the stuff that's truly common to here. This will
  greatly ease O bring-up of the child trees.

Change-Id: I8fc5a099a348fa7feb502e3afe9b43df6e22d00b
2017-12-29 13:07:21 -07:00
Kevin F. Haggerty
946e60a172 msm8974-common: Drop obsolete overlays
Change-Id: Ia9b73c6ff3b9ae6789b690ce840c7509d0e86053
2017-12-28 15:12:32 -07:00
Kevin F. Haggerty
dd2586956d msm8974-common: Drop audiod
Change-Id: I455752ca3bc0b444ef15274be03df791120bb00a
2017-12-28 15:11:44 -07:00
Bruno Martins
a948b09171 msm8974-common: init: Update extension for O-mr1
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba16
2017-12-26 06:47:36 -07:00
Kevin F. Haggerty
c7b819ec2b msm8974-common: Disable ffmpeg codecs
Change-Id: I13fdfff6286068683ab663c0b0bbdee61e51412e
2017-12-22 22:25:57 -07:00
Bruno Martins
a20ebf7ef3 msm8974-common: Build graphics allocator service
Change-Id: Id3964c10aa474d94c85da7e1a65e65e7f8f6bc76
2017-12-22 17:22:56 -07:00
Kevin F. Haggerty
61a18ade33 msm8974-common: libshims: Import libshim_cutils_atomic
* After two years of warning us, Google has dropped non-inlined
  versions of the android_atomic functions. Unfortunately, some
  legacy blobs still expect these to be in libcutils.
* atomic.c from system/core/libcutils at c56648948

Change-Id: I31cba78c62b17f045fa912534dd61c8aaaddaaa8
2017-11-04 13:18:05 -06:00
Kevin F. Haggerty
4d80ead591 msm8974-common: Add power HAL impl
Change-Id: I914858837ad99c5a1c2793cafba2edf1eab8e6ae
2017-11-03 09:13:21 -06:00
Rashed Abdel-Tawab
ffacc815b1 msm8974-common: Add audio and display HAL impl
Change-Id: I2fcd62b1dd6cbe292d89cf97085c9549bf69ba26
2017-11-03 09:09:53 -06:00
Paul Keith
6abefef5c7 msm8974: Remove libdivxdrmdecrypt
* This doesn't exist anymore

Change-Id: Ie4ce517ed2722ed61719be8248ee7b9005ca317a
2017-10-23 19:45:17 -06:00
Luca Stefani
6c9bcca316 msm8974-common: init: Update for O
Change-Id: I60475e3dbf68329a46c421e8c8465a4ea2e28203
2017-08-30 07:21:45 -06:00
Kevin F. Haggerty
ed60e16ea2 msm8974-common: Rename dependencies file
Change-Id: Ib970f728bf7c2f2b09e34adb9699650503c38f43
2017-08-30 06:49:22 -06:00
Michael Bestas
70c6f3833b msm8974-common: Allow vendor init to override props
Change-Id: Iee06664aee1e59596aa12e2da11319f82767193a
2017-06-30 10:54:16 -06:00
Paul Keith
603779b03a msm8974-common: Add vsync phase offsets
* Kanged values from hammerhead
* Reference:
  http://stackoverflow.com/questions/27947848/understanding-necessity-of-android-vsync-signals

Change-Id: I687a306ca1a3bc8f23174a1a8b8a799baad7a3b3
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
2016-12-14 13:24:35 -06:00
Kevin F. Haggerty
c7466dda27 msm8974-common: init: Explicitly include unistd.h
Change-Id: Id62698c6315d9140b433c06c86cd1856cc5303a5
2016-08-31 08:13:09 -06:00
Michael Bestas
1b3779cba4 msm8974-common: Add local libinit
* Set alarm property
* Load device property items using init_target_properties
  function

Change-Id: I9b4b88c20078c9a310f425901368d765ddda2d51
2016-07-13 20:06:01 -07:00
OzzysCmAcc
ba8fb50627 msm8974: Remove HEVC codec
* QC decoder is deprecated

Change-Id: Ib8b377be0ba3e24f4c5ad473ffc255fe847c4f49
2016-01-21 11:02:42 -08:00