This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

updater-script

By: a guest on Nov 29th, 2012  |  syntax: None  |  size: 1.41 KB  |  views: 307  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ui_print("**********************************************");
  2. ui_print("                                              ");
  3. ui_print("             JiaYu G2S Root Script            ");
  4. ui_print("             by X-Dron 23.09.2012             ");
  5. ui_print("                                              ");
  6. ui_print("**********************************************");
  7. ui_print("*             Update the kernel              *");
  8. assert(package_extract_file("boot.img", "/tmp/boot.img"),
  9.        write_raw_image("/tmp/boot.img", "bootimg"),
  10.        delete("/tmp/boot.img"));
  11. mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");
  12. ui_print("*              Enable the Root               *");
  13. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  14. package_extract_dir("system", "/system");
  15. set_perm(0, 0, 0644, "/system/app/Superuser.apk");
  16. set_perm(0, 0, 06755, "/system/xbin/su");
  17. set_perm(0, 0, 04755, "/system/bin/bash");
  18. set_perm(0, 2000, 04755, "/system/bin/busybox");
  19. delete("/system/app/PinyinIME.apk");
  20. delete("/system/app/PinyinIME.odex");
  21. delete("/system/app/SmsReg.apk");
  22. delete("/system/app/SmsReg.odex");
  23. delete("/system/app/aniPetshuizuguan.apk");
  24. delete("/system/app/LocationEM.apk");
  25. delete("/system/app/ShouJiQQ.apk");
  26. delete("/system/lib/libjni_pinyinime.so");
  27. unmount("/system");
  28. ui_print("*                   All done                 *");
  29. ui_print("**********************************************");
clone this paste RAW Paste Data