Merge "Merge commit '9ee995fd9b4cbfd00ee14e77c32cd135befb8e39' into HEAD"

This commit is contained in:
Linux Build Service Account 2017-07-06 03:17:35 -07:00 committed by Gerrit - the friendly Code Review server
commit f23fae93de
7 changed files with 309 additions and 63 deletions

18
base.mk
View File

@ -924,6 +924,8 @@ PRODUCT_COPY_FILES := \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.wifi.aware.xml:system/etc/permissions/android.hardware.wifi.aware.xml \
# Bluetooth configuration files # Bluetooth configuration files
#PRODUCT_COPY_FILES += \ #PRODUCT_COPY_FILES += \
@ -947,8 +949,12 @@ PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \ frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ device/qcom/common/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml
ifneq ($(TARGET_ENABLE_QC_AV_ENHANCEMENTS),true)
PRODUCT_COPY_FILES += \
device/qcom/common/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml device/qcom/common/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml
endif
ifeq ($(strip $(TARGET_USES_NQ_NFC)),true) ifeq ($(strip $(TARGET_USES_NQ_NFC)),true)
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
@ -991,11 +997,13 @@ endif
-include frameworks/base/data/videos/VideoPackage1.mk -include frameworks/base/data/videos/VideoPackage1.mk
# dm-verity definitions # dm-verity definitions
PRODUCT_SYSTEM_VERITY_PARTITION=/dev/block/bootdevice/by-name/system ifneq ($(BOARD_AVB_ENABLE), true)
ifeq ($(ENABLE_VENDOR_IMAGE), true) PRODUCT_SYSTEM_VERITY_PARTITION=/dev/block/bootdevice/by-name/system
PRODUCT_VENDOR_VERITY_PARTITION=/dev/block/bootdevice/by-name/vendor ifeq ($(ENABLE_VENDOR_IMAGE), true)
PRODUCT_VENDOR_VERITY_PARTITION=/dev/block/bootdevice/by-name/vendor
endif
$(call inherit-product, build/target/product/verity.mk)
endif endif
$(call inherit-product, build/target/product/verity.mk)
#skip boot jars check #skip boot jars check
SKIP_BOOT_JARS_CHECK := true SKIP_BOOT_JARS_CHECK := true

View File

@ -299,4 +299,7 @@
<!-- Define Google play service package for FRP--> <!-- Define Google play service package for FRP-->
<string name="config_persistentDataPackageName" translatable="false">com.google.android.gms</string> <string name="config_persistentDataPackageName" translatable="false">com.google.android.gms</string>
<!-- Define optional package verifier name -->
<string name="config_optionalPackageVerifierName" translatable="false">seemp.service</string>
</resources> </resources>

View File

