mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
Adapted It To Make It Work In Oreo
This commit is contained in:
parent
7fdb15912c
commit
12e44a0602
3 changed files with 102 additions and 122 deletions
|
@ -1,73 +1,89 @@
|
|||
on init
|
||||
# Copyright (c) 2009-2012, The Linux Foundation. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions are met:
|
||||
# * Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# * Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# * Neither the name of The Linux Foundation nor
|
||||
# the names of its contributors may be used to endorse or promote
|
||||
# products derived from this software without specific prior written
|
||||
# permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
# HMP scheduler settings
|
||||
write /proc/sys/kernel/sched_ravg_hist_size 3
|
||||
write /proc/sys/kernel/sched_window_stats_policy 3
|
||||
on enable-low-power
|
||||
write /sys/module/lpm_levels/enable_low_power/l2 4
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
|
||||
|
||||
# HMP Task packing settings for 8226
|
||||
write /proc/sys/kernel/sched_small_task 50
|
||||
|
||||
# disable thermal core_control to update interactive governor settings
|
||||
write /sys/module/msm_thermal/core_control/enabled 0
|
||||
|
||||
# Switch to interactive and let PowerHAL configure it
|
||||
write /sys/devices/system/cpu/cpu0/online 1
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
||||
chmod 0644 /sys/devices/system/cpu/cpufreq/interactive/boostpulse
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
|
||||
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
|
||||
chmod 0644 /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
|
||||
chmod 0644 /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
||||
chmod 0644 /sys/devices/system/cpu/cpufreq/interactive/timer_rate
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
|
||||
chmod 0644 /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
|
||||
chown system system /sys/devices/system/cpu/cpufreq/interactive/target_loads
|
||||
chmod 0644 /sys/devices/system/cpu/cpufreq/interactive/target_loads
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
|
||||
chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
|
||||
|
||||
# enable thermal core_control now
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
|
||||
# bring all CPUs online
|
||||
write /sys/devices/system/cpu/cpu1/online 1
|
||||
write /sys/devices/system/cpu/cpu2/online 1
|
||||
write /sys/devices/system/cpu/cpu3/online 1
|
||||
|
||||
# Enable low power modes
|
||||
write /sys/module/lpm_levels/parameters/sleep_disabled 0
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
|
||||
|
||||
# Set RPS mask
|
||||
write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 2
|
||||
|
||||
# add a cpuset for the camera daemon
|
||||
# we want all the cores for camera
|
||||
mkdir /dev/cpuset/camera-daemon
|
||||
chown system system /dev/cpuset/camera-daemon
|
||||
chown system system /dev/cpuset/camera-daemon/tasks
|
||||
chmod 0664 /dev/cpuset/camera-daemon/tasks
|
||||
|
||||
# Update foreground and background cpusets
|
||||
# Reserve CPU 3 for the top app
|
||||
write /dev/cpuset/foreground/cpus 0-2
|
||||
write /dev/cpuset/background/cpus 0-2
|
||||
write /dev/cpuset/system-background/cpus 0-1
|
||||
write /dev/cpuset/top-app/cpus 0-3
|
||||
write /dev/cpuset/camera-daemon/cpus 0-3
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
|
||||
on charger
|
||||
write /sys/module/lpm_levels/parameters/sleep_disabled 0
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "powersave"
|
||||
write /sys/module/lpm_levels/enable_low_power/l2 4
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled 1
|
||||
write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
|
||||
|
||||
on class_start:late_start
|
||||
write /sys/module/msm_thermal/core_control/enabled 0
|
||||
|
||||
write /sys/devices/system/cpu/cpu1/online 1
|
||||
write /sys/devices/system/cpu/cpu2/online 1
|
||||
write /sys/devices/system/cpu/cpu3/online 1
|
||||
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave
|
||||
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000
|
||||
|
||||
write /sys/module/msm_thermal/core_control/enabled 1
|
||||
|
||||
write /sys/devices/system/cpu/cpu1/online 0
|
||||
write /sys/devices/system/cpu/cpu2/online 0
|
||||
write /sys/devices/system/cpu/cpu3/online 0
|
||||
|
||||
on boot
|
||||
trigger enable-low-power
|
||||
|
||||
on property:init.svc.recovery=running
|
||||
trigger enable-low-power
|
||||
|
||||
on property:dev.bootcomplete=1
|
||||
setprop sys.io.scheduler "bfq"
|
||||
|
|
|
@ -30,6 +30,7 @@ import init.qcom.usb.rc
|
|||
import init.target.rc
|
||||
|
||||
on early-init
|
||||
export LD_SHIM_LIBS "/system/lib/hw/camera.vendor.msm8226.so|libboringssl-compat.so:/system/vendor/lib/libqomx_jpegenc.so|libboringssl-compat.so:/system/lib/libcrypto.so|libboringssl-compat.so:/system/lib/libril.so|libril_shim.so:/system/vendor/lib/libwvm.so|libwvm_shim.so"
|
||||
|
||||
mount debugfs debugfs /sys/kernel/debug
|
||||
|
||||
|
@ -45,13 +46,9 @@ on early-init
|
|||
on init
|
||||
|
||||
# Support legacy paths
|
||||
symlink /sdcard /mnt/sdcard
|
||||
symlink /sdcard /storage/sdcard0
|
||||
|
||||
on fs
|
||||
wait /dev/block/platform/soc.0/${ro.boot.bootdevice}
|
||||
symlink /dev/block/platform/soc.0/${ro.boot.bootdevice} /dev/block/bootdevice
|
||||
|
||||
mount_all fstab.qcom
|
||||
|
||||
# Support Preload install apks
|
||||
|
@ -488,13 +485,6 @@ on boot
|
|||
write /proc/sys/net/core/rmem_max 8388608
|
||||
write /proc/sys/net/core/wmem_max 8388608
|
||||
|
||||
# Wifi firmware reload path
|
||||
chmod 0660 /sys/module/wlan/parameters/fwpath
|
||||
chown wifi wifi /sys/module/wlan/parameters/fwpath
|
||||
|
||||
# Mark wifi driver as unloaded - "ok" indicates loaded
|
||||
setprop wlan.driver.status not_ok
|
||||
|
||||
on charger
|
||||
wait /dev/block/platform/msm_sdcc.1/by-name/system
|
||||
mount ext4 /dev/block/platform/msm_sdcc.1/by-name/system /system ro barrier=1
|
||||
|
@ -514,7 +504,7 @@ service audiod /system/bin/audiod
|
|||
service charger /sbin/healthd -c
|
||||
class charger
|
||||
critical
|
||||
seclabel u:r:charger:s0
|
||||
seclabel u:r:healthd:s0
|
||||
|
||||
service ds_fmc_appd /system/bin/ds_fmc_appd -p "rmnet0" -D
|
||||
class late_start
|
||||
|
@ -546,7 +536,7 @@ service irsc_util /system/bin/irsc_util "/etc/sec_config"
|
|||
service mpdecision /system/bin/mpdecision --avg_comp
|
||||
class main
|
||||
user root
|
||||
oneshot
|
||||
group system
|
||||
|
||||
service qcamerasvr /system/bin/mm-qcamera-daemon
|
||||
class late_start
|
||||
|
@ -556,7 +546,7 @@ service qcamerasvr /system/bin/mm-qcamera-daemon
|
|||
service qmuxd /system/bin/qmuxd
|
||||
class main
|
||||
user radio
|
||||
group radio audio bluetooth gps oem_2950 diag log
|
||||
group radio audio bluetooth gps qcom_diag
|
||||
|
||||
service qseecomd /system/bin/qseecomd
|
||||
class core
|
||||
|
@ -602,7 +592,7 @@ service wcnss-service /system/bin/wcnss_service
|
|||
oneshot
|
||||
|
||||
# WPA
|
||||
service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
||||
service p2p_supplicant /system/bin/wpa_supplicant \
|
||||
-ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
|
||||
-I/system/etc/wifi/p2p_supplicant_overlay.conf -N \
|
||||
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
||||
|
@ -618,55 +608,29 @@ service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
|
|||
disabled
|
||||
oneshot
|
||||
|
||||
on property:init.svc.wpa_supplicant=stopped
|
||||
stop dhcpcd
|
||||
|
||||
service dhcpcd_wlan0 /system/bin/dhcpcd -ABKLG
|
||||
class late_start
|
||||
service wpa_supplicant /system/bin/wpa_supplicant \
|
||||
-iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
|
||||
-I/system/etc/wifi/wpa_supplicant_overlay.conf \
|
||||
-e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
|
||||
# we will start as root and wpa_supplicant will switch to user wifi
|
||||
# after setting up the capabilities required for WEXT
|
||||
# user wifi
|
||||
# group wifi inet keystore
|
||||
class main
|
||||
socket wpa_wlan0 dgram 660 wifi wifi
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_p2p /system/bin/dhcpcd -ABKLG
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
# Dual-sim support
|
||||
on property:persist.radio.multisim.config=dsds
|
||||
stop ril-daemon
|
||||
start ril-daemon
|
||||
start ril-daemon1
|
||||
|
||||
service iprenew_wlan0 /system/bin/dhcpcd -n
|
||||
class late_start
|
||||
service ril-daemon1 /system/bin/rild -l /system/lib/libsec-ril-dsds.so -c 2
|
||||
class main
|
||||
socket rild2 stream 660 root radio
|
||||
socket rild-debug2 stream 660 radio system
|
||||
user root
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service iprenew_p2p /system/bin/dhcpcd -n
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service iprenew_bt-pan /system/bin/dhcpcd -n
|
||||
class late_start
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
|
||||
service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
|
||||
disabled
|
||||
oneshot
|
||||
group radio cache inet misc audio log qcom_diag system drmrpc sdcard_r sdcard_rw shell
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#
|
||||
|
||||
# the DIAG device node is not world writable/readable.
|
||||
/dev/diag 0660 system oem_2950
|
||||
/dev/diag 0660 system qcom_diag
|
||||
|
||||
/dev/genlock 0666 system system
|
||||
/dev/kgsl 0666 system system
|
||||
|
@ -145,8 +145,8 @@
|
|||
/dev/msm_sps 0660 system audio
|
||||
/dev/msm_voicememo 0660 system audio
|
||||
/dev/radio0 0640 fm_radio fm_radio
|
||||
/dev/smd3 0660 bluetooth bluetooth
|
||||
/dev/smd2 0660 bluetooth bluetooth
|
||||
/dev/smd3 0660 bluetooth net_bt_stack
|
||||
/dev/smd2 0660 bluetooth net_bt_stack
|
||||
/dev/ttyHSL0 0660 radio system
|
||||
/dev/ttyHSL1 0660 system system
|
||||
/dev/mdm 0660 system radio
|
||||
|
|
Loading…
Reference in a new issue