Koushik Dutta | c200cf7 | 2013-07-26 21:35:23 -0700 | [diff] [blame] | 1 | # su daemon |
| 2 | service su_daemon /system/xbin/su --daemon |
Steve Kondik | 810f96d | 2016-09-06 00:39:50 -0700 | [diff] [blame] | 3 | user root |
| 4 | group root |
| 5 | disabled |
Ricardo Cerqueira | 7c7a44d | 2014-11-26 21:52:45 +0000 | [diff] [blame] | 6 | seclabel u:r:sudaemon:s0 |
Koushik Dutta | c200cf7 | 2013-07-26 21:35:23 -0700 | [diff] [blame] | 7 | |
| 8 | on property:persist.sys.root_access=0 |
| 9 | stop su_daemon |
| 10 | |
| 11 | on property:persist.sys.root_access=2 |
Gabriele M | 7344440 | 2017-04-30 18:16:45 +0200 | [diff] [blame] | 12 | stop su_daemon |
Koushik Dutta | c200cf7 | 2013-07-26 21:35:23 -0700 | [diff] [blame] | 13 | |
| 14 | on property:persist.sys.root_access=1 |
| 15 | start su_daemon |
| 16 | |
| 17 | on property:persist.sys.root_access=3 |
| 18 | start su_daemon |