Merge "Modify init.rc and init.goldfish.rc for SE Android."

This commit is contained in:
Dima Zavin 2012-08-01 09:14:41 -07:00 committed by android code review
commit ce76e2d00e
2 changed files with 16 additions and 0 deletions

View file

@ -5,6 +5,10 @@ on early-init
symlink /mnt/sdcard /sdcard symlink /mnt/sdcard /sdcard
on boot on boot
setsebool in_qemu=1
restorecon /sys/qemu_trace/process_name
restorecon /sys/qemu_trace/state
restorecon /sys/qemu_trace/symbol
setprop ARGH ARGH setprop ARGH ARGH
setprop net.eth0.gw 10.0.2.2 setprop net.eth0.gw 10.0.2.2
setprop net.eth0.dns1 10.0.2.3 setprop net.eth0.dns1 10.0.2.3

View file

@ -12,6 +12,10 @@ on early-init
# Set init and its forked children's oom_adj. # Set init and its forked children's oom_adj.
write /proc/1/oom_adj -16 write /proc/1/oom_adj -16
# Set the security context for the init process.
# This should occur before anything else (e.g. ueventd) is started.
setcon u:r:init:s0
start ueventd start ueventd
# create mountpoints # create mountpoints
@ -128,10 +132,14 @@ on post-fs
# We chown/chmod /cache again so because mount is run as root + defaults # We chown/chmod /cache again so because mount is run as root + defaults
chown system cache /cache chown system cache /cache
chmod 0770 /cache chmod 0770 /cache
# We restorecon /cache in case the cache partition has been reset.
restorecon /cache
# This may have been created by the recovery system with odd permissions # This may have been created by the recovery system with odd permissions
chown system cache /cache/recovery chown system cache /cache/recovery
chmod 0770 /cache/recovery chmod 0770 /cache/recovery
# This may have been created by the recovery system with the wrong context.
restorecon /cache/recovery
#change permissions on vmallocinfo so we can grab it from bugreports #change permissions on vmallocinfo so we can grab it from bugreports
chown root log /proc/vmallocinfo chown root log /proc/vmallocinfo
@ -150,6 +158,8 @@ on post-fs-data
# We chown/chmod /data again so because mount is run as root + defaults # We chown/chmod /data again so because mount is run as root + defaults
chown system system /data chown system system /data
chmod 0771 /data chmod 0771 /data
# We restorecon /data in case the userdata partition has been reset.
restorecon /data
# Create dump dir and collect dumps. # Create dump dir and collect dumps.
# Do this before we mount cache so eventually we can use cache for # Do this before we mount cache so eventually we can use cache for
@ -343,6 +353,7 @@ on property:vold.decrypt=trigger_shutdown_framework
service ueventd /sbin/ueventd service ueventd /sbin/ueventd
class core class core
critical critical
seclabel u:r:ueventd:s0
service console /system/bin/sh service console /system/bin/sh
class core class core
@ -358,6 +369,7 @@ on property:ro.debuggable=1
service adbd /sbin/adbd service adbd /sbin/adbd
class core class core
disabled disabled
seclabel u:r:adbd:s0
# adbd on at boot in emulator # adbd on at boot in emulator
on property:ro.kernel.qemu=1 on property:ro.kernel.qemu=1