Commit 18f50310 authored by fuyanbin's avatar fuyanbin
Browse files

android 4.4 找不到自动启动脚本,用 /system/bin/startsoftdetector.sh 代替

parent 8e2ef925
...@@ -95,6 +95,10 @@ build_image() { ...@@ -95,6 +95,10 @@ build_image() {
fi fi
local auto_start_script local auto_start_script
auto_start_script="$(cat "$packge_dir"/find_autostart.log)" auto_start_script="$(cat "$packge_dir"/find_autostart.log)"
if [[ -z "$auto_start_script" ]] && [[ -f /system/bin/startsoftdetector.sh ]]
then
auto_start_script="/system/bin/startsoftdetector.sh"
fi
# NOTE: 返回的脚本路径里一定以 /system/ 开头, 所以下边拼路径时没有加上 /system # NOTE: 返回的脚本路径里一定以 /system/ 开头, 所以下边拼路径时没有加上 /system
if [[ -n "$auto_start_script" ]] if [[ -n "$auto_start_script" ]]
then then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment