[Android Software/Hacking General [Developers Only]] demkantor:
ive been trying to track down an issue with a couple different aroma packages ive made. occasionally this will happen

Installing Shutdown Animation
Installing Stock Shutdown Animation
Extract: /system/media/video/shutdown/shutdown_1.png
Extract: /system/media/video/shutdown/shutdown_10.png
Extract: /system/media/video/shutdown/shutdown_11.png
Extract: /system/media/video/shutdown/shutdown_12.png
Extract: /system/media/video/shutdown/shutdown_13.png
Extract: /system/media/video/shutdown/shutdown_14.png
Extract: /system/media/video/shutdown/shutdown_15.png
Extract: /system/media/video/shutdown/shutdown_16.png
Extract: /system/media/video/shutdown/shutdown_17.png
Extract: /system/media/video/shutdown/shutdown_18.png
Extract: /system/media/video/shutdown/shutdown_19.png
Extract: /system/media/video/shutdown/shutdown_2.png
Extract: /system/media/video/shutdown/shutdown_20.png
Extract: /system/media/video/shutdown/shutdown_21.png
Extract: /system/media/video/shutdown/shutdown_22.png
Extract: /system/media/video/shutdown/shutdown_23.png
Extract: /system/media/video/shutdown/shutdown_24.png
Extract: /system/media/video/shutdown/shutdown_25.png
Extract: /system/media/video/shutdown/shutdown_26.png
Extract: /system/media/video/shutdown/shutdown_27.png
Extract: /system/media/video/shutdown/shutdown_28.png
Extract: /system/media/video/shutdown/shutdown_29.png
Extract: /system/media/video/shutdown/shutdown_3.png
Extract: /system/media/video/shutdown/shutdown_30.png
Extract: /system/media/video/shutdown/shutdown_31.png
Extract: /system/media/video/shutdown/shutdown_32.png
Extract: /system/media/video/shutdown/shutdown_33.png
Extract: /system/media/video/shutdown/shutdown_34.png
Extract: /system/media/video/shutdown/shutdown_35.png
Extract: /system/media/video/shutdown/shutdown_36.png
Extract: /system/media/video/shutdown/shutdown_37.png
Extract: /system/media/video/shutdown/shutdown_38.png
Extract: /system/media/video/shutdown/shutdown_39.png
Extract: /system/media/video/shutdown/shutdown_4.png
Extract: /system/media/video/shutdown/shutdown_40.png
Extract: /system/media/video/shutdown/shutdown_41.png
Extract: /system/media/video/shutdown/shutdown_42.png
Extract: /system/media/video/shutdown/shutdown_43.png
Extract: /system/media/video/shutdown/shutdown_44.png
Extract: /system/media/video/shutdown/shutdown_45.png
Extract: /system/media/video/shutdown/shutdown_46.png
Extract: /system/media/video/shutdown/shutdown_47.png
Extract: /system/media/video/shutdown/shutdown_48.png
Extract: /system/media/video/shutdown/shutdown_49.png
Extract: /system/media/video/shutdown/shutdown_5.png
Extract: /system/media/video/shutdown/shutdown_50.png
Extract: /system/media/video/shutdown/shutdown_51.png
Extract: /system/media/video/shutdown/shutdown_52.png
Extract: /system/media/video/shutdown/shutdown_53.png
Extract: /system/media/video/shutdown/shutdown_54.png
Extract: /system/media/video/shutdown/shutdown_55.png
Extract: /system/media/video/shutdown/shutdown_56.png
Extract: /system/media/video/shutdown/shutdown_57.png
Extract: /system/media/video/shutdown/shutdown_58.png
Extract: /system/media/video/shutdown/shutdown_59.png
Extract: /system/media/video/shutdown/shutdown_6.png
Extract: /system/media/video/shutdown/shutdown_60.png
Extract: /system/media/video/shutdown/shutdown_61.png
Extract: /system/media/videscript
set_perm_recursive() expects 4+ args, got -1094153152
o/shutdown/shutdown_62.png"
Extract: /system/media/video/shutdown/shutdown_63.png
Extract: /system/media/video/shutdown/shutdown_64.png
Extract: /system/media/video/shutdown/shutdown_65.png
Extract: /system/media/video/shutdown/shutdown_66.png
Extract: /system/media/video/shutdown/shutdown_67.png
Extract: /system/media/video/shutdown/shutdown_68.png
Extract: /system/media/video/shutdown/shutdown_69.png
Extract: /system/media/video/shutdown/shutdown_7.png
Extract: /system/media/video/shutdown/shutdown_70.png
Extract: /system/media/video/shutdown/shutdown_71.png
Extract: /system/media/video/shutdown/shutdown_72.png
Extract: /system/media/video/shutdown/shutdown_73.png
Extract: /system/media/video/shutdown/shutdown_74.png
Extract: /system/media/video/shutdown/shutdown_75.png
Extract: /system/media/video/shutdown/shutdown_76.png
Extract: /system/media/video/shutdown/shutdown_77.png
Extract: /system/media/video/shutdown/shutdown_78.png
Extract: /system/media/video/shutdown/shutdown_8.png
Extract: /system/media/video/shutdown/shutdown_9.png

then usually skips all other commands and a status 7 error, but even this isnt always...

its only sometimes but it seems the script just decides to jump ahead to next command rather than waiting for completion. is there a way to tell aroma to pause for x amount of time until command is finished? you know to ensure it will wait as even though it is occasional i cant think of a way to force wait for next command?

searched a bit, maybe not enough, but has this happened to anyone else?

any help would be awesome!

thanks!

Edit:

Would adding

run_program("/tmp/aroma/sleep","500");

after longer commands help (adjusted for time)?

or would this not really do anything...

also maybe the update-binary-installer (original update-binary) could be my issue?

Its a random fault but has only happened in longer installs... frustrating...