181372052 rtmixmanager version 20130514 packages installer sh pdf

34
7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 1/34 #!/system/bin/sh #RTMixManagerâ ¢ packages installer. #Copyright 2013 LENAROX@xda # #this engine will solve any lags and crashes on games, heavy apps and so on. #wh ich most of the mid-range android gamers have always wanted;) #rock your RAM Man ager like a Windows NT!!!(da well known BOSS of RAM Management ), you know what i mean.:p #ATTENTION!!! this engine requires the latest busybox version FROM ste ricson, in stalled to run properly. #reminder: this engine is designed to run in  the background realtime(yeah, RT lo l:p) with the android ram management, #ther efore it should NOT be used with any other script applications. # #thanks to man y xda devs who have helped me to develop better codes! #thanks to zeppelinrox fo r the script design, and the bugfix! #thanks to gu5t3r for the bugfix:) # #Dirty  Hack: #http://www.gentoo-wiki.info/Gigabyte_GA-G33M-S2H #http://www.sysxperts.c om/home/announce/vmdirtyratioandvmdirtybackgroundratio #Android LowMemoryKiller:  #http://dalinaum-kr.tumblr.com/post/4528344482/android-low-memory-killer # #do not steal this script installer or the script that is being installed by thi s i nstaller. #you must always ask me for any permission thats related to this scrip t, #and give a credit by linking to this thread: http://forum.xda-developers.com /sh owthread.php?t=2076101 main() { rtmixman_checkver=20130514 clear echo "===== ===========================================" sleep 2 if [ -e /system/etc/init.d/ SS99RTMixManager ] && [ -e /system/etc/usrsettings ] && [ -e /system/etc/readme. html ]; then if [ "`getprop rtmixman_checkver`" -gt "$rtmixman_checkver" ]; then  setprop rtmixman_inst wise echo "currently installed version is superior than "  echo " ...this one!" echo "means...this installer is oudated:p " echo "are you trying to downgrade it for some reason? " elif [ "`getprop rtmixman_checkver`" - eq "$rtmixman_checkver" ]; then setprop rtmixman_inst null echo "you have the la test version `getprop rtmixman_checkver` of " echo " ...this engine installed." elif [ "`getprop rtmixman_checkver`" -lt "$rtmixman_checkver" ]; then setprop rt mixman_inst wise echo "you have `getprop rtmixman_checkver` while this, " echo "  ...installer version is $rtmixman_checkver. " echo " " echo "you will not be gi ven the install option unless," echo " ...you uninstall the old version first." elif [ "`getprop rtmixman_checkver`" == null ]; then setprop rtmixman_inst wise echo "this installer detected that it have failed to "

Upload: siddhantkankrej

Post on 18-Jan-2016

41 views

Category:

Documents


2 download

DESCRIPTION

dasad

TRANSCRIPT

Page 1: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 1/34

#!/system/bin/sh #RTMixManagerâ ¢ packages installer. #Copyright 2013 LENAROX@xda ##this engine will solve any lags and crashes on games, heavy apps and so on. #which most of the mid-range android gamers have always wanted;) #rock your RAM Manager like a Windows NT!!!(da well known BOSS of RAM Management ), you know whati mean.:p #ATTENTION!!! this engine requires the latest busybox version FROM stericson, in stalled to run properly. #reminder: this engine is designed to run in the background realtime(yeah, RT lo l:p) with the android ram management, #therefore it should NOT be used with any other script applications. # #thanks to many xda devs who have helped me to develop better codes! #thanks to zeppelinrox for the script design, and the bugfix! #thanks to gu5t3r for the bugfix:) # #Dirty Hack: #http://www.gentoo-wiki.info/Gigabyte_GA-G33M-S2H #http://www.sysxperts.com/home/announce/vmdirtyratioandvmdirtybackgroundratio #Android LowMemoryKiller: #http://dalinaum-kr.tumblr.com/post/4528344482/android-low-memory-killer # #donot steal this script installer or the script that is being installed by thi s installer. #you must always ask me for any permission thats related to this script, #and give a credit by linking to this thread: http://forum.xda-developers.com/sh owthread.php?t=2076101 main() { rtmixman_checkver=20130514 clear echo "================================================" sleep 2 if [ -e /system/etc/init.d/SS99RTMixManager ] && [ -e /system/etc/usrsettings ] && [ -e /system/etc/readme.html ]; then if [ "`getprop rtmixman_checkver`" -gt "$rtmixman_checkver" ]; then setprop rtmixman_inst wise echo "currently installed version is superior than " echo " ...this one!" echo "means...this installer is oudated:p " echo "are youtrying to downgrade it for some reason? " elif [ "`getprop rtmixman_checkver`" -eq "$rtmixman_checkver" ]; then setprop rtmixman_inst null echo "you have the la

test version `getprop rtmixman_checkver` of " echo " ...this engine installed."elif [ "`getprop rtmixman_checkver`" -lt "$rtmixman_checkver" ]; then setprop rtmixman_inst wise echo "you have `getprop rtmixman_checkver` while this, " echo " ...installer version is $rtmixman_checkver. " echo " " echo "you will not be given the install option unless," echo " ...you uninstall the old version first."elif [ "`getprop rtmixman_checkver`" == null ]; then setprop rtmixman_inst wiseecho "this installer detected that it have failed to "

Page 2: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 2/34

echo echo echo echo else

"complete its operations due to some error from " "the last time you have installed. " " " "please contact the developer for help. "

setprop rtmixman_inst wise echo "unknown version identified. uninstall first..." echo " ...before installing." fi 2>/dev/null while true; do echo "uninstall(u), reboot(r), or quit(q) " echo " your choice...:" read i case "$i" in u|U) unwise ;; r|R) fastreboot ;; q|Q) echo " " echo "exiting... " exit ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done elif [ -e /system/xbin/rtmixman ] && [ -e /system/etc/usrsettings ] && [ -e /sys tem/etc/readme.html ]; then if [ "`getprop rtmixman_checkver`" -gt "$rtmixman_checkver" ]; then setprop rtmixman_inst wise echo "currently installed version is superior than " echo " ...this one!" echo "means...this installer is oudated:p " echo "are you trying to downgrade it for some reason? " elif [ "`getprop rtmixman_checkver`" -eq "$rtmixman_checkver" ]; then setprop rtmixman_inst null echo "you have the latest version `getprop rtmixman_checkver` of " echo " ...this engine installed." elif [ "`getprop rtmixman_checkver`" -lt "$rtmixman_checkver" ]; thensetprop rtmixman_inst wise echo "you have `getprop rtmixman_checkver` while this, " echo " ...installer version is $rtmixman_checkver. " echo " " echo "you will not be given the install option unless," echo " ...you uninstall the old version first." elif [ "`getprop rtmixman_checkver`" == null ]; then setprop rtmixman_ inst wise echo "this installer detected that it have failed to " echo "completeits operations due to some error from " echo "the last time you have installed.

" echo " "

Page 3: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 3/34

echo "please contact the developer for help. else

"

