zoukankan      html  css  js  c++  java
  • (OK) Android 添加 开机启动 脚本



    // vi system/core/rootdir/init.rc  // sh /system/xbin/quagga/sbin/init_in_android-x86_64.sh
    
    scp /opt/share-vm/fedora23server-share/seem_init.sh 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/device/generic/common/
    
    
    vi device/generic/common/device.mk
        // after 31 line, add:
        $(if $(wildcard $(PRODUCT_DIR)seem_init.sh),$(PRODUCT_DIR),$(LOCAL_PATH)/)seem_init.sh:system/etc/seem_init.sh 
    
    vi system/core/rootdir/init.rc
        // at the end of the file, add:
        service seem_init /system/etc/seem_init.sh
            class main
            user root
            group root
            oneshot
    
    vi system/core/rootdir/init.rc
        // at 500 line, in section "on boot", add two lines:
        setprop net.tcp.default_init_rwnd 60	(already exist)
        chown root shell /system/etc/seem_init.sh
        chmod 0550 /system/etc/seem_init.sh
    
    vi system/core/libcutils/fs_config.c
        // at 112 line, in section "on boot", add one line:
        { 00550, AID_ROOT,      AID_SHELL,     0, "system/etc/init.goldfish.sh" },	(already exist)
        { 00550, AID_ROOT,      AID_SHELL,     0, "system/etc/seem_init.sh" },


    ref: http://blog.csdn.net/ztguang/article/details/51921491

  • 相关阅读:
    JVM系列三:JVM参数设置、分析
    JVM系列二:GC策略&内存申请、对象衰老
    HotSpot VM GC 的种类
    2.静态库和动态库
    1.GCC编译过程
    6.树
    5.队列
    4.栈
    3.线性表
    2.算法
  • 原文地址:https://www.cnblogs.com/ztguang/p/12646056.html
Copyright © 2011-2022 走看看