@ -149,7 +149,215 @@ enable_sdm845_dcc_config()
echo 1 > $DCC_PATH/config_reset echo 1 > $DCC_PATH/config_reset
echo 2 > $DCC_PATH/curr_list echo 2 > $DCC_PATH/curr_list
#configuration start
echo 0x17DC3A84 2 > $DCC_PATH/config
echo 0x17DB3A84 1 > $DCC_PATH/config
echo 0x17840C18 1 > $DCC_PATH/config
echo 0x17830C18 1 > $DCC_PATH/config
echo 0x17D20000 1 > $DCC_PATH/config
echo 0x17D2000C 1 > $DCC_PATH/config
echo 0x17D20018 1 > $DCC_PATH/config
echo 0x17E00024 1 > $DCC_PATH/config
echo 0x17E00040 1 > $DCC_PATH/config
echo 0x17E10024 1 > $DCC_PATH/config
echo 0x17E10040 1 > $DCC_PATH/config
echo 0x17E20024 1 > $DCC_PATH/config
echo 0x17E20040 1 > $DCC_PATH/config
echo 0x17E30024 1 > $DCC_PATH/config
echo 0x17E30040 1 > $DCC_PATH/config
echo 0x17E40024 1 > $DCC_PATH/config
echo 0x17E40040 1 > $DCC_PATH/config
echo 0x17E50024 1 > $DCC_PATH/config
echo 0x17E50040 1 > $DCC_PATH/config
echo 0x17E60024 1 > $DCC_PATH/config
echo 0x17E60040 1 > $DCC_PATH/config
echo 0x17E70024 1 > $DCC_PATH/config
echo 0x17E70040 1 > $DCC_PATH/config
echo 0x17810024 1 > $DCC_PATH/config
echo 0x17810040 1 > $DCC_PATH/config
echo 0x17810104 1 > $DCC_PATH/config
echo 0x17810118 1 > $DCC_PATH/config
echo 0x17810128 1 > $DCC_PATH/config
echo 0x178100F4 1 > $DCC_PATH/config
echo 0x179C0400 1 > $DCC_PATH/config
echo 0x179C0404 1 > $DCC_PATH/config
echo 0x179C0408 1 > $DCC_PATH/config
echo 0x179C0038 1 > $DCC_PATH/config
echo 0x179C0040 1 > $DCC_PATH/config
echo 0x179C0048 1 > $DCC_PATH/config
echo 0x0B201020 1 > $DCC_PATH/config
echo 0x0B201024 1 > $DCC_PATH/config
echo 0x01301000 1 > $DCC_PATH/config
echo 0x01301004 1 > $DCC_PATH/config
echo 0x1781012C 4 > $DCC_PATH/config
echo 0x17E00048 2 > $DCC_PATH/config
echo 0x17E10048 2 > $DCC_PATH/config
echo 0x17E20048 2 > $DCC_PATH/config
echo 0x17E30048 2 > $DCC_PATH/config
echo 0x17E40048 2 > $DCC_PATH/config
echo 0x17E50048 2 > $DCC_PATH/config
echo 0x17E60048 2 > $DCC_PATH/config
echo 0x17E70048 2 > $DCC_PATH/config
echo 0x17810048 2 > $DCC_PATH/config
echo 0x17990044 1 > $DCC_PATH/config
echo 0x0BBF0000 1 > $DCC_PATH/config
echo 0x0BBF0004 16 > $DCC_PATH/config
echo 0x0BBF0084 1 > $DCC_PATH/config
echo 0x0BBF0088 1 > $DCC_PATH/config
echo 0x0BBF008C 8 > $DCC_PATH/config
echo 0x0BBF010C 64 > $DCC_PATH/config
echo 0x0BBF030C 8 > $DCC_PATH/config
echo 0x0BBF0800 16 > $DCC_PATH/config
echo 0x0BBF0880 16 > $DCC_PATH/config
echo 0x0BBF0900 16 > $DCC_PATH/config
echo 0x0BBF0980 16 > $DCC_PATH/config
echo 0x0BBF0A00 16 > $DCC_PATH/config
echo 0x0BBF0A80 16 > $DCC_PATH/config
echo 0x0BBF1704 1 > $DCC_PATH/config
echo 0x0BA00000 64 > $DCC_PATH/config
echo 0x0BA10000 64 > $DCC_PATH/config
echo 0x0BA20000 64 > $DCC_PATH/config
echo 0x0BA30000 64 > $DCC_PATH/config
echo 0x0BA40000 64 > $DCC_PATH/config
echo 0x0BA50000 64 > $DCC_PATH/config
echo 0x0BA60000 64 > $DCC_PATH/config
echo 0x0BA70000 64 > $DCC_PATH/config
echo 0x0BA80000 64 > $DCC_PATH/config
echo 0x0BA90000 64 > $DCC_PATH/config
echo 0x0BAA0000 64 > $DCC_PATH/config
echo 0x0BAB0000 64 > $DCC_PATH/config
echo 0x0BAC0000 64 > $DCC_PATH/config
echo 0x179E0D14 1 > $DCC_PATH/config
echo 0x179E0D18 1 > $DCC_PATH/config
echo 0x179E0D1C 1 > $DCC_PATH/config
echo 0x179E0D30 1 > $DCC_PATH/config
echo 0x179E0D34 1 > $DCC_PATH/config
echo 0x179E0D38 1 > $DCC_PATH/config
echo 0x179E0D3C 1 > $DCC_PATH/config
echo 0x179E0D44 1 > $DCC_PATH/config
echo 0x179E0D48 1 > $DCC_PATH/config
echo 0x179E0D4C 1 > $DCC_PATH/config
echo 0x179E0D50 1 > $DCC_PATH/config
echo 0x179E0D58 1 > $DCC_PATH/config
echo 0x179E0D5C 1 > $DCC_PATH/config
echo 0x179E0D60 1 > $DCC_PATH/config
echo 0x179E0D64 1 > $DCC_PATH/config
echo 0x179E0FB4 1 > $DCC_PATH/config
echo 0x179E0FB8 1 > $DCC_PATH/config
echo 0x179E0FBC 1 > $DCC_PATH/config
echo 0x179E0FD0 1 > $DCC_PATH/config
echo 0x179E0FD4 1 > $DCC_PATH/config
echo 0x179E0FD8 1 > $DCC_PATH/config
echo 0x179E0FDC 1 > $DCC_PATH/config
echo 0x179E0FE4 1 > $DCC_PATH/config
echo 0x179E0FE8 1 > $DCC_PATH/config
echo 0x179E0FEC 1 > $DCC_PATH/config
echo 0x179E0FF0 1 > $DCC_PATH/config
echo 0x179E0FF8 1 > $DCC_PATH/config
echo 0x179E0FFC 1 > $DCC_PATH/config
echo 0x179E1000 1 > $DCC_PATH/config
echo 0x179E1004 1 > $DCC_PATH/config
echo 0x17D45F00 1 > $DCC_PATH/config
echo 0x17D45F08 1 > $DCC_PATH/config
echo 0x17D45F0C 1 > $DCC_PATH/config
echo 0x17D45F10 1 > $DCC_PATH/config
echo 0x17D45F14 1 > $DCC_PATH/config
echo 0x17D45F18 1 > $DCC_PATH/config
echo 0x17D45F1C 1 > $DCC_PATH/config
echo 0x17D45F80 1 > $DCC_PATH/config
echo 0x17D47418 1 > $DCC_PATH/config
echo 0x17D47570 1 > $DCC_PATH/config
echo 0x17D47588 1 > $DCC_PATH/config
echo 0x17D43700 1 > $DCC_PATH/config
echo 0x17D43708 1 > $DCC_PATH/config
echo 0x17D4370C 1 > $DCC_PATH/config
echo 0x17D43710 1 > $DCC_PATH/config
echo 0x17D43714 1 > $DCC_PATH/config
echo 0x17D43718 1 > $DCC_PATH/config
echo 0x17D4371C 1 > $DCC_PATH/config
echo 0x17D43780 1 > $DCC_PATH/config
echo 0x17D44C18 1 > $DCC_PATH/config
echo 0x17D44D70 1 > $DCC_PATH/config
echo 0x17D44D88 1 > $DCC_PATH/config
echo 0x17D41700 1 > $DCC_PATH/config
echo 0x17D41708 1 > $DCC_PATH/config
echo 0x17D4170C 1 > $DCC_PATH/config
echo 0x17D41710 1 > $DCC_PATH/config
echo 0x17D41714 1 > $DCC_PATH/config
echo 0x17D41718 1 > $DCC_PATH/config
echo 0x17D4171C 1 > $DCC_PATH/config
echo 0x17D41780 1 > $DCC_PATH/config
echo 0x17D42C18 1 > $DCC_PATH/config
echo 0x17D42D70 1 > $DCC_PATH/config
echo 0x17D42D88 1 > $DCC_PATH/config
echo 0x069EA00C 0x00600007 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x00136800 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00136810 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00136820 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00136830 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00136840 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00136850 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00136860 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00136870 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003e9a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003c0a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003d1a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003d2a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003d5a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003d6a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003b1a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003b2a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003b5a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003b6a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003c2a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003c5a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x0003c6a0 1 > $DCC_PATH/config_write
echo 0x069EA01C 0x001368a0 1 > $DCC_PATH/config_write
echo 0x069EA014 1 1 > $DCC_PATH/config
echo 0x069EA01C 0x00f1e000 1 > $DCC_PATH/config_write
echo 0x069EA008 0x00000007 1 > $DCC_PATH/config_write
echo 0x013E7E00 31 > $DCC_PATH/config
#Apply configuration and enable DCC #Apply configuration and enable DCC
echo 1 > $DCC_PATH/enable echo 1 > $DCC_PATH/enable

