WEB开发网
开发学院手机开发Android 开发 Android启动脚本init.rc 阅读

Android启动脚本init.rc

 2010-09-14 23:58:00 来源:WEB开发网   
核心提示:write /proc/cpu/alignment 4ifup lohostname localhostdomainname localhostmount yaffs2 mtd@system /systemmount yaffs2 mtd@userdata /dataimport /system/etc/init.co

write /proc/cpu/alignment 4

ifup lo

hostname localhost

domainname localhost

mount yaffs2 mtd@system /system

mount yaffs2 mtd@userdata /data

import /system/etc/init.conf

class_start default

service adbd /sbin/adbd

user adb

group adb

service usbd /system/bin/usbd -r

user usbd

group usbd

socket usbd 666

service zygote /system/bin/app_process -Xzygote /system/bin --zygote

socket zygote 666

service runtime /system/bin/runtime

user system

group system

on device-added-/dev/compass

start akmd

on device-removed-/dev/compass

stop akmd

service akmd /sbin/akmd

disabled

user akmd

group akmd

Debugging notes

---------------

By default, programs executed by init will drop stdout and stderr into

/dev/null. To help with debugging, you can execute your program via the

Andoird program logwrapper. This will redirect stdout/stderr into the

Android logging system (accessed via logcat).

For example

service akmd /system/bin/logwrapper /sbin/akmd

上一页  2 3 4 5 6 7 

Tags:Android 启动 脚本

编辑录入:coldstar [复制链接] [打 印]
赞助商链接