mako: add directory to communicate with mpdecision and thermald
As changing uid of mpdecision, change mpdecision socket path.
Previous path needed to access as root uid, not system uid.
So use another path to access as system uid for communicating with
mpdecision and thermald.
Change-Id: Ic82860e7102462a10dbb8dc8903a59083d5bd7a5
diff --git a/init.mako.rc b/init.mako.rc
index 54df27e..0ece6c9 100644
--- a/init.mako.rc
+++ b/init.mako.rc
@@ -193,6 +193,10 @@
# LED On/Off synchronization
chown system system /sys/class/leds/red/device/lock
+ # communicate with mpdecision and thermald
+ mkdir /dev/socket/mpdecision 0770 system system
+ chmod 2770 /dev/socket/mpdecision
+
# Enable Power modes and set the CPU Freq Sampling rates
write /sys/module/rpm_resources/enable_low_power/L2_cache 1
write /sys/module/rpm_resources/enable_low_power/pxo 1