Android Kernel集锦

时间:2021-04-24 18:03:14

1.Storage

1.1 如何添加守护进程(daemon 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