Commit Graph

61 Commits

Author SHA1 Message Date
3f0f860922 msm8974-common: set TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS 2022-08-28 09:28:36 +02:00
Kyle Harrison
4e6e487df6 msm8974-common: Enable BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES 2022-08-18 11:41:28 +02:00
Kevin F. Haggerty
dbc57d889c
msm8974-common: Don't let builds complete without vendor tree
* There is zero reason to ever build without blobs. We've even seen
  this situation with official builds from our servers. It's always
  better for a build to fail than it is for it to produce something
  that has no chance at working.

Change-Id: I4968795670c91f691e9ecdc0e4af62e16ba3a93a
2021-04-09 10:20:09 -06:00
Kevin F. Haggerty
d267ad8693
Merge branch 'lineage-17.1' of http://www.github.com/LineageOS/android_device_samsung_msm8974-common into lineage-18.1
* 'lineage-17.1' of http://www.github.com/LineageOS/android_device_samsung_msm8974-common:
  msm8974-common: Drop OVERRIDE_RS_DRIVER

Change-Id: Ia98c7e5352e49a86a98937c0e1890f66e74cba22
2021-02-09 07:25:48 -07:00
Kevin F. Haggerty
271ce38322
msm8974-common: Drop OVERRIDE_RS_DRIVER
* So, this one from bullhead can cause everything to get janky AF
  every time RenderScript is actually used, and finding one that
  actually loads (no missing symbols) AND actually works well is,
  well, challenging. The device works fine with the "normal"
  non-adreno driver in AOSP, so let's use that until/unless we find
  an actually working adreno driver.

Change-Id: I4ab19269eb49f5f2aed375d9055d68c1b9835f69
2021-02-08 07:02:49 -07:00
Jan Altensen
bfa92dc8b5
msm8974-common: enable TARGET_HAS_MEMFD_BACKPORT
Change-Id: I3f729908f822567ff874cf909341c319e2955470
2020-12-14 13:43:45 -07:00
Arne Coucheron
8a56039c7d
msm8974-common: Set TARGET_DISABLE_POSTRENDER_CLEANUP := true
To fix the bad UI lag we are experiencing.

Change-Id: I3edb25f93c58b87431a1802726f31123200f75d3
2020-12-04 08:42:40 -07:00
Quallenauge
81028f988c
msm8974-common: Force build scudo free 32 bit variant of libc.
We have issues with camera blobs which doesn't play
well with scudo allocation/deallocation tracking.
Scudo reports corrupted header when stopping a
video recording.
Because we aren't alone with this (also upstream seems
to have trouble with camera modules) use the 32 libc
which is used only by a few components, like camera
and audio.

Because docs states, that libc with the svelte take less RSS,
but is a little bit slower.
https://android.googlesource.com/platform/bionic/+/master/docs/native_allocator.md
This is the reason to not enable this target wide.

Change-Id: Ic0d950817238a227218f59b95e5fd2ffd66e786a
2020-12-04 08:42:39 -07:00
Michael Bestas
5fd2d661c8
msm8974-common: Update to power HAL 1.2
Change-Id: Ic8c5f7e9c77a95befff5661e1634683ec6c25ac4
2020-04-24 18:56:19 -06:00
Anton Hansson
60bc3d4193
msm8974-common: Set cpu "runtime variant" to krait
This makes bionic and various art tools that compile/runs cpu-specific
code choose the kryo variant at runtime. It does not affect
build-time compilation.

Bug: 120773446
Test: bionic benchmarks with and without this change
Change-Id: I670c8acd094090135515688c5f057c2cc08a083f
2020-04-24 14:29:18 -06:00
Anton Hansson
c2f41080cf
msm8974-common: Use generic arch variant
Follow blueline which has not demonstrated any regressions
after switching to a generic arch variant.

Bug: 120773446
Test: make
Change-Id: I9e23963fcfa5ccaa912f2930a632458c4d2a692d
2020-04-24 14:29:18 -06:00
Kevin F. Haggerty
992ae3c4fe
msm8974-common: Drop vestiges of old libinit_msm8974
Change-Id: I40b11ebb48ff71a0a81e4f248fcc9bb42d6db792
2020-04-13 06:31:52 -06:00
Paul Keith
11997658fb msm8974-common: Enforce inclusion of samsung_qcom-common/BoardConfigCommon.mk
* This should always be present in the souce tree

