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