View File

@ -53,6 +53,14 @@ fi
log -t BOOT -p i "MSM target '$1', SoC '$soc_hwplatform', HwID '$soc_hwid', SoC ver '$soc_hwver'" log -t BOOT -p i "MSM target '$1', SoC '$soc_hwplatform', HwID '$soc_hwid', SoC ver '$soc_hwver'"
#For drm based display driver
vbfile=/sys/module/drm/parameters/vblankoffdelay
if [ -w $vbfile ]; then
echo -1 > $vbfile
else
log -t DRM_BOOT -p w "file: '$vbfile' or perms doesn't exist"
fi
function set_density_by_fb() { function set_density_by_fb() {
#put default density based on width #put default density based on width
if [ -z $fb_width ]; then if [ -z $fb_width ]; then
@ -227,6 +235,13 @@ case "$target" in
;; ;;
esac esac
;; ;;
"msm8909")
case "$soc_hwplatform" in
*)
setprop persist.graphics.vulkan.disable true
;;
esac
;;
"msm8998" | "apq8098_latv") "msm8998" | "apq8098_latv")
case "$soc_hwplatform" in case "$soc_hwplatform" in
*) *)
@ -296,63 +311,66 @@ function setHDMIPermission() {
ln -s $dev_file $dev_gfx_hdmi ln -s $dev_file $dev_gfx_hdmi
} }
# check for HDMI connection # check for the type of driver FB or DRM
for fb_cnt in 0 1 2 3 fb_driver=/sys/class/graphics/fb0
do if [ -e "$fb_driver" ]
file=/sys/class/graphics/fb$fb_cnt/msm_fb_panel_info then
# check for HDMI connection
for fb_cnt in 0 1 2 3
do
file=/sys/class/graphics/fb$fb_cnt/msm_fb_panel_info
if [ -f "$file" ]
then
cat $file | while read line; do
case "$line" in
*"is_pluggable"*)
case "$line" in
*"1"*)
setHDMIPermission $fb_cnt
esac
esac
done
fi
done
# check for mdp caps
file=/sys/class/graphics/fb0/mdp/caps
if [ -f "$file" ] if [ -f "$file" ]
then then
cat $file | while read line; do setprop debug.gralloc.gfx_ubwc_disable 1
case "$line" in cat $file | while read line; do
*"is_pluggable"*) case "$line" in
case "$line" in *"ubwc"*)
*"1"*) setprop debug.gralloc.enable_fb_ubwc 1
setHDMIPermission $fb_cnt setprop debug.gralloc.gfx_ubwc_disable 0
esac esac
esac done
done
fi fi
done
file=/sys/class/graphics/fb0
if [ -d "$file" ]
then
set_perms $file/idle_time system.graphics 0664
set_perms $file/dynamic_fps system.graphics 0664
set_perms $file/dyn_pu system.graphics 0664
set_perms $file/modes system.graphics 0664
set_perms $file/mode system.graphics 0664
set_perms $file/msm_cmd_autorefresh_en system.graphics 0664
fi
# set lineptr permissions for all displays
# check for mdp caps for fb_cnt in 0 1 2 3
file=/sys/class/graphics/fb0/mdp/caps do
if [ -f "$file" ] file=/sys/class/graphics/fb$fb_cnt
then if [ -f "$file/lineptr_value" ]; then
setprop debug.gralloc.gfx_ubwc_disable 1 set_perms $file/lineptr_value system.graphics 0664
cat $file | while read line; do fi
case "$line" in if [ -f "$file/msm_fb_persist_mode" ]; then
*"ubwc"*) set_perms $file/msm_fb_persist_mode system.graphics 0664
setprop debug.gralloc.enable_fb_ubwc 1 fi
setprop debug.gralloc.gfx_ubwc_disable 0
esac
done done
fi fi
file=/sys/class/graphics/fb0
if [ -d "$file" ]
then
set_perms $file/idle_time system.graphics 0664
set_perms $file/dynamic_fps system.graphics 0664
set_perms $file/dyn_pu system.graphics 0664
set_perms $file/modes system.graphics 0664
set_perms $file/mode system.graphics 0664
set_perms $file/msm_cmd_autorefresh_en system.graphics 0664
fi
# set lineptr permissions for all displays
for fb_cnt in 0 1 2 3
do
file=/sys/class/graphics/fb$fb_cnt
if [ -f "$file/lineptr_value" ]; then
set_perms $file/lineptr_value system.graphics 0664
fi
if [ -f "$file/msm_fb_persist_mode" ]; then
set_perms $file/msm_fb_persist_mode system.graphics 0664
fi
done
boot_reason=`cat /proc/sys/kernel/boot_reason` boot_reason=`cat /proc/sys/kernel/boot_reason`
reboot_reason=`getprop ro.boot.alarmboot` reboot_reason=`getprop ro.boot.alarmboot`
power_off_alarm_file=`cat /persist/alarm/powerOffAlarmSet` power_off_alarm_file=`cat /persist/alarm/powerOffAlarmSet`

