diff --git a/patches/build/0001-remove-some-bloatware.patch b/patches/build/0001-remove-some-bloatware.patch new file mode 100644 index 0000000..4b38415 --- /dev/null +++ b/patches/build/0001-remove-some-bloatware.patch @@ -0,0 +1,91 @@ +From 2bc95971974821f78f8e5e5cd80fb0779c223c11 Mon Sep 17 00:00:00 2001 +From: Kain Highwind +Date: Tue, 21 Jul 2015 15:01:49 +0200 +Subject: [PATCH] remove some bloatware + +Change-Id: I28874abd47e1901eedc8d1f479df41c4f64c5b81 +--- + target/product/core.mk | 5 ----- + target/product/emulator.mk | 12 ------------ + target/product/generic_no_telephony.mk | 4 ---- + 3 files changed, 21 deletions(-) + +diff --git a/target/product/core.mk b/target/product/core.mk +index a871780..7ba14fb 100644 +--- a/target/product/core.mk ++++ b/target/product/core.mk +@@ -21,10 +21,8 @@ + # core_tiny.mk in addition to core_minimal.mk. + + PRODUCT_PACKAGES += \ +- BasicDreams \ + Browser \ + Calculator \ +- Calendar \ + CalendarProvider \ + CaptivePortalLogin \ + CertInstaller \ +@@ -32,8 +30,6 @@ PRODUCT_PACKAGES += \ + DeskClock \ + DocumentsUI \ + DownloadProviderUi \ +- Email \ +- Exchange2 \ + ExternalStorageProvider \ + FusedLocation \ + InputDevices \ +@@ -46,7 +42,6 @@ PRODUCT_PACKAGES += \ + libpac \ + PrintSpooler \ + ProxyHandler \ +- QuickSearchBox \ + Settings \ + SharedStorageBackup \ + Telecom \ +diff --git a/target/product/emulator.mk b/target/product/emulator.mk +index 62099df..af5225f 100644 +--- a/target/product/emulator.mk ++++ b/target/product/emulator.mk +@@ -25,7 +25,6 @@ PRODUCT_PACKAGES += \ + # Device modules + PRODUCT_PACKAGES += \ + egl.cfg \ +- gralloc.goldfish \ + libGLESv1_CM_emulation \ + lib_renderControl_enc \ + libEGL_emulation \ +@@ -36,16 +35,5 @@ PRODUCT_PACKAGES += \ + libGLESv1_enc \ + qemu-props \ + qemud \ +- camera.goldfish \ +- camera.goldfish.jpeg \ +- lights.goldfish \ +- gps.goldfish \ +- sensors.goldfish \ + e2fsck + +- +-PRODUCT_COPY_FILES += \ +- device/generic/goldfish/fstab.goldfish:root/fstab.goldfish \ +- device/generic/goldfish/init.goldfish.rc:root/init.goldfish.rc \ +- device/generic/goldfish/init.goldfish.sh:system/etc/init.goldfish.sh \ +- device/generic/goldfish/ueventd.goldfish.rc:root/ueventd.goldfish.rc +diff --git a/target/product/generic_no_telephony.mk b/target/product/generic_no_telephony.mk +index a938a5f..68265d3 100644 +--- a/target/product/generic_no_telephony.mk ++++ b/target/product/generic_no_telephony.mk +@@ -19,10 +19,6 @@ + + PRODUCT_PACKAGES := \ + Bluetooth \ +- Camera2 \ +- Gallery2 \ +- Music \ +- MusicFX \ + OneTimeInitializer \ + Provision \ + SystemUI \ +-- +1.9.1 + diff --git a/rootdir/init.w7.rc b/rootdir/init.w7.rc index 5350817..9e55ee8 100755 --- a/rootdir/init.w7.rc +++ b/rootdir/init.w7.rc @@ -174,6 +174,10 @@ on boot # an ack packet comes out of order write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 + # setup permissions for IrRC UART + chown system system /dev/ttyHSL1 + chmod 660 /dev/ttyHSL1 + # NFC local data and nfcee xml storage mkdir /data/nfc 0770 nfc nfc mkdir /data/nfc/param 0770 nfc nfc diff --git a/rootdir/init.w7.rc~ b/rootdir/init.w7.rc~ new file mode 100755 index 0000000..8afd34f --- /dev/null +++ b/rootdir/init.w7.rc~ @@ -0,0 +1,620 @@ +# 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. +# + +import init.w7.usb.rc +on init + mkdir /storage 0751 system sdcard_r + mkdir /storage/sdcard1 0700 root root + mkdir /mnt/media_rw 0700 media_rw media_rw + mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw + mkdir /mnt/shell/emulated 0700 shell shell + mkdir /storage/emulated 0555 root root + + export EXTERNAL_STORAGE /storage/emulated/legacy + export EMULATED_STORAGE_SOURCE /mnt/shell/emulated + export EMULATED_STORAGE_TARGET /storage/emulated + export SECONDARY_STORAGE /storage/sdcard1 + + # for backwards compatibility + symlink /storage/emulated/legacy /sdcard + symlink /storage/emulated/legacy /mnt/sdcard + symlink /storage/emulated/legacy /storage/sdcard0 + symlink /mnt/shell/emulated/0 /storage/emulated/legacy + symlink /storage/sdcard1 /extSdCard + symlink /storage/sdcard1 /mnt/extSdCard + symlink /storage/sdcard1 /external_sd + + # NFC fix + symlink /dev/pn547 /dev/pn544 + + # We use our own ril-daemon service definition, see mmi-ril-daemon + stop ril-daemon + +on post-fs + chmod 664 /sys/devices/virtual/input/lge_touch/touch_gesture + chown system system /sys/devices/virtual/input/lge_touch/touch_gesture + chmod 664 /sys/devices/virtual/input/lge_touch/knock_on_type + chown system system /sys/devices/virtual/input/lge_touch/knock_on_type + chmod 664 /sys/devices/virtual/input/lge_touch/global_access_pixel + chown system system /sys/devices/virtual/input/lge_touch/global_access_pixel + chmod 664 /sys/devices/virtual/input/lge_touch/lpwg_data + chown system system /sys/devices/virtual/input/lge_touch/lpwg_data + chmod 664 /sys/devices/virtual/input/lge_touch/lpwg_notify + chown system system /sys/devices/virtual/input/lge_touch/lpwg_notify + chmod 664 /sys/devices/virtual/input/lge_touch/incoming_call + chown system system /sys/devices/virtual/input/lge_touch/incoming_call + chmod 664 /sys/devices/virtual/input/lge_touch/lockscreen + chown system system /sys/devices/virtual/input/lge_touch/lockscreen + chmod 664 /sys/devices/virtual/input/lge_touch/ime_status + chown system system /sys/devices/virtual/input/lge_touch/ime_status + chown system system /sys/devices/virtual/graphics/fb0/rgb + chmod 0660 /sys/devices/virtual/graphics/fb0/rgb + +on early-boot + # set RLIMIT_MEMLOCK to 64MB + setrlimit 8 67108864 67108864 + write /sys/kernel/boot_adsp/boot 1 + +on boot + # bring CPUs online + 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/module/msm_thermal/core_control/enabled 1 + + #Create QMUX deamon socket area + mkdir /dev/socket/qmux_radio 0770 radio radio + chmod 2770 /dev/socket/qmux_radio + mkdir /dev/socket/qmux_audio 0770 media audio + chmod 2770 /dev/socket/qmux_audio + mkdir /dev/socket/qmux_bluetooth 0770 bluetooth bluetooth + chmod 2770 /dev/socket/qmux_bluetooth + mkdir /dev/socket/qmux_gps 0770 gps gps + chmod 2770 /dev/socket/qmux_gps + + # Subsytem Restart + #adsp + write /sys/bus/msm_subsys/devices/subsys0/restart_level "related" + #modem + write /sys/bus/msm_subsys/devices/subsys1/restart_level "related" + #venus + write /sys/bus/msm_subsys/devices/subsys2/restart_level "related" + write /sys/bus/msm_subsys/devices/subsys3/restart_level "related" + + #Create directory used by sensor subsystem(dsps) + mkdir /data/system/sensors + chmod 665 /data/system/sensors + write /data/system/sensors/settings 1 + chmod 660 /data/system/sensors/settings + # AKM setting data + mkdir /data/misc/sensors + chmod 775 /data/misc/sensors + mkdir /persist/sensors + chmod 775 /persist/sensors + +# Define TCP buffer sizes for various networks +# ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax, + setprop net.tcp.buffersize.default 4096,87380,110208,4096,16384,110208 + setprop net.tcp.buffersize.lte 524288,1048576,2097152,262144,524288,1048576 + setprop net.tcp.buffersize.umts 4094,87380,110208,4096,16384,110208 + setprop net.tcp.buffersize.hspa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hsupa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hsdpa 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.hspap 4094,87380,1220608,4096,16384,1220608 + setprop net.tcp.buffersize.edge 4093,26280,35040,4096,16384,35040 + setprop net.tcp.buffersize.gprs 4092,8760,11680,4096,8760,11680 + setprop net.tcp.buffersize.evdo 4094,87380,262144,4096,16384,262144 + setprop net.tcp.buffersize.wifi 524288,2097152,4194304,262144,524288,1048576 + +# Define TCP delayed ack settings for WiFi & LTE + setprop net.tcp.delack.default 1 + setprop net.tcp.delack.wifi 20 + setprop net.tcp.delack.lte 8 + setprop net.tcp.usercfg.default 0 + setprop net.tcp.usercfg.wifi 1 + setprop net.tcp.usercfg.lte 1 + +# Assign TCP buffer thresholds to be ceiling value of technology maximums +# Increased technology maximums should be reflected here. + write /proc/sys/net/core/rmem_max 2097152 + write /proc/sys/net/core/wmem_max 2097152 + + #To allow interfaces to get v6 address when tethering is enabled + write /proc/sys/net/ipv6/conf/rmnet0/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet1/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet2/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet3/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet4/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet5/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet6/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet7/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio0/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio1/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio2/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio3/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio4/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio5/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio6/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_sdio7/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_usb0/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_usb1/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_usb2/accept_ra 2 + write /proc/sys/net/ipv6/conf/rmnet_usb3/accept_ra 2 + + # To prevent out of order acknowledgements from making + # connection tracking to treat them as not belonging to + # the connection they belong to. + # Otherwise, a weird issue happens in which some long + # connections on high-throughput links get dropped when + # an ack packet comes out of order + write /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal 1 + + # NFC local data and nfcee xml storage + mkdir /data/nfc 0770 nfc nfc + mkdir /data/nfc/param 0770 nfc nfc + + chown media media /dev/msm_IRRC_pcm_dec + chmod 0660 /dev/msm_IRRC_pcm_dec + +on fs + mkdir /dev/usb-ffs 0770 shell shell + mkdir /dev/usb-ffs/adb 0770 shell shell + mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000 + write /sys/class/android_usb/android0/f_ffs/aliases adb + mkdir /dev/bus 0755 root root + mkdir /dev/bus/usb 0755 root root + + # mount fs + mount_all fstab.w7 + + # activate zram + swapon_all fstab.w7 + write /proc/sys/vm/page-cluster 0 + write /proc/sys/vm/swappiness 100 + + # Keeping following partitions outside fstab file. As user may not have + # these partition flashed on the device. Failure to mount any partition in fstab file + # results in failure to launch late-start class. + + mkdir /firmware 0771 system system + mount vfat /dev/block/platform/msm_sdcc.1/by-name/modem /firmware ro shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337 + +on charger + class_start charger + +on post-fs-data + # we will remap this as /mnt/sdcard with the sdcard fuse tool + mkdir /data/media 0770 media_rw media_rw + chown media_rw media_rw /data/media + + mkdir /data/footprint 0750 root log + chown root system /data/footprint + chmod 0775 /data/footprint + + mkdir /sns/cal/ 0644 system system + + mkdir /data/misc/bluetooth 0770 bluetooth bluetooth + + # Create the directories used by the Wireless subsystem + mkdir /data/misc/wifi 0771 wifi system + mkdir /data/misc/wifi/sockets 0770 wifi wifi + mkdir /data/misc/wifi/wpa_supplicant 0770 wifi wifi + mkdir /data/misc/dhcp 0770 dhcp dhcp + + chown dhcp dhcp /data/misc/dhcp + chown dhcp system /data/misc/dhcp + + # Create the directories used by CnE subsystem + mkdir /data/connectivity 0771 system system + chown system system /data/connectivity + + mkdir /data/connectivity/nsrm 0771 system system + chown system system /data/connectivity/nsrm + + mkdir /data/connectivity/nsrm 0771 system system + chown system system /data/connectivity/nsrm + + # Create directory used by audio subsystem + mkdir /data/misc/audio 0770 audio audio + + # Mounting of persist is moved to 'on emmc-fs' and 'on fs' sections + # We chown/chmod /persist again so because mount is run as root + defaults + chown system system /persist + chmod 0771 /persist + chmod 0664 /sys/devices/platform/msm_sdcc.1/polling + chmod 0664 /sys/devices/platform/msm_sdcc.2/polling + chmod 0664 /sys/devices/platform/msm_sdcc.3/polling + chmod 0664 /sys/devices/platform/msm_sdcc.4/polling + + # Chown polling nodes as needed from UI running on system server + chown system system /sys/devices/platform/msm_sdcc.1/polling + chown system system /sys/devices/platform/msm_sdcc.2/polling + chown system system /sys/devices/platform/msm_sdcc.3/polling + chown system system /sys/devices/platform/msm_sdcc.4/polling + + # Allow Torch app use torch + chown system system /sys/class/leds/led:flash_torch/brightness + chmod 0666 /sys/class/leds/led:flash_torch/brightness + + #Create the symlink to qcn wpa_supplicant folder for ar6000 wpa_supplicant + mkdir /data/system 0775 system system + #symlink /data/misc/wifi/wpa_supplicant /data/system/wpa_supplicant + + #Create directories for wiper services + mkdir /data/wpstiles/ 0755 shell + mkdir /data/wiper 0755 gps qcom_oncrpc + + #Create directories for gpsone_daemon services + mkdir /data/misc/gpsone_d 0770 system gps + + #Create directories for QuIPS + mkdir /data/misc/quipc 0770 gps system + + #Create directories for Location services + mkdir /data/misc/location 0770 gps gps + mkdir /data/misc/location/mq 0770 gps gps + mkdir /data/misc/location/xtwifi 0770 gps gps + + #Create directory for hostapd + mkdir /data/hostapd 0770 system wifi + + # Create /data/time folder for time-services + mkdir /data/time/ 0700 system system + + mkdir /data/audio/ 0770 media audio + # Enable the setgid bit on the directory + chmod 2770 /data/audio + + setprop vold.post_fs_data_done 1 + + #Create a folder for SRS to be able to create a usercfg file + mkdir /data/data/media 0770 media media + +on property:init.svc.wpa_supplicant=stopped + stop dhcpcd + +service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated + class late_start + +service fuse_sdcard1 /system/bin/sdcard -u 1023 -g 1023 -d /mnt/media_rw/sdcard1 /storage/sdcard1 + class late_start + disabled + +service irsc_util /system/bin/irsc_util "/etc/sec_config" + class main + user root + oneshot + +service rmt_storage /system/bin/rmt_storage + class core + user root + +service bt-dun /system/bin/dun-server /dev/smd7 /dev/rfcomm0 + class late_start + user bluetooth + group bluetooth net_bt_admin inet + disabled + oneshot + +service bt-sap /system/bin/sapd 15 + user bluetooth + group bluetooth net_bt_admin + class late_start + disabled + oneshot + +service qmuxd /system/bin/qmuxd + class main + user radio + group radio audio bluetooth gps qcom_diag + +service netmgrd /system/bin/netmgrd + class main + +service sensors /system/bin/sensors.qcom + class late_start + user root + group root radio system + +# Adjust socket buffer to enlarge TCP receive window for high bandwidth +# but only if ro.data.large_tcp_window_size property is set. +on property:ro.data.large_tcp_window_size=true + write /proc/sys/net/ipv4/tcp_adv_win_scale 2 + +service p2p_supplicant /system/bin/wpa_supplicant \ + -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ + -I/system/etc/wifi/wpa_supplicant_overlay.conf \ + -O/data/misc/wifi/sockets -N \ + -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \ + -I/system/etc/wifi/p2p_supplicant_overlay.conf \ + -puse_p2p_group_interface=1 -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 wpa_supplicant /system/bin/wpa_supplicant \ + -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \ + -I/system/etc/wifi/wpa_supplicant_overlay.conf \ + -O/data/misc/wifi/sockets \ + -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_wlan0 /system/bin/dhcpcd -aABDKL + class late_start + disabled + oneshot + +service dhcpcd_p2p /system/bin/dhcpcd -aABKL + class late_start + disabled + oneshot + +service iprenew_wlan0 /system/bin/dhcpcd -n + class late_start + disabled + oneshot + +service iprenew_p2p /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 + +service dhcpcd_bt-pan /system/bin/dhcpcd -BKLG + disabled + oneshot + +service iprenew_bt-pan /system/bin/dhcpcd -n + disabled + oneshot + +service hostapd /system/bin/hostapd -dddd /data/hostapd/hostapd.conf + class late_start + user root + group root + oneshot + disabled + +on property:ro.data.large_tcp_window_size=true + # Adjust socket buffer to enlarge TCP receive window for high bandwidth (e.g. DO-RevB) + write /proc/sys/net/ipv4/tcp_adv_win_scale 2 + +on property:persist.radio.multisim.config=dsds + stop ril-daemon + start mmi-ril-daemon + start ril-daemon2 + +service ril-daemon2 /system/bin/rild -c 2 + class main + socket rild2 stream 660 root radio + socket rild-debug2 stream 660 radio system + user root + disabled + group radio cache inet misc audio sdcard_r sdcard_rw diag qcom_diag log net_raw + +on property:ro.bootmode=chargerlogo + class_reset main + class_reset late_start + class_start charger + +service qseecomd /system/bin/qseecomd + class late_start + user root + group root + +service bdaddr_loader /system/bin/bdaddr_loader + user root + group bluetooth net_bt_admin misc net_bt_stack + disabled + oneshot + +service irrcServer /system/bin/irrcServer + class main + user media + group media + onrestart restart irrcServer + disabled + +service qcamerasvr /system/bin/mm-qcamera-daemon + class late_start + user camera + group camera system inet input graphics + +on property:init.svc.media=restarting + restart qcamerasvr +on property:init.svc.servicemanager=restarting + restart qcamerasvr + +service time_daemon /system/bin/time_daemon + class late_start + user root + group root + +service mpdecision /system/bin/mpdecision --avg_comp + class main + user root + group system + +service thermal-engine /system/bin/thermal-engine + class main + user root + group root + +service charger /sbin/charger_w7 + class charger + critical + +service adsprpcd /system/bin/adsprpcd + class main + user media + group media + +service wcnss-service /system/bin/wcnss_service + class late_start + user root + group system wifi + oneshot + +service mmi-ril-daemon /system/bin/rild + class main + socket rild stream 660 root radio + socket rild-debug stream 660 radio system + socket cutback stream 660 media radio + user root + group radio cache inet misc audio sdcard_rw qcom_oncrpc qcom_diag log net_raw diag + +service config_bluetooth /system/bin/sh /system/etc/init.zetaw.bt.sh "onboot" + class core + user root + oneshot + +on property:sys.boot_completed=1 + 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/power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_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/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu1/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu2/retention/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu3/retention/idle_enabled 1 + write /sys/module/msm_show_resume_irq/parameters/debug_mask 1 + 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 "dynamic" + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "dynamic" + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "dynamic" + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "dynamic" + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 300000 + write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 300000 + chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq + chown system system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + chown root system /sys/devices/system/cpu/cpu1/online + chown root system /sys/devices/system/cpu/cpu2/online + chown root system /sys/devices/system/cpu/cpu3/online + chmod 0664 /sys/devices/system/cpu/cpu1/online + chmod 0664 /sys/devices/system/cpu/cpu2/online + chmod 0664 /sys/devices/system/cpu/cpu3/online + +# Experimental settings by J-kun + write /sys/module/intelli_plug/parameters/intelli_plug_active 1 + write /sys/module/intelli_plug/parameters/touch_boost_active 1 + write /sys/module/lowmemorykiller/parameters/minfree 12800,15360,17920,20480,25600,33280 + write /sys/devices/fdb00000.qcom,kgsl-3d0/kgsl/kgsl-3d0/devfreq/governor msm-adreno-tz + write /sys/module/simple_gpu_algorithm/parameters/simple_gpu_activate 1 + write /sys/block/mmcblk1/queue/scheduler fiops + write /sys/block/mmcblk0/queue/scheduler fiops + stop mpdecision + write /sys/kernel/power_suspend/power_suspend_mode 1 + write /sys/block/mmcblk0/queue/read_ahead_kb 512 + write /sys/block/mmcblk1/queue/read_ahead_kb 512 + +# Charger +on property:ro.bootmode=chargerlogo + 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 + + write /sys/module/lpm_levels/enable_low_power/l2 1 + 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_show_resume_irq/parameters/debug_mask 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 + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive" + write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 300000 + chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq + chown system /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq + chown root system /sys/devices/system/cpu/cpu1/online + chown root system /sys/devices/system/cpu/cpu2/online + chown root system /sys/devices/system/cpu/cpu3/online + chmod 664 /sys/devices/system/cpu/cpu1/online + chmod 664 /sys/devices/system/cpu/cpu2/online + chmod 664 /sys/devices/system/cpu/cpu3/online + write /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled 1 + write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1 + write /sys/power/autosleep "mem" + write /sys/module/lpm_levels/enable_low_power/l2 3 + write /sys/class/leds/lcd-backlight/brightness 255 + write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_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 diff --git a/system.prop b/system.prop index 1892edd..0ceb13e 100644 --- a/system.prop +++ b/system.prop @@ -28,7 +28,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ PRODUCT_PROPERTY_OVERRIDES += \ persist.audio.fluence.voicecall=true \ persist.audio.fluence.voicerec=false \ - persist.audio.fluence.speaker=true + persist.audio.fluence.speaker=false PRODUCT_PROPERTY_OVERRIDES += \ ro.qc.sdk.audio.fluencetype=fluence \