Commit graph

366 commits

Author SHA1 Message Date
Nikola Majkić
5bc8b183ea Revert "Revert Jmalloc"
This reverts commit cad1ca9705.
2016-02-21 23:31:52 +01:00
Apavayan Sinha
52887b1231 msm8226: Remove boringssl-compat
Change-Id: I6df9801ba7aa9141c72902d7b69a07e60389e754
2016-02-13 10:09:24 +05:30
Apavayan Sinha
f9dbd3b9e8 msm8226-common: init: fixed Crashing Of some app
Some apps like:
	*Snapchat
	*facebook
	*Facebook Messager
	etc

Change-Id: I8287a2fd5d159e52b66b7b8ac163a7b77e57c9fd
Signed-off-by: Apavayan Sinha <info@apavayan.com>
2016-01-25 22:51:58 +05:30
Apavayan Sinha
50d4340071 msm8226-common: prop: Disable Strict mode 2016-01-23 17:00:50 +05:30
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-
b334801b7c msm8226-common: Add simactivation old ril config 2016-01-16 00:54:00 +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
Nikola Majkic
3f510c8c06 Camera: Enable Snap
from http://review.cyanogenmod.org/#/c/127421/
2016-01-16 00:29:20 +01:00
Apavayan Sinha
d2355eb934 msm8226-common: Remove CAMERA L COMPAT flag
Change-Id: I93cd6af35121db8785da3f59d05ac6de18abe205
2016-01-06 10:56:17 +05:30
Rox-
0fe14d67e5 [REVERT] msm8226-common: Comment restore context
*Until we fix selinux enforce mode
2016-01-04 00:10:37 +01:00
Christopher R. Palmer
1d08a4f56d msm8226-common: Unlock the GPS
Change-Id: If9fd67483fedee915d46f7b9d2a7e0851400de3c
2016-01-03 12:37:08 +01:00
Gabriele M
25f1c3c6db msm8226-common: PowerHAL: Add powersave bias profile
This profile is exactly like powersave except for the max CPU
frequency which is not limited.

Change-Id: I66c09c1ed4c9730e1ed47a8768bd4d44bc2aa929
2016-01-03 12:27:09 +01:00
Rox-
8f8b327eb7 msm8226-common: Enable disableWifiApFirmwareReload 2016-01-03 12:19:36 +01:00
Rox-
928a9205db msm8226-common: power: Fix function call 2015-12-31 12:04:35 +01:00
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
Rox-
e57053e2fa msm8226-common: Stop QC-QMI message spam 2015-12-30 14:25:24 +01:00
Rox-
b08ac9cd48 msm8226-common: Update GPS header for M 2015-12-27 14:02:57 +01:00
Rox-
3bbe9c0c97 msm8226-common: Update media_codecs and media lib listing 2015-12-27 14:02:43 +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
Thierry Strudel
0f01aab1fc msm8226-common: force dex2oat not to use swap file
Bug: 20658562
Change-Id: Ib8e47b3edd94b1977c294959cdde01a54b64f123
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2015-12-26 15:53:50 +01:00
Apavayan Sinha
1dde331fec msm8226-common: ril: update constructors for M
Change-Id: Ia749bc1ab58a83947520945e49138522237492a4
2015-12-26 15:30:34 +01:00
Jackeagle
647f63136b rootdir: Add more permissions
- Required for S5 Mini

Change-Id: Ib88ae9eec4ca4da5d390c75580509c3f9f2ec684
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
2015-12-11 05:21:58 -05:00
Jackeagle
ebfbceee15 rootdir: Add more usb parameters
- Needed for other devices

Change-Id: Ib8f90006bfd55f3227714bfd5f79e7163e0fecd8
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
2015-12-11 05:16:07 -05:00
Zhao Wei Liew
47a350f43e msm8226: Enable idle power collapse in charge mode
No reason to disable this, stick to default. Also disable thermal
driver before setting low power modes for sanity's sake.

Change-Id: I54457176494b295ca2e78c8ce306fa1838350962
2015-12-02 18:48:59 +08:00
Zhao Wei Liew
5d90599f1a msm8226: Remove unused encryption properties
We are building these modules inline, so these properties are unused.