View File

@ -1131,7 +1131,7 @@ case "$target" in
fi fi
case "$soc_id" in case "$soc_id" in
"293" | "304" ) "293" | "304" | "338" )
# Start Host based Touch processing # Start Host based Touch processing
case "$hw_platform" in case "$hw_platform" in
@ -2367,7 +2367,7 @@ case "$target" in
# Setting b.L scheduler parameters # Setting b.L scheduler parameters
echo 95 > /proc/sys/kernel/sched_upmigrate echo 95 > /proc/sys/kernel/sched_upmigrate
echo 90 > /proc/sys/kernel/sched_downmigrate echo 85 > /proc/sys/kernel/sched_downmigrate
echo 100 > /proc/sys/kernel/sched_group_upmigrate echo 100 > /proc/sys/kernel/sched_group_upmigrate
echo 95 > /proc/sys/kernel/sched_group_downmigrate echo 95 > /proc/sys/kernel/sched_group_downmigrate
echo 0 > /proc/sys/kernel/sched_select_prev_cpu_us echo 0 > /proc/sys/kernel/sched_select_prev_cpu_us
@ -2423,13 +2423,13 @@ case "$target" in
echo "cpufreq" > /sys/class/devfreq/soc:qcom,mincpubw/governor echo "cpufreq" > /sys/class/devfreq/soc:qcom,mincpubw/governor
# cpuset parameters # cpuset parameters
echo 0 > /dev/cpuset/background/cpus echo 0-3 > /dev/cpuset/background/cpus
echo 0-2 > /dev/cpuset/system-background/cpus echo 0-3 > /dev/cpuset/system-background/cpus
# Turn off scheduler boost at the end # Turn off scheduler boost at the end
echo 0 > /proc/sys/kernel/sched_boost echo 0 > /proc/sys/kernel/sched_boost
# Turn on sleep modes. # Turn on sleep modes.
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled echo 1 > /sys/module/lpm_levels/parameters/sleep_disabled
;; ;;
esac esac
@ -2628,7 +2628,7 @@ case "$target" in
echo 1 > /sys/devices/system/cpu/cpu3/online echo 1 > /sys/devices/system/cpu/cpu3/online
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
for devfreq_gov in /sys/class/devfreq/qcom,cpubw*/governor for devfreq_gov in /sys/class/devfreq/*qcom,cpubw*/governor
do do
echo "bw_hwmon" > $devfreq_gov echo "bw_hwmon" > $devfreq_gov
done done