setprop rtmixman_inst null echo "you have an xbin version that is currently, " echo "not running in memory. run it first before you " echo "continue! " fi 2>/dev/null while true; do echo "uninstall(u), reboot(r), or quit(q) " echo " your choice...:" read i case "$i" in u|U) unwise ;; r|R) fastreboot ;; q|Q) echo " echo "exiting... exit ;; *) echo " echo "user typed an invalid option, please try again. sleep 2 ;; esac done else while true; do echo "install(i), reboot(r), or quit(q) " echo " your choice...:" read i case "$i" in i|I) userinit ;; r|R) fastreboot ;; q|Q) echo " echo "exiting... exit ;; *) echo " echo "user typed an invalid option, please try again. sleep 2 ;; esac done fi } unwise() { sleep 2 whiletrue; do

" "

" "

" "

" "

Page 4: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 4/34

echo echo read case

"are you sure you wish to completely, " " ...remove it from your device?(y/n):"i "$i" in y|Y) break ;; n|N) echo " " echo " canceled." sleep 2 main ;; *) echo" " echo "user typed an invalid option, please try again. " sleep 2 ;;

esac done echo " " echo "mounting required directories to uninstall... " sync; busybox mount -o remount,rw / sync; busybox mount -o remount,rw rootfs sync; busybox mount -o remount,rw /system echo "performing uninstallation, please wait..." rm /system/etc/init.d/SS99RTMixManager 2>/dev/null rm /system/xbin/rtmixman 2>/dev/null rm /system/etc/usrsettings 2>/dev/null rm /system/etc/readme.html 2>/dev/null setprop rtmixman_checkver null if [ -e "/system/etc/init.d/SS98enable_touchscreen" ] || [ -e "/system/etc/init. d/SS97Netweaks" ]; then while true; do echo " " echo "would you like to erase all the previous version" echo " ...specific scripts, too?(y/n):" read i case "$i" in y|Y) echo " " echo "removing old scripts... " rm /system/etc/init.d/SS97Netweaks 2>/dev/null rm /system/etc/init.d/SS98enable_touchscreen 2>/dev/null break ;; n|N) echo " " echo " canceled." sleep 2 break ;; *) echo " " echo "user typed an invalid option, please try again. "sleep 2 ;; esac done fi

Page 5: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 5/34

if [ -e "/system/etc/init.d/SS99RTMixManager" ] || [ -e "/system/etc/usrsettings " ] || [ -e "/system/etc/readme.html" ] || [ -e "/system/xbin/rtmixman" ]; then sleep 2 echo " " echo "failed to uninstall properly.:( " echo " ...please contact the developer for help." exit else echo " ...done!" if [ "`getprop rtmixman_inst`" == wise ]; then setprop rtmixman_inst null while true; do sleep 2 echo "continue to installer?(y/n): " read i case "$i" in y|Y) sleep 2 userinit ;; n|N) fastreboot ;; *) echo " " echo "user typed an invalid option, please try a gain." sleep 2 ;; esac done elif [ "`getprop rtmixman_inst`" == null ]; then fastreboot else setprop rtmixman_inst null sleep 2 echo " " echo "failed to uninstall properly.:( " echo " ...please contact the developer for help." exit fi fi } fastreboot() { sleep 2 while true; do echo " " echo "would you like to restart?(y/n): " read i case "$i" in y|Y) sleep 2 clear echo "restarting... " reboot ;; n|N) echo " "

Page 6: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 6/34

echo " canceled." sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done } makeinit() { echo "mounting required directories... " sync; busybox mount -o remount,rw / sync; busybox mount -o remount,rw rootfs sync; busybox mount -o remount,rw /system if [ ! -d "/sqlite_stmt_journals" ]; then echo "installing required components... " mkdir /sqlite_stmt

 _journals chown 0.0 /sqlite_stmt_journals chmod 777 /sqlite_stmt_journals fi if[ ! -d "/system/etc/init.d" ]; then echo "creating init.d directory... " mkdir /system/etc/init.d chown 0.0 /system/etc/init.d chmod 777 /system/etc/init.d fi if [ ! -e "/system/etc/install-recovery.sh" ]; then echo "registering init.d support... " cat > /system/etc/install-recovery.sh <<EOF #!/system/bin/sh busybox run-parts /system/etc/init.d EOF chown 0.0 /system/etc/install-recovery.sh chmod 777 /system/etc/install-recovery.sh fi if [ -d "/system/etc/init.d" ] && [ -e "/system/etc/install-recovery.sh" ]; then sleep 2 echo " ...done!" else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi } userinit() { clear echo "================================================" sleep 2 echo " " echo " TERMS AND CONDITIONS " sleep 2 echo " " echo "Copyright (C) 2013 LENAROX@xda "

Page 7: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 7/34

sleep 2 echo " " echo "This program is free software: " sleep 2 echo "you can redistribute it and/or modify it under " echo "the terms of the GNU General Public License as " echo "published by the Free Software Foundation, " sleep 2 echo "either version 3 of the License, or any later " echo "version. " sleep 2 echo " " echo "This program is distributed in the hope that it " echo "will be useful, but WITHOUT ANY WARRANTY; " sleep 2 echo "without even the implied warranty of "echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR " echo "PURPOSE. " sleep 2 echo " " echo "See the GNU General Public License for more " echo "details. " sleep 7 while true; do echo " " echo "if you choose to accept, press (a). " echo "ifyou want to return to main menu, press (d). " read i case "$i" in a|A) echo " "echo " accepted." sleep 2 break ;; d|D) echo " " echo " declined." sleep 2 main;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done echo " " while true; do echo " " echo "how would you like to install it? " echo " ...the (e)asy way, or the (h)ard way?:" sleep 2 echo "you can always quit anytime with (q). " read i case "$i" in e|E) echo " " echo "typical mode selected. "

Page 8: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 8/34

sleep 2 typical ;; h|H) echo " " echo "custom mode selected. " sleep 2 custom ;; q|Q) echo " " echo " canceled." sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done } typical() { clear echo "================================================" sleep 2 echo "gathering device information... " sleep 1 if [ ! -d "/system/etc/init.d" ]; then echo "yoursystem does not support init.d directory. " while true; do echo "would you liketo make one? " echo " ...or just go with xbin mode?(y/n):" read i case $i in y|Y) echo " " echo "setting up init.d... " makeinit setprop rtmixman_locations i break ;; n|N) echo "xbin selected. " setprop rtmixman_locations x echo ">>type 'rtmixman' in terminal emulator, whenever" echo "you wish to run this engine!<< " sleep 2 break ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done else

Page 9: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 9/34

echo "init.d selected. setprop rtmixman_locations i fi echo " " echo "typical mode " echo " TABLE OF CONTENTS " sleep 2 echo " " echo "(g)amer package: " echo "-Rapid Storage Boost Technology 2.1 " echo "-MPEngine integrated " sleep 1 echo" " echo "(m)ultitasking package: " echo "-Rapid Storage Boost Technology 2.1 "echo "-Core Engine 2.1 " echo "-MPEngine integrated " sleep 1 echo " " echo "(f)ull package: " echo "-AP Boost " echo "-Rapid Storage Boost Technology 2.1 " echo "-Core Engine 2.1 " echo "-MPEngine integrated " echo " " sleep 2 echo " " while true; do echo "which one would you like to install?(g/m/f): read i case "$i"in g|G) setprop rtmixman_sdvm 0 setprop rtmixman_rsb 1 setprop rtmixman_rtmix 0setprop rtmixman_mpe 1 echo " gamer package echo " install ;; m|M) setprop rtmixman_sdvm 0 setprop rtmixman_rsb 1 setprop rtmixman_rtmix 1 setprop rtmixman_mpe1 echo " multitasking package echo " install ;; f|F) setprop rtmixman_sdvm 1 setprop rtmixman_rsb 1 setprop rtmixman_rtmix 1 setprop rtmixman_mpe 1 echo " fullpackage echo " install ;; q|Q) setprop rtmixman_locations null

