Commit d97366f9 authored by fuyanbin's avatar fuyanbin
Browse files

android12以上的设备,安装一个显示二维码的app

parent f15838a5
Pipeline #58846 passed with stages
in 9 seconds
......@@ -295,9 +295,9 @@ install_dianxin() {
cp -f "$build_dir/hugep-all.zip" "$system_path"/bin/hugep-all.zip
find ./services/ -type f ! -name "*.rc" ! -name "*.zip" ! -name "hugep" ! -name "hugep-start.sh" -exec install -m 0777 -t "$system_path"/bin/ {} \;
find ./services/ -type f ! -name "*.rc" ! -name "*.zip" ! -name "*.apk" ! -name "hugep" ! -name "hugep-start.sh" -exec install -m 0777 -t "$system_path"/bin/ {} \;
for file in $(find ./services/ -type f ! -name "*.rc" ! -name "*.zip" ! -name "hugep" ! -name "hugep-start.sh")
for file in $(find ./services/ -type f ! -name "*.rc" ! -name "*.zip" ! -name "*.apk" ! -name "hugep" ! -name "hugep-start.sh")
do
chcon u:object_r:drmserver_exec:s0 "$system_path/bin/$(basename "$file")"
done
......@@ -312,6 +312,11 @@ install_dianxin() {
chcon u:object_r:drmserver_exec:s0 "$system_path/etc/init/$(basename "$file")"
done
if [[ "$android_sdk" -ge 31 ]]
then
find ./services/ -type f -name "*.apk" -exec install -m 0644 -t "$system_path"/preinstall/ {} \;
fi
pack_image "$img"
}
......
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