swarrans, on Jan 1 2011, 08:43, said:
My update from 1.04 R4 PP to 1.06 R6 PP went seamlessly and quickly, except..
I did lose Flash again and had to re-install it.
No biggie, but it puzzles me that some lose it and some don't it seems..
I was looking through the performance pack today and noticed that theres a file in system\etc called shuttle_ins.sh and had a look -
if [ -e /data/bluez_provider/bluez_reg ]; then
echo "bluez registered"
cat /system/etc/bluecore6.psr > /data/bluez_provider/bluecore6.psr
chmod 777 /data/bluez_provider/bluecore6.psr
mount -w -o remount -t yaffs2 /dev/block/mtdblock3 /system
ln -s /data/bluez_provider/bluecore6.psr /system/etc/bluez/bluecore6.psr
mount -r -o remount -t yaffs2 /dev/block/mtdblock3 /system
if [ -e /data/.shuttle_install ]; then
sh /system/bin/pm install /system/etc/shuttle_priv/libflashplayer_froyo_gles2_20101019_v10.1.95.18_signed.apk
#sh /system/bin/pm install /data/eGalaxTester.apk
#sh /system/bin/pm install /data/Shuttle_Test.apk
#sh /system/bin/pm install /data/eGalaxUpdateAuto.apk
echo 0 > /data/.shuttle_install
I'm not fluent in Android or Linux but, reading the logic of the installation script it would appear that after its checked the bluetooth and waited 30 ms/sec/weeks it turns it attention to the flash and checks if a folder exists on the device - if it does it finishes - if it doesn't then it installs flash from the shuttle_priv folder and creates an empty file in the folder first checked - data/.shuttle_install (hence android does not clean up the folder)
BUT obviously with the version in the pack updated it will never find this file (libflashplayer_froyo_gles2_20101019_v10.1.95.18_signed.apk) and therefore will no automatically reinstall the flash. If this were amended I guess it would negate the need to ever reinstall flash after an MCR but, not fluent in Android/Linux and would rather someone who is confirm this is a fix?
IF it is perhaps it can be put in the performance pack and effectively kills this thread.
Edit - of course !
The Installation script from the MCR -
echo Waiting for device...
echo Remounting system partition
adb.exe install -r files/system/etc/shuttle_priv/libflashplayer_froyo_gles2_20101206_v10.1.120.1_signed.apk (Install flash but, it's not on device ?)
adb.exe shell stop
echo Making room for new files
adb.exe shell rm -r /system/lib/hw/wlan_ar6002
adb.exe shell rm -r /system/etc/Dix
adb.exe shell rm /system/lib/nvddk_2d_test_sanity.so
adb.exe shell rm -r /system/etc/shuttle_priv/* (Delete content of folder where Flash resides)
adb.exe shell rm /system/bin/busybox
adb.exe shell ln -s /sbin/busybox /system/bin/busybox
echo Copying new files
adb.exe push files / (Move flash to device)
echo Installing performance pack
adb.exe push performance /
echo Setting permissions
adb.exe shell /sbin/busybox chmod 0755 /system/bin/*
adb.exe shell /sbin/busybox chmod 4755 /system/xbin/su
adb.exe shell /sbin/busybox --install -s /system/xbin
echo Done, rebooting
The script attempts to install Flash, later deletes the contents of the folder (?) and then moves the file to the device ?
Edited by donalkeane, 01 January 2011 - 06:57 PM.