Change-Id: I32397f245580be8174f22af6096dcbeee2bedcd8
2020-03-30 15:51:10 +02:00
Nolen Johnson
24300422f6 msm8974-common: Set TARGET_RECOVERY_DEVICE_DIRS
* In the previous commit, I failed to note that TWRP
  also needs the AIO property set, so append local path
  to TARGET_RECOVERY_DEVICE_DIRS to make both Lineage
  Recovery and TWRP happy.

Change-Id: Ie1d8dfa252dad02787544a73e9d4ee1d44d30dbf
2019-08-06 06:30:09 +00:00
Kevin F. Haggerty
66b282da2e
msm8974-common: Build Samsung LiveDisplay service
Change-Id: I74d38aa0df3179bb00b942135e8ff055aa8a5658
2019-05-07 07:20:49 -06:00
Bruno Martins
67de8e7484
msm8974-common: Enable B-services aging propagation
Change-Id: I4ac0525933bb421f7d025c5e4c6a1de0f083c46e
2019-02-25 20:55:33 -07:00
Ethan Chen
6ac0af40b5
msm8974-common: Drop custom display flags
* TARGET_USES_OVERLAY and USE_OPENGL_RENDERER are largely deprecated
* Don't set triple buffering, it introduces latency
* Don't use custom VSYNC offsets

Change-Id: If2892c83726c3558a96b28a8404f49982ebb9ba0
[haggertk: Only triple offset aspect of this change is relevant to
 this device family]
2019-02-19 07:42:09 -07:00
Kevin F. Haggerty
a6b73c4ef2
Revert "msm8974-common: Set TARGET_NEEDS_LEGACY_CAMERA_HAL1_DYN_NATIVE_HANDLE"
* This is not necessary for P

This reverts commit 55cf3f11c6.

Change-Id: Ie6527cd691f07f024cfb7cf3ff021da6eb77c8a5
2018-12-26 18:45:45 -07:00
Kevin F. Haggerty
c80f349acc
msm8974-common: Set TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE to true
* Due to "specialness" in our RIL library, ConnectivityService
  doesn't seem to appropriately add the relevant directly-
  connected routes, meaning that IPv4 mobile data is inoperable
  due to lack of a default route. Let's reenable the legacy netd
  behavior to get our connectivity back.

Change-Id: I59f8476ab36db0fb79856f74346e62e0dd4abae0
2018-11-21 20:16:40 -07:00
Michael Bestas
482de62af8
msm8974-common: Switch to 1.1 power HAL
Change-Id: I4690a5b913141427a828d6a3a4af407d35a10775
2018-10-06 08:34:19 -06:00
Kevin F. Haggerty
82bf4a6bc2
msm8974-common: Allow additional gralloc 1.0 buffer usage bits
* Our platform requires 0x02000000U (USAGE_PRIVATE_UNCACHED) for
  camera, video, and various other functionality

Change-Id: Ie5a8a46fef1c0f28ebd2cd3b3d29cc19763bc2a3
2018-09-15 11:51:09 -06:00
Bruno Martins
7eb0d299d2
msm8974-common: Explicitly set all used audio features
* These features have long been enabled by default in the audio HAL,
   but things changed since the unification of the audio policy HAL.
   Set all of them here, also to make it easily clear what is used.

Change-Id: I5bdb5fda3b9d5add5b9bac1f6980607761fbd692
2018-09-07 13:44:39 -06:00
Kevin F. Haggerty
55cf3f11c6 msm8974-common: Set TARGET_NEEDS_LEGACY_CAMERA_HAL1_DYN_NATIVE_HANDLE
* This is required to enable our legacy HAL1 camera recording
  following OMX hardening in Ief2d2d4d0445074c0ecdc723b1b25997a7631389

Change-Id: Ide8dad10bf72fbd1acefec2f8ef4a90b0e3c0a4b
2018-08-14 04:08:15 -06:00
Zhao Wei Liew
855591ca38 msm8974-common: Enable legacy mediaserver
Change-Id: I4881ce7a0342b0dc9a9c50d6870f1b072b45af82
2018-04-24 17:33:25 -06:00
Paul Keith
306c353400 msm8974-common: Allow overriding full dex preopt
* This is wonderful for users, but I want to override this

