/dev/console sleep 5done2、修改安卓源文件2.1 修改device.mk编译时将脚本拷贝到镜像中device/rockchip/rk3399/device_android11开机自动">
赞
踩
以RK3399 安卓Q为例,device/rockchip/rk3399/myscript.sh
:
#!/vendor/bin/sh
while true;do
echo "++++++This is a test script !++++++" > /dev/console
sleep 5
done
device/rockchip/rk3399/device.mk
:
@@ -59,6 +59,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.rk3399.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk3399.rc \
$(LOCAL_PATH)/init.rk3399.usb.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.rk3399.usb.rc \
+ $(LOCAL_PATH)/myscript.sh:$(TARGET_COPY_OUT_VENDOR)/bin/myscript.sh \
$(LOCAL_PATH)/wake_lock_filter.xml:system/etc/wake_lock_filter.xml \
device/rockchip/rk3399/package_performance.xml:$(TARGET_COPY_OUT_ODM)/etc/package_performance.xml \
device/rockchip/rk3399/init.rk3399.rc
:
@@ -7,6 +7,7 @@ on property:sys.boot_complete
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。