Skip to content

Commit

Permalink
Update fingerprint, remove performance profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarx2k committed Apr 3, 2015
1 parent ff7073d commit 32b9d1f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 38 deletions.
13 changes: 6 additions & 7 deletions init/init_w7.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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 */
Expand All @@ -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 */
Expand Down
4 changes: 0 additions & 4 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@
<item>15</item>
</integer-array>

<!-- Performance profiles -->
<string name="config_perf_profile_prop">sys.perf.profile</string>
<string name="config_perf_profile_default_entry">1</string>

<!-- Whether to enable auto provisioning the app for new SIM card on boot.
<bool name="config_auto_provision_enable">true</bool>
-->
Expand Down
39 changes: 12 additions & 27 deletions rootdir/init.w7.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 32b9d1f

Please sign in to comment.