vendor: get rid off all init.d scripts + PCFR
we never needed them. Since we added native init.d support
on some devices they give us problems. Get rid off it....user
can install init.d scripts if they want themselve. We are fast enough
as well remove Holo Launcher backup script we introduced on launcher
change to nova
cleanup as well all related stuff
and pre code freeze build.7
aaaaaaaaaaawesome
Change-Id: I81b5d1dbc45fbadb458ddaf1e6d1648e8b41edc7
diff --git a/config/common.mk b/config/common.mk
index 0c8b949..1101163 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -46,21 +46,10 @@
vendor/slim/prebuilt/common/etc/sysctl.conf:system/etc/sysctl.conf
PRODUCT_COPY_FILES += \
- vendor/slim/prebuilt/common/etc/init.d/00slim:system/etc/init.d/00slim \
+ vendor/slim/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
vendor/slim/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit \
- vendor/slim/prebuilt/common/etc/init.d/98tweaks:system/etc/init.d/98tweaks \
- vendor/slim/prebuilt/common/etc/init_trigger.disabled:system/etc/init_trigger.disabled \
vendor/slim/prebuilt/common/bin/sysinit:system/bin/sysinit
-PRODUCT_COPY_FILES += \
- vendor/slim/prebuilt/common/etc/cron/cron.conf:system/etc/cron/cron.conf \
- vendor/slim/prebuilt/common/etc/cron/cron.hourly/00drop_caches:system/etc/cron/cron.hourly/00drop_caches \
- vendor/slim/prebuilt/common/etc/cron/cron.daily/00drop_caches:system/etc/cron/cron.daily/00drop_caches \
- vendor/slim/prebuilt/common/etc/cron/cron.weekly/00drop_caches:system/etc/cron/cron.weekly/00drop_caches \
- vendor/slim/prebuilt/common/etc/cron/cron.hourly/01clear_cache:system/etc/cron/cron.hourly/01clear_cache \
- vendor/slim/prebuilt/common/etc/cron/cron.daily/01clear_cache:system/etc/cron/cron.daily/01clear_cache \
- vendor/slim/prebuilt/common/etc/cron/cron.weekly/01clear_cache:system/etc/cron/cron.weekly/01clear_cache
-
# Workaround for NovaLauncher zipalign fails
PRODUCT_COPY_FILES += \
vendor/slim/prebuilt/common/app/NovaLauncher.apk:system/app/NovaLauncher.apk
@@ -107,10 +96,10 @@
include vendor/slim/config/themes_common.mk
# Versioning System
-# Weekly 6.9
+# Pre Code freeze build.7
PRODUCT_VERSION_MAJOR = 4.2.2
PRODUCT_VERSION_MINOR = build
-PRODUCT_VERSION_MAINTENANCE = 6.9
+PRODUCT_VERSION_MAINTENANCE = 7.PCFR
ifdef SLIM_BUILD_EXTRA
SLIM_POSTFIX := -$(SLIM_BUILD_EXTRA)
endif
diff --git a/prebuilt/common/bin/50-slim.sh b/prebuilt/common/bin/50-slim.sh
index 062be23..251981c 100755
--- a/prebuilt/common/bin/50-slim.sh
+++ b/prebuilt/common/bin/50-slim.sh
@@ -10,7 +10,6 @@
list_files() {
cat <<EOF
etc/hosts
-app/HoloLauncherHD.apk
EOF
}
diff --git a/prebuilt/common/etc/cron/cron.conf b/prebuilt/common/etc/cron/cron.conf
deleted file mode 100755
index 52b1b12..0000000
--- a/prebuilt/common/etc/cron/cron.conf
+++ /dev/null
@@ -1,26 +0,0 @@
-# Copyright (C) 2010 Jared Rummler (JRummy16)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-# Drop page, dentry and inode caches
-HOURLY_DROP_CACHES=0
-DAILY_DROP_CACHES=1
-WEEKLY_DROP_CACHES=1
-
-# Clear data cache
-HOURLY_CLEAR_CACHE=0
-DAILY_CLEAR_CACHE=0
-WEEKLY_CLEAR_CACHE=1
-
diff --git a/prebuilt/common/etc/cron/cron.daily/00drop_caches b/prebuilt/common/etc/cron/cron.daily/00drop_caches
deleted file mode 100755
index 64fa7f9..0000000
--- a/prebuilt/common/etc/cron/cron.daily/00drop_caches
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/system/bin/sh
-
-. /system/etc/cron/cron.conf
-
-if test $DAILY_DROP_CACHES -eq 1; then
- sync
- echo 3 > /proc/sys/vm/drop_caches
-fi
\ No newline at end of file
diff --git a/prebuilt/common/etc/cron/cron.daily/01clear_cache b/prebuilt/common/etc/cron/cron.daily/01clear_cache
deleted file mode 100755
index 944a5c5..0000000
--- a/prebuilt/common/etc/cron/cron.daily/01clear_cache
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/system/bin/sh
-
-. /system/etc/cron/cron.conf
-
-if test $DAILY_CLEAR_CACHE -eq 1; then
- cache -rmdata
-fi
\ No newline at end of file
diff --git a/prebuilt/common/etc/cron/cron.hourly/00drop_caches b/prebuilt/common/etc/cron/cron.hourly/00drop_caches
deleted file mode 100755
index a4b84fa..0000000
--- a/prebuilt/common/etc/cron/cron.hourly/00drop_caches
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/system/bin/sh
-
-. /system/etc/cron/cron.conf
-
-if test $HOURLY_DROP_CACHES -eq 1; then
- sync
- echo 3 > /proc/sys/vm/drop_caches
-fi
\ No newline at end of file
diff --git a/prebuilt/common/etc/cron/cron.hourly/01clear_cache b/prebuilt/common/etc/cron/cron.hourly/01clear_cache
deleted file mode 100755
index f40ccef..0000000
--- a/prebuilt/common/etc/cron/cron.hourly/01clear_cache
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/system/bin/sh
-
-. /system/etc/cron/cron.conf
-
-if test $HOURLY_CLEAR_CACHE -eq 1; then
- cache -rmdata
-fi
\ No newline at end of file
diff --git a/prebuilt/common/etc/cron/cron.weekly/00drop_caches b/prebuilt/common/etc/cron/cron.weekly/00drop_caches
deleted file mode 100755
index 35663d0..0000000
--- a/prebuilt/common/etc/cron/cron.weekly/00drop_caches
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/system/bin/sh
-
-. /system/etc/cron/cron.conf
-
-if test $WEEKLY_DROP_CACHES -eq 1; then
- sync
- echo 3 > /proc/sys/vm/drop_caches
-fi
\ No newline at end of file
diff --git a/prebuilt/common/etc/cron/cron.weekly/01clear_cache b/prebuilt/common/etc/cron/cron.weekly/01clear_cache
deleted file mode 100755
index b77b137..0000000
--- a/prebuilt/common/etc/cron/cron.weekly/01clear_cache
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/system/bin/sh
-
-. /system/etc/cron/cron.conf
-
-if test $WEEKLY_CLEAR_CACHE -eq 1; then
- cache -rmdata
-fi
\ No newline at end of file
diff --git a/prebuilt/common/etc/init.d/00banner b/prebuilt/common/etc/init.d/00banner
new file mode 100644
index 0000000..4e3e0af
--- /dev/null
+++ b/prebuilt/common/etc/init.d/00banner
@@ -0,0 +1,7 @@
+#!/system/bin/sh
+#
+# Print startup info
+#
+L="log -p i -t slim"
+
+$L "Welcome to Android `getprop ro.build.version.release` / SlimBean `getprop ro.slim.version`";
diff --git a/prebuilt/common/etc/init.d/00slim b/prebuilt/common/etc/init.d/00slim
deleted file mode 100755
index 7a91e2d..0000000
--- a/prebuilt/common/etc/init.d/00slim
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/system/xbin/ash
-
-# Enable Syscntl
-sysctl -p /system/etc/sysctl.conf
-
-# Enable Cron
-# crond has "/bin/sh" hardcoded
-mount -o remount,rw rootfs /
-if busybox [ ! -L /bin ]; then
- ln -s /system/bin/ /bin
-fi
-mount -o remount,ro rootfs /
-
-# set timezone (if you're not between -0500 and -0800 you get PST)
-# todo - support other timezones
-timezone=`date +%z`
-if busybox [ $timezone = "-0800" ]; then
- TZ=PST8PDT
-elif busybox [ $timezone = "-0700" ]; then
- TZ=MST7MDT
-elif busybox [ $timezone = "-0600" ]; then
- TZ=CST6CDT
-elif busybox [ $timezone = "-0500" ]; then
- TZ=EST5EDT
-else
- TZ=PST8PDT
-fi
-export TZ
-
-# use /data/cron, call the crontab file "root"
-if busybox [ ! -d /data/cron ]; then
- busybox mkdir -p /data/cron
- cat > /data/cron/root << EOF
-# run-parts
-01 * * * * busybox run-parts /system/etc/cron/cron.hourly
-02 4 * * * busybox run-parts /system/etc/cron/cron.daily
-22 4 * * 0 busybox run-parts /system/etc/cron/cron.weekly
-EOF
-fi
-busybox crond -c /data/cron
-
-# Read Ahead
-if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ];
-then
- echo "1024" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;
-fi;
-
-# VM
-echo "3000" > /proc/sys/vm/dirty_expire_centisecs;
-echo "300" > /proc/sys/vm/dirty_writeback_centisecs;
-echo "8192" > /proc/sys/vm/min_free_kbytes;
-echo "1" > /proc/sys/vm/oom_kill_allocating_task;
-echo "0" > /proc/sys/vm/panic_on_oom;
-echo "70" > /proc/sys/vm/dirty_background_ratio;
-echo "90" > /proc/sys/vm/dirty_ratio;
-echo "5" > /proc/sys/vm/vfs_cache_pressure;
-#echo "0" > /proc/sys/vm/overcommit_memory;
-echo "4" > /proc/sys/vm/min_free_order_shift;
-echo "0" > /proc/sys/vm/laptop_mode;
-echo "0" > /proc/sys/vm/block_dump;
-echo "0" > /proc/sys/vm/oom_dump_tasks;
-echo "3" > /proc/sys/vm/drop_caches;
diff --git a/prebuilt/common/etc/init.d/98tweaks b/prebuilt/common/etc/init.d/98tweaks
deleted file mode 100755
index 9620a46..0000000
--- a/prebuilt/common/etc/init.d/98tweaks
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/system/xbin/sh
-# imoseyon mods
-
-# file system speedups
-busybox mount -o remount,noatime,barrier=0,nobh /system
-busybox mount -o remount,noatime /data
-busybox mount -o remount,noatime,barrier=0,nobh /cache