forked from SlimRoms/android_system_core
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bundle init.rc contents with its service
Bug: 23186545 Change-Id: I52616b8ab1165fdef716f9b8f958665f2308c12e
- Loading branch information
Tom Cherry
authored and
spezi77
committed
Mar 13, 2016
1 parent
f703c80
commit eb51038
Showing
11 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
on post-fs-data | ||
mkdir /data/misc/adb 02750 system shell | ||
mkdir /data/adb 0700 root root | ||
|
||
# adbd is controlled via property triggers in init.<platform>.usb.rc | ||
service adbd /sbin/adbd --root_seclabel=u:r:su:s0 | ||
class core | ||
socket adbd stream 660 system system | ||
disabled | ||
seclabel u:r:adbd:s0 | ||
|
||
# adbd on at boot in emulator | ||
on property:ro.kernel.qemu=1 | ||
start adbd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
service debuggerd /system/bin/debuggerd | ||
class main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
service debuggerd64 /system/bin/debuggerd64 | ||
class main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,6 @@ LOCAL_CFLAGS := -Werror | |
|
||
LOCAL_MODULE := lmkd | ||
|
||
LOCAL_INIT_RC := lmkd.rc | ||
|
||
include $(BUILD_EXECUTABLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
service lmkd /system/bin/lmkd | ||
class core | ||
critical | ||
socket lmkd seqpacket 0660 system system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
on property:persist.logd.logpersistd=logcatd | ||
# all exec/services are called with umask(077), so no gain beyond 0700 | ||
mkdir /data/misc/logd 0700 logd log | ||
# logd for write to /data/misc/logd, log group for read from pstore (-L) | ||
exec - logd log -- /system/bin/logcat -L -b all -v threadtime -v usec -v printable -D -f /data/misc/logd/logcat -r 64 -n 256 | ||
start logcatd | ||
|
||
service logcatd /system/bin/logcat -b all -v threadtime -v usec -v printable -D -f /data/misc/logd/logcat -r 64 -n 256 | ||
class late_start | ||
disabled | ||
# logd for write to /data/misc/logd, log group for read from log daemon | ||
user logd | ||
group log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
service logd /system/bin/logd | ||
class core | ||
socket logd stream 0666 logd logd | ||
socket logdr seqpacket 0666 logd logd | ||
socket logdw dgram 0222 logd logd | ||
|
||
service logd-reinit /system/bin/logd --reinit | ||
oneshot | ||
disabled |