Skip to content

Commit

Permalink
replace MiAONService and bootanimation (YuKongA#2)
Browse files Browse the repository at this point in the history
* Add files via upload

* Update make.sh

* Update make.sh

* Add files via upload

* Update make.sh

* Update Build ROM for Houji.yml
  • Loading branch information
pzcn authored Apr 12, 2024
1 parent 18a02a2 commit eec3baf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Build ROM for Houji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
URL:
description: "移植包下载地址"
required: true
default: 'https://bkt-sgp-miui-ota-update-alisgp.oss-ap-southeast-1.aliyuncs.com/OS1.0.8.0.UNACNXM/miui_AURORA_OS1.0.8.0.UNACNXM_b427cc3ce7_14.0.zip'
default: 'https://bkt-sgp-miui-ota-update-alisgp.oss-ap-southeast-1.aliyuncs.com/OS1.0.6.0.UNPCNXM/miui_PERIDOT_OS1.0.6.0.UNPCNXM_3203b5bae7_14.0.zip'
VENDOR_URL:
description: "底包下载地址"
required: true
Expand Down
Binary file added houji_files/MiAONService.apk
Binary file not shown.
Binary file added houji_files/bootanimation.zip
Binary file not shown.
8 changes: 8 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ sudo unzip -o -q "$GITHUB_WORKSPACE"/"${device}"_files/displayconfig.zip -d "$GI
echo -e "${Red}- 修复精准电量 (亮屏可用时长)"
sudo rm -rf "$GITHUB_WORKSPACE"/images/system/system/app/PowerKeeper/*
sudo unzip -o -q "$GITHUB_WORKSPACE"/"${device}"_files/PowerKeeper.zip -d "$GITHUB_WORKSPACE"/images/system/system/app/PowerKeeper/
# 修复注视感知
echo -e "${Red}- 修复注视感知"
sudo rm -rf "$GITHUB_WORKSPACE"/images/product/app/MiAONService*
mkdir "$GITHUB_WORKSPACE"/images/product/app/MiAONService
sudo cp "$GITHUB_WORKSPACE"/"${device}"_files/MiAONService.apk "$GITHUB_WORKSPACE"/images/product/app/MiAONService
# 统一 build.prop
echo -e "${Red}- 统一 build.prop"
sudo sed -i 's/ro.build.user=[^*]*/ro.build.user=YuKongA/' "$GITHUB_WORKSPACE"/images/system/system/build.prop
Expand Down Expand Up @@ -269,6 +274,9 @@ sudo unzip -o -q "$GITHUB_WORKSPACE"/"${device}"_files/CameraTools_beta.zip -d "
echo -e "${Red}- 占位广告应用"
sudo rm -rf "$GITHUB_WORKSPACE"/images/product/app/MSA/*
sudo cp -f "$GITHUB_WORKSPACE"/"${device}"_files/MSA.apk "$GITHUB_WORKSPACE"/images/product/app/MSA
# 替换开机动画
echo -e "${Red}- 替换开机动画"
sudo cp -f "$GITHUB_WORKSPACE"/"${device}"_files/bootanimation.zip "$GITHUB_WORKSPACE"/images/product/media/bootanimation.zip
# 替换完美图标
echo -e "${Red}- 替换完美图标"
cd "$GITHUB_WORKSPACE"
Expand Down

0 comments on commit eec3baf

Please sign in to comment.