Advertisement
rhcp011235

TWRP_N7

Aug 10th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. # Board config
  2. TARGET_RECOVERY_INITRC := device/asus/grouper/recovery/recovery.rc
  3.  
  4.  
  5.  
  6. # Custom recovery.inc
  7. on early-init
  8. start ueventd
  9.  
  10. on init
  11. export PATH /sbin:/system/lib/
  12. export LD_LIBRARY_PATH .:/sbin:/system/lib/
  13. export ANDROID_ROOT /system
  14. export ANDROID_DATA /data
  15. export EXTERNAL_STORAGE /sdcard
  16.  
  17. symlink /system/etc /etc
  18.  
  19. mkdir /boot
  20. mkdir /sdcard
  21. mkdir /sd-ext
  22. mkdir /datadata
  23. mkdir /emmc
  24. mkdir /system
  25. mkdir /data
  26. mkdir /cache
  27. mount /tmp /tmp tmpfs
  28.  
  29. on boot
  30.  
  31. ifup lo
  32. hostname localhost
  33. domainname localdomain
  34.  
  35. class_start default
  36.  
  37. service ueventd /sbin/ueventd
  38. critical
  39.  
  40. service recovery /sbin/recovery
  41.  
  42. service adbd /sbin/adbd recovery
  43. disabled
  44.  
  45. # Always start adbd on userdebug and eng builds
  46. # In recovery, always run adbd as root.
  47. on property:ro.debuggable=1
  48. write /sys/class/android_usb/android0/enable 0
  49. write /sys/class/android_usb/android0/idVendor 18D1
  50. write /sys/class/android_usb/android0/idProduct D001
  51. write /sys/class/android_usb/android0/functions adb
  52. #write /sys/class/android_usb/android0/enable 1
  53. write /sys/class/android_usb/android0/iManufacturer $ro.product.manufacturer
  54. write /sys/class/android_usb/android0/iProduct $ro.product.model
  55. write /sys/class/android_usb/android0/iSerial $ro.serialno
  56. #start adbd
  57. setprop service.adb.root 1
  58.  
  59. # Restart adbd so it can run as root
  60. on property:service.adb.root=1
  61. write /sys/class/android_usb/android0/enable 0
  62. restart adbd
  63. write /sys/class/android_usb/android0/enable 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement