Advertisement
FirehaK

edify links and permissions

Mar 2nd, 2012
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.69 KB | None | 0 0
  1. symlink("toolbox", "/system/bin/cat");
  2. symlink("toolbox", "/system/bin/chmod");
  3. symlink("toolbox", "/system/bin/chown");
  4. symlink("toolbox", "/system/bin/cmp");
  5. symlink("toolbox", "/system/bin/date");
  6. symlink("toolbox", "/system/bin/dd");
  7. symlink("toolbox", "/system/bin/df");
  8. symlink("toolbox", "/system/bin/dmesg");
  9. symlink("toolbox", "/system/bin/getevent");
  10. symlink("toolbox", "/system/bin/getprop");
  11. symlink("toolbox", "/system/bin/hd");
  12. symlink("toolbox", "/system/bin/id");
  13. symlink("toolbox", "/system/bin/ifconfig");
  14. symlink("toolbox", "/system/bin/iftop");
  15. symlink("toolbox", "/system/bin/insmod");
  16. symlink("toolbox", "/system/bin/ioctl");
  17. symlink("toolbox", "/system/bin/ionice");
  18. symlink("toolbox", "/system/bin/kill");
  19. symlink("toolbox", "/system/bin/ln");
  20. symlink("toolbox", "/system/bin/log");
  21. symlink("toolbox", "/system/bin/ls");
  22. symlink("toolbox", "/system/bin/lsmod");
  23. symlink("toolbox", "/system/bin/mkdir");
  24. symlink("toolbox", "/system/bin/mount");
  25. symlink("toolbox", "/system/bin/mv");
  26. symlink("toolbox", "/system/bin/nandread");
  27. symlink("toolbox", "/system/bin/netstat");
  28. symlink("toolbox", "/system/bin/newfs_msdos");
  29. symlink("toolbox", "/system/bin/notify");
  30. symlink("toolbox", "/system/bin/printenv");
  31. symlink("toolbox", "/system/bin/ps");
  32. symlink("dumpstate", "/system/bin/dumpmesg");
  33. symlink("toolbox", "/system/bin/reboot");
  34. symlink("toolbox", "/system/bin/renice");
  35. symlink("toolbox", "/system/bin/rm");
  36. symlink("toolbox", "/system/bin/rmdir");
  37. symlink("toolbox", "/system/bin/rmmod");
  38. symlink("toolbox", "/system/bin/route");
  39. symlink("toolbox", "/system/bin/schedtop");
  40. symlink("toolbox", "/system/bin/sendevent");
  41. symlink("toolbox", "/system/bin/setconsole");
  42. symlink("toolbox", "/system/bin/setprop");
  43. symlink("toolbox", "/system/bin/sleep");
  44. symlink("toolbox", "/system/bin/smd");
  45. symlink("toolbox", "/system/bin/start");
  46. symlink("toolbox", "/system/bin/stop");
  47. symlink("toolbox", "/system/bin/sync");
  48. symlink("toolbox", "/system/bin/top");
  49. symlink("toolbox", "/system/bin/umount");
  50. symlink("toolbox", "/system/bin/vmstat");
  51. symlink("toolbox", "/system/bin/watchprops");
  52. symlink("toolbox", "/system/bin/wipe");
  53. symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
  54. "/system/xbin/arp", "/system/xbin/ash", "/system/xbin/awk",
  55. "/system/xbin/base64", "/system/xbin/basename", "/system/xbin/bbconfig",
  56. "/system/xbin/blockdev", "/system/xbin/brctl", "/system/xbin/bunzip2",
  57. "/system/xbin/bzcat", "/system/xbin/bzip2", "/system/xbin/cal",
  58. "/system/xbin/cat", "/system/xbin/catv", "/system/xbin/chattr",
  59. "/system/xbin/chgrp", "/system/xbin/chmod", "/system/xbin/chown",
  60. "/system/xbin/chroot", "/system/xbin/clear", "/system/xbin/cmp",
  61. "/system/xbin/comm", "/system/xbin/cp", "/system/xbin/cpio",
  62. "/system/xbin/crond", "/system/xbin/crontab", "/system/xbin/cut",
  63. "/system/xbin/date", "/system/xbin/dc", "/system/xbin/dd",
  64. "/system/xbin/depmod", "/system/xbin/devmem", "/system/xbin/df",
  65. "/system/xbin/diff", "/system/xbin/dirname", "/system/xbin/dmesg",
  66. "/system/xbin/dnsd", "/system/xbin/dos2unix", "/system/xbin/du",
  67. "/system/xbin/echo", "/system/xbin/ed", "/system/xbin/egrep",
  68. "/system/xbin/env", "/system/xbin/expand", "/system/xbin/expr",
  69. "/system/xbin/false", "/system/xbin/fdisk", "/system/xbin/fgrep",
  70. "/system/xbin/find", "/system/xbin/flash_lock",
  71. "/system/xbin/flash_unlock", "/system/xbin/flashcp",
  72. "/system/xbin/flock", "/system/xbin/fold", "/system/xbin/free",
  73. "/system/xbin/freeramdisk", "/system/xbin/fsync", "/system/xbin/ftpget",
  74. "/system/xbin/ftpput", "/system/xbin/fuser", "/system/xbin/getopt",
  75. "/system/xbin/grep", "/system/xbin/groups", "/system/xbin/gunzip",
  76. "/system/xbin/gzip", "/system/xbin/halt", "/system/xbin/head",
  77. "/system/xbin/hexdump", "/system/xbin/id", "/system/xbin/ifconfig",
  78. "/system/xbin/insmod", "/system/xbin/install", "/system/xbin/iostat",
  79. "/system/xbin/ip", "/system/xbin/kill", "/system/xbin/killall",
  80. "/system/xbin/killall5", "/system/xbin/length", "/system/xbin/less",
  81. "/system/xbin/ln", "/system/xbin/losetup", "/system/xbin/ls",
  82. "/system/xbin/lsattr", "/system/xbin/lsmod", "/system/xbin/lsusb",
  83. "/system/xbin/lzcat", "/system/xbin/lzma", "/system/xbin/lzop",
  84. "/system/xbin/lzopcat", "/system/xbin/man", "/system/xbin/md5sum",
  85. "/system/xbin/mesg", "/system/xbin/mkdir", "/system/xbin/mke2fs",
  86. "/system/xbin/mkfifo", "/system/xbin/mkfs.ext2",
  87. "/system/xbin/mkfs.vfat", "/system/xbin/mknod", "/system/xbin/mkswap",
  88. "/system/xbin/mktemp", "/system/xbin/modinfo", "/system/xbin/modprobe",
  89. "/system/xbin/more", "/system/xbin/mount", "/system/xbin/mountpoint",
  90. "/system/xbin/mpstat", "/system/xbin/mv", "/system/xbin/nanddump",
  91. "/system/xbin/nandwrite", "/system/xbin/netstat", "/system/xbin/nice",
  92. "/system/xbin/nohup", "/system/xbin/nslookup", "/system/xbin/ntpd",
  93. "/system/xbin/od", "/system/xbin/patch", "/system/xbin/pgrep",
  94. "/system/xbin/pidof", "/system/xbin/ping", "/system/xbin/pkill",
  95. "/system/xbin/pmap", "/system/xbin/poweroff", "/system/xbin/printenv",
  96. "/system/xbin/printf", "/system/xbin/ps", "/system/xbin/pstree",
  97. "/system/xbin/pwd", "/system/xbin/pwdx", "/system/xbin/rdev",
  98. "/system/xbin/readlink", "/system/xbin/realpath", "/system/xbin/renice",
  99. "/system/xbin/reset", "/system/xbin/resize", "/system/xbin/rev",
  100. "/system/xbin/rm", "/system/xbin/rmdir", "/system/xbin/rmmod",
  101. "/system/xbin/route", "/system/xbin/run-parts", "/system/xbin/rx",
  102. "/system/xbin/sed", "/system/xbin/seq", "/system/xbin/setconsole",
  103. "/system/xbin/setserial", "/system/xbin/setsid", "/system/xbin/sh",
  104. "/system/xbin/sha1sum", "/system/xbin/sha256sum",
  105. "/system/xbin/sha512sum", "/system/xbin/sleep", "/system/xbin/sort",
  106. "/system/xbin/split", "/system/xbin/stat", "/system/xbin/strings",
  107. "/system/xbin/stty", "/system/xbin/sum", "/system/xbin/swapoff",
  108. "/system/xbin/swapon", "/system/xbin/sync", "/system/xbin/sysctl",
  109. "/system/xbin/tac", "/system/xbin/tail", "/system/xbin/tar",
  110. "/system/xbin/tee", "/system/xbin/telnet", "/system/xbin/telnetd",
  111. "/system/xbin/test", "/system/xbin/tftp", "/system/xbin/tftpd",
  112. "/system/xbin/time", "/system/xbin/timeout", "/system/xbin/top",
  113. "/system/xbin/touch", "/system/xbin/tr", "/system/xbin/traceroute",
  114. "/system/xbin/true", "/system/xbin/tty", "/system/xbin/ttysize",
  115. "/system/xbin/tune2fs", "/system/xbin/umount", "/system/xbin/uname",
  116. "/system/xbin/uncompress", "/system/xbin/unexpand", "/system/xbin/uniq",
  117. "/system/xbin/unix2dos", "/system/xbin/unlzma", "/system/xbin/unlzop",
  118. "/system/xbin/unxz", "/system/xbin/unzip", "/system/xbin/uptime",
  119. "/system/xbin/usleep", "/system/xbin/uudecode", "/system/xbin/uuencode",
  120. "/system/xbin/vi", "/system/xbin/watch", "/system/xbin/wc",
  121. "/system/xbin/wget", "/system/xbin/which", "/system/xbin/whoami",
  122. "/system/xbin/xargs", "/system/xbin/xz", "/system/xbin/xzcat",
  123. "/system/xbin/yes",
  124. "/system/xbin/zcat");
  125. symlink("iwmulticall", "/system/xbin/iwconfig", "/system/xbin/iwgetid",
  126. "/system/xbin/iwlist", "/system/xbin/iwpriv",
  127. "/system/xbin/iwspy");
  128. set_perm_recursive(0, 0, 0755, 0644, "/system");
  129. set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
  130. set_perm(0, 3003, 02750, "/system/bin/netcfg");
  131. set_perm(0, 3004, 02755, "/system/bin/ping");
  132. set_perm(0, 2000, 06750, "/system/bin/run-as");
  133. set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
  134. set_perm(0, 0, 0755, "/system/etc/bluetooth");
  135. set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
  136. set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
  137. set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
  138. set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
  139. set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
  140. set_perm(0, 0, 0755, "/system/etc/init.d");
  141. set_perm(0, 0, 0755, "/sbin/custom_init.sh");
  142. set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
  143. set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
  144. set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
  145. set_perm(0, 0, 06755, "/system/xbin/hcitool");
  146. set_perm(0, 0, 06755, "/system/xbin/librank");
  147. set_perm(0, 0, 06755, "/system/xbin/procmem");
  148. set_perm(0, 0, 06755, "/system/xbin/procrank");
  149. symlink("/system/xbin/su", "/system/bin/su");
  150. set_perm(0, 0, 06755, "/system/xbin/su");
  151. set_perm(0, 0, 06755, "/system/xbin/tcpdump");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement