Advertisement
rhcp011235

Untitled

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