Guest User

Untitled

a guest
Apr 7th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Robots 3.43 KB | None | 0 0
  1. @echo off
  2. cls
  3. echo.
  4. echo.
  5. echo.
  6. echo.
  7. echo           The Android Creative Syndicate
  8. echo.
  9. echo                   Presents to you
  10. echo.          
  11. echo          ShabbyMod for the Samsung Prevail
  12. echo.
  13. echo                     Version 0.9-5
  14. echo                   Loaded - Edition
  15. echo.
  16. pause
  17. cls
  18. echo.
  19. echo        You need to enable usb debugging first
  20. echo      Go to settings - applications - development
  21. echo                 PRESS ENTER WHEN DONE
  22. pause
  23. adb.exe kill-server
  24. adb.exe start-server
  25. adb.exe reboot
  26. adb.exe wait-for-device
  27. echo
  28. cls
  29. IF NOT EXIST KillingMeSoftly goto :Missing
  30. adb.exe push KillingMeSoftly /data/local/tmp > NUL 2>&1
  31. adb.exe shell chmod 777 /data/local/tmp/KillingMeSoftly > NUL 2>&1
  32. adb.exe shell cd /data/local/tmp; ./KillingMeSoftly
  33. adb.exe kill-server
  34.  
  35. echo Wait for phone to reconnect...
  36. @ping 127.0.0.1 -n 15 -w 1000 > nul
  37. adb start-server
  38. adb wait-for-device
  39. adb.exe shell mount -o remount,rw -t rfs /dev/stl12 /system
  40. adb.exe push rootsetup /data/local/tmp/rootsetup
  41. adb.exe shell chmod 755 /data/local/tmp/rootsetup
  42. adb.exe shell ./data/local/tmp/rootsetup
  43. adb.exe shell rm /data/local/tmp/rootsetup
  44. adb.exe shell sync
  45. echo.
  46. echo Copying files onto phone...
  47. adb.exe shell mkdir /system/xbin
  48. adb.exe push Rom/Xbin/su /system/xbin/su
  49. adb.exe push Rom/Xbin/busybox /system/xbin/busybox
  50. adb.exe push Rom/Xbin/remount /system/xbin/remount
  51. adb.exe push Rom/Xbin/profile /system/xbin/profile
  52. echo.
  53. echo Setting permissions...
  54. adb.exe shell chmod 755 /system/xbin/busybox
  55. adb.exe shell chmod 755 /system/xbin/remount
  56. adb.exe shell chmod 0644 /system/xbin/profile
  57. adb.exe shell ln -s /system/xbin/profile /system/bin/profile
  58. adb.exe shell chown root.shell /system/xbin/su
  59. adb.exe shell chmod 6755 /system/xbin/su
  60. adb.exe shell ln -s /system/xbin/su /system/bin/su
  61. echo.
  62. echo Installing busybox...
  63. adb.exe shell /system/xbin/busybox --install -s /system/xbin
  64. echo.
  65. echo Installing custom rom...
  66. adb.exe shell rm -r /system/app
  67. adb.exe shell mkdir /system/app
  68. adb.exe push Rom/App /system/app
  69. adb.exe shell rm /system/bin/samsungloop
  70. adb.exe push Rom/Bin/Samsungloop /system/bin/samsungloop
  71. adb.exe shell chmod 777 /system/bin/samsungloop
  72. adb.exe push Rom/Media/RingToneSong.mp3 /data/local/RingToneSong.mp3
  73. adb.exe push Rom/Media/Bootanimation.zip /data/local/bootanimation.zip
  74. adb.exe push Rom/Xbin/Screenshot.apk /data/app/Screenshot.apk
  75. echo Installing Etc tweaks
  76. adb.exe push Rom/Etc /system/etc
  77. adb.exe push Rom/Fonts /system/fonts
  78. echo Speeding up Media Scanner
  79. adb.exe push Rom/Xbin/nomedia.sh /system/xbin/nomedia.sh
  80. adb.exe push Rom/Xbin/nomedia /system/xbin/.nomedia
  81. adb.exe shell chmod 755 /system/xbin/nomedia.sh
  82. adb.exe shell cd /system/xbin; ./nomedia.sh
  83. echo Installing Frameworks
  84. adb.exe push Rom/build.prop /system/build.prop
  85. adb.exe shell rm -r /system/framework
  86. adb.exe shell mkdir /system/framework
  87. adb.exe push Rom/Framework /system/framework
  88. adb.exe push Rom/build.prop /system/build.prop
  89. echo.
  90. echo Cleaning up files...
  91. @ping 127.0.0.1 -n 6 -w 1000 > nul
  92. adb.exe shell rm /data/local/tmp/KillingMeSoftly
  93. adb.exe shell rm /system/xbin/nomedia.sh
  94. adb.exe shell reboot
  95.  
  96. echo It's Not required but a factory wipe in settings will improve user experience
  97. echo keep in mind tho wiping the phone will reset all data and accounts
  98. pause
  99. adb.exe kill-server
  100. goto:eof
  101.  
  102. :Missing
  103. echo KillingmeSoftly is missing. Make sure you extracted the zip archive correctly.
  104. pause
Add Comment
Please, Sign In to add comment