Commit graph

65 commits

Author SHA1 Message Date
RomanDesigner
e8af831705 [DNM] msm8226-common: selinux: set enforcing state back 2020-02-27 22:44:52 +03:00
RomanDesigner
9b49628cc2
msm8226-common: Add sepolicy type flag 2020-01-06 14:51:48 +03:00
RomanDesigner
260468a75f
msm8226-common: Define extra folders in makefile instead of init.qcom.rc
With Android 10, these folders get wiped out unless declared at compile time.
2020-01-05 12:48:03 +03:00
Arne Coucheron
2da3370a1e
msm8226-common: Add 0x2000U to additional gralloc usage bits
Fixes video playback error.

| Gralloc2: buffer descriptor contains invalid usage bits 0x2000
2020-01-05 12:22:27 +03:00
Michael Bestas
48d58e1210
msm8226-common: Update to power HAL 1.2
Change-Id: Ic58b75f8b7a662914e28cbcc9ffdb2b2a143134b
2020-01-05 12:20:31 +03:00
Anton Hansson
4412a3b04d
msm8226-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: I766f7bbd9f1fab35991c313da7bfad8563108ef8
2020-01-05 12:14:23 +03:00
Anton Hansson
064b0225ea
msm8226-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: If64385d968cb923177f74b03a94633f0dbf42fbb
2020-01-05 12:13:51 +03:00
Arne Coucheron
7f16443813
msm8226-common: Complete the removal of f2fs
We previously removed it from fstab, so this isn't relevant anymore.

Change-Id: I5045981d299966e95401f96ac2f0d4eca92e9ba8
2020-01-05 12:03:07 +03:00
RomanDesigner
8564da0229
msm8226-common: Move optimizations to msm8226.mk 2020-01-05 11:53:08 +03:00
pythonlimited
52b20554e8
msm8226-common: Drop common libinit.
Change-Id: I5ba14bda7b49c5dec294eb4dd3a8d6645bb7e5b7
2020-01-05 11:46:23 +03:00
Francescodario Cuzzocrea
d5a4d8d567 msm8226-common: fix offline charging 2019-10-16 12:32:04 +02:00
Harshit Jain
ae9edc11c6 msm8226-common: Strip off some debug packages
* Ref: https://source.android.com/devices/tech/dalvik/configure#compilation_options

Change-Id: Ia19ac5ab253337186492dccdc166c2b824563e82
Q: PRODUCT_MINIMIZE_JAVA_DEBUG_INFO what tf does this do?
A: https://android.googlesource.com/platform/build/+/master/target/product/go_defaults_common.mk#68
2019-10-16 12:32:04 +02:00
pythonlimited
7806fec660 msm8226-common: drop pre MM shim 2019-10-16 12:32:04 +02:00
Francescodario Cuzzocrea
a13a92fd8f msm8226-common: add BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE 2019-10-16 12:32:04 +02:00
dev-harsh1998
5284cfeba4 msm8226-common: Bring in some optimization from caf's qcom common
* Use speed profile services and wifi-service to reduce RAM and storage.
* Always preopt extracted APKs to prevent extracting out of the APK for gms modules
* Use a profile based boot image

Change-Id: I41bea46ded542b37910fef6a08e49a8ab70c7d2a
Signed-off-by: RenanQueiroz <queirozrrq@gmail.com>
2019-10-16 12:32:04 +02:00
Sevenrock
f6a6217861 msm8226-common: Set TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE
Needed after
https://review.lineageos.org/c/LineageOS/android_hardware_qcom_keymaster/+/224951

Change-Id: Ic1bc2ac43e00b90f82ee2f77bb066b5e0029bf66
2019-10-16 12:32:04 +02:00
Nolen Johnson
be0042899e msm8226-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-10-16 12:32:04 +02:00
Kevin F. Haggerty
1e8bba9944 msm8226-common: Build Samsung LiveDisplay service
Change-Id: I74d38aa0df3179bb00b942135e8ff055aa8a5658
2019-10-16 12:32:04 +02:00
Bruno Martins
549cb6f5fb msm8226-common: Enable B-services aging propagation
Change-Id: I4ac0525933bb421f7d025c5e4c6a1de0f083c46e
2019-10-16 12:32:04 +02:00
Ethan Chen
718accfed1 msm8226-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-10-16 12:31:17 +02:00
Kevin F. Haggerty
5a72893d64 msm8226-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
2019-10-12 10:26:47 +02:00
Michael Bestas
e9e6c437f8 msm8226-common: Switch to 1.1 power HAL
Change-Id: I4690a5b913141427a828d6a3a4af407d35a10775
2019-10-12 10:26:47 +02:00
Kevin F. Haggerty
94a4e4d021 msm8226-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
2019-10-12 10:26:31 +02:00
Bruno Martins
09375ef369 msm8226-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
2019-10-12 10:26:31 +02:00
Francescodario Cuzzocrea
075ed3f103 msm8226-common: add MALLOC_SVELTE and TARGET_USES_NON_TREBLE_CAMERA to BoardConfigCommon.mk 2019-10-12 10:26:31 +02:00
Francescodario Cuzzocrea
f89d1e5ca3 [SQUASH]: initial bringup of samsung msm8226-common repo from msm8974-common
* Rename msm8974-common -> msm8226-common
 * Import the old msm8226-common camera wrapper and apply :
	- 45e3438b26 (diff-dd6d2dcc679d12b9430a9787bab45b33)
	- 737bd8c396 (diff-dd6d2dcc679d12b9430a9787bab45b33)
	- a79e72b246 (diff-dd6d2dcc679d12b9430a9787bab45b33)
	- d4dadbaff0 (diff-dd6d2dcc679d12b9430a9787bab45b33)
	- c2eb30c314 (diff-dd6d2dcc679d12b9430a9787bab45b33)
	- 9ac995b901 (diff-dd6d2dcc679d12b9430a9787bab45b33)
 * Remove msm8974 keylayout in favour of msm8226 ones
 * Add wifi/prima relate configs for Qualcomm WIFI
 * Import libwncss from our old msm8226-common branch
 * Remove AvancedDisplay overlay as our panel does not support mDNIe
 * Import rootdir files from stock SM-G800H release, rework it taking as
 example klte one and import stock ondemand governor parameters
 * Adapt seccomp policy for msm8226
 * Adapt sensor multihal for msm8226
 * Adapt sepolicy for msm8226-common
2019-10-12 10:17:42 +02: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