Merge franco changes

init: qcom: disable mpdecision and add slightly more balanced interactive tunables.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: there's no need for such high sync_threshold for thread migrations. This should give a couple more minutes of battery life per-day.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: sync_threshold was a bit too low and the device lost a bit of responsiveness probably due to the lower bus frequency inherent to the freq step. It's better with this new value.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: With the changes on how interactive calculates load we can and should be more conservative with timer_rate in order to preserve some energy in the long run. Device responsiveness is not altered with this change.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: we can decrease this again because the device is fast enough due to the changes on the frequency calculation.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Set conservative as the GPU governor.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

fstab: this might cause more problems in case of power failure than we want.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: with the super crazy new CPU freq calculation the CPU jumps up/down with more fairness so we don't need it to be boosted on touch input or thread migration. Battery savings are pretty good with these disabled.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: qcom: reduce vibrator strength to reduce the noise.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: qcom: fix path... dumbass.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Set adb debuggable.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: add new defaults based on the latest scheduler commits.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Add superuser.rc for proper superuser detection and changes on the common.rc from CM.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: add proper permissions for sre.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: superuser: no need to call superSu's daemon as it's init from flash_recovery.sh script.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: use a higher input_boost_freq, just one step higher

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Fixes BACON-1293 from https://github.com/CyanogenMod/android_device_oppo_msm8974-common/commit/3880837539118498a6c7470007655ea06d3d6b33

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Merge https://github.com/CyanogenMod/android_device_oppo_msm8974-common/commit/cb9ba94a7c9898206cf9663f2bf82187c07ef678

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Not using thermal-engine anymore, so make the appropriate changes.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Add a fix for encryption brought over from CM's oppo_common branch.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Fix init.fk permissions

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Add a fix for legacy apps that need a specific sdcard path. Brought over from CM's bacon branch.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Using a higher timer_rate (all the latest ULPS and Partial Update features fully working on the mainline CM11S) we can push it up a little up for extra performance.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: we can do lower timer_rate with the Partial Updates benefits. And lower thread migration boost as well.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Merge a fix from CM system branch for the hw RNG to kick in right away.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Hack around to inject the new WCNS (wlan) firmware on post-fs, before the Kernel tries to load the Wi-Fi drivers.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Call fsck on /persist

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Remove the WLAN firmware /system injection. By changing the paths on the Prima driver directly we don't need to replace system files. Thanks to Chirayu Desai and James Sullins for the idea.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

Remove thermal-engine mentions. On Hammerhead the service was called regardless if the service was disabled from the beginning, this the need for renaming the file on /system/bin to .bak. Let's try it out without renaming for a while and monitor if the binary starts out sometime.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: add KCAL sysfs to the system group and write permission so that File class can write to it.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>

init: lower input boost frequency, increase its duration, increase thread migration boost frequency and decrease it's duration.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>