Advertisement
Perka

AROMA Installer :: 120204-011 :: Open Source

Feb 5th, 2012
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. ##
  2. #
  3. # AROMA Installer - Installer Script
  4. # (c) 2011 by Ahmad Amarullah
  5. # amarullz - xda-developers
  6. #
  7. # Version 1.0-TEST
  8. # FOR LEARNING PORPOSE ONLY
  9. #
  10. ##
  11.  
  12. ##
  13. #
  14. # OLD UPDATER-BINARY
  15. #
  16. # Here you can use old command for flashing files, like:
  17. # mount
  18. # umount
  19. # delete_recursive
  20. # format
  21. # package_extract_dir
  22. # set_perm_recursive
  23. #
  24.  
  25. ## CHECKING Configuration from aroma-config
  26. #
  27. # Check it using if else statement, with file_getprop
  28. # in /tmp/aroma-data
  29. #
  30. # Example:
  31. # if
  32. # file_getprop("/tmp/aroma-data/customize.prop","item.6.3") == "1"
  33. # then
  34. # ... here the command ...
  35. # endif;
  36. #
  37.  
  38. ## INFO COMMAND FOR AROMA
  39. #
  40. #-- DIFFERENT BEHAVIOUR
  41. #
  42. # set_progress(0.5);
  43. # Set Progress position: 0.0 = 0%; 0.5 = 50%; 1.0 = 100%
  44. #
  45. # show_progress(0.2, 400);
  46. # show_progress( progress size, number of files to be extracted );
  47. # if we had 50 files, and want to "add" 0.2 into progress after all finished
  48. # use (0.2, 400)
  49. #
  50. # ui_print("@ Title");
  51. # Set progress title
  52. #
  53. # ui_print("Default Text");
  54. # Set Normal Log Text
  55. #
  56. ##
  57. ui_print("@ Title");
  58. ui_print("Default Text");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement