Commit graph

85 commits

Author SHA1 Message Date
Francescodario Cuzzocrea
6dfb0a8d0e msm8226-common: initial commit of the rebased tree 2019-08-29 16:31:07 +02:00
Francescodario Cuzzocrea
f31beaa748 Revert "msm8226-common: Bring in some optimization from caf's qcom common"
This reverts commit 7bc934a251.
2019-08-25 11:44:19 +02:00
Kevin F. Haggerty
fc128c1a1a klte-common: Use kernel exfat
* we have all the necessary bits in the msm8226-common kernel now
Change-Id: Ifbd2df2abbbfbb0909fd5c5441732072c1e27603
2019-08-19 10:10:08 +02:00
Francescodario Cuzzocrea
cf1b14e349 msm8226-common: add TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS for legacy blobs support 2019-08-19 10:08:11 +02:00
PythonLimited
949880a044 msm8226-common: add MALLOC_SVELTE to Boardconfig.mk
Change-Id: Ica5df80a6def0af7d42427adcf5bec1ec14bd42e
2019-08-18 14:42:09 +02:00
Kevin F. Haggerty
0a62b1e0f7 msm8226-common: Allow additional gralloc 1.0 buffer usage bits
* Our platform requires 0x02000000U,
    which appears to be USAGE_PRIVATE_NONSECURE

 * Resolves the following Gralloc2 failure upon playback:
    buffer descriptor contains invalid usage bits 0x2000000

Change-Id: Ie5a8a46fef1c0f28ebd2cd3b3d29cc19763bc2a3
2019-08-18 14:42:09 +02:00
Arne Coucheron
9a845569ca audio: Explicitly enable audio features we need
Needed with the new common audio policy.

Change-Id: I8818bf075db2f6a6cf616170959fa6b979dba7d8
2019-08-18 14:42:09 +02:00
dev-harsh1998
7bc934a251 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-08-18 14:42:09 +02:00
Arne Coucheron
4bfb9de8e1 media: Enable TARGET_USES_MEDIA_EXTENSIONS
Change-Id: I09c22ec3d0114f6424e5228a1dbdc2900bdfd52b
Signed-off-by: RenanQueiroz <queirozrrq@gmail.com>
2019-08-18 14:42:09 +02:00
Francescodario Cuzzocrea
cda593f2da msm8226-common: add shim for libcrypto.so 2019-08-18 14:42:09 +02:00
Kevin F. Haggerty
4c950a5179 msm8226-common: Use shared blobs from vendor/
Change-Id: I8f8675b9fd1950cd7c64538f160e73514209be19
2019-08-18 14:42:09 +02:00
DJABHipHop
1eb131c034 msm8226-common: add custom libhealtd to fix offline charging mode 2019-08-18 14:42:09 +02:00
Kevin F. Haggerty
5b86419a1f msm8226-common: Engage the SDCLANG
Change-Id: I18a3ea966d7cfda0943d5b0114d30deba3a267e6
2019-08-18 14:42:09 +02:00
Kevin F. Haggerty
42e9be54bf msm8226-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
2019-08-18 14:42:09 +02:00
Zhao Wei Liew
f02d08f5d5 msm8226-common: Enable legacy mediaserver
Change-Id: I4881ce7a0342b0dc9a9c50d6870f1b072b45af82
2019-08-18 14:42:08 +02:00
Paul Keith
db4b134ef0 msm8226-common: Allow overriding full dex preopt
* This is wonderful for users, but I want to override this

Change-Id: I12b0cd7620b4615f8f3ba945fbae8a332d4ea203
2019-08-18 14:42:08 +02:00
razorloves
922d4ebc4f msm8226-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
2019-08-18 14:42:08 +02:00
Paul Keith
a8daa6c1cf msm8226: 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
2019-08-18 14:42:08 +02:00
Ritesh Harjani
f5633db7a4 msm8226-common: Add AID_QCOM_DIAG, AID_RFS, and AID_RFS_SHARED to config.fs
Change-Id: I9da576900ed29a2633bb997dbbea4565b489a418
2019-08-18 14:42:08 +02:00
Artem Borisov
f9188fc8b1 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
2019-08-18 14:42:08 +02:00
Paul Keith
08db719a9e msm8226-common: Use QTI HIDL power HAL
* Let's use the new shiny binderized HAL in hardware/qcom/power

