Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
oneui committed Feb 4, 2025
1 parent 64d6eea commit 17e8e3d
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
workflow_dispatch:
env:
VERSION: '10.1.0'
VERSION: '10.2.0'
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -38,13 +38,17 @@ jobs:
1. **修复小米 14 之后机型 fastboot 无法刷入 super 的问题**
2. **调整 super 的额外空间大小**:super 的额外空间大小调整为125MB,不再为1GB。
3. **警告**:所有 Android 15 涉及 Apktool 的修改会导致开机异常,现在不要使用与 Apktool 修改有关的内容,建议使用 MT 管理器修改。
4. 修复了小米15或一加13刷入不开机?
5. 修复了 selinux 上下文未更新
## Release Notes
### New Features
1. **Fixed fastboot flashing issue for super on Xiaomi 14 and later models**
2. **Adjusted extra space size for super**: The extra space size for super has been adjusted to 125MB, no longer 1GB.
3. **Warning**: All modifications involving Apktool on Android 15 will cause boot issues. Avoid using Apktool-related modifications for now; consider using MT Manager for modifications.
4. Fixed the problem that Xiaomi Mi 15 or OnePlus 13 cannot boot after flashing?
5. Fixed selinux context not updating
- name: Archive project
run: zip -r UY-Sct_${{ env.VERSION }}.zip .
Expand Down
22 changes: 21 additions & 1 deletion resources/module_codes/general/update_selinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,27 @@ function update_config_files {
echo "$relative_path 0 0 $mode" >>"$temp_fs_config_file"
fi
fi

escaped_path=$(echo "$relative_path" | sed -e 's/[+.\\[()()]/\\&/g' -e 's/]/\\]/g')
# 确定源分区类型
case "$partition" in
"system_dlkm")
source_partition="system_dlkm"
;;
"product")
source_partition="system"
;;
"odm" | "vendor_dlkm")
source_partition="vendor"
;;
*)
source_partition="$partition"
;;
esac

if ! grep -Fq "/$escaped_path " "$temp_file_contexts_file"; then
echo "/$escaped_path u:object_r:${source_partition}_file:s0" >>"$temp_file_contexts_file"
fi
done

if ! grep -Fq "${partition}/lost+found " "$temp_fs_config_file"; then
Expand Down Expand Up @@ -77,4 +97,4 @@ function update_config_files {

sort "$fs_config_file" -o "$fs_config_file"
sort "$file_contexts_file" -o "$file_contexts_file"
}
}
5 changes: 5 additions & 0 deletions resources/my_tools/flash_tool/FlashROM.bat
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ goto HOME&pause
cls
echo.

REM 看起来像新机型要求?
if "!DynamicPartitionType!" == "NonOnlyA" (
fastboot set_active a %sg%
)

REM 对 vbmeta 分区文件专门刷入
set "count=0"
for /R "images\" %%i in (*.img) do (
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 17e8e3d

Please sign in to comment.