Change-Id: If6597f51cf9675f09804f34ab508616e81effffc
2015-12-01 23:09:50 +08: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
c2ee69951d msm8226: Remove last unused mm-dash lib
With the recent removal of QC AV enhancements, we no longer use
these libs.

Change-Id: Ic7c4fd8056e88c278d7f11bdfeaf24af5aede124
2015-11-30 18:47:37 +08:00
Zhao Wei Liew
e6db609a6c msm8226: Move dalvik config to system prop file
Change-Id: Iac6d9c5263ea958dc8bbadee1eacb880bba7af76
2015-11-30 18:45:45 +08:00
Steve Kondik
9ef5fdbe38 msm8226: Drop all the janky proprietary stuff we don't even use
Change-Id: I6832ca9b57b171590e8f257b92e45fa9777c6ed4
2015-11-30 18:40:17 +08:00
Zhao Wei Liew
fe00f1ba4d msm8226: Optimize key disabler
* Skip the conversion of types, compare directly.
 * Declare keydisabler path as static final

Change-Id: Ie18d5f43b49f6efd95615d1ec3846d78bbe3a316
2015-11-30 15:22:25 +08:00
Zhao Wei Liew
42a19d3d39 msm8226: Disable in-kernel input boost
We have 1.1 GHz input boosting for 3 seconds in PowerHAL, so this
is definitely unneeded, wasting more power.

Furthermore, this will hurt performance. The in-PowerHAL solution will
race with the in-kernel solution due to difference in boost freqs,
hurting performance.

Change-Id: Id4381af400d94a9c7690274d10b1b4ea011b6b32
2015-11-30 08:48:12 +08:00
Steve Kondik
686eb762e9 msm8226: Adjust cpufreq timer rate
* We're no longer managing timer_rate from the PowerHAL, so set it to
   30000 which will improve battery live.

Change-Id: I5a25533b674b37961e975537fc7b905f4e3497b3
2015-11-30 08:10:42 +08:00
Rox-
3d97fb58c1 [WIP]msm8226-common: Update sepolicy for M 2015-11-29 17:06:30 +01: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
Rox-
7045e1cd5f msm8226-common: Update FM packages for M 2015-11-27 21:51:51 +01:00
Steve Kondik
1d271edc07 msm8226: Speed up scroll response
* Lower the touchslop

Change-Id: Id0a16fad5e35fe85c05637085057a1bac81bf4a1
2015-11-27 21:51:42 +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
Rox-
e7423d0351 msm8226-common: rootdir: Clean up init and move outside etc
*Remove some device specific permissions, add them to init.target.rc
2015-11-27 12:22:27 +01:00
Zhao Wei Liew
13df128ae6 msm8226: Refactor low power set-up
* Use a trigger to enable low power modes in recovery and boot.
* Enable L2 low power modes in charger.
* Set up low power modes earlier to keep device cool during dexopt.
* Slight clean up.

Change-Id: Ida7a62e457e2eda052e4a83b050df673eda743e0
2015-11-26 15:20:08 +08:00
Zhao Wei Liew
2556302858 msm8226: Enable low power modes in recovery
Build the power config for recovery too.

Change-Id: I238a38a7fd54b510123962b003eaecca5f3d68ab
2015-11-26 14:49:04 +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
ffeea9fa32 msm8226: Remove duplicate USB package
This is built in one of the common device makefiles.

Change-Id: If2f4c8865c04c5b2d308ebdad1e087b9f1d1fdf8
2015-11-26 14:18:41 +08:00
Zhao Wei Liew
12f4a093bf msm8226: Actually build the init scripts
Change-Id: I92b336a54c04548fb5cb5dd3830ecfaff9b1eb11
2015-11-26 14:18:18 +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
7c1e6cf7e1 msm8226: Commonize init scripts
Change-Id: Iab43f5a4174edd758e0654f127d7820f9912fdb4
2015-11-25 13:31:34 +08:00
Zhao Wei Liew
4b3a03195c msm8226: Remove duplicate repo dependencies
FM HAL is synced by default.

Change-Id: If05a017568b6cc8fed965a49e9f815a625acf8d4
2015-11-25 12:29:06 +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
d0c866c306 msm8226-common: RIL: Remove leftover
Change-Id: Ic768b3e9df4b40854c7015cb38e0b1d4b6c61914
2015-11-17 12:02:56 +01:00