Change-Id: I2abf4ca9b0b5a0cb031f12c400a1159962f5e94c
2019-08-18 14:42:08 +02:00
Kevin F. Haggerty
f1b4582875 msm8226-common: Use AOSP charger
* Lineage charger is horrible brokenness

Change-Id: I91f781d566db5e894ea3c39598fbdac72e778309
2019-08-18 14:42:08 +02:00
Artem Borisov
a7a801d116 msm8226-common: Enable 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
2019-08-18 14:42:08 +02:00
Kevin F. Haggerty
91d52d50a5 msm8226-common: Make the common tree more common
* Compare things that are used in s3ve, ms01, kmini3g , and matisse
  wifi and move the stuff that's truly common to here. This will
  greatly ease O bring-up of the child trees.

* Also do a bit of cleanup while we are at it.

Change-Id: I8fc5a099a348fa7feb502e3afe9b43df6e22d00b
2019-08-18 14:41:29 +02:00
Kevin F. Haggerty
86f6618e0a msm8226-common: sepolicy: Import common sepolicy from 8974-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.

* Also adjust it for msm8226 use case

Change-Id: I86516adfb1b9c55a6959a7faf4ee424a4b3385c8
2019-08-17 10:49:17 +02:00
Zhao Wei Liew
eadb8f8f64 msm8226-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
2019-08-16 10:18:55 +02:00
Francescodario Cuzzocrea
fa282cbf31 msm8226-common: drop DisplayColorCalibration 2019-08-14 12:39:42 +02:00
Nikola Majkić
667f9019cb msm8226-common: rebrand to LineageOS
Change-Id: I43141238707c8b9e6c6c11502c089af0ae2e7117
2019-08-14 12:38:56 +02:00
Nikola Majkić
3f1936c674 Revert "msm8226: Build the kernels with gcc-4.9"
This reverts commit e8bc18546a.
2016-08-25 01:32:32 +02:00
Jackeagle
91c22bd95e msm8226: Switch to proprietary GPS blobs
Change-Id: I25d4eab64b16ca882e8f7dc346e81bf765c4de84
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
2016-05-17 12:21:20 +05:30
Nikola Majkić
c5c79db297 Revert "Revert "Revert Jmalloc""
This reverts commit 5bc8b183ea.
2016-02-22 20:53:51 +01:00
Emilio López
295c6278f5 msm8226-common: enable basic dexpreopt
This reduces the time from off to pin-input on encrypted devices
considerably, while leaving enough space on /system for third party
app packages the user may desire to install. Tested on peregrine.

Change-Id: Iaa5974275476f5580f7e38cf8a502d5c3d28ac90
2016-02-22 06:27:56 +01:00
Nikola Majkić
13b8f743ad Boardconfig: Build with Clang 2016-02-22 02:40:46 +01:00
Nikola Majkić
5bc8b183ea Revert "Revert Jmalloc"
This reverts commit cad1ca9705.
2016-02-21 23:31:52 +01:00
Nikola Majkic
cad1ca9705 Revert Jmalloc
dmalloc make problems with camera on M so we will stay on jmalloc
2016-01-19 23:01:11 +01:00
Rox-
d13fd52c91 msm8226-common: Force NV12 and NV21 pixel alignment
Our libadreno_utils returns an incorrect value for the pixel alignment
(32 instead of 16) and therefore the 480p preview is corrupted.
Force the right alignment to fix it.

d96e6bdebe
2016-01-16 00:32:01 +01:00
Apavayan Sinha
d2355eb934 msm8226-common: Remove CAMERA L COMPAT flag
Change-Id: I93cd6af35121db8785da3f59d05ac6de18abe205
2016-01-06 10:56:17 +05:30
Rox-
569b83700c Revert "msm8226: Use common cyanogen hardware repo"
We only use DisplayColorCalibration from there and AdaptiveDisplay is duplicated ( one exist in samsung/cmhw ) and causes build error
This reverts commit bd5ba43a61.
2015-12-31 12:02:33 +01:00
Gabriele M
17591b33ae Custom PowerHAL implementation
PowerHAL highlights:
* The CPU governor is always interactive. Governor changes are not
  expected and permissions are set once on boot.
