Guest User

Untitled

a guest
Feb 18th, 2019
151
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Generated by the Mer uevent to udev rule generator
  2. # in the droid-hal-* package
  3. #
  4. # This file contains udev rules derived from the uevent.rc
  5. # The original rc file contents are included preceded by #:
  6. #
  7. #
  8. ################
  9. # From ueventd.rc
  10.  
  11. #:subsystem adf
  12. # WARNING rule in comment above was not converted
  13. #: devname uevent_devname
  14. # WARNING rule in comment above was not converted
  15. #:
  16. #:# ueventd can only set permissions on device nodes and their associated
  17. #:# sysfs attributes, not on arbitrary paths.
  18. #:#
  19. #:# format for /dev rules: devname mode uid gid
  20. #:# format for /sys rules: nodename attr mode uid gid
  21. #:# shortcut: "mtd@NN" expands to "/dev/mtd/mtdNN"
  22. #:
  23. #:/dev/null 0666 root root
  24. KERNEL=="null", MODE="0666", GROUP="root", OWNER="root"
  25. #:/dev/zero 0666 root root
  26. KERNEL=="zero", MODE="0666", GROUP="root", OWNER="root"
  27. #:/dev/full 0666 root root
  28. KERNEL=="full", MODE="0666", GROUP="root", OWNER="root"
  29. #:/dev/ptmx 0666 root root
  30. KERNEL=="ptmx", MODE="0666", GROUP="root", OWNER="root"
  31. #:/dev/tty 0666 root root
  32. KERNEL=="tty", MODE="0666", GROUP="root", OWNER="root"
  33. #:/dev/random 0666 root root
  34. KERNEL=="random", MODE="0666", GROUP="root", OWNER="root"
  35. #:/dev/urandom 0666 root root
  36. KERNEL=="urandom", MODE="0666", GROUP="root", OWNER="root"
  37. #:# Make HW RNG readable by group system to let EntropyMixer read it.
  38. #:/dev/hw_random 0440 root system
  39. KERNEL=="hw_random", MODE="0440", GROUP="system", OWNER="root"
  40. #:/dev/ashmem 0666 root root
  41. KERNEL=="ashmem", MODE="0666", GROUP="root", OWNER="root"
  42. #:/dev/binder 0666 root root
  43. KERNEL=="binder", MODE="0666", GROUP="root", OWNER="root"
  44. #:
  45. #:# Anyone can read the logs, but if they're not in the "logs"
  46. #:# group, then they'll only see log entries for their UID.
  47. #:/dev/log/* 0666 root log
  48. # Mer/hybris renames /dev/log to /dev/alog (handling as a symlink)
  49. SYMLINK=="alog/*", MODE="0666", GROUP="log", OWNER="root"
  50. #:/dev/pmsg0 0222 root log
  51. KERNEL=="pmsg0", MODE="0222", GROUP="log", OWNER="root"
  52. #:
  53. #:# the msm hw3d client device node is world writable/readable.
  54. #:/dev/msm_hw3dc 0666 root root
  55. KERNEL=="msm_hw3dc", MODE="0666", GROUP="root", OWNER="root"
  56. #:
  57. #:# gpu driver for adreno200 is globally accessible
  58. #:/dev/kgsl 0666 root root
  59. KERNEL=="kgsl", MODE="0666", GROUP="root", OWNER="root"
  60. #:
  61. #:# kms driver for drm based gpu
  62. #:/dev/dri/* 0666 root graphics
  63. # Known droid dir drm/ is for subsystem dri
  64. SYMLINK=="dri/*", MODE="0666", GROUP="graphics", OWNER="root"
  65. SUBSYSTEM=="drm", KERNEL=="*", MODE="0666", GROUP="graphics", OWNER="root"
  66. #:
  67. #:# these should not be world writable
  68. #:/dev/diag 0660 system qcom_diag
  69. KERNEL=="diag", MODE="0660", GROUP="qcom_diag", OWNER="system"
  70. #:/dev/diag_arm9 0660 radio radio
  71. KERNEL=="diag_arm9", MODE="0660", GROUP="radio", OWNER="radio"
  72. #:/dev/android_adb 0660 adb adb
  73. KERNEL=="android_adb", MODE="0660", GROUP="adb", OWNER="adb"
  74. #:/dev/android_adb_enable 0660 adb adb
  75. KERNEL=="android_adb_enable", MODE="0660", GROUP="adb", OWNER="adb"
  76. #:/dev/ttyMSM0 0600 bluetooth bluetooth
  77. KERNEL=="ttyMSM0", MODE="0600", GROUP="bluetooth", OWNER="bluetooth"
  78. #:/dev/uhid 0660 system net_bt_stack
  79. KERNEL=="uhid", MODE="0660", GROUP="net_bt_stack", OWNER="system"
  80. #:/dev/uinput 0660 system net_bt_stack
  81. KERNEL=="uinput", MODE="0660", GROUP="net_bt_stack", OWNER="system"
  82. #:/dev/alarm 0664 system radio
  83. KERNEL=="alarm", MODE="0664", GROUP="radio", OWNER="system"
  84. #:/dev/rtc0 0640 system system
  85. KERNEL=="rtc0", MODE="0640", GROUP="system", OWNER="system"
  86. #:/dev/tty0 0660 root system
  87. KERNEL=="tty0", MODE="0660", GROUP="system", OWNER="root"
  88. #:/dev/graphics/* 0660 system graphics
  89. # Known droid dir graphics/ is for subsystem graphics
  90. SYMLINK=="graphics/*", MODE="0660", GROUP="graphics", OWNER="system"
  91. SUBSYSTEM=="graphics", KERNEL=="*", MODE="0660", GROUP="graphics", OWNER="system"
  92. #:/dev/msm_hw3dm 0660 system graphics
  93. KERNEL=="msm_hw3dm", MODE="0660", GROUP="graphics", OWNER="system"
  94. #:/dev/input/* 0660 root input
  95. #:/dev/eac 0660 root audio
  96. KERNEL=="eac", MODE="0660", GROUP="audio", OWNER="root"
  97. #:/dev/cam 0660 root camera
  98. KERNEL=="cam", MODE="0660", GROUP="camera", OWNER="root"
  99. #:/dev/pmem 0660 system graphics
  100. KERNEL=="pmem", MODE="0660", GROUP="graphics", OWNER="system"
  101. #:/dev/pmem_adsp* 0660 system audio
  102. KERNEL=="pmem_adsp*", MODE="0660", GROUP="audio", OWNER="system"
  103. #:/dev/pmem_camera* 0660 system camera
  104. KERNEL=="pmem_camera*", MODE="0660", GROUP="camera", OWNER="system"
  105. #:/dev/oncrpc/* 0660 root system
  106. # Known droid dir oncrpc/ is for subsystem oncrpc
  107. SYMLINK=="oncrpc/*", MODE="0660", GROUP="system", OWNER="root"
  108. SUBSYSTEM=="oncrpc", KERNEL=="*", MODE="0660", GROUP="system", OWNER="root"
  109. #:/dev/adsp/* 0660 system audio
  110. # Known droid dir adsp/ is for subsystem adsp
  111. SYMLINK=="adsp/*", MODE="0660", GROUP="audio", OWNER="system"
  112. SUBSYSTEM=="adsp", KERNEL=="*", MODE="0660", GROUP="audio", OWNER="system"
  113. #:/dev/snd/* 0660 system audio
  114. # Standard subsystem rule
  115. SUBSYSTEM=="snd", KERNEL=="*", MODE="0660", GROUP="audio", OWNER="system"
  116. #:/dev/mt9t013 0660 system system
  117. KERNEL=="mt9t013", MODE="0660", GROUP="system", OWNER="system"
  118. #:/dev/msm_camera/* 0660 system system
  119. # Known droid dir msm_camera/ is for subsystem msm_camera
  120. SYMLINK=="msm_camera/*", MODE="0660", GROUP="system", OWNER="system"
  121. SUBSYSTEM=="msm_camera", KERNEL=="*", MODE="0660", GROUP="system", OWNER="system"
  122. #:/dev/akm8976_daemon 0640 compass system
  123. KERNEL=="akm8976_daemon", MODE="0640", GROUP="system", OWNER="compass"
  124. #:/dev/akm8976_aot 0640 compass system
  125. KERNEL=="akm8976_aot", MODE="0640", GROUP="system", OWNER="compass"
  126. #:/dev/akm8973_daemon 0640 compass system
  127. KERNEL=="akm8973_daemon", MODE="0640", GROUP="system", OWNER="compass"
  128. #:/dev/akm8973_aot 0640 compass system
  129. KERNEL=="akm8973_aot", MODE="0640", GROUP="system", OWNER="compass"
  130. #:/dev/bma150 0640 compass system
  131. KERNEL=="bma150", MODE="0640", GROUP="system", OWNER="compass"
  132. #:/dev/cm3602 0640 compass system
  133. KERNEL=="cm3602", MODE="0640", GROUP="system", OWNER="compass"
  134. #:/dev/akm8976_pffd 0640 compass system
  135. KERNEL=="akm8976_pffd", MODE="0640", GROUP="system", OWNER="compass"
  136. #:/dev/lightsensor 0640 system system
  137. KERNEL=="lightsensor", MODE="0640", GROUP="system", OWNER="system"
  138. #:/dev/msm_pcm_out* 0660 system audio
  139. KERNEL=="msm_pcm_out*", MODE="0660", GROUP="audio", OWNER="system"
  140. #:/dev/msm_pcm_in* 0660 system audio
  141. KERNEL=="msm_pcm_in*", MODE="0660", GROUP="audio", OWNER="system"
  142. #:/dev/msm_pcm_ctl* 0660 system audio
  143. KERNEL=="msm_pcm_ctl*", MODE="0660", GROUP="audio", OWNER="system"
  144. #:/dev/msm_snd* 0660 system audio
  145. KERNEL=="msm_snd*", MODE="0660", GROUP="audio", OWNER="system"
  146. #:/dev/msm_mp3* 0660 system audio
  147. KERNEL=="msm_mp3*", MODE="0660", GROUP="audio", OWNER="system"
  148. #:/dev/audience_a1026* 0660 system audio
  149. KERNEL=="audience_a1026*", MODE="0660", GROUP="audio", OWNER="system"
  150. #:/dev/tpa2018d1* 0660 system audio
  151. KERNEL=="tpa2018d1*", MODE="0660", GROUP="audio", OWNER="system"
  152. #:/dev/msm_audpre 0660 system audio
  153. KERNEL=="msm_audpre", MODE="0660", GROUP="audio", OWNER="system"
  154. #:/dev/msm_audio_ctl 0660 system audio
  155. KERNEL=="msm_audio_ctl", MODE="0660", GROUP="audio", OWNER="system"
  156. #:/dev/htc-acoustic 0660 system audio
  157. KERNEL=="htc-acoustic", MODE="0660", GROUP="audio", OWNER="system"
  158. #:/dev/vdec 0660 system audio
  159. KERNEL=="vdec", MODE="0660", GROUP="audio", OWNER="system"
  160. #:/dev/q6venc 0660 system audio
  161. KERNEL=="q6venc", MODE="0660", GROUP="audio", OWNER="system"
  162. #:/dev/snd/dsp 0660 system audio
  163. # Standard subsystem rule
  164. SUBSYSTEM=="snd", KERNEL=="dsp", MODE="0660", GROUP="audio", OWNER="system"
  165. #:/dev/snd/dsp1 0660 system audio
  166. # Standard subsystem rule
  167. SUBSYSTEM=="snd", KERNEL=="dsp1", MODE="0660", GROUP="audio", OWNER="system"
  168. #:/dev/snd/mixer 0660 system audio
  169. # Standard subsystem rule
  170. SUBSYSTEM=="snd", KERNEL=="mixer", MODE="0660", GROUP="audio", OWNER="system"
  171. #:/dev/smd0 0640 radio radio
  172. KERNEL=="smd0", MODE="0640", GROUP="radio", OWNER="radio"
  173. #:/dev/qmi 0640 radio radio
  174. KERNEL=="qmi", MODE="0640", GROUP="radio", OWNER="radio"
  175. #:/dev/qmi0 0640 radio radio
  176. KERNEL=="qmi0", MODE="0640", GROUP="radio", OWNER="radio"
  177. #:/dev/qmi1 0640 radio radio
  178. KERNEL=="qmi1", MODE="0640", GROUP="radio", OWNER="radio"
  179. #:/dev/qmi2 0640 radio radio
  180. KERNEL=="qmi2", MODE="0640", GROUP="radio", OWNER="radio"
  181. #:/dev/bus/usb/* 0660 root usb
  182. # usb rule
  183. SUBSYSTEM=="usb", KERNEL=="*", MODE="0660", GROUP="usb", OWNER="root"
  184. #:/dev/mtp_usb 0660 root mtp
  185. KERNEL=="mtp_usb", MODE="0660", GROUP="mtp", OWNER="root"
  186. #:/dev/usb_accessory 0660 root usb
  187. KERNEL=="usb_accessory", MODE="0660", GROUP="usb", OWNER="root"
  188. #:/dev/tun 0660 system vpn
  189. KERNEL=="tun", MODE="0660", GROUP="vpn", OWNER="system"
  190. #:
  191. #:# CDMA radio interface MUX
  192. #:/dev/ts0710mux* 0640 radio radio
  193. KERNEL=="ts0710mux*", MODE="0640", GROUP="radio", OWNER="radio"
  194. #:/dev/ppp 0660 radio vpn
  195. KERNEL=="ppp", MODE="0660", GROUP="vpn", OWNER="radio"
  196. #:
  197. #:# sysfs properties
  198. #:/sys/devices/platform/trusty.* trusty_version 0440 root log
  199. # sys rule
  200. DEVPATH=="devices/platform/trusty.*/trusty_version", RUN+="/bin/chmod 0440 /sys/$devpath;", RUN+="/bin/chown root /sys/$devpath;", RUN+="/bin/chgrp log /sys/$devpath;"
  201. #:/sys/devices/virtual/input/input* enable 0660 root input
  202. # sys rule
  203. DEVPATH=="devices/virtual/input/input*/enable", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown root /sys/$devpath;", RUN+="/bin/chgrp input /sys/$devpath;"
  204. #:/sys/devices/virtual/input/input* poll_delay 0660 root input
  205. # sys rule
  206. DEVPATH=="devices/virtual/input/input*/poll_delay", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown root /sys/$devpath;", RUN+="/bin/chgrp input /sys/$devpath;"
  207. #:/sys/devices/virtual/usb_composite/* enable 0664 root system
  208. # sys rule
  209. DEVPATH=="devices/virtual/usb_composite/*/enable", RUN+="/bin/chmod 0664 /sys/$devpath;", RUN+="/bin/chown root /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  210. #:/sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
  211. # sys rule
  212. DEVPATH=="devices/system/cpu/cpu*/cpufreq/scaling_max_freq", RUN+="/bin/chmod 0664 /sys/$devpath;", RUN+="/bin/chown system /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  213. #:/sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system
  214. # sys rule
  215. DEVPATH=="devices/system/cpu/cpu*/cpufreq/scaling_min_freq", RUN+="/bin/chmod 0664 /sys/$devpath;", RUN+="/bin/chown system /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  216. #:
  217. #:# DVB API device nodes
  218. #:/dev/dvb* 0660 root system
  219. KERNEL=="dvb*", MODE="0660", GROUP="system", OWNER="root"
  220. ################
  221. # From ueventd.qcom.rc
  222.  
  223. #:# Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
  224. #:#
  225. #:# Redistribution and use in source and binary forms, with or without
  226. #:# modification, are permitted provided that the following conditions are met:
  227. #:# * Redistributions of source code must retain the above copyright
  228. #:# notice, this list of conditions and the following disclaimer.
  229. #:# * Redistributions in binary form must reproduce the above copyright
  230. #:# notice, this list of conditions and the following disclaimer in the
  231. #:# documentation and/or other materials provided with the distribution.
  232. #:# * Neither the name of The Linux Foundation nor
  233. #:# the names of its contributors may be used to endorse or promote
  234. #:# products derived from this software without specific prior written
  235. #:# permission.
  236. #:#
  237. #:# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  238. #:# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  239. #:# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  240. #:# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  241. #:# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  242. #:# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  243. #:# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  244. #:# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  245. #:# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  246. #:# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  247. #:# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  248. #:#
  249. #:
  250. #:# the DIAG device node is not world writable/readable.
  251. #:/dev/diag 0660 radio diag
  252. KERNEL=="diag", MODE="0660", GROUP="diag", OWNER="radio"
  253. #:
  254. #:/dev/genlock 0666 system system
  255. KERNEL=="genlock", MODE="0666", GROUP="system", OWNER="system"
  256. #:/dev/kgsl 0666 system system
  257. KERNEL=="kgsl", MODE="0666", GROUP="system", OWNER="system"
  258. #:/dev/kgsl-3d0 0666 system system
  259. KERNEL=="kgsl-3d0", MODE="0666", GROUP="system", OWNER="system"
  260. #:/dev/kgsl-2d0 0666 root root
  261. KERNEL=="kgsl-2d0", MODE="0666", GROUP="root", OWNER="root"
  262. #:/dev/kgsl-2d1 0666 root root
  263. KERNEL=="kgsl-2d1", MODE="0666", GROUP="root", OWNER="root"
  264. #:/dev/ion 0664 system system
  265. KERNEL=="ion", MODE="0664", GROUP="system", OWNER="system"
  266. #:/dev/rtc0 0660 system system
  267. KERNEL=="rtc0", MODE="0660", GROUP="system", OWNER="system"
  268. #:/dev/smd0 0660 system system
  269. KERNEL=="smd0", MODE="0660", GROUP="system", OWNER="system"
  270. #:/dev/smd4 0660 system system
  271. KERNEL=="smd4", MODE="0660", GROUP="system", OWNER="system"
  272. #:/dev/smd_cxm_qmi 0640 radio radio
  273. KERNEL=="smd_cxm_qmi", MODE="0640", GROUP="radio", OWNER="radio"
  274. #:/dev/smd5 0660 system system
  275. KERNEL=="smd5", MODE="0660", GROUP="system", OWNER="system"
  276. #:/dev/smd6 0660 system system
  277. KERNEL=="smd6", MODE="0660", GROUP="system", OWNER="system"
  278. #:/dev/smd7 0660 bluetooth bluetooth
  279. KERNEL=="smd7", MODE="0660", GROUP="bluetooth", OWNER="bluetooth"
  280. #:/dev/ccid_bridge 0660 system system
  281. KERNEL=="ccid_bridge", MODE="0660", GROUP="system", OWNER="system"
  282. #:/dev/ipa 0660 net_admin net_admin
  283. KERNEL=="ipa", MODE="0660", GROUP="net_admin", OWNER="net_admin"
  284. #:/dev/wwan_ioctl 0660 net_admin net_admin
  285. KERNEL=="wwan_ioctl", MODE="0660", GROUP="net_admin", OWNER="net_admin"
  286. #:/dev/ipaNatTable 0660 net_admin net_admin
  287. KERNEL=="ipaNatTable", MODE="0660", GROUP="net_admin", OWNER="net_admin"
  288. #:/dev/rmnet_ctrl 0660 usb usb
  289. KERNEL=="rmnet_ctrl", MODE="0660", GROUP="usb", OWNER="usb"
  290. #:/dev/dpl_ctrl 0660 usb usb
  291. KERNEL=="dpl_ctrl", MODE="0660", GROUP="usb", OWNER="usb"
  292. #:
  293. #:#permissions for CSVT
  294. #:/dev/smd11 0660 radio radio
  295. KERNEL=="smd11", MODE="0660", GROUP="radio", OWNER="radio"
  296. #:
  297. #:/dev/radio0 0640 system system
  298. KERNEL=="radio0", MODE="0640", GROUP="system", OWNER="system"
  299. #:/dev/rfcomm0 0660 bluetooth bluetooth
  300. KERNEL=="rfcomm0", MODE="0660", GROUP="bluetooth", OWNER="bluetooth"
  301. #:/dev/ttyUSB0 0660 bluetooth bluetooth
  302. KERNEL=="ttyUSB0", MODE="0660", GROUP="bluetooth", OWNER="bluetooth"
  303. #:/dev/smdcntl0 0640 radio radio
  304. KERNEL=="smdcntl0", MODE="0640", GROUP="radio", OWNER="radio"
  305. #:/dev/smdcntl1 0640 radio radio
  306. KERNEL=="smdcntl1", MODE="0640", GROUP="radio", OWNER="radio"
  307. #:/dev/smdcntl2 0640 radio radio
  308. KERNEL=="smdcntl2", MODE="0640", GROUP="radio", OWNER="radio"
  309. #:/dev/smdcntl3 0640 radio radio
  310. KERNEL=="smdcntl3", MODE="0640", GROUP="radio", OWNER="radio"
  311. #:/dev/smdcntl4 0640 radio radio
  312. KERNEL=="smdcntl4", MODE="0640", GROUP="radio", OWNER="radio"
  313. #:/dev/smdcntl5 0640 radio radio
  314. KERNEL=="smdcntl5", MODE="0640", GROUP="radio", OWNER="radio"
  315. #:/dev/smdcntl6 0640 radio radio
  316. KERNEL=="smdcntl6", MODE="0640", GROUP="radio", OWNER="radio"
  317. #:/dev/smdcntl7 0640 radio radio
  318. KERNEL=="smdcntl7", MODE="0640", GROUP="radio", OWNER="radio"
  319. #:/dev/smdcntl8 0640 radio radio
  320. KERNEL=="smdcntl8", MODE="0640", GROUP="radio", OWNER="radio"
  321. #:/dev/smdcnt_rev0 0640 radio radio
  322. KERNEL=="smdcnt_rev0", MODE="0640", GROUP="radio", OWNER="radio"
  323. #:/dev/smdcnt_rev1 0640 radio radio
  324. KERNEL=="smdcnt_rev1", MODE="0640", GROUP="radio", OWNER="radio"
  325. #:/dev/smdcnt_rev2 0640 radio radio
  326. KERNEL=="smdcnt_rev2", MODE="0640", GROUP="radio", OWNER="radio"
  327. #:/dev/smdcnt_rev3 0640 radio radio
  328. KERNEL=="smdcnt_rev3", MODE="0640", GROUP="radio", OWNER="radio"
  329. #:/dev/smdcnt_rev4 0640 radio radio
  330. KERNEL=="smdcnt_rev4", MODE="0640", GROUP="radio", OWNER="radio"
  331. #:/dev/smdcnt_rev5 0640 radio radio
  332. KERNEL=="smdcnt_rev5", MODE="0640", GROUP="radio", OWNER="radio"
  333. #:/dev/smdcnt_rev6 0640 radio radio
  334. KERNEL=="smdcnt_rev6", MODE="0640", GROUP="radio", OWNER="radio"
  335. #:/dev/smdcnt_rev7 0640 radio radio
  336. KERNEL=="smdcnt_rev7", MODE="0640", GROUP="radio", OWNER="radio"
  337. #:/dev/smdcnt_rev8 0640 radio radio
  338. KERNEL=="smdcnt_rev8", MODE="0640", GROUP="radio", OWNER="radio"
  339. #:/dev/smuxctl32 0640 radio radio
  340. KERNEL=="smuxctl32", MODE="0640", GROUP="radio", OWNER="radio"
  341. #:/dev/sdioctl0 0640 radio radio
  342. KERNEL=="sdioctl0", MODE="0640", GROUP="radio", OWNER="radio"
  343. #:/dev/sdioctl1 0640 radio radio
  344. KERNEL=="sdioctl1", MODE="0640", GROUP="radio", OWNER="radio"
  345. #:/dev/sdioctl2 0640 radio radio
  346. KERNEL=="sdioctl2", MODE="0640", GROUP="radio", OWNER="radio"
  347. #:/dev/sdioctl3 0640 radio radio
  348. KERNEL=="sdioctl3", MODE="0640", GROUP="radio", OWNER="radio"
  349. #:/dev/sdioctl4 0640 radio radio
  350. KERNEL=="sdioctl4", MODE="0640", GROUP="radio", OWNER="radio"
  351. #:/dev/sdioctl5 0640 radio radio
  352. KERNEL=="sdioctl5", MODE="0640", GROUP="radio", OWNER="radio"
  353. #:/dev/sdioctl6 0640 radio radio
  354. KERNEL=="sdioctl6", MODE="0640", GROUP="radio", OWNER="radio"
  355. #:/dev/sdioctl7 0640 radio radio
  356. KERNEL=="sdioctl7", MODE="0640", GROUP="radio", OWNER="radio"
  357. #:/dev/sdioctl8 0640 radio radio
  358. KERNEL=="sdioctl8", MODE="0640", GROUP="radio", OWNER="radio"
  359. #:/dev/rmnet_mux_ctrl 0640 radio radio
  360. KERNEL=="rmnet_mux_ctrl", MODE="0640", GROUP="radio", OWNER="radio"
  361. #:/dev/hsicctl0 0640 radio radio
  362. KERNEL=="hsicctl0", MODE="0640", GROUP="radio", OWNER="radio"
  363. #:/dev/hsicctl1 0640 radio radio
  364. KERNEL=="hsicctl1", MODE="0640", GROUP="radio", OWNER="radio"
  365. #:/dev/hsicctl2 0640 radio radio
  366. KERNEL=="hsicctl2", MODE="0640", GROUP="radio", OWNER="radio"
  367. #:/dev/hsicctl3 0640 radio radio
  368. KERNEL=="hsicctl3", MODE="0640", GROUP="radio", OWNER="radio"
  369. #:/dev/hsicctl4 0640 radio radio
  370. KERNEL=="hsicctl4", MODE="0640", GROUP="radio", OWNER="radio"
  371. #:/dev/hsicctl5 0640 radio radio
  372. KERNEL=="hsicctl5", MODE="0640", GROUP="radio", OWNER="radio"
  373. #:/dev/hsicctl6 0640 radio radio
  374. KERNEL=="hsicctl6", MODE="0640", GROUP="radio", OWNER="radio"
  375. #:/dev/hsicctl7 0640 radio radio
  376. KERNEL=="hsicctl7", MODE="0640", GROUP="radio", OWNER="radio"
  377. #:/dev/hsicctl8 0640 radio radio
  378. KERNEL=="hsicctl8", MODE="0640", GROUP="radio", OWNER="radio"
  379. #:/dev/hsicctl9 0640 radio radio
  380. KERNEL=="hsicctl9", MODE="0640", GROUP="radio", OWNER="radio"
  381. #:/dev/hsicctl10 0640 radio radio
  382. KERNEL=="hsicctl10", MODE="0640", GROUP="radio", OWNER="radio"
  383. #:/dev/hsicctl11 0640 radio radio
  384. KERNEL=="hsicctl11", MODE="0640", GROUP="radio", OWNER="radio"
  385. #:/dev/hsicctl12 0640 radio radio
  386. KERNEL=="hsicctl12", MODE="0640", GROUP="radio", OWNER="radio"
  387. #:/dev/hsicctl13 0640 radio radio
  388. KERNEL=="hsicctl13", MODE="0640", GROUP="radio", OWNER="radio"
  389. #:/dev/hsicctl14 0640 radio radio
  390. KERNEL=="hsicctl14", MODE="0640", GROUP="radio", OWNER="radio"
  391. #:/dev/hsicctl15 0640 radio radio
  392. KERNEL=="hsicctl15", MODE="0640", GROUP="radio", OWNER="radio"
  393. #:/dev/hsicctl16 0640 radio radio
  394. KERNEL=="hsicctl16", MODE="0640", GROUP="radio", OWNER="radio"
  395. #:/dev/mhi_pipe_14 0640 radio radio
  396. KERNEL=="mhi_pipe_14", MODE="0640", GROUP="radio", OWNER="radio"
  397. #:/dev/mhi_pipe_16 0640 radio radio
  398. KERNEL=="mhi_pipe_16", MODE="0640", GROUP="radio", OWNER="radio"
  399. #:/dev/mhi_pipe_32 0640 radio radio
  400. KERNEL=="mhi_pipe_32", MODE="0640", GROUP="radio", OWNER="radio"
  401. #:/dev/video* 0660 system camera
  402. KERNEL=="video*", MODE="0660", GROUP="camera", OWNER="system"
  403. #:/dev/media* 0660 system camera
  404. KERNEL=="media*", MODE="0660", GROUP="camera", OWNER="system"
  405. #:/dev/v4l-subdev* 0660 system camera
  406. KERNEL=="v4l-subdev*", MODE="0660", GROUP="camera", OWNER="system"
  407. #:/dev/qseecom 0660 system drmrpc
  408. KERNEL=="qseecom", MODE="0660", GROUP="drmrpc", OWNER="system"
  409. #:/dev/pft 0660 system drmrpc
  410. KERNEL=="pft", MODE="0660", GROUP="drmrpc", OWNER="system"
  411. #:/dev/gemini0 0660 system camera
  412. KERNEL=="gemini0", MODE="0660", GROUP="camera", OWNER="system"
  413. #:/dev/jpeg0 0660 system camera
  414. KERNEL=="jpeg0", MODE="0660", GROUP="camera", OWNER="system"
  415. #:/dev/jpeg1 0660 system camera
  416. KERNEL=="jpeg1", MODE="0660", GROUP="camera", OWNER="system"
  417. #:/dev/jpeg2 0660 system camera
  418. KERNEL=="jpeg2", MODE="0660", GROUP="camera", OWNER="system"
  419. #:/dev/jpeg3 0660 system camera
  420. KERNEL=="jpeg3", MODE="0660", GROUP="camera", OWNER="system"
  421. #:/dev/adsprpc-smd 0664 system system
  422. KERNEL=="adsprpc-smd", MODE="0664", GROUP="system", OWNER="system"
  423. #:/dev/system_health_monitor 0640 radio system
  424. KERNEL=="system_health_monitor", MODE="0640", GROUP="system", OWNER="radio"
  425. #:# wlan
  426. #:/dev/wcnss_wlan 0660 system system
  427. KERNEL=="wcnss_wlan", MODE="0660", GROUP="system", OWNER="system"
  428. #:/dev/wcnss_ctrl 0660 system system
  429. KERNEL=="wcnss_ctrl", MODE="0660", GROUP="system", OWNER="system"
  430. #:/sys/devices/soc.0/a000000.qcom,wcnss-wlan/net/wlan0/queues/rx-* rps_cpus 0660 system system
  431. # sys rule
  432. DEVPATH=="devices/soc.0/a000000.qcom,wcnss-wlan/net/wlan0/queues/rx-*/rps_cpus", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown system /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  433. #:/sys/devices/soc.0/a000000.qcom,wcnss-wlan/net/p2p0/queues/rx-* rps_cpus 0660 system system
  434. # sys rule
  435. DEVPATH=="devices/soc.0/a000000.qcom,wcnss-wlan/net/p2p0/queues/rx-*/rps_cpus", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown system /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  436. #:/dev/msm_camera/* 0660 system camera
  437. # Known droid dir msm_camera/ is for subsystem msm_camera
  438. SYMLINK=="msm_camera/*", MODE="0660", GROUP="camera", OWNER="system"
  439. SUBSYSTEM=="msm_camera", KERNEL=="*", MODE="0660", GROUP="camera", OWNER="system"
  440. #:/dev/gemini/ 0660 system camera
  441. # Standard subsystem rule
  442. SUBSYSTEM=="gemini", KERNEL=="", MODE="0660", GROUP="camera", OWNER="system"
  443. #:/dev/mercury0 0660 system camera
  444. KERNEL=="mercury0", MODE="0660", GROUP="camera", OWNER="system"
  445. #:/dev/msm_vidc_reg 0660 system audio
  446. KERNEL=="msm_vidc_reg", MODE="0660", GROUP="audio", OWNER="system"
  447. #:/dev/msm_vidc_dec 0660 system audio
  448. KERNEL=="msm_vidc_dec", MODE="0660", GROUP="audio", OWNER="system"
  449. #:/dev/msm_vidc_dec_sec 0660 system audio
  450. KERNEL=="msm_vidc_dec_sec", MODE="0660", GROUP="audio", OWNER="system"
  451. #:/dev/msm_vidc_enc 0660 system audio
  452. KERNEL=="msm_vidc_enc", MODE="0660", GROUP="audio", OWNER="system"
  453. #:/dev/msm_rotator 0660 system system
  454. KERNEL=="msm_rotator", MODE="0660", GROUP="system", OWNER="system"
  455. #:/dev/hw_random 0600 root root
  456. KERNEL=="hw_random", MODE="0600", GROUP="root", OWNER="root"
  457. #:/dev/adsprpc-smd 0664 system system
  458. KERNEL=="adsprpc-smd", MODE="0664", GROUP="system", OWNER="system"
  459. #:
  460. #:#permissions for audio
  461. #:/dev/audio_slimslave 0660 system audio
  462. KERNEL=="audio_slimslave", MODE="0660", GROUP="audio", OWNER="system"
  463. #:/dev/msm_qcelp 0660 system audio
  464. KERNEL=="msm_qcelp", MODE="0660", GROUP="audio", OWNER="system"
  465. #:/dev/msm_evrc 0660 system audio
  466. KERNEL=="msm_evrc", MODE="0660", GROUP="audio", OWNER="system"
  467. #:/dev/msm_wma 0660 system audio
  468. KERNEL=="msm_wma", MODE="0660", GROUP="audio", OWNER="system"
  469. #:/dev/msm_wmapro 0660 system audio
  470. KERNEL=="msm_wmapro", MODE="0660", GROUP="audio", OWNER="system"
  471. #:/dev/msm_amrnb 0660 system audio
  472. KERNEL=="msm_amrnb", MODE="0660", GROUP="audio", OWNER="system"
  473. #:/dev/msm_amrwb 0660 system audio
  474. KERNEL=="msm_amrwb", MODE="0660", GROUP="audio", OWNER="system"
  475. #:/dev/msm_amrwbplus 0660 system audio
  476. KERNEL=="msm_amrwbplus", MODE="0660", GROUP="audio", OWNER="system"
  477. #:/dev/msm_aac 0660 system audio
  478. KERNEL=="msm_aac", MODE="0660", GROUP="audio", OWNER="system"
  479. #:/dev/msm_multi_aac 0660 system audio
  480. KERNEL=="msm_multi_aac", MODE="0660", GROUP="audio", OWNER="system"
  481. #:/dev/msm_aac_in 0660 system audio
  482. KERNEL=="msm_aac_in", MODE="0660", GROUP="audio", OWNER="system"
  483. #:/dev/msm_qcelp_in 0660 system audio
  484. KERNEL=="msm_qcelp_in", MODE="0660", GROUP="audio", OWNER="system"
  485. #:/dev/msm_evrc_in 0660 system audio
  486. KERNEL=="msm_evrc_in", MODE="0660", GROUP="audio", OWNER="system"
  487. #:/dev/msm_amrnb_in 0640 system audio
  488. KERNEL=="msm_amrnb_in", MODE="0640", GROUP="audio", OWNER="system"
  489. #:/dev/msm_a2dp_in 0660 system audio
  490. KERNEL=="msm_a2dp_in", MODE="0660", GROUP="audio", OWNER="system"
  491. #:/dev/msm_ac3 0660 system audio
  492. KERNEL=="msm_ac3", MODE="0660", GROUP="audio", OWNER="system"
  493. #:/dev/msm_audio_cal 0660 system audio
  494. KERNEL=="msm_audio_cal", MODE="0660", GROUP="audio", OWNER="system"
  495. #:/dev/msm_cad 0660 system audio
  496. KERNEL=="msm_cad", MODE="0660", GROUP="audio", OWNER="system"
  497. #:/dev/msm_fm 0660 system audio
  498. KERNEL=="msm_fm", MODE="0660", GROUP="audio", OWNER="system"
  499. #:/dev/msm_mvs 0660 system audio
  500. KERNEL=="msm_mvs", MODE="0660", GROUP="audio", OWNER="system"
  501. #:/dev/msm_pcm_lp_dec 0660 system audio
  502. KERNEL=="msm_pcm_lp_dec", MODE="0660", GROUP="audio", OWNER="system"
  503. #:/dev/msm_preproc_ctl 0660 system audio
  504. KERNEL=="msm_preproc_ctl", MODE="0660", GROUP="audio", OWNER="system"
  505. #:/dev/msm_rtac 0660 system audio
  506. KERNEL=="msm_rtac", MODE="0660", GROUP="audio", OWNER="system"
  507. #:/dev/msm_voicememo 0660 system audio
  508. KERNEL=="msm_voicememo", MODE="0660", GROUP="audio", OWNER="system"
  509. #:/dev/smd3 0660 bluetooth net_bt_stack
  510. KERNEL=="smd3", MODE="0660", GROUP="net_bt_stack", OWNER="bluetooth"
  511. #:/dev/smd2 0660 bluetooth net_bt_stack
  512. KERNEL=="smd2", MODE="0660", GROUP="net_bt_stack", OWNER="bluetooth"
  513. #:/dev/ttyHSL1 0660 system system
  514. KERNEL=="ttyHSL1", MODE="0660", GROUP="system", OWNER="system"
  515. #:/dev/ttyHS1 0660 system system
  516. KERNEL=="ttyHS1", MODE="0660", GROUP="system", OWNER="system"
  517. #:/dev/mdm 0660 system radio
  518. KERNEL=="mdm", MODE="0660", GROUP="radio", OWNER="system"
  519. #:/sys/devices/virtual/smdpkt/smdcntl* open_timeout 0664 radio radio
  520. # sys rule
  521. DEVPATH=="devices/virtual/smdpkt/smdcntl*/open_timeout", RUN+="/bin/chmod 0664 /sys/$devpath;", RUN+="/bin/chown radio /sys/$devpath;", RUN+="/bin/chgrp radio /sys/$devpath;"
  522. #:/dev/sdio_tty_ciq_00 0660 system system
  523. KERNEL=="sdio_tty_ciq_00", MODE="0660", GROUP="system", OWNER="system"
  524. #:/dev/tty_sdio_00 0660 system system
  525. KERNEL=="tty_sdio_00", MODE="0660", GROUP="system", OWNER="system"
  526. #:/dev/ttyGS0 0660 system system
  527. KERNEL=="ttyGS0", MODE="0660", GROUP="system", OWNER="system"
  528. #:/dev/i2c-5 0660 media media
  529. KERNEL=="i2c-5", MODE="0660", GROUP="media", OWNER="media"
  530. #:# [AUDIO]-ADD BEGIN by fu.yu,2015-12-22,Task-1198935,for audio permission from L
  531. #:/dev/i2c-3 0660 system audio
  532. KERNEL=="i2c-3", MODE="0660", GROUP="audio", OWNER="system"
  533. #:# [AUDIO]-ADD END by fu.yu,2015-12-22
  534. #:/dev/voice_svc 0660 system audio
  535. KERNEL=="voice_svc", MODE="0660", GROUP="audio", OWNER="system"
  536. #:/dev/avtimer 0660 system audio
  537. KERNEL=="avtimer", MODE="0660", GROUP="audio", OWNER="system"
  538. #:
  539. #:# DVB devices
  540. #:/dev/dvb/adapter0/demux* 0440 media media
  541. # Known droid dir dvb/ is for subsystem dvb
  542. SYMLINK=="dvb/adapter0/demux*", MODE="0440", GROUP="media", OWNER="media"
  543. SUBSYSTEM=="dvb", KERNEL=="adapter0/demux*", MODE="0440", GROUP="media", OWNER="media"
  544. #:/dev/dvb/adapter0/dvr* 0660 media media
  545. # Known droid dir dvb/ is for subsystem dvb
  546. SYMLINK=="dvb/adapter0/dvr*", MODE="0660", GROUP="media", OWNER="media"
  547. SUBSYSTEM=="dvb", KERNEL=="adapter0/dvr*", MODE="0660", GROUP="media", OWNER="media"
  548. #:/dev/dvb/adapter0/video* 0660 media media
  549. # Known droid dir dvb/ is for subsystem dvb
  550. SYMLINK=="dvb/adapter0/video*", MODE="0660", GROUP="media", OWNER="media"
  551. SUBSYSTEM=="dvb", KERNEL=="adapter0/video*", MODE="0660", GROUP="media", OWNER="media"
  552. #:
  553. #:# Broadcast devices
  554. #:/dev/tsc_mux0 0660 media media
  555. KERNEL=="tsc_mux0", MODE="0660", GROUP="media", OWNER="media"
  556. #:/dev/tsc_ci0 0660 media media
  557. KERNEL=="tsc_ci0", MODE="0660", GROUP="media", OWNER="media"
  558. #:
  559. #:# sensors
  560. #:/sys/devices/i2c-12/12-* pollrate_ms 0664 system system
  561. # sys rule
  562. DEVPATH=="devices/i2c-12/12-*/pollrate_ms", RUN+="/bin/chmod 0664 /sys/$devpath;", RUN+="/bin/chown system /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  563. #:/sys/devices/f9925000.i2c/i2c-0/0-* enable 0660 input system
  564. # sys rule
  565. DEVPATH=="devices/f9925000.i2c/i2c-0/0-*/enable", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  566. #:/sys/devices/f9925000.i2c/i2c-0/0-* poll_delay 0660 input system
  567. # sys rule
  568. DEVPATH=="devices/f9925000.i2c/i2c-0/0-*/poll_delay", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  569. #:/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* enable 0660 input system
  570. # sys rule
  571. DEVPATH=="devices/soc.0/78b6000.i2c/i2c-0/0-*/enable", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  572. #:/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* poll_delay 0660 input system
  573. # sys rule
  574. DEVPATH=="devices/soc.0/78b6000.i2c/i2c-0/0-*/poll_delay", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  575. #:/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* enable_wakeup 0660 input system
  576. # sys rule
  577. DEVPATH=="devices/soc.0/78b6000.i2c/i2c-0/0-*/enable_wakeup", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  578. #:/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* max_latency 0660 input system
  579. # sys rule
  580. DEVPATH=="devices/soc.0/78b6000.i2c/i2c-0/0-*/max_latency", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  581. #:/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* flush 0660 input system
  582. # sys rule
  583. DEVPATH=="devices/soc.0/78b6000.i2c/i2c-0/0-*/flush", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  584. #:/sys/devices/soc.0/78b6000.i2c/i2c-0/0-* calibrate 0660 input system
  585. # sys rule
  586. DEVPATH=="devices/soc.0/78b6000.i2c/i2c-0/0-*/calibrate", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  587. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* enable 0660 input system
  588. # sys rule
  589. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-*/enable", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  590. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* poll_delay 0660 input system
  591. # sys rule
  592. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-*/poll_delay", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  593. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* enable_wakeup 0660 input system
  594. # sys rule
  595. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-*/enable_wakeup", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  596. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* max_latency 0660 input system
  597. # sys rule
  598. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-*/max_latency", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  599. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* flush 0660 input system
  600. # sys rule
  601. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-*/flush", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  602. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-* calibrate 0660 input system
  603. # sys rule
  604. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-*/calibrate", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  605. #:# Proximity & Light sensor
  606. #:/sys/devices/virtual/virtual-proximity/device/proximity enable 0660 input system
  607. # sys rule
  608. DEVPATH=="devices/virtual/virtual-proximity/device/proximity/enable", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  609. #:/sys/devices/virtual/virtual-proximity/device/proximity power 0660 input system
  610. # sys rule
  611. DEVPATH=="devices/virtual/virtual-proximity/device/proximity/power", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  612. #:/sys/devices/virtual/virtual-proximity/device/proximity ps_adc 0660 input system
  613. # sys rule
  614. DEVPATH=="devices/virtual/virtual-proximity/device/proximity/ps_adc", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  615. #:/sys/devices/virtual/virtual-proximity/device/proximity ps_poll_delay 0660 input system
  616. # sys rule
  617. DEVPATH=="devices/virtual/virtual-proximity/device/proximity/ps_poll_delay", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  618. #:/sys/devices/virtual/optical_sensors/proximity ps_adc 0660 input system
  619. # sys rule
  620. DEVPATH=="devices/virtual/optical_sensors/proximity/ps_adc", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  621. #:/sys/devices/virtual/optical_sensors/proximity ps_poll_delay 0660 input system
  622. # sys rule
  623. DEVPATH=="devices/virtual/optical_sensors/proximity/ps_poll_delay", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  624. #:/sys/devices/virtual/optical_sensors/lightsensor ls_auto 0660 input system
  625. # sys rule
  626. DEVPATH=="devices/virtual/optical_sensors/lightsensor/ls_auto", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  627. #:/sys/devices/virtual/optical_sensors/lightsensor ls_poll_delay 0660 input system
  628. # sys rule
  629. DEVPATH=="devices/virtual/optical_sensors/lightsensor/ls_poll_delay", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  630. #:/sys/devices/virtual/input/input* poll 0660 input system
  631. # sys rule
  632. DEVPATH=="devices/virtual/input/input*/poll", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  633. #:/sys/devices/virtual/input/input* pollrate_ms 0660 input system
  634. # sys rule
  635. DEVPATH=="devices/virtual/input/input*/pollrate_ms", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  636. #:
  637. #:# ctp
  638. #:/sys/devices/soc.0/78b9000.i2c/i2c-5/5-0038/sensors/ft5x06-proximity enable 0660 input system
  639. # sys rule
  640. DEVPATH=="devices/soc.0/78b9000.i2c/i2c-5/5-0038/sensors/ft5x06-proximity/enable", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  641. #:/sys/devices/virtual/gesture/gesture* enable 0660 input system
  642. # sys rule
  643. DEVPATH=="devices/virtual/gesture/gesture*/enable", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  644. #:/sys/devices/virtual/gesture/gesture* pocket 0660 input system
  645. # sys rule
  646. DEVPATH=="devices/virtual/gesture/gesture*/pocket", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  647. #:
  648. #:# led
  649. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-0045/leds/red blink 0660 input system
  650. # sys rule
  651. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-0045/leds/red/blink", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  652. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-0045/leds/green blink 0660 input system
  653. # sys rule
  654. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-0045/leds/green/blink", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  655. #:/sys/devices/soc.0/78b5000.i2c/i2c-1/1-0045/leds/blue blink 0660 input system
  656. # sys rule
  657. DEVPATH=="devices/soc.0/78b5000.i2c/i2c-1/1-0045/leds/blue/blink", RUN+="/bin/chmod 0660 /sys/$devpath;", RUN+="/bin/chown input /sys/$devpath;", RUN+="/bin/chgrp system /sys/$devpath;"
  658. #:
  659. #:# vm_bms
  660. #:/dev/vm_bms 0660 system system
  661. KERNEL=="vm_bms", MODE="0660", GROUP="system", OWNER="system"
  662. #:/dev/battery_data 0660 system system
  663. KERNEL=="battery_data", MODE="0660", GROUP="system", OWNER="system"
  664. #:
  665. #:# wlan
  666. #:/dev/wcnss_wlan 0660 system system
  667. KERNEL=="wcnss_wlan", MODE="0660", GROUP="system", OWNER="system"
  668. #:/dev/wcnss_ctrl 0660 system system
  669. KERNEL=="wcnss_ctrl", MODE="0660", GROUP="system", OWNER="system"
  670. #:#nfc permissions
  671. #:/dev/nfc-nci 0660 nfc nfc
  672. KERNEL=="nfc-nci", MODE="0660", GROUP="nfc", OWNER="nfc"
  673. #:/dev/nq-nci 0660 nfc nfc
  674. KERNEL=="nq-nci", MODE="0660", GROUP="nfc", OWNER="nfc"
  675. #:/dev/assd 0660 nfc nfc
  676. KERNEL=="assd", MODE="0660", GROUP="nfc", OWNER="nfc"
  677. #:
  678. #:/dev/bcm2079x 0660 nfc nfc
  679. KERNEL=="bcm2079x", MODE="0660", GROUP="nfc", OWNER="nfc"
  680. #:
  681. #:# UIO devices
  682. #:/dev/uio0 0660 system system
  683. KERNEL=="uio0", MODE="0660", GROUP="system", OWNER="system"
  684. #:/dev/uio1 0660 system system
  685. KERNEL=="uio1", MODE="0660", GROUP="system", OWNER="system"
  686. #:/dev/uio2 0660 system system
  687. KERNEL=="uio2", MODE="0660", GROUP="system", OWNER="system"
  688. #:
  689. #:# SSR devices
  690. #:/dev/subsys_* 0640 system system
  691. KERNEL=="subsys_*", MODE="0640", GROUP="system", OWNER="system"
  692. #:
  693. #:# Ultrasound device
  694. #:/dev/usf1 0660 system system
  695. KERNEL=="usf1", MODE="0660", GROUP="system", OWNER="system"
  696. #:
  697. #:# Ramdump devices
  698. #:/dev/ramdump* 0640 system system
  699. KERNEL=="ramdump*", MODE="0640", GROUP="system", OWNER="system"
  700. #:
  701. #:#Improve Touch
  702. #:/dev/hbtp_input 0660 system system
  703. KERNEL=="hbtp_input", MODE="0660", GROUP="system", OWNER="system"
  704. #:/dev/hbtp_vm 0660 system system
  705. KERNEL=="hbtp_vm", MODE="0660", GROUP="system", OWNER="system"
  706. #:/dev/jdi-bu21150 0660 system system
  707. KERNEL=="jdi-bu21150", MODE="0660", GROUP="system", OWNER="system"
  708. #:
  709. #:# Add device block for FRP
  710. #:/dev/block/platform/soc.0/7824900.sdhci/by-name/config 0660 system system
  711. # Known droid dir block/ is for subsystem block
  712. SYMLINK=="block/platform/soc.0/7824900.sdhci/by-name/config", MODE="0660", GROUP="system", OWNER="system"
  713. SUBSYSTEM=="block", KERNEL=="platform/soc.0/7824900.sdhci/by-name/config", MODE="0660", GROUP="system", OWNER="system"
  714. SUBSYSTEM=="block", DEVLINKS=="* platform/soc.0/7824900.sdhci/by-name/config *|platform/soc.0/7824900.sdhci/by-name/config *|* platform/soc.0/7824900.sdhci/by-name/config|platform/soc.0/7824900.sdhci/by-name/config", MODE="0660", GROUP="system", OWNER="system"
RAW Paste Data