#!/system/bin/busybox sh
# Install any addon .apks that need "real" installation.
#
# Todo: Automatically find and loop through any .apks rather than
# hard coded like now. Also, investigate if we can make "pm" terminate
# gracefully rather than just forking and waiting "for a while"
#
# /Twk
#
if [ -f /system/.twk ]; then
if [ -f /system/twkdata/Betterterm.apk ]; then
/system/bin/busybox sleep 30
/system/bin/busybox echo "`/system/bin/busybox date` Beginning apk installation..." > /data/twk-install.log
while [ ! -f /data/app/com.magicandroidapps.betterterm.apk ]
do
/system/bin/busybox sh -c "/system/bin/pm install /system/twkdata/Betterterm.apk" >> /data/twk-install.log 2>&1 &
/sbin/busybox sleep 20
done
/sbin/busybox sleep 20
/sbin/busybox mount -o "rw,errors=continue,data=ordered,noatime,remount" /dev/block/mtdblock4 /system
rm /system/twkdata/Betterterm.apk
/sbin/busybox mount -o "ro,remount" /dev/block/mtdblock4 /system
fi
/sbin/busybox echo "`/system/bin/busybox date` Installation complete," >> /data/twk-install.log
fi
Twk copies system to an ext3 partition, so may not work on aufs.
twk.m7-series.007-beta4-jit-N3.img>
http://www.mediafire.com/?z5j39n41gvv79uz
Modified to work on Next3.
stevemp