Permalink
Browse files

+ full sync ...

  • Loading branch information...
1 parent 44525eb commit 00fa1a87332da13680cd824d7922611d674bd529 @voku committed Feb 3, 2013
Showing with 304 additions and 248 deletions.
  1. +1 −7 recovery.rc
  2. +1 −1 res/SuperSU_md5
  3. +27 −0 res/crontab/cron-scripts/database_optimizing.sh
  4. +1 −0 res/customconfig/actions/crontab
  5. +19 −0 res/customconfig/actions/push-actions/clean_ram_cache
  6. +9 −4 res/customconfig/actions/push-actions/crontab_log
  7. +1 −1 res/customconfig/actions/push-actions/database_optimizing
  8. +1 −1 res/customconfig/actions/push-actions/root_install
  9. +1 −1 res/customconfig/actions/push-actions/stweaks_update
  10. +12 −16 res/customconfig/battery.profile
  11. +55 −72 res/customconfig/customconfig.xml
  12. +24 −28 res/customconfig/default.profile
  13. +15 −19 res/customconfig/extreme_battery.profile
  14. +12 −16 res/customconfig/extreme_performance.profile
  15. +13 −18 res/customconfig/performance.profile
  16. +1 −0 res/misc/B2G-ROM/init.rc
  17. +1 −0 res/misc/B2G-ROM/init.rc.2
  18. +3 −1 res/misc/CM-ROM/init.smdk4210.rc
  19. +2 −0 res/misc/CM-ROM/init.smdk4210.rc.2
  20. +2 −0 res/misc/JellyB-CM-AOKP-10.1/init.smdk4210.rc
  21. +2 −0 res/misc/JellyB-CM-AOKP-10.1/init.smdk4210.rc.2
  22. +2 −0 res/misc/JellyB-CM-AOKP/init.smdk4210.rc
  23. +2 −0 res/misc/JellyB-CM-AOKP/init.smdk4210.rc.2
  24. +2 −0 res/misc/JellyB-Sammy/init.smdk4210.rc
  25. +2 −0 res/misc/JellyB-Sammy/init.smdk4210.rc.2
  26. +1 −1 res/misc/Sense4All-ROM/init.s4a
  27. +1 −1 res/misc/Sense4All-ROM/init.s4a.2
  28. BIN res/misc/payload/SuperSU.apk
  29. BIN res/misc/payload/su
  30. +5 −17 sbin/ext/cortexbrain-tune.sh
  31. +1 −1 sbin/ext/efs-backup.sh
  32. +6 −2 sbin/ext/install.sh
  33. +1 −1 sbin/ext/post-init.sh
  34. +36 −11 sbin/ext/system_tune_on_init.sh
  35. +6 −26 sbin/init
  36. +36 −3 sbin/recovery-loader
