Want more features on Pastebin? Sign Up, it's FREE!
Guest

How to root an ICS tablet use just adb

By: lazyfai on Mar 14th, 2012  |  syntax: None  |  size: 1.85 KB  |  views: 4,627  |  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. [fai@home-desktop tmp]$ adb shell
  2. shell@android:/ $ mv /data/local/tmp /data/local/tmp.bak
  3. shell@android:/ $ ln -s /data /data/local/tmp
  4. [fai@home-desktop tmp]$ adb reboot
  5. [fai@home-desktop tmp]$ adb wait-for-device
  6.  
  7. [fai@home-desktop tmp]$ adb shell
  8. shell@android:/ $ echo ro.kernel.qemu=1 > /data/local.prop
  9. shell@android:/ $ exit
  10. [fai@home-desktop tmp]$ adb reboot
  11. [fai@home-desktop tmp]$ adb wait-for-device
  12. [fai@home-desktop tmp]$ adb remount
  13. remount succeeded
  14. [fai@home-desktop tmp]$ adb push su /system/bin/su
  15. 518 KB/s (22364 bytes in 0.042s)
  16.  
  17. [fai@home-desktop tmp]$ adb shell
  18. root@android:/ # chown root.shell /system/bin/su
  19. root@android:/ # chmod 06755 /system/bin/su
  20. root@android:/ # rm /system/xbin/su
  21. rm failed for /system/xbin/su, No such file or directory
  22. 255|root@android:/ # ln -s /system/bin/su /system/xbin/su
  23. root@android:/ # exit
  24. [fai@home-desktop tmp]$ adb push Superuser.apk /system/app/.
  25. 3923 KB/s (843503 bytes in 0.209s)
  26.  
  27. [fai@home-desktop tmp]$ adb shell
  28. root@android:/ # rm /data/local.prop
  29. root@android:/ # rm /data/local/tmp
  30. root@android:/ # mv /data/local/tmp.bak /data/local/tmp
  31. root@android:/ # exit
  32. [fai@home-desktop tmp]$ adb push busybox /data/local/tmp/.
  33. 1956 KB/s (1075144 bytes in 0.536s)
  34.  
  35. [fai@home-desktop tmp]$ adb shell
  36. root@android:/ # chmod 755 /data/local/tmp/busybox
  37. root@android:/ # /data/local/tmp/busybox mount -o remount,rw /system
  38. root@android:/ # dd if=/data/local/tmp/busybox of=/system/xbin/busybox
  39. 2099+1 records in
  40. 2099+1 records out
  41. 1075144 bytes transferred in 0.063 secs (17065777 bytes/sec)
  42. root@android:/ # chown root.shell /system/xbin/busybox
  43. root@android:/ # chmod 04755 /system/xbin/busybox
  44. root@android:/ # /system/xbin/busybox --install -s /system/xbin
  45. root@android:/ # rm -r /data/local/tmp/busybox
  46. root@android:/ # sync
  47. root@android:/ # exit
  48. [fai@home-desktop tmp]$ adb reboot
clone this paste RAW Paste Data