"

"

selected!" "

selected!" "

selected!" "

Page 10: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 10/34

echo " " echo " canceled." sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done } custom() { while true; doecho "where would you like to install? " echo " ...(i)nit.d, or (x)bin?:" read i case "$i" in i|I) sleep 1 if [ ! -d "/system/etc/init.d" ]; then echo "your system does not support init.d directory. " while true; do echo "would you like tomake one? " echo " ...or just go with xbin mode? (y/n):" read i case $i in y|Y)echo " " echo "setting up init.d... " makeinit setprop rtmixman_locations i sleep 7 break ;; n|N) echo "xbin selected. " setprop rtmixman_locations x sleep 2 echo " " echo ": type 'rtmixman' in terminal emul ator, whenever" echo " ...you wish to ru n this engine!" sleep 7 break ;; q|Q) echo " " echo " canceled."

Page 11: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 11/34

sleep 2 main ;; *) echo " " echo "user typed an invalid option, plea se try again. " sleep 2 ;; esac done else echo "init.d selected. setprop rtmixman_locations i sleep 7 fi break ;; x|X) echo "xbin selected. " setprop rtmixman_locations xsleep 2 echo " " echo ": type 'rtmixman' in terminal emulator, whenever" echo "...you wish to run this engine!" sleep 7 break ;; q|Q) echo " " echo " canceled." sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done clear echo "================================================" sleep 2 echo " " echo "custom mode " echo " LONG ASS CHARTS " sleep 2 echo " " echo "AP boost " sleep 2 echo " " echo "-this part of the engine handles the Dalvik VM. " echo "-fixes badly coded games to run a bit better. " sleep 2while true; do echo " echo "would you like to apply?(y/n): read i "

" "

Page 12: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 12/34

case "$i" in y|Y) echo " " echo "enabled. " setprop rtmixman_sdvm 1 sleep 2 break ;; n|N) echo " " echo "disabled. " setprop rtmixman_sdvm 0 sleep 2 break ;; q|Q) setprop rtmixman_locations null echo " " echo " canceled." sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done echo " " echo "Rapid Storage Boost Technology 2.1 " sleep 2 echo " " echo "-this part of the engine fixes the I/O. " echo "-needed for games with high I/O interactivity. " echo "-reminder: 'Unlocked' refers to some features, " echo " ...that are modified or deleted to gain more" echo "efficient performance of the original engine. " echo "-co-operates with AP boost " echo "-uses realtime settings. " sleep 2 while true; do echo " echo "would you like to apply?(y/n): read i case "$i" in y|Y) echo " echo "enabled. setprop rtmixman_rsb 1 sleep 2 break;; n|N) echo " echo "disabled. setprop rtmixman_rsb 0 sleep 2 break ;;

" "

" "

" "

Page 13: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 13/34

q|Q) setprop rtmixman_locations null setprop rtmixman_sdvm null echo " " echo "canceled." sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done echo " " echo "Core Engine 2.1 " sleep 2 echo " " echo "-this part of the engine handles the " echo "Androidâ ¢ lowmemorykiller. " echo "-it allows you to gain more free memory, while " echo " ...avoiding launcher redraws at the same time." echo "-NOTE: Don't use this engine if your current " echo " ...launcher happens to be a memory hog!(70mb~)" echo "-uses realtime settings. " sleep 2 while true; do echo " " echo "would you like to apply?(y/n): " read i case "$i" in y|Y) echo " " echo "enabled. " setprop rtmixman_rtmix 1 sleep 2 break ;; n|N) echo " " echo "disabled. " setprop rtmixman_rtmix 0 sleep 2 break ;; q|Q) setprop rtmixman_locations null setprop rtmixman_sdvm null setprop rtmixman_rsb null echo " " echo " canceled." sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;;

Page 14: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 14/34

