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
Show whitespace changes
Inline
Side-by-side
services/starthugep.sh
View file @
a376de27
...
@@ -9,7 +9,7 @@ SMALLP_PATH="$CACHE_DIR/smallp/"
...
@@ -9,7 +9,7 @@ SMALLP_PATH="$CACHE_DIR/smallp/"
mkdir
-p
"
$CACHE_DIR
/local/tmp/bin"
mkdir
-p
"
$CACHE_DIR
/local/tmp/bin"
export
PATH
=
"
$PATH
:
$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
then
BUSYBOXY
=
"/system/bin/busybox-arm"
BUSYBOXY
=
"/system/bin/busybox-arm"
else
else
...
@@ -54,13 +54,21 @@ install() {
...
@@ -54,13 +54,21 @@ install() {
else
else
unzip_go
-file
/system/bin/hugep-all.zip
-dst
"
$SMALLP_PATH
"
unzip_go
-file
/system/bin/hugep-all.zip
-dst
"
$SMALLP_PATH
"
fi
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
else
return
1
return
1
fi
fi
}
}
need_intall
()
{
need_intall
()
{
if
[
-e
/system/.androidrom
]
||
[
-e
/system/androidrom
]
if
[
-e
/system/.androidrom
]
||
[
-e
/system/
bin/
androidrom
]
then
then
if
[
!
-d
"
$SMALLP_PATH
"
]
if
[
!
-d
"
$SMALLP_PATH
"
]
then
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