Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android手機 >> Android刷機教程 >> 中興刷機 >> 中興U807加入SuperCharger V6腳本教程

中興U807加入SuperCharger V6腳本教程

編輯:中興刷機

一、在/system/etc/init.d文件夾下


 

a.建立一個文本文件,去掉擴展名,名為:99SuperCharger


 

用文本方式打開,復制入以下代碼:


 

#!/system/bin/sh # V6 SuperCharger, OOM Grouping &Priority Fixes created by zeppelinrox. execute=0; currentadj=`cat/sys/module/lowmemorykiller/parameters/adj`; currentminfree=`cat/sys/module/lowmemorykiller/parameters/minfree`; scadj=`cat /data/SuperChargerAdj`; scminfree=`cat /data/SuperChargerMinfree`; if [ "$currentadj" !="$scadj" ]; then          execute=1; elif [[ -n "$scminfree" ]]&& [ "$currentminfree" != "$scminfree" ]; then          execute=1; fi; if [ "$execute" -eq 1 ]; then          mount-o remount,rw /system 2>/dev/null;          form in /dev/block/mtdblock*;          do          mount-o remount,rw $m /system 2>/dev/null;          done;          echo$scadj > /sys/module/lowmemorykiller/parameters/adj;          echo$scminfree > /sys/module/lowmemorykiller/parameters/minfree;          sed-i '/.*_ADJ/d' /system/build.prop;          sed-i '/.*_MEM/d' /system/build.prop;          busyboxsysctl -w vm.oom_kill_allocating_task=0;          busyboxsysctl -w vm.panic_on_oom=0;          busyboxsysctl -w kernel.panic_on_oops=1;          busyboxsysctl -w kernel.panic=0;          mount-o remount,ro /system 2>/dev/null;          form in /dev/block/mtdblock*;          do          mount-o remount,ro $m /system 2>/dev/null;          done; fi; # End of V6 SuperCharged Entries sh /data/99SuperCharger.sh;


 

保存退出。


 

b.建立一個文本文件,去掉擴展名,名為:98TweakKernel


 

復制以下代碼:
#!/system/bin/sh # Put together and refined by zeppelinrox.See included links for resources. mount -o remount,rw /system 2>/dev/null; for m in /dev/block/mtdblock*; do mount -o remount,rw $m /system2>/dev/null; done; busybox sysctl -p; # # Disable normalized sleeper # mount -t debugfs none /sys/kernel/debug2>/dev/null; echo NO_NORMALIZED_SLEEPER >/sys/kernel/debug/sched_features 2>/dev/null; # # Memory management busybox sysctl -e -wvm.oom_kill_allocating_task=0; busybox sysctl -e -w vm.panic_on_oom=0; busybox sysctl -e -wvm.dirty_background_ratio=60; busybox sysctl -e -w vm.dirty_ratio=95; busybox sysctl -e -wvm.min_free_kbytes=8192; busybox sysctl -e -wvm.vfs_cache_pressure=10; busybox sysctl -e -wvm.overcommit_memory=1; busybox sysctl -e -wvm.min_free_order_shift=4; busybox sysctl -e -w kernel.panic=0; busybox sysctl -e -wkernel.panic_on_oops=1; busybox sysctl -e -w kernel.msgmni=2048; busybox sysctl -e -w kernel.msgmax=64000; busybox sysctl -e -wkernel.shmmax=268435456; busybox sysctl -e -w kernel.sem='500 51200064 2048'; busybox sysctl -e -w kernel.sched_features=24189; busybox sysctl -e -wkernel.hung_task_timeout_secs=30; # Set to 0 to disable but can cause blackscreen on incoming calls busybox sysctl -e -wkernel.sched_latency_ns=18000000; busybox sysctl -e -wkernel.sched_min_granularity_ns=1500000; busybox sysctl -e -wkernel.sched_wakeup_granularity_ns=3000000; busybox sysctl -e -wkernel.sched_compat_yield=1; busybox sysctl -e -wkernel.sched_shares_ratelimit=256000; busybox sysctl -e -wkernel.sched_child_runs_first=0; busybox sysctl -e -wkernel.threads-max=5000; busybox sysctl -e -wnet.core.wmem_max=524288; busybox sysctl -e -wnet.core.rmem_max=524288; busybox sysctl -e -wnet.ipv4.tcp_tw_recycle=1; busybox sysctl -e -wnet.ipv4.tcp_rmem='6144 87380 524288'; busybox sysctl -e -w net.ipv4.tcp_wmem='614487380 524288'; # # Misc tweaks for battery life # busybox sysctl -wvm.dirty_writeback_centisecs=2000; busybox sysctl -wvm.dirty_expire_centisecs=1000; mount -o remount,ro /system 2>/dev/null; for m in /dev/block/mtdblock*; do mount -o remount,ro $m /system2>/dev/null; done;


 

