Android Kernel Highlights

1.Storage

1.1 How to add a daemon (daemon process)

: Add the relevant service process init.rc,

example,

## Daemon processes to be run by init.
##
service ueventd /system/bin/ueventd
    class core
    critical
    seclabel u:r:ueventd:s0
    shutdown critical

service flash_recovery /system/bin/install-recovery.sh
    class main
    oneshot

service console /system/bin/sh
    class core
    console
    disabled
    user shell
    group shell log readproc
    seclabel u:r:shell:s0
    setenv HOSTNAME console

service kmsg_log /system/bin/kmsg.sh
    class late_start

service syslog /system/bin/logcat -f /data/log/system.log -r 10240 -v time
     user root
     group system
     oneshot

 

 

2.Performance

3.Stability

Guess you like

Origin www.cnblogs.com/rainey-forrest/p/11202647.html
Recommended