Skip to content

Commit

Permalink
Fixed ext partition file extraction and English translation
Browse files Browse the repository at this point in the history
  • Loading branch information
AiKirito committed Nov 2, 2024
1 parent fe7f26f commit 8c6281d
Show file tree
Hide file tree
Showing 11 changed files with 885 additions and 979 deletions.
16 changes: 9 additions & 7 deletions .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: '7.0.0'
VERSION: '8.0.0'
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -34,15 +34,17 @@ jobs:
body: |
## 更新内容
### 新的功能
01. super 打包前,如果你已经打包了子分区,现在会询问你是否要移动到 super 文件夹,这样无需手动移动。
02. 构建刷机包现在如果 Repacked 目录有打包的分区,会显示“轻松移动”,使用后会将它们快速移动到指定目录 Ready-to-flash/images。
03. 英文翻译得到标准优化,采用新方法翻译。
01. 修复了一个问题,该问题导致 ext 分区在特定情况下提取 selinux 上下文时报错。
02. 更新了菜单样式。
03. 新的英文翻译,应该能够正确工作了。
04.修复一个问题,该问题导致提取 ext 分区 selinux 上下文内容时产生了无效字符。
## Release Notes
### New Features
01. Before packaging the super, if you have already packaged subpartitions, it will now ask if you want to move them to the super folder, eliminating the need for manual moving.
02. When building the flash package, if there are packaged partitions in the Repacked directory, "Easy Move" will now appear, allowing you to quickly move them to the specified directory Ready-to-flash/images.
03. English translation has been standardized and optimized using a new method.
01. Fixed a problem that caused an error when extracting selinux context for ext partitions in some cases.
02. Updated menu style.
03. New English translation, should work properly.
04. Fixed a problem that caused invalid characters to be generated when extracting selinux context for ext partitions.
- name: Archive project
run: zip -r UY-Sct_${{ env.VERSION }}.zip .
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@

> 分区文件提取:支持 EROFS、EXT、F2FS、VBMETA、DTBO、BOOT、PAYLOAD、SUPER、SPARSE、TAR、ZIP、LZ4 标识的文件提取。按 ALL 即可提取所有,按 S 即可启动简易识别,简易识别的作用在通常情况下自动识别 super 和它的子分区。如果是三星 Rom,还会识别 optics.img 和 vbmeta 文件,这取决于工作域目录下是否有 optics.img 存在,提取分区文件列表只会展示可识别的分区,如果你发现你放入的分区文件不显示,说明工具不支持该分区文件的识别,之所以要这样实现,是因为不支持的文件显示在列表上毫无意义,支持小米与一加的 super 识别。
> 分区文件打包:打包提取后的分区文件,如果原本标识是 EROFS、EXT、F2FS,则打包后需要选择打包的格式,可选 EROFS、EXT、F2FS 打包格式,原本标识为支持格式中的其它,则无需选择,自动识别
> 分区文件打包:打包提取后的分区文件,如果原本标识是 EROFS、EXT、F2FS,则打包后需要选择打包的格式,可选 EROFS、EXT、F2FS 打包格式,原本标识为支持格式中的其它,则无需选择,自动识别
> SUPER 分区打包:首先要自行将打包的子分区文件放置到工作域目录的 Extracted-files/super 文件夹然后使用该功能,动态分区类型要保持与原来的一致,假设你的机型是 VAB 动态分区,打包也得是 VAB 动态分区,而是否选择稀疏格式,这个可能取决于 ROM 是否支持,例如一加的官方系统,使用稀疏格式镜像会导致识别问题
> SUPER 分区打包:将打包的子分区文件放置到工作域目录的 Extracted-files/super 文件夹(如果你打包了 super 子分区,那么打包前会显示自动移动功能),然后使用该功能,动态分区类型要保持与原来的一致,你需要了解你的设备的动态分区类型,而是否选择稀疏格式,这个取决于 ROM 是否支持
> 一键修改:内置了 HyperOS, OneUI 的快速修改方案,对 HyperOS 支持内容较多,在 MIUI 14 及之后的版本修改是没有任何问题的,不支持老版本,老版本牵涉到卡米问题,如果仍然想修改,自行解决卡米代码的问题
> 一键修改:内置了 HyperOS, OneUI 的快速修改方案
> 构建刷机包:支持分卷与完整包压缩,大小自定义,机型代码需要严格遵守你的使用的机型,避免冲突,而默认打包名与工作域名称一致,本刷机包为线刷包,脚本默认禁用 AVB2.0 校验,因此无需额外修改
> 构建刷机包:使用新的“轻松移动”功能来快速移动已打包的分区到 Ready-to-flash/images 目录,支持分卷与完整包压缩,大小自定义,机型代码需要严格遵守你的使用的机型,避免冲突,而默认打包名与工作域名称一致,本刷机包为线刷包,脚本默认禁用 AVB2.0 校验,因此无需额外修改
> 返回主菜单
Expand Down
6 changes: 3 additions & 3 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Workspace Menu
> Partition File Packaging: Package the extracted partition files. If the original identifier is EROFS, EXT, F2FS, then you need to choose the packaging format after packaging, you can choose EROFS, EXT, F2FS packaging format, the original identifier is other supported formats, no need to choose, automatic recognition.
> SUPER Partition Packaging: First, you need to manually place the packaged sub-partition files in the Extracted-files/super folder of the workspace directory, and then use this function. The dynamic partition type should be consistent with the original. Suppose your model is a VAB dynamic partition, the packaging must also be a VAB dynamic partition. Whether to choose the sparse format may depend on whether the ROM supports it. For example, the official system of OnePlus, using the sparse format image will cause recognition problems.
> SUPER Partition Packaging: Put the packaged sub-partition files in the Extracted-files/super folder of the working domain directory (if you package the super sub-partition, the automatic move feature will be displayed before packaging), and then you can use this function. The dynamic partition type should be consistent with the original one. You need to understand the dynamic partition type of your device. Whether to choose the sparse format depends on whether the ROM supports it.
> One-click Modification: Built-in HyperOS, OneUI quick modification scheme, supports more content for HyperOS, there is no problem in modifying MIUI 14 and later versions, does not support old versions, old versions involve card rice problems, if you still want to modify, solve the card rice code problem yourself.
> One-click Modification: Built-in quick modification solutions for HyperOS and OneUI.
> Build Flash Package: Supports volume and full package compression, size customization, model code needs to strictly comply with your use of the model to avoid conflicts, and the default package name is consistent with the workspace name, this flash package is a line flash package, the script defaults to disable AVB2.0 verification, so no additional modification is required.
> Build Flash Package: Use the newly added "Easy Move" feature to quickly move the packaged partition to the Ready-to-flash/images directory. Supports full-volume compression, and the size can be customized. The model code needs to be strictly in accordance with the model you use to avoid conflicts. The default package name is consistent with the working domain name. This flash package is an online flash package. The script turns off AVB2.0 verification by default, so no additional modification is required.
> Return to Main Menu
Expand Down
Loading

0 comments on commit 8c6281d

Please sign in to comment.