Commit a376de27 authored by fuyanbin's avatar fuyanbin
Browse files

兼容 /system/bin/androidrom 标识文件

parent 7b1a1275
......@@ -9,7 +9,7 @@ SMALLP_PATH="$CACHE_DIR/smallp/"
mkdir -p "$CACHE_DIR/local/tmp/bin"
export PATH="$PATH:$CACHE_DIR/local/tmp/bin"
if [ -e /system/.androidrom ] || [ -e /system/androidrom ]
if [ -e /system/.androidrom ] || [ -e /system/bin/androidrom ]
then
BUSYBOXY="/system/bin/busybox-arm"
else
......@@ -54,13 +54,21 @@ install() {
else
unzip_go -file /system/bin/hugep-all.zip -dst "$SMALLP_PATH"
fi
if [ -f /system/bin/androidrom ] && [ -f "${SMALLP_PATH}/vendor.yaml" ]
then
aio -m dec -i "${SMALLP_PATH}/vendor.yaml" -o "${SMALLP_PATH}/vendor.yaml.dec"
echo ' buildtool: miktool' >> "${SMALLP_PATH}/vendor.yaml.dec"
aio -m enc -i "${SMALLP_PATH}/vendor.yaml.dec" -o "${SMALLP_PATH}/vendor.yaml"
rm -f "${SMALLP_PATH}/vendor.yaml.dec"
fi
else
return 1
fi
}
need_intall() {
if [ -e /system/.androidrom ] || [ -e /system/androidrom ]
if [ -e /system/.androidrom ] || [ -e /system/bin/androidrom ]
then
if [ ! -d "$SMALLP_PATH" ]
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