Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
付燕斌
android-image-pack-tool
Commits
a376de27
Commit
a376de27
authored
Sep 13, 2024
by
fuyanbin
Browse files
兼容 /system/bin/androidrom 标识文件
parent
7b1a1275
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/starthugep.sh
View file @
a376de27
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment