Merge "handle_compcache: update props to match MemoryManagement in settings" into ics
This commit is contained in:
commit
c81b8cdfa3
@ -5,18 +5,18 @@
|
|||||||
#
|
#
|
||||||
MEMTOTAL=$( awk '{ if ($1 eq "MemTotal:") print $2 ;exit }' </proc/meminfo )
|
MEMTOTAL=$( awk '{ if ($1 eq "MemTotal:") print $2 ;exit }' </proc/meminfo )
|
||||||
|
|
||||||
if [ `getprop persist.service.compcache` == 1 ];
|
if [ `getprop persist.service.zram` == 1 ];
|
||||||
then
|
then
|
||||||
PROP=`getprop ro.compcache.default`
|
PROP=`getprop ro.zram.default`
|
||||||
setprop persist.service.compcache $PROP
|
setprop persist.service.zram $PROP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /data/property/persist.service.compcache ];
|
if [ -e /data/property/persist.service.zram ];
|
||||||
then
|
then
|
||||||
PROP=`getprop persist.service.compcache`
|
PROP=`getprop persist.service.zram`
|
||||||
else
|
else
|
||||||
PROP=`getprop ro.compcache.default`
|
PROP=`getprop ro.zram.default`
|
||||||
setprop persist.service.compcache $PROP
|
setprop persist.service.zram $PROP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $PROP != 0 ]
|
if [ $PROP != 0 ]
|
||||||
|
Loading…
Reference in New Issue
Block a user