View
@@ -21,11 +21,6 @@ on init
mount /tmp /tmp tmpfs
on fs
-# mount ext4 /dev/block/mmcblk0p9 /system noatime wait
-
-# mkdir /efs
-# mount ext4 /dev/block/mmcblk0p1 /efs nosuid nodev noatime wait
-
# check encryption status, checking UMS & data should be excuted after this command
exec check_encryption_status /dev/block/mmcblk0p10
@@ -37,8 +32,7 @@ on boot
chown system media_rw /sys/class/mdnie/mdnie/mode
chown system media_rw /sys/class/mdnie/mdnie/outdoor
chown system media_rw /sys/class/mdnie/mdnie/scenario
- write /sys/class/mdnie/mdnie/scenario 0
- write /sys/class/mdnie/mdnie/mode 0
+ write /sys/class/mdnie/mdnie/scenario 4
ifup lo
hostname localhost
View
@@ -1 +1 @@
-e5fa6a6191d236ab8fa445171860a070
+0a50f2d8e0cd6cd59f7be4cbd8d4fc24
@@ -0,0 +1,27 @@
+#!/sbin/busybox sh
+
+(
+ PROFILE=`cat /data/.siyah/.active.profile`;
+ . /data/.siyah/$PROFILE.profile;
+
+ if [ "$cron_db_optimizing" == "on" ]; then
+ while [ ! `cat /proc/loadavg | cut -c1-4` \< "3.50" ]; do
+ echo "Waiting For CPU to cool down";
+ sleep 30;
+ done;
+
+ for i in `find /data -iname "*.db"`; do
+ /system/xbin/sqlite3 $i 'VACUUM;';
+ /system/xbin/sqlite3 $i 'REINDEX;';
+ done;
+
+ for i in `find /sdcard -iname "*.db"`; do
+ /system/xbin/sqlite3 $i 'VACUUM;';
+ /system/xbin/sqlite3 $i 'REINDEX;';
+ done;
+
+ date +%H:%M-%D-%Z > /data/crontab/cron-db-optimizing;
+ echo "Done! DB Optimized" >> /data/crontab/cron-db-optimizing;
+ fi;
+)&
+
@@ -17,6 +17,7 @@ if [ "a$2" != "a" ]; then
/res/crontab_service/service.sh
# setting my jobs with corrected timezone for all world.
+ /res/crontab_service/dm_job.sh "3:00" "/sbin/busybox sh /data/crontab/cron-scripts/database_optimizing.sh"
/res/crontab_service/dm_job.sh "4:00" "/sbin/busybox sh /data/crontab/cron-scripts/clear-file-cache.sh"
/res/crontab_service/dm_job.sh "4:40" "/sbin/busybox sh /data/crontab/cron-scripts/fix-perm.sh"
/res/crontab_service/dm_job.sh "4:50" "/sbin/busybox sh /data/crontab/cron-scripts/zipalign.sh"
@@ -0,0 +1,19 @@
+#!/sbin/busybox sh
+
+(
+ MEM_FREE=`free | grep Mem | awk '{ print $4 }'`;
+ CALC_MEM=`echo $(($MEM_FREE/1024))M`;
+ echo "FREE BEFORE $CALC_MEM" > /tmp/ram_clean;
+ echo "PLEASE WAIT WORKING" >> /tmp/ram_clean;
+ chmod 777 /tmp/ram_clean;
+
+ sync;
+ sysctl -w vm.drop_caches=3 > /dev/null 2>&1;
+ sysctl -w vm.drop_caches=1 > /dev/null 2>&1;
+ MEM_FREE_AFTER=`free | grep Mem | awk '{ print $4 }'`;
+ CALC_MEM_AFTER=`echo $(($MEM_FREE_AFTER/1024))M`;
+ echo "FREE AFTER $CALC_MEM_AFTER" >> /tmp/ram_clean;
+ RAM_LOG=`cat /tmp/ram_clean`;
+ echo "$RAM_LOG";
+)&
+
@@ -15,15 +15,20 @@ fi;
if [ ! -e /data/crontab/cron-ad_block_update ]; then
echo "no data" > /data/crontab/cron-ad_block_update;
fi;
+if [ ! -e /data/crontab/cron-db-optimizing ]; then
+ echo "no data" > /data/crontab/cron-db-optimizing;
+fi;
chmod 777 /data/crontab/*
cat /data/crontab/cron-clear-file-cache > /data/crontab/cron_log;
-echo "--------------" >> /data/crontab/cron_log;
+echo "-------" >> /data/crontab/cron_log;
cat /data/crontab/cron-ad_block_update >> /data/crontab/cron_log;
-echo "--------------" >> /data/crontab/cron_log;
+echo "-------" >> /data/crontab/cron_log;
cat /data/crontab/cron-clear-ram-cache >> /data/crontab/cron_log;
-echo "--------------" >> /data/crontab/cron_log;
+echo "-------" >> /data/crontab/cron_log;
cat /data/crontab/cron-fix_permissions >> /data/crontab/cron_log;
-echo "--------------" >> /data/crontab/cron_log;
+echo "-------" >> /data/crontab/cron_log;
+cat /data/crontab/cron-db-optimizing >> /data/crontab/cron_log;
+echo "-------" >> /data/crontab/cron_log;
cat /data/crontab/cron-zipalign >> /data/crontab/cron_log;
# push all to one log.
@@ -1,4 +1,4 @@
-#!/sbin/busybox
+#!/sbin/busybox sh
export PATH="/res/customconfig/actions/push-actions:${PATH}";
(
@@ -3,7 +3,7 @@ export PATH="/res/customconfig/actions/push-actions:${PATH}";
(
if [ ! -e /system/xbin/su ]; then
- BB=/sbin/busybox;
+ BB=/sbin/busybox
# extract Payload with root files
$BB mount -o remount,rw /system;
@@ -1,7 +1,7 @@
#!/sbin/busybox sh
(
- BB="/sbin/busybox";
+ BB=/sbin/busybox
if [ -e /res/misc/payload/STweaks.apk ]; then
rm -f /system/app/STweaks.apk > /dev/null 2>&1;
@@ -14,7 +14,6 @@ GENTLE_FAIR_SLEEPERS=off
ARCH_POWER=on
enable_mask=3
enable_mask_sleep=1
-sched_mc_power_savings=0
busfreq_up_threshold=80
scaling_max_suspend_freq=600000
scaling_min_suspend_freq=200000
@@ -39,10 +38,10 @@ CPUVOLT12=1100
CPUVOLT13=1075
CPUVOLT14=1050
CPUVOLT15=1025
-CPUVOLT16=1000
-CPUVOLT17=1000
-CPUVOLT18=975
-CPUVOLT19=975
+CPUVOLT16=1025
+CPUVOLT17=1025
+CPUVOLT18=1000
+CPUVOLT19=1000
CPUVOLT20=975
CPUVOLT21=975
CPUVOLT22=975
@@ -72,7 +71,7 @@ hotplug_rq_2_0=100
freq_step=30
freq_step_dec=10
freq_up_brake=5
-down_differential=5
+down_differential=1
pump_up_step=2
pump_down_step=1
freq_for_responsiveness=400000
@@ -90,15 +89,13 @@ sampling_rate_sleep=70000
hotplug_sampling_rate_sleep=15000
check_rate=150
check_rate_cpuon=600
-freq_cpu1on=800000
-hotplug_on=1
-second_core_on=1
+freq_cpu1on=1000000
+freq_cpu1off=700000
trans_load_h0=20
trans_load_h1=100
trans_load_l1=20
trans_load_rq=20
trans_rq=2
-user_lock=0
sampling_up_factor_sleep=1
sampling_down_factor_sleep=1
up_sample_time_sleep=60000
@@ -107,26 +104,24 @@ hotplug_freq_1_1_sleep=500000
hotplug_freq_2_0_sleep=200000
hotplug_rq_1_1_sleep=100
hotplug_rq_2_0_sleep=100
-freq_step_sleep=40
+freq_step_sleep=30
freq_step_dec_sleep=10
freq_up_brake_sleep=10
-down_differential_sleep=5
+down_differential_sleep=1
pump_up_step_sleep=1
pump_down_step_sleep=3
freq_for_responsiveness_sleep=200000
hispeed_freq_sleep=200000
check_rate_sleep=200
check_rate_cpuon_sleep=300
check_rate_scroff=2400
-freq_cpu1on_sleep=300000
-hotplug_on_sleep=1
-second_core_on_sleep=0
+freq_cpu1on_sleep=600000
+freq_cpu1off_sleep=500000
trans_load_h0_scroff=20
trans_load_h1_scroff=100
trans_load_l1_scroff=20
trans_load_rq_sleep=20
trans_rq_sleep=2
-user_lock_sleep=0
mali_use_vpll=off
mali_gpu_utilization_timeout=150
GPUFREQ1=108
@@ -188,6 +183,7 @@ dyn_brightness=on
crontab=off
cron_drop_cache=off
ad_block_update=off
+cron_db_optimizing=off
cron_clear_app_cache=off
cron_fix_permissions=off
cron_zipalign=off
Oops, something went wrong.

0 comments on commit 00fa1a8

Please sign in to comment.