Advertisement
Guest User

Untitled

a guest
Nov 7th, 2015
1,098
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. #!/bin/bash
  2. printf "** Sony ric disabler for various xperia devices **\n"
  3. printf "** By AleksJ / Mirror by LinuxCT **\n"
  4. printf "** linux script by luichii **\n"
  5. cd ric
  6. adb kill-server
  7. adb start-server
  8. adb wait-for-device
  9. printf "Done device detected...\n"
  10. printf ".\n"
  11.  
  12. adb push wp_mod.ko /data/local/tmp/wp_mod.ko
  13. adb push copymodulecrc /data/local/tmp/copymodulecrc
  14. adb push stopric.sh /data/local/tmp/stopric.sh
  15. adb push busybox /data/local/tmp/busybox
  16. adb shell "chmod 0644 /data/local/tmp/wp_mod.ko"
  17. adb shell "chmod 0755 /data/local/tmp/copymodulecrc"
  18. adb shell "chmod 0755 /data/local/tmp/stopric.sh"
  19. adb shell "chmod 0755 /data/local/tmp/busybox"
  20. adb shell "/data/local/tmp/copymodulecrc /system/lib/modules/scsi_wait_scan.ko /data/local/tmp/wp_mod.ko"
  21. adb shell "su -c 'insmod /data/local/tmp/wp_mod.ko'"
  22. adb shell "su -c 'mount -o remount,rw /system'"
  23. adb shell "su -c 'dd if=/data/local/tmp/wp_mod.ko of=/system/lib/modules/wp_mod.ko'"
  24. adb shell "su -c 'chown root.root /system/lib/modules/wp_mod.ko'"
  25. adb shell "su -c 'chmod 0644 /system/lib/modules/wp_mod.ko'"
  26.  
  27.  
  28. adb shell "su -c '/data/local/tmp/stopric.sh'"
  29. sleep 1
  30. adb shell "su -c 'mount -o remount,ro /system'"
  31.  
  32.  
  33. read -n1 -r -p "Press any key to continue..."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement