JaboJG

Untitled

Dec 23rd, 2015
640
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. echo Plug in your device with a USB data cable.
  2. echo Please enable ADB debuging in the developer options \(Tap Serial Number in Device Options 20 times if it is hidden\)
  3. echo and unlock your device to the homescreen. This script will root your device.
  4. echo make sure all adb and fastboot drivers are installed if you have problems.
  5. echo ACCEPT THE PROMPT ON YOUR DEVICE TO ALLOW USB DEBUGGING!
  6. echo Press ENTER when you have followed the above steps.
  7. adb wait-for-device
  8. echo Installing Google Play
  9. adb install com.google.android.gms-6.6.03_\(1681564-036\)-6603036-minAPI9.apk
  10. adb install GoogleLoginService.apk
  11. adb install GoogleServicesFramework.apk
  12. adb shell pm grant com.google.android.gms android.permission.INTERACT_ACROSS_USERS
  13. adb install com.android.vending-5.9.12-80391200-minAPI9.apk
  14. adb reboot-bootloader
  15. fastboot oem append-cmdline "androidboot.unlocked_kernel=true"
  16. fastboot continue
  17. echo Do not disconnect the device.
  18. adb wait-for-device
  19. adb remount +rw /data
  20. adb remount +rw /cache
  21. adb shell rm -r /data/dalvik-cache
  22. adb shell rm -r /cache
  23. adb wait-for-device
  24. adb remount
  25. adb push libsupol.so /data/local/tmp/
  26. adb push root_fire.sh /data/local/tmp/
  27. adb push su /data/local/tmp/
  28. adb push Superuser.apk /data/local/tmp/
  29. adb push supolicy /data/local/tmp/
  30. adb shell chmod 777 /data/local/tmp/root_fire.sh
  31. adb shell /data/local/tmp/root_fire.sh
  32. fastboot oem append-cmdline "androidboot.unlocked_kernel=true"
  33. fastboot continue
  34. echo Do not disconnect the device. Optimizing system storage and aplications...
  35. adb wait-for-device
  36. echo Root commands executed!
  37. echo DISABLING OTA UPDATES!!!
  38. echo AMAZON WILL PROBABLY FOREVER BREAK ROOT IN FUTURE UPDATES IF THESE WERE LEFT ENABLED!!
  39. echo If you would like to update in the future, enter recovery mode and ADB sideload the update.bin provided by amazons website.
  40. adb remount +rw /system
  41. adb shell rm -r /system/etc/security/otacerts.zip
  42. adb shell rm -r /system/priv-app/DeviceSoftwareOTA/
  43. adb shell rm -r /system/app/otaverifier
  44. echo Fastboot rebooting...
  45. adb reboot-bootloader
  46. fastboot oem append-cmdline "androidboot.unlocked_kernel=true"
  47. fastboot continue
  48. echo Optimizing system storage and applications...
  49. echo Do not disconnect the device.
  50. adb wait-for-device
  51. echo Remounting /system as rewritable...
  52. adb remount +rw /system
  53. echo Debloating...
  54. echo Deleting AdvertisingIdSettings
  55. adb shell rm -r /system/priv-app/AdvertisingIdSettings
  56. echo Deleting Special Offers \(Amazon Advert Spam\)
  57. adb shell rm -r /system/priv-app/com.amazon.kindle.kso
  58. adb shell rm -r /data/app/com.amazon.kindle.kso
  59. echo Deleting Amazon GameCircle
  60. adb shell rm -r /system/priv-app/com.amazon.ags.app
  61. echo Deleting Amazon GoodReads Share
  62. adb shell rm -r /system/priv-app/com.amazon.unifiedsharegoodreads
  63. echo Deleting Retail Demo
  64. adb shell rm -r /system/priv-app/com.amazon.kor.demo
  65. echo Deleting Amazon Recess
  66. adb shell rm -r /system/priv-app/FireRecessProxy
  67. echo Deleting Audible
  68. adb shell rm -r /system/priv-app/com.audible.application.kindle
  69. echo Deleting Audiobooks store
  70. adb shell rm -r /system/priv-app/com.audible.application.store
  71. echo Replacing Launcher
  72. adb shell rm -r /system/priv-app/com.amazon.firelauncher
  73. adb push launcher.apk /system/app
  74. echo Optimizing system storage and applications...
  75. adb reboot
  76. echo You may now disconnect your device.
Advertisement
Add Comment
Please, Sign In to add comment