From 32b9d1fb8a3cef86d0699def712704c8e6aaf64f Mon Sep 17 00:00:00 2001 From: Quarx2k Date: Fri, 3 Apr 2015 22:43:46 +0600 Subject: [PATCH] Update fingerprint, remove performance profiles --- init/init_w7.c | 13 +++---- .../base/core/res/res/values/config.xml | 4 -- rootdir/init.w7.rc | 39 ++++++------------- 3 files changed, 18 insertions(+), 38 deletions(-) diff --git a/init/init_w7.c b/init/init_w7.c index 5a97596..26e5cd6 100644 --- a/init/init_w7.c +++ b/init/init_w7.c @@ -66,7 +66,6 @@ int check_cmdline(char param[]) { return 0; } - void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *board_type) { char serial[PROP_VALUE_MAX]; @@ -88,8 +87,8 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar property_set("ro.product.device", "w7ds"); property_set("ro.product.model", "LG-D410"); } - property_set("ro.build.description", "w7ds_global_com-user 4.4.2 KOT49I.A1398228431 1398228431 release-keys"); - property_set("ro.build.fingerprint", "lge/w7ds_global_com/w7ds:4.4.2/KOT49I.A1398228431/1398228431:user/release-keys"); + property_set("ro.build.description", "w7ds_global_com-user 5.0.2 LRX22G.A1423481010 15040202274a7 release-keys"); + property_set("ro.build.fingerprint", "lge/w7ds_global_com/w7ds:5.0.2/LRX22G.A1423481010/15040202274a7:user/release-keys"); property_set("persist.radio.multisim.config", "dsds"); } else if (strncmp(serial, "LGD405", 6) == 0) { /* D405, D405n */ @@ -101,15 +100,15 @@ void init_msm_properties(unsigned long msm_id, unsigned long msm_ver, char *boar property_set("ro.product.model", "LG-D405"); property_set("ro.product.device", "w7"); } - property_set("ro.build.description", "w7_global_com-user 4.4.2 KOT49I.A1402966338 1402966338 release-keys"); - property_set("ro.build.fingerprint", "lge/w7_global_com/w7:4.4.2/KOT49I.A1402966338/1402966338:user/release-keys"); + property_set("ro.build.description", "w7_global_com-user 5.0.2 LRX22G.A1423481010 15040202274a7 release-keys"); + property_set("ro.build.fingerprint", "lge/w7_global_com/w7ds:5.0.2/LRX22G.A1423481010/15040202274a7:user/release-keys"); property_set("persist.radio.multisim.config", ""); } else if (strncmp(serial, "LGD415", 6) == 0) { /* D415 */ property_set("ro.product.model", "LG-D415"); property_set("ro.product.device", "w7"); - property_set("ro.build.description", "w7_tmo_us-user 4.4.2 KOT49I.D41510c D41510c.1393916607 release-keys"); - property_set("ro.build.fingerprint", "lge/w7_tmo_us/w7:4.4.2/KOT49I.D41510c/D41510c.1393916607:user/release-keys"); + property_set("ro.build.description", "w7_global_com-user 5.0.2 LRX22G.A1423481010 15040202274a7 release-keys"); + property_set("ro.build.fingerprint", "lge/w7_global_com/w7ds:5.0.2/LRX22G.A1423481010/15040202274a7:user/release-keys"); property_set("persist.radio.multisim.config", ""); } else { /* XXX */ diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 8950047..8aa5ddf 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -45,10 +45,6 @@ 15 - - sys.perf.profile - 1 - diff --git a/rootdir/init.w7.rc b/rootdir/init.w7.rc index 900d41f..4063582 100755 --- a/rootdir/init.w7.rc +++ b/rootdir/init.w7.rc @@ -50,7 +50,8 @@ on init # NFC fix symlink /dev/pn547 /dev/pn544 - # CM: We use our own ril-daemon service definition, see mmi-ril-daemon + + # We use our own ril-daemon service definition, see mmi-ril-daemon stop ril-daemon on post-fs @@ -96,6 +97,15 @@ on boot 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 @@ -458,6 +468,7 @@ service irrcServer /system/bin/irrcServer user media group media onrestart restart irrcServer + disabled service qcamerasvr /system/bin/mm-qcamera-daemon class late_start @@ -512,32 +523,6 @@ service config_bluetooth /system/bin/sh /system/etc/init.zetaw.bt.sh "onboot" user root oneshot - Powersave -on property:sys.perf.profile=0 - start mpdecision - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor powersave - write /sys/class/devfreq/fdb00000.qcom,kgsl-3d0/governor powersave - write /sys/class/devfreq/qcom,cpubw.63/governor powersave - -# Balanced -on property:sys.perf.profile=1 - start mpdecision - write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive - write /sys/class/devfreq/fdb00000.qcom,kgsl-3d0/governor msm-adreno-tz - write /sys/class/devfreq/qcom,cpubw.63/governor msm_cpufreq - -# High performance -on property:sys.perf.profile=2 - stop mpdecision - write /sys/devices/system/cpu/cpu0/online 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 performance - write /sys/class/devfreq/fdb00000.qcom,kgsl-3d0/governor performance - write /sys/class/devfreq/qcom,cpubw.63/governor performance - -# CM Performance Profiles on property:sys.boot_completed=1 write /sys/block/mmcblk0/queue/scheduler row write /sys/module/lpm_levels/enable_low_power/l2 4