[Android Software/Hacking General [Developers Only]] mrRobinson:
Has anyone seen this?

everything my updater-script installed ended up being a 0byte file. The file was there but at 0 bytes so its like it didn't copy any data.

any ideas why this would or could happen?

this is all i do, fairly simple:

##
unmount("/system");
unmount("/data");
unmount("/cache");
set_progress(0.1);
#
ui_print("@Standard Wiping of Caches");
format("yaffs2", "MTD", "cache", "/cache");
ui_print("Mounting cache");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/cache");
delete_recursive("/cache");
unmount("/cache");
ui_print("Mounting data");
mount("ext4", "EMMC", "/dev/block/mmcblk0p10", "/data");
ui_print("Wiping dalvik...");
delete_recursive("/data/dalvik-cache/");
ui_print("Mounting system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
set_progress(0.2);
##
## START KERNEL CLEAN
##
if
file_getprop("/tmp/aroma/misc.prop","item1.2") == "1"
then
ui_print("@ Removing old kernel files...");
delete_recursive("/system/etc/init.d");
delete("/system/lib/hw/lights.default.ko");
delete("/system/lib/hw/sensors.default.ko");
delete("/system/bin/logcat-on");
delete("/system/bin/logcat-off");
endif;
set_progress(0.3);

##
## STOCK GAPPS INSTALL
##
ui_print("@ Google Apps for Android 4.0 - 20120317");
ui_print("Copying files...");
package_extract_dir("system", "/system");
set_perm(0, 0, 0755, "/system/addon.d/70-gapps.sh");
package_extract_dir("optional", "/tmp");
package_extract_file("install-optional.sh", "/tmp/install-optional.sh");
set_perm(0, 0, 0777, "/tmp/install-optional.sh");
run_program("/tmp/install-optional.sh", "");
delete("/system/app/Gallery2.apk","/system/app/Provision.apk","/system/app/QuickSearchBox.apk","/system/app/PlusOne.apk");
ui_print("Installation complete!");
set_progress(0.5);
##
## END STOCK GAPPS INSTALL
##
##
## WIFI FIX
##
if
file_getprop("/tmp/aroma/misc.prop","item.2.1") == "1"
then
package_extract_file("wififix/nvram_net.txt", "/system/etc/wifi/nvram_net.txt");
package_extract_file("wififix/nvram_net.txt_murata", "/system/etc/wifi/nvram_net.txt_murata");
set_perm(0, 0, 0644, "/system/etc/wifi/nvram_net.txt");
set_perm(0, 0, 0644, "/system/etc/wifi/nvram_net.txt_murata");
endif;
set_progress(0.6);
##
## Application OPTIONS
##

if
file_getprop("/tmp/aroma/apps.prop","item.1.1") == "1"
then
ui_print("@ Installing Apex Launcher...");
package_extract_file("launchers/ApexLauncher.apk", "/system/app/ApexLauncher.apk");
endif;

if
file_getprop("/tmp/aroma/apps.prop","item.1.2") == "1"
then
ui_print("@ Installing Nova Launcher...");
package_extract_file("launchers/NovaLauncher.apk", "/system/app/NovaLauncher.apk");
endif;

ui_print("@ Installing Inverted Gapps Options...");
if
file_getprop("/tmp/aroma/apps.prop","item.2.1") == "1"
then
package_extract_file("invertedgapps/Gmail.apk", "/system/app/Gmail.apk");
endif;
set_progress(0.7);
if
file_getprop("/tmp/aroma/apps.prop","item.2.2") == "1"
then
package_extract_file("invertedgapps/GoogleVoice.apk", "/data/app/GoogleVoice.apk");
set_perm(1000, 1000, 0644, "/data/app/GoogleVoice.apk");
endif;

if
file_getprop("/tmp/aroma/apps.prop","item.2.3") == "1"
then
package_extract_file("invertedgapps/Talk.apk", "/system/app/Talk.apk");
endif;

if
file_getprop("/tmp/aroma/apps.prop","item.2.4") == "1"
then
package_extract_file("invertedgapps/PlusOne.apk", "/data/app/PlusOne.apk");
set_perm(1000, 1000, 0644, "/data/app/PlusOne.apk");
endif;
set_progress(0.8);
if
file_getprop("/tmp/aroma/apps.prop","item.2.5") == "1"
then
package_extract_file("invertedgapps/Music2.apk", "/system/app/Music2.apk");
endif;

if
file_getprop("/tmp/aroma/apps.prop","item.2.6") == "1"
then
package_extract_file("invertedgapps/Contacts.apk", "/system/app/Contacts.apk");
endif;

if
file_getprop("/tmp/aroma/apps.prop","item.2.7") == "1"
then
package_extract_file("invertedgapps/YouTube.apk", "/system/app/YouTube.apk");
endif;
set_progress(0.9);
if
file_getprop("/tmp/aroma/apps.prop","item.2.8") == "1"
then
package_extract_file("invertedgapps/Mms.apk", "/system/app/Mms.apk");
endif;

unmount("/data");
set_progress(1);
#-- Finish
ui_print(" ");
ui_print("@Finished");