esac done echo " " echo "MPEngine integrated " sleep 2 echo " " echo "-this part of the engine dominates pretty much " echo " ...any lags you see, one-by-one.:)" echo "-some users reported that once this engine " echo " ...starts to kick in, the device spits out" echo "a massive gaming performance! " echo "-uses realtime settings. " sleep 2 while true; do echo " " echo "would you like to apply?(y/n): " read i case "$i" in y|Y) echo " " echo "enabled. " setprop rtmixman_mpe 1sleep 2 break ;; n|N) echo " " echo "disabled. " setprop rtmixman_mpe 0 sleep 2break ;; q|Q) setprop rtmixman_locations null setprop rtmixman_sdvm null setprop rtmixman_rsb null setprop rtmixman_rtmix null echo " " echo " canceled." sleep2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done echo " " echo "all set! " install } install() { rtmixman_checkver=20130514 sleep 2 echo " " echo "setup is installing RTMixManager $rtmixman_ checkver... " echo "================================================"

Page 15: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 15/34

echo "gathering setup information... if [ "`getprop rtmixman_locations`" == i ]; then rtmixman_locations=i setprop rtmixman_locations null elif [ "`getprop rtmixman_locations`" == x ]; then rtmixman_locations=x setprop rtmixman_locations null else setprop rtmixman_locations null setprop rtmixman_sdvm null setprop rtmixman_rsb null setprop rtmixman_rtmix null setprop rtmixman_mpe null sleep 2 echo" echo "failed to install properly.:( echo " ...please contact the developer exit fi if [ "`getprop rtmixman_sdvm`" == 1 ]; then rtmixman_sdvm=1 setprop rtmixman_sdvm null elif [ "`getprop rtmixman_sdvm`" == 0 ]; then rtmixman_sdvm=0 setprop rtmixman_sdvm null else setprop rtmixman_locations null setprop rtmixman_sdvmnull setprop rtmixman_rsb null setprop rtmixman_rtmix null setprop rtmixman_mpenull sleep 2 echo " echo "failed to install properly.:( echo " ...please contact the developer exit fi if [ "`getprop rtmixman_rsb`" == 1 ]; then rtmixman_rsb=1 setprop rtmixman_rsb null elif [ "`getprop rtmixman_rsb`" == 0 ]; then rtmixman

 _rsb=0 setprop rtmixman_rsb null else setprop rtmixman_locations null setprop rtmixman_sdvm null setprop rtmixman_rsb null setprop rtmixman_rtmix null setprop rtmixman_mpe null sleep 2 echo " echo "failed to install properly.:( echo " ...please contact the developer exit fi if [ "`getprop rtmixman_rtmix`" == 1 ]; thenrtmixman_rtmix=1 setprop rtmixman_rtmix null elif [ "`getprop rtmixman_rtmix`" == 0 ]; then rtmixman_rtmix=0

"

" " for help."

" " for help."

" " for help."

Page 16: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 16/34

setprop rtmixman_rtmix null else setprop rtmixman_locations null setprop rtmixman_sdvm null setprop rtmixman_rsb null setprop rtmixman_rtmix null setprop rtmixman_mpe null sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi if [ "`getprop rtmixman_mpe`" == 1]; then rtmixman_mpe=1 setprop rtmixman_mpe null elif [ "`getprop rtmixman_mpe`" == 0 ]; then rtmixman_mpe=0 setprop rtmixman_mpe null else setprop rtmixman_locations null setprop rtmixman_sdvm null setprop rtmixman_rsb null setprop rtmixman_rtmix null setprop rtmixman_mpe null sleep 2 echo " " echo "failed to installproperly.:( " echo " ...please contact the developer for help." exit fi if [ "$rtmixman_sdvm" == 1 ] || [ "$rtmixman_rsb" == 1 ] || [ "$rtmixman_rtmix" == 1 ] || [ "$rtmixman_mpe" == 1 ]; then sync; busybox mount -o remount,rw / sync; busybox mount -o remount,rw rootfs sync; busybox mount -o remount,rw /system if [ ! -d "/sqlite_stmt_journals" ]; then echo "installing required components... " mkdir /sqlite_stmt_journals chown 0.0 /sqlite_stmt_journals chmod 777 /sqlite_stmt_journals fi if [ -e "`echo $EXTERNAL_STORAGE`/rtmixtemp.sh" ]; then echo "removing existing old temporary data... " rm `echo $EXTERNAL_STORAGE`/rtmixtemp*.sh 2>/dev/null fi echo "copying new files... " sleep 7 setprop rtmixman_checkver nullcat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #!/system/bin/sh #RTMixManagerâ ¢ version $rtmixman_checkver #version check. setprop rtmixman_checkver $rtmixman_ checkver #Copyright 2013 LENAROX@xda # #this engine will solve any lags and crashes on games, heavy apps and so on. #which most of the mid-range android gamershave always wanted;) #rock your RAM Manager like a Windows NT!!!(da well known BOSS of RAM Management ), you know what i mean.:p

Page 17: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 17/34

#ATTENTION!!! this engine requires the latest busybox version FROM stericson, in stalled to run properly. #reminder: this engine is designed to run in the background realtime(yeah, RT lo l:p) with the android ram management, #therefore it should NOT be used with any other script applications. # #thanks to many xda devs who have helped me to develop better codes! #thanks to zeppelinrox for the script design, and the bugfix! #thanks to gu5t3r for the bugfix:) # #Dirty Hack: #http://www.gentoo-wiki.info/Gigabyte_GA-G33M-S2H #http://www.sysxperts.com/home/announce/vmdirtyratioandvmdirtybackgroundratio #Android LowMemoryKiller: #http://dalinaum-kr.tumblr.com/post/4528344482/android-low-memory-killer # #do not stealthis script installer or the script that is being installed by thi s installer.#you must always ask me for any permission thats related to this script, #and give a credit by linking to this thread: http://forum.xda-developers.com/sh owthread.php?t=2076101 EOF if [ "$rtmixman_rsb" == 1 ] || [ "$rtmixman_rtmix" == 1 ] || [ "$rtmixma n_mpe" == 1 ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp2.sh<<EOF usrsettings package installed at `date`. NOTE: do NOT set any invalid values in usrsettings. NOTE2: do NOT set 0 on interval types of values. reminder: values are applied in realtime. EOF fi if [ "$rtmixman_locations" == i ]; then rtmixman_location_specific=/system/etc/init.d/SS99RTMixManager elif [ "$rtmixman_locations" == x ]; then rtmixman_location_specific=/system/xbin/rtmixman else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact thedeveloper for help." exit fi cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh <<EOF readme.html<br> package installed at `date`.<br> <br> RTMixManagerâ ¢ version $rtmixman_checkver<br> Copyright 2013 LENAROX@xda<br> <br> this engine will solve any lags and crashes on games, heavy apps and so on.<br> which most of the mid-rang

e android gamers have always wanted;)<br> rock your RAM Manager like a Windows NT!!!(da well known BOSS of RAM Management) , you know what i mean.:p<br> ATTENTION!!! this engine requires the latest busybox version FROM stericson, ins talled to run properly.<br> reminder: this engine is designed to run in the background realtime(yeah, RT lol :p) with the android ram management,<br> therefore it should NOT be used with any other script applications.<br>

Page 18: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 18/34

<br> thanks to many xda devs who have helped me to develop better codes!<br> thanks to zeppelinrox for the script design, and the bugfix!<br> thanks to gu5t3r for the bugfix:)<br> <br> Dirty Hack:<br> <a href="http://www.gentoo-wiki.info/Gigabyte_GA-G33M-S2H">http://www.gentoo-wik i.info/Gigabyte_GA-G33M-S2H</a><br> <a href="http://www.sysxperts.com/home/announce/vmdirtyratioandvmdirtybackground ratio">http://www.sysxperts.com/home/announce/vmdirtyratioandvmdirtybackgroundratio</a><br> Android LowMemoryKiller:<br> <a href="http://dalinaum-kr.tumblr.com/post/4528344482/android-low-memory-killer ">http://dalinaum-kr.tumblr.com/post/4528344482/android-low-memory-killer</a><br > <br> <b>do not steal this script installer or the script that is being installed by t his installer.<br> you must always ask me for any permission thats related to this script, and give a creditby linking to this thread <a href="http://forum.xda-developers .com/showthread.php?t=2076101">here</a>.</b><br> <br> TERMS AND CONDITIONS:<br> Copyright 2013 LENAROX@xda<br> <br> This program is free software: you can redistribute it and/or modify<br> it under the terms of the GNU General Public License as published by<br> the Free Software Foundation, either version 3 of the License, or<br> (at your option) any later version.<br> <br> This program is distributed in the hopethat it will be useful,<br> but WITHOUT ANY WARRANTY; without even the implied warranty of<br> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br> <br> See the GNU General Public License for more details.<br> <br> <br> Games & Others Compatibility List:<br> ================================================<br> AP boost:<br> -this part of the engine handles the Dalvik VM.<br> -fixes badly coded games to run a bit better.<br> <br> Rapid Storage Boost Technology 2.1:<br> -this part of the engine fixes the I/O.<br> -needed for games with high I/O interac

tivity.<br> -reminder: 'Unlocked' refers to some features that are modified or deleted to ga in more efficient performance of the original engine.<br> -co-operates with AP boost<br> <br> Core Engine 2.1:<br> -this part of the engine handles the Androidâ ¢ lowmemorykiller.<br> -it allows you to gain more free memory, whileavoiding launcher redraws at the same time.<br> -NOTE: Don't use this engine ifyour current launcher happens to be a memory hog !(70mb~)<br> <br> MPEngine integrated:<br> -this part of the engine dominates pretty much any lags you see, one-by-one.:)<b r>

Page 19: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 19/34

-some users reported that once this engine starts to kick in, the device spits o ut a massive gaming performance!<br> <br> <br> some of these features may not be working if you havent chose them in installer. <br> <br> Do NOT rename or move RTMixManagerâ ¢ folders and files to other directory.<br> engine files are put in each specified folder for better use.<br> currently active directories for RTMixManagerâ ¢ are:<br> $rtmixman_location_specific<br> /system/etc/usrsettings<br> /system/etc/readme.html<br> if you accidentally delete or corrupt a file that is listed in here, youre in a big trouble;)<br> <br> <br> <b>important note:</b><br> in this version, the logging system is now supported!<br> you can checkout the log at /data/rtmixmanager.log directory:D(only if you're us ing an init.d method)<br> <br> brief usrsettings information:<br> ================================================<br> first,<br> <br> NOTE: do NOT set any invalid values in usrsettings.<br> NOTE2: do NOT set 0 on interval types of values.<br> reminder: values are applied in realtime.<br> <br> settings currently available(may differ if its not a full mode.)<br> <br> Rapid Storage Boost Technology 2.1:<br> <br> rsb_refresh_sec_interval<br> -it sets rsb engine to cycle every 'n' seconds.<br> -recommended to increase this value to save more battery.<br> -decreasing down value islimited to 1.<br> -default value is 4.<br> <br> Core Engine 2.1:<br> <br> core_refresh_sec_interval<br> -it sets core engine to cycle every 'n' seconds.<br> -recommended to leave this value default since it regenerates processes realtime .<br> -decreasing down value is limited to 1.<br> -default value is 4.<br> <br> MPEngine integrated:<br> <br> mpe9x_refresh_sec_interval<br> -it sets mpe9x engine to cycle every 'n' seconds.<br> -this one is also associated with the engine aggressivity.<br> -recommended to increase this value to save more battery.<br> -d

ecreasing down value is limited to 2.<br> -default value is 4.<br> <br> half_registered_ram_interval<br> -it sets a limit of division by 'n' on realtime cachesize and freememory percent

Page 20: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 20/34

age.<br> -recommended to increase this value to save more battery.<br> -decreasing down value is limited to 1.<br> -default value is 6.<br> <br> quarter_registered_ram_interval<br> -it sets a limit of division by 'n' on calculated half_registered_ram_interval p ercentage.<br> -recommended to decrease this value to flush harder only when needed.<br> -decreasing down value is limited to 1.<br> -default value is 2.<br> <br> enable_flush_timing<br> -this one multiplies mpe9x_refresh_sec_interval by 2 internally.<br> -it enables the dedicated engine to act like a conservative governor.<br> -but there was some known problems that slowingdown timing may lead to unintend ed lags,<br> -and more battery consumption.<br> -recommended to leave this value default(off).<br> -default value is 0.<br> <br> following list shows installed engine parts:<br> ================================================<br> EOF if [ "$rtmixman_locations" == i ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #init.d mode. exec > /dev/null 2>&1 if ["\$1" != BG ]; then \$0 BG & exit 0 fi #start logging. ( echo "logging started on \`date\`" echo "if you see nothing below, it means the script is working fine:)" EOF elif [ "$rtmixman_locations" == x ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #xbin mode. echo "type 'rtmixman' in terminal emulator, whenever you wish to run this engine !" echo "engine started on \`date\`" echo "if you see nothing below, it means the script is working fine:)" EOF else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi if [ "$rtmixman_sdvm" == 1 ]; then cat >> `echo $EXTERNAL

 _STORAGE`/rtmixtemp.sh <<EOF #AP boost MFK=\`cat /proc/sys/vm/min_free_kbytes\`TOTALMEM=\`free | awk '{ print \$2 }' | sed -n 2p\` REALTOTALMEM=\$((\$TOTALMEM-\$MFK)) if getprop | grep -q dalvik.vm.heapgrowthlimit; then dalvikvmheapsize=\`

getprop dalvik.vm.heapsize | sed 's/m//'\` dalvikvmheapgrowthlimit=\$((\$dalvikvmheapsize/2))

Page 21: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 21/34

setprop dalvik.vm.heapsize "\$dalvikvmheapsize"m setprop dalvik.vm.heapgrowthlimit "\$dalvikvmheapgrowthlimit"m else static=512 if [ "\$REALTOTALMEM" -le 524288 ]; then dalvikvmheapsize=\$((\$static/4)) elif [ "\$REALTOTALMEM" -le 1048576 ]; then dalvikvmheapsize=\$((\$static/2)) elif [ "\$REALTOTALMEM" -le 2097152 ];then dalvikvmheapsize=\$static else dalvikvmheapsize=\$static fi dalvikvmheapgrowthlimit=\$((\$dalvikvmheapsize/2)) setprop dalvik.vm.heapsize "\$dalvikvmheapsize"m setprop dalvik.vm.heapgrowthlimit "\$dalvikvmheapgrowthlimit"m fi if ! getprop | grep -q dalvik.vm.heapstartsize; then if [ "\$REALTOTALMEM" -le 524288 ];then setprop dalvik.vm.heapstartsize 5m elif [ "\$REALTOTALMEM" -le 1048576 ]; then setprop dalvik.vm.heapstartsize 8m elif [ "\$REALTOTALMEM" -le 2097152 ]; then setprop dalvik.vm.heapstartsize 16m else setprop dalvik.vm.heapstartsize 16mfi fi EOF cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh <<EOF AP boost<br> EOF elif [ "$rtmixman_sdvm" == 0 ]; then sleep 0 else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi if [ "$rtmixman_rsb" == 1 ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #Rapid Storage Boost Technology 2.1 (while true; do MFK=\`cat /proc/sys/vm/min_free_kbytes\` TOTALMEM=\`free | awk '{ print \$2 }' | sed -n 2p\` REALTOTALMEM=\$((\$TOTALMEM-\$MFK)) if getprop | grep -q dalvik.vm.heapgrowthlimit; then dalvikvmheapgrowthlimit=\`getprop dalvik.vm.heapgrowthlimit | se d 's/m//'\` dalvikvmheapsize=\`getprop dalvik.vm.heapsize | sed 's/m//'\` dalvik_ratio=\$((\$dalvikvmheapgrowthlimit*100)) dirty=\$((\$dalvik_ratio/\$dalvikvmheapsize)) m=\$((\$dirty*10)) n=\$((\$dalvikvmheapgrowthlimit*1000/\$dalvikvmheapsize)) sub=\$((\$n-\$m)) if [ "\$sub" -ge 5 ]; then dirty=\$((\$dirty+1)) fi

Page 22: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 22/34

background=\$((\$dirty/2)) x=\$((\$background*10)) y=\$((\$dirty*10/2)) add=\$((\$y-\$x)) if [ "\$add" != 0 ]; then background=\$dirty fi if [ -e "/proc/sys/vm/dirty_ratio" ]; then if [ \`cat /proc/sys/vm/dirty_ratio\` != "\$dirty" ]; th en echo "\$dirty" > /proc/sys/vm/dirty_ratio fi fi if [ -e "/proc/sys/vm/dirty_background_ratio" ]; then if [ \`cat /proc/sys/vm/dirty_background_ratio\` != "\$background" ]; then echo "\$background" > /proc/sys/vm/dirty_backgro und_ratio fi fi else static=512 if [ "\$REALTOTALMEM" -le 524288 ]; then dalvikvmheapsize=\$((\$static/4)) elif [ "\$REALTOTALMEM" -le 1048576 ]; then dalvikvmheapsize=\$((\$static/2)) elif [ "\$REALTOTALMEM" -le 2097152 ]; then dalvikvmheapsize=\$static else dalvikvmheapsize=\$static fi dalvikvmheapgrowthlimit=\`getprop dalvik.vm.heapsize | sed 's/m/ /'\` dalvik_ratio=\$((\$dalvikvmheapgrowthlimit*100)) dirty=\$((\$dalvik_ratio/\$dalvikvmheapsize)) m=\$((\$dirty*10)) n=\$((\$dalvikvmheapgrowthlimit*1000/\$dalvikvmheapsize)) sub=\$((\$n-\$m)) if [ "\$sub" -ge 5 ]; then dirty=\$((\$dirty+1)) fi background=\$((\$dirty/2)) x=\$((\$background*10))y=\$((\$dirty*10/2)) add=\$((\$y-\$x)) if [ "\$add" != 0 ]; then background=\$dirty fi if [ -e "/proc/sys/vm/dirty_ratio" ]; then if [ \`cat /proc/sys/vm/dirty_ ratio\` != "\$dirty" ]; th en echo "\$dirty" > /proc/sys/vm/dirty_ratio fi fi if [ -e "/proc/sys/vm/dirty_background_ratio" ]; then if [ \`cat /proc/sys/vm/dirty_background_ratio\` != "\$b ackground" ]; then echo "\$background" > /proc/sys/vm/dirty_backgro und_ratio fi

Page 23: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 23/34

fi fi if [ -e "/proc/sys/vm/dirty_writeback_centisecs" ]; then if [ \`cat /proc/sys/vm/dirty_writeback_centisecs\` != 27640520 ]; then echo 27640520 > /proc/sys/vm/dirty_writeback_centisecs fi fi if [ -e "/proc/sys/vm/dirty_expire_centisecs" ]; then if [ \`cat /proc/sys/vm/dirty_expire_centisecs\` != 0 ]; then echo 0 > /proc/sys/vm/dirty_expire_centisecs fi fi if [ -e "/system/etc/usrsettings" ];then rsb_refresh_sec_interval=\`cat /system/etc/usrsettings | grep rs b_refresh_ sec_interval | sed 's/rsb_refresh_sec_interval=//'\` if [ "\$rsb_refresh_sec_interval" ]; then if [ "\$rsb_refresh_sec_interval" -le 0 ]; then rsb_refresh_sec_interval=4 fi fi else rsb_refresh_sec_interval=4 fi sleep \$rsb_refresh_sec_interval done &) EOF if [ -s "`echo $EXTERNAL_STORAGE`/rtmixtemp2.sh" ]; then cat >>`echo $EXTERNAL_STORAGE`/rtmixtemp2.sh <<EOF rsb_refresh_sec_interval=4 EOF fi cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh <<EOF Rapid Storage Boost Technology 2.1<br> EOF elif [ "$rtmixman_rsb" == 0 ]; then sleep 0 else sleep 2 echo " "echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi if [ "$rtmixman_rtmix" == 1 ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #Core Engine 2.1 #alternative to renice processes method. setprop ENFORCE_PROCESS_LIMIT false #RT-Styled engine. (while true; do MFK=\`cat /proc/sys/vm/min_free_kbytes\` TOTALMEM=\`free | awk '{ print \$2 }' | sed -n2p\` REALTOTALMEM=\$((\$TOTALMEM-\$MFK)) lowpage=\$((\$MFK/4)) if getprop | grep -q dalvik.vm.heapgrowthlimit; then requiredsize=\`getprop dalvik.vm.heapgrowthlimit | sed 's/m//'\` else requiredsize=\`getprop dalvik.vm.heapsize | sed 's/m//'\` fi

Page 24: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 24/34

pagelimiter=\$((\$requiredsize*1024/4)) #if [ -e "/proc/\`pgrep launcher\`/status" ]; then # launchersize=\`cat /proc/\$(pgrep launcher)/status | grep VmRSS | awk '{print \$2}'\` # if [ "\$launchersize" -le "\$requiredsize" ]; then # if [ "\`cat /proc/\$(pgrep launcher)/oom_adj\`" != -16 ] ; then # echo "-16" > /proc/\`pgrep launcher\`/oom_adj # fi # fi #fi #if [ -e "/proc/\`pgrep acore\`/status"]; then # acoresize=\`cat /proc/\$(pgrep acore)/status | grep VmRSS | awk '{print \$2}'\` # if [ "\$acoresize" -le "\$requiredsize" ]; then # if [ "\`cat /proc/\$(pgrep acore)/oom_adj\`" != -12 ]; t hen # echo "-12" > /proc/\`pgrep acore\`/oom_adj # fi # fi #fi if [ -e "/sys/module/lowmemorykiller/parameters/adj" ]; then if [ \`cat /sys/module/lowmemorykiller/parameters/adj\` != -12,0 ,1,2,9,15 ]; then echo "-12,0,1,2,9,15" > /sys/module/lowmemorykiller/para meters/adj fi fiif [ -e "/sys/module/lowmemorykiller/parameters/minfree" ]; then if [ "\$REALTOTALMEM" -le 524288 ]; then if [ \`cat /sys/module/lowmemorykiller/parameters/minfre e\` != "\$lowpage,\$pagelimiter,\$pagelimiter,\$pagelimiter,\$pagelimiter,\$page limiter" ]; then echo "\$lowpage,\$pagelimiter,\$pagelimiter,\$pa gelimiter,\$pagelimiter,\$pagelimiter" > /sys/module/lowmemorykiller/parameters/ minfree fi elif [ "\$REALTOTALMEM" -le 1048576 ]; then if [ \`cat /sys/module/lowmemorykiller/parameters/minfre e\` != "\$lowpage,\$pagelimiter,\$pagelimiter,\$pagelimiter,\$lowpage,\$pagelimi ter" ]; then echo "\$lowpage,\$pagelimiter,\$pagelimiter,\$pa gelimiter,\$lowpage,\$pagelimiter" > /sys/module/lowmemorykiller/parameters/minf ree fi elif [ "\$REALTOTALMEM" -le 2097152 ]; then if [ \`cat /sys/module/lowmemorykiller/parameters/minfre e\` != "\$lowpage,\$pagelimiter,\$lowpage,\$pagelimiter,\$lowpage,\$pagelimiter" ]; then echo "\$lowpage,\$pagelimiter,\$lowpage,\$pageli miter,\$lowpage,\$pagelimiter" > /sys/module/lowmemorykiller/parame

ters/minfree fi else if [ \`cat /sys/module/lowmemorykiller/parameters/minfre e\` != "\$lowpage,\$pagelimiter,\$lowpage,\$pagelimiter,\$lowpage,\$pagelimiter" ]; then echo "\$lowpage,\$pagelimiter,\$lowpage,\$pageli miter,\$lowpage,\$pagelimiter" > /sys/module/lowmemorykiller/parameters/minfree fi fi

Page 25: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 25/34

fi if [ -e "/system/etc/usrsettings" ]; then core_refresh_sec_interval=\`cat /system/etc/usrsettings | grep c ore_refresh_sec_interval | sed 's/core_refresh_sec

 _interval=//'\` if [ "\$core_refresh_sec_interval" ]; then if [ "\$core_refresh_ sec_interval" -le 0 ]; then core_refresh_sec_interval=4 fi fi else core_refresh_ sec_interval=4 fi sleep \$core_refresh_sec_interval done &) EOF if [ -s "`echo $EXTERNAL_STORAGE`/rtmixtemp2.sh" ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp2.sh <<EOF core_refresh_sec_interval=4 EOF fi cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh <<EOF Core Engine 2.1<br> EOF elif [ "$rtmixman_rtmix" == 0 ]; then sleep 0 else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi if [ "$rtmixman_mpe" == 1 ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #MPEngine integrated #inspired by minwin. (while true; do if [ -e "/system/etc/usrsettings" ]; then mpe9x_refresh_sec_interval=\`cat /system/etc/usrsettings | grep mpe9x_refresh_sec_interval | sed 's/mpe9x_refresh_sec_interval=//'\` if [ "\$mpe9x_refresh_sec_interval" ]; then if [ "\$mpe9x_refresh_sec_interval" -le 1 ]; then mpe9x_refresh_sec_interval=4 fi fi else mpe9x_refresh_sec_interval=4 fi SKIP=\$((\$mpe9x_refresh_sec

 _interval/2)) SLUG=\$((\$mpe9x_refresh_sec_interval*2)) MFK=\`cat /proc/sys/vm/min_free_kbytes\` FREEMEM=\`free | awk '{ print \$4 }' | sed -n 2p\` CACHESIZE=\`cat /proc/meminfo | grep Cached | awk '{print \$2}' | sed -n 1p\` TOTALMEM=\`free | awk '{ print \$2 }' | sed -n 2p\` REALTOTALMEM=\$((\$TOTALMEM-\$MFK)) MEMINUSE=\$((\$CACHESIZE+\$FREEMEM)) if [ -e "/system/etc/usrsettings" ]; then half_registered_ram_interval=\`cat /system/etc/usrsettings | gre p half_registered_ram_ interval | sed 's/half_registered_ram_interval=//'\`

Page 26: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 26/34

if [ "\$half_registered_ram_interval" ]; then if [ "\$half_registered_ram_interval" -le 0 ]; then half_registered_ram_interval=6 fi fi else half_registered_ram_ interval=6 fi if [ -e "/system/etc/usrsettings" ]; then quarter_registered_ram_interval=\`cat /system/etc/usrsettings | grep quarter_registered_ram_interval | sed 's/quarter_registered_ram_interval=// '\` if [ "\$quarter_registered_ram_interval" ]; then if [ "\$quarter_registered_ram_interval" -le 0 ]; then quarter_registered_ram_interval=2 fi fi else quarter_registered_ram_interval=2 fi if [ -e "/system/etc/usrsettings" ]; then enable_flush_timing=\`cat /system/etc/usrsettings | grep enable_ flush_timing | sed 's/enable_flush_timing=//'\` if [ "\$enable

 _flush_timing" ]; then if [ "\$enable_flush_timing" != 0 ] && [ "\$enable_flush _timing" != 1 ]; then enable_flush_timing=0 fi fi else enable_flush_timing=0 fiDEADLINE=\$((\$REALTOTALMEM-\$MEMINUSE)) DEADEND=\$((\$DEADLINE/\$half_registered_ram_interval)) DEADEND2=\$((\$DEADEND/\$quarter_registered_ram_interval)) if [ "\$FREEMEM" -le "\$MFK" ]; then if [ "\$enable_flush_timing" == 0 ]; then busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP elif [ "\$enable_flush_timing" == 1 ];then busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP else busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP fi elif [ "\$FREEMEM" -gt "\$MFK" ] && [ "\$FREEMEM" -le "\$DEADEND2" ]; th en if [ "\$enable_flush_timing" == 0 ]; then busybox sync; echo "1" > /proc/sys/vm/drop_caches

Page 27: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 27/34

sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP elif [ "\$enable_flush_timing" == 1 ]; then busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP else busybox sync; echo "1"> /proc/sys/vm/drop_caches sleep \$SKIP busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$SKIP fi elif [ "\$FREEMEM" -gt "\$DEADEND2" ] && [ "\$FREEMEM" -le "\$DEADEND" ] ; then if [ "\$enable_flush_timing" == 0 ]; then busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$mpe9x_refresh_sec_interval elif ["\$enable_flush_timing" == 1 ]; then busybox sync; echo "1" > /proc/sys/vm/drop_ caches sleep \$mpe9x_refresh_sec_interval busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$mpe9x_refresh_sec_interval else busybox sync; echo "1" > /proc/sys/vm/drop_caches sleep \$mpe9x_refresh_sec_interval fi elif [ "\$FREEMEM" -gt "\$DEADEND" ] && [ "\$FREEMEM" -le "\$MEMINUSE" ] ; then if [ "\$enable_flush

 _timing" == 0 ]; then sleep \$mpe9x_refresh_sec_interval elif [ "\$enable_flush_ timing" == 1 ]; then sleep \$SLUG else sleep \$mpe9x_refresh_sec_interval fi else if [ "\$enable_flush_timing" == 0 ]; then sleep \$mpe9x_refresh_sec_interval elif [ "\$enable_flush_timing" == 1 ]; then sleep \$SLUG else sleep \$mpe9x_refresh_sec_interval fi fi done &) EOF if [ -s "`echo $EXTERNAL_STORAGE`/rtmixtemp2.sh" ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp2.sh <<EOF mpe9x_refresh_sec

 _interval=4 half_registered_ram_interval=6 quarter_registered_ram_interval=2 enable_flush_timing=0 EOF fi

Page 28: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 28/34

cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh <<EOF MPEngine integrated<br> EOFelif [ "$rtmixman_mpe" == 0 ]; then sleep 0 else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi if [ "$rtmixman_locations" == i ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #finish logging. ) 2>&1 | tee /data/rtmixmanager.log EOF elif [ "$rtmixman_locations" == x ]; then sleep 0 else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp.sh <<EOF #xda: http://forum.xda-developers.com/showthread.php?t=2076101 #matcl: http://matcl.com/?m=bbs&bid=imbeded&uid=130014 #droid-hive: http://droid-hive.com/index.php?/topic/1674-20130325ram-scriptinsta llerdalvik-booster-lite-v2rtmixmanager%E2%84%A2/ #blog: http://blog.naver.com/hoholee12 #sourcecode: https://github.com/lenarox/rtmixproject #email: [email protected] EOF if [ -s "`echo $EXTERNAL_STORAGE`/rtmixtemp2.sh" ]; then cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp2.sh <<EOF xda: http://forum.xda-developers.com/showthread.php?t=2076101 matcl: http://matcl.com/?m=bbs&bid=imbeded&uid=130014 droid-hive: http://droid-hive.com/index.php?/topic/1674-20130325ram-scriptinstal lerdalvik-booster-lite-v2rtmixmanager%E2%84%A2/ blog: http://blog.naver.com/hoholee12 sourcecode: https://github.com/lenarox/rtmixproject email: [email protected] EOF fi cat >> `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh <<EOF <br> xda: <a href="http://forum.xda-developers.com/showthread.php?t=2076101">http://f orum.xda-developers.com/showthread.php?t=2076101</a><br> matcl: <a href="http://matcl.com/?m=bbs&bid=imbeded&uid=130014">http://matcl.com /?m=bbs&bid=imbeded&uid=130014</a><br> droid-hive: <a href="http://droid-hive.com/index.php?/topic/1674-20130325ram-scr iptinstallerdalvik-booster-lite-v2rtmixmanager%E2%84%A2/">http://

droid-hive.com/ index.php?/topic/1674-20130325ram-scriptinstallerdalvik-booster-lite-v2rtmixmana ger%E2%84%A2/</a><br> blog: <a href="http://blog.naver.com/hoholee12">http://blog.naver.com/hoholee12< /a><br> sourcecode: <a href="https://github.com/lenarox/rtmixproject">https://github.com

Page 29: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 29/34

/lenarox/rtmixproject</a><br> email: [email protected]<br> <br> EOF if [ -s "`echo $EXTERNAL_STORAGE`/rtmixtemp.sh" ]; then if [ "$rtmixman_locations" == i ]; then cp `echo $EXTERNAL_STORAGE`/rtmixtemp.sh /system/etc/ini t.d/SS99RTMixManager chown 0.0 /system/etc/init.d/SS99RTMixManager chmod 777 /system/etc/init.d/SS99RTMixManager elif [ "$rtmixman_locations" == x ]; then cp `echo $EXTERNAL_STORAGE`/rtmixtemp.sh /system/xbin/rt mixman chown 0.0 /system/xbin/rtmixman chmod777 /system/xbin/rtmixman fi fi if [ -s "`echo $EXTERNAL_STORAGE`/rtmixtemp2.sh" ]; then cp `echo $EXTERNAL_STORAGE`/rtmixtemp2.sh /system/etc/usrsetting s chown 0.0 /system/etc/usrsettings chmod 777 /system/etc/usrsettings fi if [ -s "`echo $EXTERNAL_STORAGE`/rtmixtemp3.sh" ]; then cp `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh /system/etc/readme.htm l chown 0.0 /system/etc/readme.html chmod 777 /system/etc/readme.html fi if [ "$rtmixman_locations" == i ]; then rtmixman_location_ specific=/system/etc/init.d/SS99RTMixManager elif [ "$rtmixman_locations" == x ]; then rtmixman_location_specific=/system/xbin/rtmixman else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi if [ -s "/system/etc/init.d/SS99RTMixManager" ] && [ -s "/system/etc/usr settings" ] && [ -s "/system/etc/readme.html" ]; then setprop rtmixman_checkver $rtmixman_checkver echo "removing temporary backup... " rm `echo $EXTERNAL_STORAGE`/rtmixtemp.sh 2>/dev/null rm `echo $EXTERNAL_STORAGE`/rtmixtemp2.sh 2>/dev/null rm `echo $EXTERNAL_STORAGE`/rtmixtemp3.sh 2>/dev/null rm -r /sqlite_stmt_journals 2>/dev/null echo " completed." sleep 2 echo " " echo "opening readme.html...press back button to quit." am start -a android.intent.action.VIEW -n com.android.htmlviewer /.HTMLViewerActivity -d file://system/etc/readme.html 1>/dev/null sleep 2 echo " " echo "Android needs to be restarted, " echo " ...in orde

r to take affect!" fastreboot elif [ -s "/system/xbin/rtmixman" ] && [ -s "/system/etc/usrsettings" ]

Page 30: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 30/34

&& [ -s "/system/etc/readme.html" ]; then setprop rtmixman_checkver $rtmixman_checkver echo "removing temporary backup... " rm `echo $EXTERNAL_STORAGE`/rtmixtemp.sh 2>/dev/null rm `echo $EXTERNAL_STORAGE`/rtmixtemp2.sh 2>/dev/null rm `echo$EXTERNAL_STORAGE`/rtmixtemp3.sh 2>/dev/null rm -r /sqlite_stmt_journals 2>/dev/null echo " completed." sleep 2 echo " " echo "opening readme.html...press backbutton to quit." am start -a android.intent.action.VIEW -n com.android.htmlviewer /.HTMLViewerActivity -d file://system/etc/readme.html 1>/dev/null sleep 2 echo " " echo "now, type 'su' and 'rtmixman' in terminal... " echo " everytime you reboot, in order to take affect!" sleep 7 main else sleep 2 echo " " echo "failed to install properly.:( " echo " ...please contact the developer for help." exit fi else setprop rtmixman_locations null setprop rtmixman_sdvm null setprop rtmixman_rsb null setprop rtmixman_rtmix null setprop rtmixman_mpe null sleep 2 echo " " echo "there is no engine selected to install. " while true; do echo " ...(r)einstall, or return to (m)enu?" read i case "$i" in r|R) sleep 2 userinit ;; m|M) sleep 2 main ;; *) echo " " echo "user typed an invalid option, please try again. " sleep 2 ;; esac done fi } intcheck() { rtmixman_checkver=20130514 " echo"RTMixManagerâ ¢ version $rtmixman_checkver>>

Page 31: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 31/34

echo " <<packages installer." echo "Copyright 2013 LENAROX@xda " sleep 2 echo "" echo "this engine will solve any lags and crashes on " echo "games, heavy apps and so on. " echo "which most of the mid-range android gamers have " echo "always wanted;) " echo "rock your RAM Manager like a Windows NT!!!(da " echo "well known BOSS of RAM Management), you know " echo "what i mean.:p " sleep 2 echo " " echo "ATTENTION!!! this engine requires the latest " echo "busybox version FROM stericson, installed to run" echo "properly. " echo "reminder: this engine is designed to run in the " echo "background realtime(yeah, RT lol:p) with the " echo "android ram management, therefore it should NOT " echo "be used with any other script applications. " sleep 2 echo " " echo "thanks to many xda devs who have helped me to, " echo " ...develop better codes!" echo "thanks to zeppelinrox for the script design, " echo " ...and the bugfix!" echo "thanks to gu5t3r for the bugfix:) " sleep 2 echo " " echo "Dirty Hack: " echo "http://www.gentoo-wiki.info/Gigabyte_GA-G33M-S2H" echo "http://www.sysxperts.com/home/announce/vmdirtyra" echo "tioandvmdirtybackgroundratio " echo "Android LowMemoryKiller: " echo "http://dalinaum-kr.tumblr.com/post/4528344482/an" echo "droid-low-memory-killer " sleep 2 echo " " echo "do not steal this script installer or the script" echo "that is being installed by this installer. " echo "you must always ask me for anypermission thats " echo "related to this script, and give a credit by... " echo" ...linking to this thread:" echo "http://forum.xda-developers.com/showthread.php?t" echo "=2076101 " sleep 7 if [ ! "`which busybox`" ]; then echo " echo "you dont have busybox installed. while true; do echo "continue for debugging?(y/n): read i case "$i" in y|Y) echo " echo "debug mode activated. sleep 2 break ;; n|N)

" " "

" "

Page 32: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 32/34

echo " echo "exiting... exit ;; *) echo " echo "user typed an invalid option, please try again. sleep 2 ;; esac done fi if [ ! "`which awk`" ] || [ ! "`which sed`" ] || [ ! "`which pgrep`" ] || [ ! which id`" ]; then echo " " echo "your current busybox version is not supported. " while true; do echo "continue for debugging?(y/n): " read i case "$i" in y|Y) echo " echo "debug mode activated. sleep2 break ;; n|N) echo " echo "exiting... exit ;; *) echo " echo "user typed an invalid option, please try again. sleep 2 ;; esac done fi if [ "`busybox id -u`" != 0 ]; then echo " " echo "you're not running this script as root. " while true; do echo "continue for debugging?(y/n): " read i case "$i" in y|Y) echo " echo "debug mode activated. sleep 2 break ;; n|N) echo " echo "exiting... exit ;; *) echo " echo "user typed an invalid option, please try again.

" "

" "

"`

" "

" "

" "

" "

" "

" "

Page 33: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 33/34

sleep 2 ;; esac done fi main } intcheck #xda: http://forum.xda-developers.com/showthread.php?t=2076101 #matcl: http://matcl.com/?m=bbs&bid=imbeded&uid=130014 #droid-hive: http://droid-hive.com/index.php?/topic/1674-20130325ram-scriptinsta llerdalvik-booster-lite-v2rtmixmanager%E2%84%A2/ #blog: http://blog.naver.com/hoholee12 #sourcecode: https://github.com/lenarox/rtmixproject #email: [email protected]

Page 34: 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

7/18/2019 181372052 RTMixManager Version 20130514 Packages Installer Sh PDF

http://slidepdf.com/reader/full/181372052-rtmixmanager-version-20130514-packages-installer-sh-pdf 34/34