View File

@ -222,7 +222,10 @@ on post-fs-data
mkdir /data/misc/ipa 0700 net_admin net_admin mkdir /data/misc/ipa 0700 net_admin net_admin
mkdir /data/vendor/ramdump 0771 root system
mkdir /data/misc/bluetooth 0770 bluetooth bluetooth mkdir /data/misc/bluetooth 0770 bluetooth bluetooth
mkdir /data/vendor/bluetooth 0770 bluetooth bluetooth
mkdir /data/vendor/ramdump/bluetooth 0770 bluetooth bluetooth
# Create the directories used by the Wireless subsystem # Create the directories used by the Wireless subsystem
mkdir /data/vendor/wifi 0770 wifi wifi mkdir /data/vendor/wifi 0770 wifi wifi
@ -812,6 +815,12 @@ service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
disabled disabled
oneshot oneshot
service mlid /vendor/bin/mlid
class late_start
user gps
group gps
socket mlid stream 0666 gps gps
service loc_launcher /system/vendor/bin/loc_launcher service loc_launcher /system/vendor/bin/loc_launcher
#loc_launcher will start as root and set its uid to gps #loc_launcher will start as root and set its uid to gps
class late_start class late_start
@ -1063,7 +1072,7 @@ service seemp_healthd /system/vendor/bin/seemp_healthd
group system group system
on charger on charger
setprop persist.sys.usb.config charging setprop persist.sys.usb.config mass_storage
load_system_props load_system_props
start qcom-post-boot start qcom-post-boot

View File

@ -326,7 +326,7 @@ case "$target" in
hw_platform=`cat /sys/devices/system/soc/soc0/hw_platform` hw_platform=`cat /sys/devices/system/soc/soc0/hw_platform`
fi fi
case "$soc_id" in case "$soc_id" in
"293" | "304" ) "293" | "304" | "338" )
case "$hw_platform" in case "$hw_platform" in
"Surf") "Surf")
setprop qemu.hw.mainkeys 0 setprop qemu.hw.mainkeys 0