Change-Id: I12b0cd7620b4615f8f3ba945fbae8a332d4ea203
2018-03-03 05:39:35 +01:00
Kevin F. Haggerty
993b723e0b Revert "Revert "msm8974-common: Use QTI HIDL power HAL""
This reverts commit 24d70a1aec.

* The new HIDL power HAL seems to be appropriately riced^Wfixed for
  8974 now.

Change-Id: I629ab2314dec4698a0d4d45d77cdc48bf92a4d74
2018-02-27 20:37:50 -07:00
Zhao Wei Liew
e05835ea4d msm8974-common: Enable HBM for outdoor mode
Add a device-specific SunlightEnhancement CMHW class.

In addition to enabling outdoor mode, crank the display brightness
up, allowing for much better visibility in bright sunlight.

Change-Id: I6a87d438a0aecd9e068de932d4133e69e0563cf8
2018-02-22 23:25:57 +01:00
razorloves
6279ca895c msm8974-common: update dexpreopt option
The recent change we made in the build repo makes all
builds dexpreopt only boot img and system server.
This changes angler builds back to full dexpreopt.

Change-Id: I0cf03634ee7bbc93b18b49d3f1efe82a6302b447
2018-02-17 22:54:08 +00:00
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
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
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
904d0acb37 msm8974-common: Use AOSP charger
* Lineage charger is horrible brokenness

Change-Id: I91f781d566db5e894ea3c39598fbdac72e778309
2018-01-14 15:13:09 -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
fe30e6b05f msm8974-common: Use shared blobs from vendor/
Change-Id: I8f8675b9fd1950cd7c64538f160e73514209be19
2018-01-01 09:02:19 -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
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
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
13b96cb171 msm8974: clean up deprecated packages and flags
Change-Id: Id2339606feae1e51fbd8962a44a15f15c1f9e989
2016-01-20 10:08:38 -08:00
khusika
577ab0c34a msm8974: Remove deprecated egl.cfg
Change-Id: I2c9808a071df694e30baeb490553d38e734a5d17
Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
2015-08-12 09:14:58 -04:00
repo Shareef Ali
323c2b1c1a msm8974: remove things that are handled elsewhere
Change-Id: Ifed3497534063c411d77d228a0dc3ab649c12e42
2015-01-05 01:46:16 -06:00
Matt Filetto
775c1a8379 msm8974-common: Use QCOM bionic optimization
Change-Id: Iac9174a2ac0d41319ca0c2e66f6ae7c94bc7b3f2
2014-11-22 21:22:53 -08:00
Christopher R. Palmer
ef32c33672 msm8974-common: Nuke our copy of SELinux policies
We now get the qcom-common SELinux policy.  Get rid of our old policy
and add back config as we need it, rather than trying to merge the two.

Change-Id: I5ca5098c653f09c7901343d0ae71793f6eb21ab8
2014-11-23 05:21:07 +00:00
Matt Filetto
4df63f268f msm8974-common: Extended font support
Change-Id: Ia34fd24bdd6d572c178e006f7a5a31d014159143
2014-11-22 21:15:55 -08:00
Matt Filetto
135ccde945 msm8974-common: Remove deprecated QCOM flags
Change-Id: I82502f28ed74d4a3582b4fe805464f9f66025ccc
2014-11-23 05:04:57 +00:00
Christopher R. Palmer
7c662df7a3 msm8974-common: Move camera wrapper up to device repos
Change-Id: Ie16e0ccc0630edfafec935ae6f311826bc1a42fc
2014-11-19 05:03:13 -05:00
Tony Layher
39da7d7fa2 msm8974-common: Fixup CameraWrapper for L
-Also clean up code and get rid of warnings.
   Clean up from Arne Coucheron works on other samsung wrappers.

  -Requires device tree to include a CameraParametersExtra.h
   for the specific device.

Change-Id: Icab1b9ec17710861f735a05dcdd87dac932c63c2
2014-11-19 05:03:13 -05:00