* Powersave profile: the CPU frequency is limited 787MHz and the CPU
  is never boosted on user interaction. This will save power without
  making the phone unbearably slow.
* Performance profile: the CPU is constantly boosted.
* Balanced profile: the CPU is boosted on user interaction.
  When the screen is turned off, the governor is tuned to lower the
  power consumption to save power in case of long lasting screen off
  activities such as music playback.
* Currently there are no restrictions on the number of active cores.

With this PowerHAL cpu-boost is not needed, so keep it disabled.

In addition to that, drop all the properties based profiles and set
config_perf_profile_prop to "powerhal" to make the framework send
hints to PowerHAL when the power profile is changed.

msm8226-common: PowerHAL: Initialize mutex

Since the mutex is declared as static, this went unnoticed, but mutexes
should always be initialized, so do it.

msm8226-common: PowerHAL: Don't override user selected profiles

Save and restore the last selected profile so that the user preference
is not lost when transitioning out the low power mode. Also, don't
actually change the profile if in low power mode, but don't discard
the user preference.

msm8226-common: Refactor PowerHAL

Make the HAL generic by keeping the device dependent configuration
separate. This allows to easily add or edit the profiles.

The HAL should behave exactly as before, except for the fact that now
there might be some useless writes when the screen is turned off.

Change-Id: I6bb01a14f0058c59986989568e7766f4203150cc
2015-12-27 13:13:57 +01:00
Rox-
bdeca00d33 msm8226-common: Cleanups
*GPS update for M
*Newline
*Drop USB charging mode - not needed in M
*Specify persist.sys.ssr.enable_debug
2015-12-26 15:53:57 +01:00
Zhao Wei Liew
e7b55c62d7 msm8226: Reference inline WLAN module
We have switched to building the module inline, make the appropriate
changes to recognize the change.

Change-Id: I2e6e5114f4241c1b694f678dbdd59f4efd173d5b
2015-12-01 23:07:45 +08:00
Zhao Wei Liew
d687a9499e msm8226: Commonize system properties
Respective devices need to add a reference to their target
system properties in BoardConfig.mk.

Change-Id: Ic79498519f53fac1cf0e4a37aefa1ca18db5d5e2
2015-11-29 16:30:20 +01:00
Steve Kondik
e8bc18546a msm8226: Build the kernels with gcc-4.9
This requires appropriate GCC warning fixes in the kernel.

Change-Id: Ia0c0cc45b2c192ad7262d797ee3c469b94644194
2015-11-27 22:47:31 +08:00
Zhao Wei Liew
bd5ba43a61 msm8226: Use common cyanogen hardware repo
Change-Id: Iea20d73a6d29217a30c0ba4c2b85d4f35efdf7b3
2015-11-27 21:28:42 +08:00
Zhao Wei Liew
5459fe2415 msm8226: Use VENDOR_PATH for local directory
Stop using LOCAL_PATH as it breaks CMHW build. Also remove
a redundant definition of LOCAL_PATH.

Change-Id: Ib79072aba4d429a290300c9026752adac5129017
2015-11-26 14:41:44 +08:00
Zhao Wei Liew
7bfcb69873 msm8226: Switch to deep buffer audio output by default
This was missed out. Actually enjoy lower power consumption.

Change-Id: I818d24a5531750fa90664d1c14d5cbad2b5565cf
2015-11-25 13:44:13 +08:00
Zhao Wei Liew
167c0c676f Revert "msm8226: Wait for keymaster to be loaded in TZ"
Our blobs don't support this.

This reverts commit 12ca0b8029.
2015-11-25 12:28:46 +08:00
Apavayan Sinha
0a303128d3 msm8226: Enable camera compatibility flag
Change-Id: I4993cf0de6f38da9c7d24e880fc3bd6768d8e3f2
2015-11-15 14:22:05 +01:00
Apavayan Sinha
12ca0b8029 msm8226: Wait for keymaster to be loaded in TZ
Change-Id: I5e3774b0ed0b19fe2be9a1c71346c8ab6b4e2682
2015-11-15 14:21:49 +01:00
Apavayan Sinha
ececd0f1e5 gps: fix build with M
Change-Id: Ibe8799714547cffb5e4505a08fa85d30075afd9d
Signed-off-by: Apavayan Sinha <info@apavayan.com>
2015-10-18 13:41:21 +05:30