Advertisement
metalx1000

Samsung galaxy tab 4 10.1 sm-t530nu notes

Dec 28th, 2014
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.35 KB | None | 0 0
  1. #Get and compile Heimdell with line change
  2. #BridgeManager.cpp contains:
  3. #success = ReceivePacket(receiveFilePartPacket, receiveEmptyTransferFlags);
  4. #but it makes wrong timeout and lost flags.
  5. #I use this one:
  6. #success = ReceivePacket(receiveFilePartPacket, kDefaultTimeoutReceive, #receiveEmptyTransferFlags);
  7. #see notes: http://pastebin.com/eB8Dhgke
  8.  
  9.  
  10. #Get recovery img from here:
  11. #http://forum.xda-developers.com/tab-4/orig-development/clockworkmod-6-0-5-0-galaxy-tab-4-10-1-t2830683
  12. #http://forum.xda-developers.com/attachment.php?attachmentid=2873786&d=1406554277
  13.  
  14. #reboot into bootloader and flash recovery
  15. #!!!!!!upon reboot hold down Vol Down + Menu + Power
  16. sudo adb reboot bootloader
  17. sudo heimdall flash --RECOVERY recovery.img
  18. sudo adb reboot recovery
  19. #once in recovery adb shell
  20. sudo adb shell
  21.  
  22. ###############note#############
  23. #           USE PARTED TO LEARN WHICH PARTITION IS WHAT
  24. #parted /dev/block/mmcblk0
  25. #(parted) print
  26. ###############note#############
  27. #mount system, cache and data because clockworkmod can’t
  28. #mount sdcard - you might need to rm /sdcard folder
  29. #rm -fr /sdcard && mkdir /sdcard
  30. mount /dev/block/mmcblk1p1 /sdcard
  31. mount /dev/block/mmcblk0p23 /system
  32. mount /dev/block/mmcblk0p24 /cache
  33. mount /dev/block/mmcblk0p26 /data
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. ###############keeping CWM############
  44. #backup parition
  45. #rm -fr /sdcard && mkdir /sdcard
  46. mount /dev/block/mmcblk1p1 /sdcard
  47. mkdir /sdcard/tab4
  48. dd if=/dev/block/mmcblk0p15 of=/sdcard/tab4/stock-recovery.img
  49. dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p15
  50. #to make it last through reboots
  51. mount /dev/block/mmcblk0p23 /system
  52. mv /system/recovery-from-boot.p /system/recovery-from-boot.p
  53.  
  54. ###################root device##################
  55. #in clock work mod
  56. mount /dev/block/mmcblk0p23 /system
  57. cd /system/bin
  58. cp sh su
  59. #setuid to su will always run as root
  60. chown root:root su
  61. chmod 4755 su
  62.  
  63. ################busybox############
  64. #on desktop
  65. wget http://benno.id.au/android/busybox
  66. sudo adb push busybox /system/bin/
  67. sudo adb shell
  68.  
  69.  
  70. #link to busybox on device
  71. cd /system/bin
  72. for i in $(busybox --list);do echo "linking $i...";ln -s busybox $i;done
  73.  
  74. ################editing startup scripts###################
  75. #as root (in recovery maybe)
  76. mount /dev/block/mmcblk0p23 /system
  77. echo/etc/myboot.sh” >> /system/etc/init.sec.boot.sh
  78. /system/bin/busybox vi /system/etc/myboot.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement