Advertisement
Perka

PerkaROMScript

Apr 19th, 2011
1,705
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. ui_print(" ");
  2. ui_print(" ");
  3. ui_print("Welcome to a PerkaROM release");
  4. ui_print("Thank you Doc for the script");
  5. ui_print("Thank you pele78 for BAT (coming soon)");
  6. ui_print("Thank you Quacktop for hosting");
  7. ui_print("Thank you Tricky103 for the help");
  8. ui_print("Thank you zurchpet for the help with Fugu");
  9. ui_print("Thank you dark3n for the bootanim and wallpaper");
  10. ui_print("Thank you _renaud_ for the kernel");
  11. ui_print("and thank you addi");
  12. ui_print("the first to FLASH my copy/paste ROM ");
  13. ui_print(" ");
  14. ui_print("Im no dev I just copy paste,");
  15. ui_print("so give cred to the devs pls :)");
  16. ui_print(" ");
  17. ui_print("http://perka.zapto.org/");
  18. ui_print(" ");
  19. ui_print("http://romkitchen.org/");
  20.  
  21. run_program("/sbin/mount", "/dev/block/stl9", "/system");
  22. run_program("/sbin/mount", "/dev/block/stl10", "/dbdata");
  23. run_program("/sbin/mount", "/dev/block/stl11", "/cache");
  24. run_program("/sbin/mount", "/dev/block/mmcblk0p2", "/data");
  25.  
  26. ui_print("Formatting system");
  27. ui_print(" ");
  28.  
  29. delete_recursive("/system");
  30. delete_recursive("/cache");
  31. delete_recursive("/data/dalvik-cache");
  32. delete_recursive("/dbdata/databases/com.android.providers.media");
  33. delete_recursive("/dbdata/databases/com.cooliris.media");
  34. delete_recursive("/data/data/com.android.vending/cache");
  35. show_progress(0.100000, 60);
  36. ui_print("Installing system files");
  37. ui_print(" ");
  38.  
  39. package_extract_dir("system", "/system");
  40. symlink("dumpstate", "/system/bin/dumpcrash");
  41. show_progress(0.100000, 10);
  42.  
  43. symlink("toolbox", "/system/bin/cat", "/system/bin/chmod", "/system/bin/chown", "/system/bin/cmp", "/system/bin/date", "/system/bin/dd",
  44. "/system/bin/df", "/system/bin/dmesg", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd", "/system/bin/id",
  45. "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice", "/system/bin/kill",
  46. "/system/bin/ln", "/system/bin/log", "/system/bin/ls", "/system/bin/lsmod", "/system/bin/mkdir", "/system/bin/mount",
  47. "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify",
  48. "/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
  49. "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setconsole",
  50. "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
  51. "/system/bin/top", "/system/bin/umount", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe");
  52. symlink("/system/xbin/su", "/system/bin/su");
  53. symlink("/system/xbin/busybox", "/system/bin/sh");
  54. symlink("/system/bin/dumpstate", "/system/bin/dumpmesg");
  55. symlink("/system/bin/debuggerd", "/system/bin/csview");
  56. symlink("/system/bin", "/system/xbin/bb");
  57.  
  58. set_perm_recursive(0, 0, 0755, 0644, "/system");
  59. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  60. set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
  61. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  62. set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
  63. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
  64. set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/firmware");
  65. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  66. set_perm(0, 2000, 0755, "/system/vendor");
  67. set_perm(0, 2000, 0755, "/system/vendor/firmware");
  68. set_perm(0, 2000, 0755, "/system/vendor/bin/launch_gps.sh");
  69. set_perm(0, 2000, 0755, "/system/vendor/bin/gpsd");
  70. set_perm(0, 2000, 0755, "/system/etc/bluetooth");
  71. set_perm(0, 3003, 02755, "/system/bin/netcfg");
  72. set_perm(0, 3004, 02755, "/system/bin/ping");
  73. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  74. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  75. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  76. set_perm(0, 0, 06755, "/system/xbin/su");
  77. set_perm(0, 0, 06755, "/system/xbin/busybox");
  78. set_perm(0, 0, 755, "/tmp/redbend_ua");
  79.  
  80.  
  81. run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
  82.  
  83.  
  84. package_extract_dir("data", "/data");
  85.  
  86. package_extract_dir("updates", "/tmp");
  87. show_progress(0.100000, 10);
  88. set_perm(0, 0, 0755, "/tmp/redbend_ua");
  89. set_perm(0, 0, 0777, "/tmp/redbend_ua");
  90.  
  91. ui_print("Flashing modem");
  92. ui_print(" ");
  93. run_program("/tmp/redbend_ua", "restore", "/tmp/modem.bin", "/dev/block/bml12");
  94. set_perm(0, 0, 0777, "/tmp/redbend_ua");
  95.  
  96. ui_print("Flashing zImage");
  97. ui_print(" ");
  98. run_program("/tmp/redbend_ua", "restore", "/tmp/zImage", "/dev/block/bml7");
  99. show_progress(1.000000, 0);
  100.  
  101. unmount("/cache");
  102. unmount("/system");
  103. unmount("/data");
  104. unmount("/dbdata");
  105.  
  106. ui_print("Welcome to PerkaROM :)");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement