ulvis.paste.net

Paste Search Dynamic
Recent pastes
Droid X2 AOSP Boot Test
  1. ui_print("");
  2. ui_print("");
  3. ui_print("*********************************");
  4. ui_print("*       DX2 2nd-init            *");
  5. ui_print("*                               *");
  6. ui_print("*         by                    *");
  7. ui_print("*          Team Funkenstein     *");
  8. ui_print("*********************************");
  9. ui_print("");
  10. ui_print("==> Checking Device...");
  11. assert(getprop("ro.product.device") == "daytona" || getprop("ro.build.product") == "daytona");
  12. ui_print("Check done...");
  13. ui_print("Continuing...");
  14. ui_print("");
  15. ui_print("");
  16. ui_print("****Droid X2 AOSP Boot Test****");
  17. ui_print("*----==<<TESTING  ONLY>>==----*");
  18. ui_print("*******************************");
  19. ui_print("");
  20. ui_print("==> Mounting System");
  21. mount("ext3", "EMMC", "/dev/block/mmcblk0p12", "/system");
  22. ui_print("");
  23. ui_print("==> Cleaning Files...");
  24. delete("/system/xbin/2nd-init");
  25. delete("/system/xbin/hijack.killall");
  26. delete("/system/xbin/log_init.sh");
  27. delete("/system/xbin/taskset");
  28. delete("/system/etc/aosp_fs/init.rc");
  29. delete("/system/etc/aosp_fs/log");
  30. delete("/system/etc/aosp_fs/logcat.log");
  31. delete("/system/bin/hijack2");
  32. delete("/system/bin/mot_boot_mode.bin");
  33. run_program("/system/xbin/busybox", "cp", "/system/bin/mot_boot_mode", "/system/bin/mot_boot_mode.bin");
  34. delete("/system/bin/mot_boot_mode");
  35. ui_print("");
  36. ui_print("==> Extracting Files...");
  37. package_extract_dir("system", "/system");
  38. symlink("/system/bin/hijack2", "/system/bin/mot_boot_mode");
  39. ui_print("");
  40. ui_print("==> Setting permissions...");
  41. set_perm_recursive(0, 0, 0755, 0644, "/system");
  42. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  43. set_perm(0, 2000, 04755, "/system/bin/2nd-init");
  44. ui_print("");
  45. ui_print("==> Finishing up...");
  46. unmount("/system");
  47. ui_print("");
  48. ui_print("");
  49. ui_print("Good Luck!!");
  50. ui_print("");
Parsed in 0.005 seconds