保存退出。


 

二、來到/data文件夾下


 

a.建立文本文件,擴展名sh,以文本方式打開,文件名為99SuperCharger


 

復制以下代碼:


 

#!/system/bin/sh # V6 SuperCharger, OOM Grouping &Priority Fixes created by zeppelinrox. execute=0; currentadj=`cat/sys/module/lowmemorykiller/parameters/adj`; currentminfree=`cat/sys/module/lowmemorykiller/parameters/minfree`; scadj=`cat /data/SuperChargerAdj`; scminfree=`cat /data/SuperChargerMinfree`; if [ "$currentadj" !="$scadj" ]; then          execute=1; elif [[ -n "$scminfree" ]]&& [ "$currentminfree" != "$scminfree" ]; then          execute=1; fi; if [ "$execute" -eq 1 ]; then          mount-o remount,rw /system 2>/dev/null;          form in /dev/block/mtdblock*;          do          mount-o remount,rw $m /system 2>/dev/null;          done;          echo$scadj > /sys/module/lowmemorykiller/parameters/adj;          echo$scminfree > /sys/module/lowmemorykiller/parameters/minfree;          sed-i '/.*_ADJ/d' /system/build.prop;          sed-i '/.*_MEM/d' /system/build.prop;          busyboxsysctl -w vm.oom_kill_allocating_task=0;          busyboxsysctl -w vm.panic_on_oom=0;          busyboxsysctl -w kernel.panic_on_oops=1;          busyboxsysctl -w kernel.panic=0;          mount-o remount,ro /system 2>/dev/null;          form in /dev/block/mtdblock*;          do          mount-o remount,ro $m /system 2>/dev/null;          done; fi; # End of V6 SuperCharged Entries


 

保存退出。


 

b.建立一個文本文件,去掉擴展名,名為:SuperChargerOptions


 

內容如下:


 

1,0


 

保存退出。
c.建立一個文本文件,擴展名為prop,名為:local


 

內容如下:
# V6 SuperCharger, OOM Grouping & Priority Fixes created by zeppelinrox. # DO NOT DELETE COMMENTS. DELETING COMMENTSWILL BREAK UNINSTALL ROUTINE! # BEGIN OOM_MEM_Settings ro.FOREGROUND_APP_MEM=1536 ro.VISIBLE_APP_MEM=3072 ro.PERCEPTIBLE_APP_MEM=1024 ro.HEAVY_WEIGHT_APP_MEM=10240 ro.SECONDARY_SERVER_MEM=10240 ro.BACKUP_APP_MEM=15360 ro.HOME_APP_MEM=1024 ro.HIDDEN_APP_MEM=15360 ro.EMPTY_APP_MEM=25600 # END OOM_MEM_Settings # BEGIN OOM_ADJ_Settings ro.FOREGROUND_APP_ADJ=0 ro.VISIBLE_APP_ADJ=3 ro.PERCEPTIBLE_APP_ADJ=2 ro.HEAVY_WEIGHT_APP_ADJ=4 ro.SECONDARY_SERVER_ADJ=5 ro.BACKUP_APP_ADJ=6 ro.HOME_APP_ADJ=2 ro.HIDDEN_APP_MIN_ADJ=7 ro.EMPTY_APP_ADJ=15 # END OOM_ADJ_Settings # End of V6 SuperCharged Entries


 

保存退出。
d.建立一個文本文件,去掉擴展名,名為:SuperChargerAdj


 

內容如下:
0,3,5,7,14,15


 

保存退出。
e.建立一個文本文件,去掉擴展名,名為:SuperChargerMinfree


 

內容如下:
1536,3072,10240,15360,20480,25600


 

保存退出。
三、/system下的build.prop


 

打開/system/build.prop


 

在最底下加入以下代碼:
# Nitro Lag Nullifier by zeppelinrox. # DO NOT DELETE COMMENTS. DELETING COMMENTSWILL BREAK UNINSTALL ROUTINE! ENFORCE_PROCESS_LIMIT=false MAX_SERVICE_INACTIVITY= MIN_HIDDEN_APPS= MAX_HIDDEN_APPS= CONTENT_APP_IDLE_OFFSET= EMPTY_APP_IDLE_OFFSET= MAX_ACTIVITIES= ACTIVITY_INACTIVE_RESET_TIME= # End of Nullified Entries


保存退出。

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved