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
9961f636
Commit
9961f636
authored
Feb 07, 2024
by
fuyanbin
Browse files
去掉android_sdk版本号里的特殊字符,比如: \r, \n
parent
db97c58b
Changes
1
Hide whitespace changes
Inline
Side-by-side
pack.sh
View file @
9961f636
...
...
@@ -72,6 +72,8 @@ build_image() {
rm
-f
"
$build_dir
/system/bin/hugep-all.zip"
android_sdk
=
"
$(
grep
"build
\.
version
\.
sdk"
"
$build_dir
"
/system/build.prop |
awk
-F
'='
'{print $2}'
)
"
android_sdk
=
"
${
android_sdk
//
$'
\r
'
}
"
android_sdk
=
"
${
android_sdk
//
$'
\n
'
}
"
if
[[
"
$android_sdk
"
-ge
28
]]
then
find ./services/
-type
f
-name
"*.rc"
-exec
install
-t
"
$build_dir
"
/system/etc/init/
{}
\;
...
...
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