toraidl / hyperos_port

HyperOS stock/xiaomi.eu ROM port for Android 13 based ROM - 小米HyperOS系统(Android 14)移植,测试支持小米10/10Pro/10Ultra/10S(Android13底包)
MIT License
116 stars 63 forks source link

小米10底包V14.0.4.0移植包FUXIOS1.0.24.1.1卡第一屏 #10

Closed guoyujie666 closed 7 months ago

guoyujie666 commented 7 months ago

附输出:

user@guoyujiePC:~/hyperos_port$ sudo ./port.sh ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip ../miui_FUXI_OS1.0.24.1.1.DEV_a496b70a99_14.0.zip [sudo] user 的密码: 对不起,请重试。 [sudo] user 的密码: ./port.sh: 行 199: pack_type:未找到命令 [0106-09:38:09] 底包: ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip [0106-09:38:09] 移植包: ../miui_FUXI_OS1.0.24.1.1.DEV_a496b70a99_14.0.zip [0106-09:38:09] 正在检测ROM底包 [0106-09:38:09] 开始检测ROM移植包 [0106-09:38:09] ROM初步检测通过 [0106-09:38:09] ROM初步检测通过 [0106-09:38:09] 正在清理文件 [0106-09:38:11] 文件清理完毕 [0106-09:38:11] 正在提取底包 [new.dat.br] [0106-09:38:41] 底包 [new.dat.br] 提取完毕 [0106-09:38:41] 正在提取移植包 [payload.bin] [0106-09:39:42] 移植包 [payload.bin] 提取完毕 [0106-09:39:42] 开始分解底包 [new.dat.br] [0106-09:41:15] 正在分解底包 system.img [ext] [0106-09:41:27] 分解底包 [system.img] 完成 [0106-09:41:27] 正在分解底包 system_ext.img [ext] [0106-09:41:29] 分解底包 [system_ext.img] 完成 [0106-09:41:30] 正在分解底包 product.img [ext] [0106-09:42:29] 分解底包 [product.img] 完成 [0106-09:42:29] 正在分解底包 mi_ext.img [ext] [0106-09:42:29] 分解底包 [mi_ext.img] 完成 [0106-09:42:36] 开始提取逻辑分区镜像 vendor mi_ext odm system product system_ext [0106-09:42:36] 从底包中提取 [vendor]分区 ... [0106-09:42:36] 开始提取 vendor.img [0106-09:42:45] 提取 [vendor] [ext]镜像完毕 [0106-09:42:45] payload.bin 提取 [mi_ext] 分区... [0106-09:42:46] 开始提取 mi_ext.img [0106-09:42:46] 移植包为 [erofs] 文件系统 [0106-09:42:46] 提取移植包[mi_ext] [erofs]镜像完毕 [0106-09:42:46] 从底包中提取 [odm]分区 ... [0106-09:42:46] 开始提取 odm.img [0106-09:42:46] 提取 [odm] [ext]镜像完毕 [0106-09:42:46] payload.bin 提取 [system] 分区... [0106-09:43:10] 开始提取 system.img [0106-09:43:10] 移植包为 [erofs] 文件系统 [0106-09:43:13] 提取移植包[system] [erofs]镜像完毕 [0106-09:43:13] payload.bin 提取 [product] 分区... [0106-09:45:27] 开始提取 product.img [0106-09:45:27] 移植包为 [erofs] 文件系统 [0106-09:46:03] 提取移植包[product] [erofs]镜像完毕 [0106-09:46:03] payload.bin 提取 [system_ext] 分区... [0106-09:46:22] 开始提取 system_ext.img [0106-09:46:22] 移植包为 [erofs] 文件系统 [0106-09:46:23] 提取移植包[system_ext] [erofs]镜像完毕 [0106-09:46:23] 正在获取ROM参数 [0106-09:46:24] 安卓版本: 底包为[Android 13], 移植包为 [Android 14] [0106-09:46:24] SDK 版本: 底包为 [SDK 30], 移植包为 [SDK 34] [0106-09:46:24] 检测到开发板,跳过修改版本代码 [0106-09:46:24] ROM 版本: 底包为 [V14.0.4.0.TJBCNXM], 移植包为 [OS1.0.24.1.1.DEV] [0106-09:46:24] 机型代号: 底包为 [umi], 移植包为 [fuxi] [0106-09:46:24] 正在替换 [AospFrameworkResOverlay.apk] [0106-09:46:24] 正在替换 [MiuiFrameworkResOverlay.apk] [0106-09:46:24] 正在替换 [DevicesAndroidOverlay.apk] [0106-09:46:24] 正在替换 [DevicesOverlay.apk] [0106-09:46:25] 正在替换 [SettingsRroDeviceHideStatusBarOverlay.apk] [0106-09:46:25] 正在替换 [MiuiBiometricResOverlay.apk] [0106-09:46:25] Copying device_features [0106-09:46:25] 未找到MiuiBiometric,替换为原包 [0106-09:46:27] 修复息屏和屏下指纹问题 'tmp/DevicesAndroidOverlay.apk' -> 'build/portrom/images/product/overlay/DevicesAndroidOverlay.apk' [0106-09:46:32] ro.vndk.version为30 [0106-09:46:32] 30已存在,跳过修改 date: 无效的日期 “2000-00-24” [0106-09:46:32] 左侧挖孔灵动岛修复 [0106-09:46:32] 正在修改 MiuiSystemUI.apk [0106-09:46:37] I: 开始patch目标 classes [0106-09:46:43] 修补MiuiSystemUI.apk 完成 [0106-09:46:43] 检测到apk,进行zipalign处理。。 [0106-09:46:43] apk zipalign处理完成 [0106-09:46:43] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0106-09:46:43] 解除状态栏通知个数限制(默认最大6个) [0106-09:46:43] 正在修改 MiuiSystemUI.apk [0106-09:46:48] I: 开始patch目标 classes [0106-09:46:53] 修补MiuiSystemUI.apk 完成 [0106-09:46:53] 检测到apk,进行zipalign处理。。 [0106-09:46:53] apk zipalign处理完成 [0106-09:46:53] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0106-09:46:53] 开始移除 Android 签名校验 /home/user/hyperos_port/tmp /home/user/hyperos_port find: warning: you have specified the global option -maxdepth after the argument -type, but global options are not positional, i.e., -maxdepth affects tests specified before it as well as those specified after it. Please specify global options before other arguments. [0106-09:46:57] services/smali_classes2/com/android/server/pm/ApexManager$ApexManagerImpl.smali 修改成功 [0106-09:46:57] services/smali_classes2/com/android/server/pm/ScanPackageUtils.smali 修改成功 [0106-09:46:57] services/smali_classes2/com/android/server/pm/PackageSessionVerifier.smali 修改成功 [0106-09:46:57] services/smali_classes2/com/android/server/pm/pkg/parsing/ParsingPackageUtils.smali 修改成功 [0106-09:46:57] 反编译成功,开始回编译 /home/user/hyperos_port 'tmp/services.jar' -> 'build/portrom/images/system/system/framework/services.jar' [0106-09:47:12] 删除多余的App [0106-09:47:12] 删除目录: build/portrom/images/product/app/MSA [0106-09:47:12] 删除目录: build/portrom/images/product/priv-app/MIService [0106-09:47:12] 删除目录: build/portrom/images/product/app/QcomSoterService [0106-09:47:13] 删除目录: build/portrom/images/product/app/HybridPlatform [0106-09:47:13] 删除目录: build/portrom/images/product/app/AnalyticsCore [0106-09:47:13] 正在修改 build.prop [0106-09:47:13] 正在处理 build/portrom/images/mi_ext/etc/build.prop [0106-09:47:13] 正在处理 build/portrom/images/product/etc/build.prop [0106-09:47:13] 正在处理 build/portrom/images/odm/etc/build.prop [0106-09:47:14] 正在处理 build/portrom/images/system_ext/etc/build.prop [0106-09:47:14] 正在处理 build/portrom/images/system/system/build.prop [0106-09:47:14] 正在处理 build/portrom/images/system/system/system_dlkm/etc/build.prop [0106-09:47:15] 正在处理 build/portrom/images/vendor/build.prop [0106-09:47:16] 底包屏幕密度值 440 [0106-09:47:16] 未找到ro.fs.lcd_density,build.prop新建一个值440 [0106-09:47:16] 修复Millet [0106-09:47:16] 找到ro.millet.netlink修改值为29 'devices/common/overlay/system/system/app/NQNfcNci' -> 'build/portrom/images/system/system/app/NQNfcNci' 'devices/common/overlay/system/system/app/NQNfcNci/NQNfcNci.apk' -> 'build/portrom/images/system/system/app/NQNfcNci/NQNfcNci.apk' 'devices/common/overlay/system_ext/framework/com.nxp.nfc.nq.jar' -> 'build/portrom/images/system_ext/framework/com.nxp.nfc.nq.jar' 'devices/common/overlay/system_ext/framework/com.xiaomi.nfc.jar' -> 'build/portrom/images/system_ext/framework/com.xiaomi.nfc.jar' [0106-09:47:16] 替换相机为10S HyperOS A13 相机,MI10可用, thanks to 酷安 @PedroZ 'devices/common/overlay/product/priv-app/MiuiCamera/MiuiCamera.apk' -> 'build/portrom/images/product/priv-app/MiuiCamera/MiuiCamera.apk' [0106-09:47:17] 替换开机第二屏动画 'devices/common/overlay/product/media/bootanimation_440.zip' -> 'build/portrom/images/product/media/bootanimation.zip' 'devices/common/overlay/product/app/MiLinkCirculateMIUI15' -> 'build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15' 'devices/common/overlay/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk' -> 'build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk' [0106-09:47:17] replace files in here [0106-09:47:17] 去除avb校验 [0106-09:47:17] Target: build/portrom/images/system_ext/etc/fstab.other [0106-09:47:17] Target: build/portrom/images/system/system/etc/fstab.postinstall [0106-09:47:17] Target: build/portrom/images/vendor/etc/fstab.qcom [0106-09:47:17] Super大小为9126805504 [0106-09:47:17] 开始打包镜像 [0106-09:47:17] 以[EXT]文件系统打包[vendor.img]大小[2027075283] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 3939 entries FsPatcher: Add 0 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 3940 entries ADD [/lost+found ['u:object_r:vendor_file:s0']] ADD [/vendor/ ['u:object_r:vendor_file:s0']] ContextPatcher: Add 2 entries Done! loaded 3938 fs_config entries Creating filesystem with parameters: Size: 2027073536 Block size: 4096 Blocks per group: 32768 Inodes per group: 7744 Inode size: 256 Journal blocks: 0 Label: vendor Blocks: 494891 Block groups: 16 Reserved block group size: 127 Created filesystem with 3946/123904 inodes and 484750/494891 blocks [0106-09:47:32] 成功以大小 [2027075283] 打包 [vendor.img] [EXT] 文件系统 [0106-09:47:32] 以[EXT]文件系统打包[mi_ext.img]大小[4587153] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 43 entries Add [mi_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 44 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 43 fs_config entries Creating filesystem with parameters: Size: 4583424 Block size: 4096 Blocks per group: 32768 Inodes per group: 288 Inode size: 256 Journal blocks: 0 Label: mi_ext Blocks: 1119 Block groups: 1 Reserved block group size: 7 Created filesystem with 51/288 inodes and 135/1119 blocks [0106-09:47:33] 成功以大小 [4587153] 打包 [mi_ext.img] [EXT] 文件系统 [0106-09:47:33] 以[EXT]文件系统打包[odm.img]大小[35531968] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 24 entries FsPatcher: Add 0 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 25 entries ADD [/lost+found ['u:object_r:vendor_configs_file:s0']] ADD [/odm/ ['u:object_r:vendor_configs_file:s0']] ContextPatcher: Add 2 entries Done! loaded 24 fs_config entries Creating filesystem with parameters: Size: 35528704 Block size: 4096 Blocks per group: 32768 Inodes per group: 2176 Inode size: 256 Journal blocks: 0 Label: odm Blocks: 8674 Block groups: 1 Reserved block group size: 7 Created filesystem with 32/2176 inodes and 479/8674 blocks [0106-09:47:33] 成功以大小 [35531968] 打包 [odm.img] [EXT] 文件系统 [0106-09:47:33] 以[EXT]文件系统打包[system.img]大小[1158979937] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 3580 entries Add [system['0', '0', '0755']] Add [system/system/app/NQNfcNci['0', '0', '0755']] Add [system/system/app/NQNfcNci/NQNfcNci.apk['0', '0', '0644']] FsPatcher: Add 3 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 3581 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/system/system/app/NQNfcNci ['u:object_r:system_file:s0']] ADD [/system/system/app/NQNfcNci/NQNfcNci.apk ['u:object_r:system_file:s0']] ContextPatcher: Add 3 entries Done! loaded 3582 fs_config entries Creating filesystem with parameters: Size: 1158979584 Block size: 4096 Blocks per group: 32768 Inodes per group: 7872 Inode size: 256 Journal blocks: 0 Label: system Blocks: 282954 Block groups: 9 Reserved block group size: 71 Created filesystem with 3590/70848 inodes and 268811/282954 blocks [0106-09:47:41] 成功以大小 [1158979937] 打包 [system.img] [EXT] 文件系统 [0106-09:47:41] 以[EXT]文件系统打包[product.img]大小[4235455097] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 1839 entries Add [product['0', '0', '0755']] Add [product/app/MiuiBiometric['0', '0', '0755']] Add [product/app/MiuiBiometric/oat['0', '0', '0755']] Add [product/app/MiuiBiometric/MiuiBiometric.apk['0', '0', '0644']] Add [product/app/MiuiBiometric/oat/arm64['0', '0', '0755']] Add [product/app/MiuiBiometric/oat/arm64/MiuiBiometric.odex['0', '0', '0644']] Add [product/app/MiuiBiometric/oat/arm64/MiuiBiometric.vdex['0', '0', '0644']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15['0', '0', '0755']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk['0', '0', '0644']] Add [product/etc/displayconfig/display_id_4630946545580055169.xml['0', '0', '0644']] Add [product/etc/displayconfig/display_id_4630947134992368257.xml['0', '0', '0644']] Add [product/etc/device_features/umi.xml['0', '0', '0644']] FsPatcher: Add 12 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 1840 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/MiuiBiometric.apk ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64 ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64/MiuiBiometric.odex ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64/MiuiBiometric.vdex ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk ['u:object_r:system_file:s0']] ADD [/product/etc/displayconfig/display_id_4630946545580055169.xml ['u:object_r:system_file:s0']] ADD [/product/etc/displayconfig/display_id_4630947134992368257.xml ['u:object_r:system_file:s0']] ADD [/product/etc/device_features/umi.xml ['u:object_r:system_file:s0']] ContextPatcher: Add 12 entries Done! loaded 1761 fs_config entries Creating filesystem with parameters: Size: 4235452416 Block size: 4096 Blocks per group: 32768 Inodes per group: 8080 Inode size: 256 Journal blocks: 0 Label: product Blocks: 1034046 Block groups: 32 Reserved block group size: 255 Created filesystem with 1769/258560 inodes and 1027609/1034046 blocks [0106-09:48:09] 成功以大小 [4235455097] 打包 [product.img] [EXT] 文件系统 [0106-09:48:09] 以[EXT]文件系统打包[system_ext.img]大小[984336284] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 2222 entries Add [system_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 2223 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 2222 fs_config entries Creating filesystem with parameters: Size: 984334336 Block size: 4096 Blocks per group: 32768 Inodes per group: 7520 Inode size: 256 Journal blocks: 0 Label: system_ext Blocks: 240316 Block groups: 8 Reserved block group size: 63 Created filesystem with 2230/60160 inodes and 225017/240316 blocks [0106-09:48:17] 成功以大小 [984336284] 打包 [system_ext.img] [EXT] 文件系统 [0106-09:48:17] 打包A-only super.img [0106-09:48:17] Super 子分区 [odm] 大小 [35528704] [0106-09:48:17] Super 子分区 [mi_ext] 大小 [4583424] [0106-09:48:17] Super 子分区 [system] 大小 [1158979584] [0106-09:48:17] Super 子分区 [system_ext] 大小 [984334336] [0106-09:48:17] Super 子分区 [product] 大小 [4235452416] [0106-09:48:17] Super 子分区 [vendor] 大小 [2027073536] lpmake I 01-06 09:48:17 9379 9379 builder.cpp:1093] [liblp]Partition odm will resize from 0 bytes to 35528704 bytes lpmake I 01-06 09:48:17 9379 9379 builder.cpp:1093] [liblp]Partition mi_ext will resize from 0 bytes to 4583424 bytes lpmake I 01-06 09:48:17 9379 9379 builder.cpp:1093] [liblp]Partition system will resize from 0 bytes to 1158979584 bytes lpmake I 01-06 09:48:17 9379 9379 builder.cpp:1093] [liblp]Partition system_ext will resize from 0 bytes to 984334336 bytes lpmake I 01-06 09:48:17 9379 9379 builder.cpp:1093] [liblp]Partition product will resize from 0 bytes to 4235452416 bytes lpmake I 01-06 09:48:17 9379 9379 builder.cpp:1093] [liblp]Partition vendor will resize from 0 bytes to 2027073536 bytes Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic [0106-09:49:16] 成功打包 super.img [0106-09:49:16] 正在压缩 super.img build/portrom/images/super.img : 46.62% ( 8.50 GiB => 3.96 GiB, build/portrom/images/super.zst) [0106-09:49:55] 正在生成刷机脚本 adding: bin/ (stored 0%) adding: bin/windows/ (stored 0%) adding: bin/windows/adb.exe (deflated 53%) adding: bin/windows/AdbWinApi.dll (deflated 49%) adding: bin/windows/zstd.exe (deflated 60%) adding: bin/windows/cut.exe (deflated 41%) adding: bin/windows/awk.exe (deflated 41%) adding: bin/windows/fastboot.exe (deflated 55%) adding: bin/windows/sqlite3.exe (deflated 46%) adding: bin/windows/libwinpthread-1.dll (deflated 67%) adding: bin/windows/dmtracedump.exe (deflated 58%) adding: bin/windows/mke2fs.exe (deflated 49%) adding: bin/windows/AdbWinUsbApi.dll (deflated 49%) adding: bin/windows/NOTICE.txt (deflated 78%) adding: bin/windows/mke2fs.conf (deflated 67%) adding: bin/windows/make_f2fs_casefold.exe (deflated 53%) adding: bin/windows/curl.exe (deflated 54%) adding: bin/windows/source.properties (stored 0%) adding: bin/windows/etc1tool.exe (deflated 50%) adding: bin/windows/hprof-conv.exe (deflated 46%) adding: bin/windows/make_f2fs.exe (deflated 53%) adding: boot_official.img (deflated 80%) adding: firmware-update/ (stored 0%) adding: firmware-update/qupv3fw.elf (deflated 67%) adding: firmware-update/storsec.mbn (deflated 62%) adding: firmware-update/xbl_config_5.elf (deflated 75%) adding: firmware-update/featenabler.mbn (deflated 66%) adding: firmware-update/xbl_5.elf (deflated 19%) adding: firmware-update/xbl_config_4.elf (deflated 76%) adding: firmware-update/dspso.bin (deflated 84%) adding: firmware-update/abl.elf (deflated 19%) adding: firmware-update/km4.mbn (deflated 58%) adding: firmware-update/vbmeta.img (deflated 79%) adding: firmware-update/cmnlib64.mbn (deflated 52%) adding: firmware-update/vbmeta_system.img (deflated 64%) adding: firmware-update/aop.mbn (deflated 53%) adding: firmware-update/xbl_4.elf (deflated 19%) adding: firmware-update/tz.mbn (deflated 65%) adding: firmware-update/devcfg.mbn (deflated 65%) adding: firmware-update/hyp.mbn (deflated 67%) adding: firmware-update/NON-HLOS.bin (deflated 57%) adding: firmware-update/BTFM.bin (deflated 47%) adding: firmware-update/uefi_sec.mbn (deflated 57%) adding: firmware-update/logo.img (deflated 100%) adding: firmware-update/dtbo.img (deflated 94%) adding: firmware-update/cmnlib.mbn (deflated 41%) adding: mac_linux_flash_script.sh (deflated 69%) adding: META-INF/ (stored 0%) adding: META-INF/zstd (deflated 56%) adding: META-INF/com/ (stored 0%) adding: META-INF/com/google/ (stored 0%) adding: META-INF/com/google/android/ (stored 0%) adding: META-INF/com/google/android/update-binary (deflated 70%) adding: super.zst (deflated 0%) adding: windows_flash_script.bat (deflated 68%) [0106-09:52:10] 移植完毕 [0106-09:52:10] 输出包路径: [0106-09:52:10] /home/user/hyperos_port/out/hyperos_UMI_OS1.0.24.1.1.DEV_b484f85076_14_fuxi_01060952_EXT.zip

toraidl commented 7 months ago

重装Ubuntu 22.04试试。 以前也有反馈,重装重新打包就可以了。

guoyujie666 commented 7 months ago

哥可以用酷安不,我私信你了,这里加载比较慢,还有,那个我之前弄的23.11.17能开机,就是超频gpu之后打开应用用一下会未响应

guoyujie666 commented 7 months ago

突然发现自己用的是Ubuntu 20.04.6 LTS

guoyujie666 commented 7 months ago

重装成22.04了,没用啊,还是卡第一屏,在酷安上看到你的包,我现在用着。然后不知道为什么点开应用用着用着就未响应了

tosasitill commented 7 months ago

你试试自己修改services.jar 我这里ubunutu端修改失败 macos才行 @guoyujie666

tosasitill commented 7 months ago

d91c26e1bc9eeab9cade586161ba0889

guoyujie666 commented 7 months ago

不会改 下周回来装个黑苹果虚拟机移植看看

guoyujie666 commented 7 months ago

装上了,编译看看,换成shennong底包

guoyujie666 commented 7 months ago

macos@macOSdeMac hyperos_port % sudo ./port.sh ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip ../miui_SHENNONG_OS1.0.24.1.3.DEV_cb8aeb257f_14.0.zip Password: Sorry, try again. Password: [0112-21:19:39] 检测到Mac,设置alias [0112-21:19:39] 底包: ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip [0112-21:19:39] 移植包: ../miui_SHENNONG_OS1.0.24.1.3.DEV_cb8aeb257f_14.0.zip [0112-21:19:39] 正在检测ROM底包 [0112-21:19:39] 开始检测ROM移植包 [0112-21:19:39] ROM初步检测通过 [0112-21:19:39] ROM初步检测通过 [0112-21:19:39] 正在清理文件 [0112-21:19:40] 文件清理完毕 [0112-21:19:40] 正在提取底包 [new.dat.br] [0112-21:22:06] 底包 [new.dat.br] 提取完毕 [0112-21:22:06] 正在提取移植包 [payload.bin] [0112-21:25:02] 移植包 [payload.bin] 提取完毕 [0112-21:25:02] 开始分解底包 [new.dat.br] ./port.sh: line 340: 2796 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 2801 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 2805 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 2809 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 2813 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 2818 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 mv: rename config/system to build/baserom/config/system: No such file or directory mv: rename config/system_ext to build/baserom/config/system_ext: No such file or directory mv: rename config/product to build/baserom/config/product: No such file or directory mv: rename config/mi_ext to build/baserom/config/mi_ext: No such file or directory [0112-21:25:05] 开始提取逻辑分区镜像 vendor mi_ext odm system product system_ext [0112-21:25:05] 从底包中提取 [vendor]分区 ... [0112-21:25:05] 开始提取 vendor.img [0112-21:25:05] payload.bin 提取 [mi_ext] 分区... [0112-21:25:06] 开始提取 mi_ext.img [0112-21:25:06] 移植包为 [erofs] 文件系统 [0112-21:25:06] 提取移植包[mi_ext] [erofs]镜像完毕 [0112-21:25:06] 从底包中提取 [odm]分区 ... [0112-21:25:06] 开始提取 odm.img [0112-21:25:06] payload.bin 提取 [system] 分区... [0112-21:25:39] 开始提取 system.img [0112-21:25:39] 移植包为 [erofs] 文件系统 [0112-21:26:08] 提取移植包[system] [erofs]镜像完毕 [0112-21:26:08] payload.bin 提取 [product] 分区... [0112-21:28:06] 开始提取 product.img [0112-21:28:06] 移植包为 [erofs] 文件系统 [0112-21:29:58] 提取移植包[product] [erofs]镜像完毕 [0112-21:29:58] payload.bin 提取 [system_ext] 分区... [0112-21:30:14] 开始提取 system_ext.img [0112-21:30:14] 移植包为 [erofs] 文件系统 [0112-21:30:20] 提取移植包[system_ext] [erofs]镜像完毕 [0112-21:30:21] 正在获取ROM参数 ./port.sh: line 421: build/portrom/images/vendor/build.prop: No such file or directory [0112-21:30:23] 安卓版本: 底包为[Android ], 移植包为 [Android 14] ./port.sh: line 426: build/portrom/images/vendor/build.prop: No such file or directory [0112-21:30:23] SDK 版本: 底包为 [SDK ], 移植包为 [SDK 34] ./port.sh: line 431: build/portrom/images/vendor/build.prop: No such file or directory [0112-21:30:23] 检测到开发板,跳过修改版本代码 [0112-21:30:23] ROM 版本: 底包为 [], 移植包为 [OS1.0.24.1.3.DEV] ./port.sh: line 449: build/portrom/images/vendor/build.prop: No such file or directory [0112-21:30:23] 机型代号: 底包为 [], 移植包为 [shennong] ggrep: build/portrom/images/vendor/build.prop: No such file or directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory [0112-21:30:24] 正在替换 [MiuiFrameworkResOverlay.apk] usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory cp: build/baserom/images/product/etc/displayconfig/display_id.xml: No such file or directory [0112-21:30:24] Copying device_features cp: build/baserom/images/product/etc/device_features/: No such file or directory find: build/baserom/images/product/app: No such file or directory [0112-21:30:24] 修复息屏和屏下指纹问题 find: tmp/DevicesAndroidOverlay: No such file or directory [0112-21:30:26] apktool 打包失败 cp: tmp/DevicesAndroidOverlay.apk: No such file or directory find: build/portrom/images/vendor/: No such file or directory find: build/baserom/images/system_ext/apex: No such file or directory [0112-21:30:26] apex不存在,从原包复制 cp: : No such file or directory ggrep: build/portrom/images/vendor/build.prop: No such file or directory ./port.sh: line 622: [: -ne: unary operator expected [0112-21:30:27] 添加成功 gdate: invalid date ‘2000-00-24’ [0112-21:30:27] 左侧挖孔灵动岛修复 [0112-21:30:27] 正在修改 MiuiSystemUI.apk The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:29] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:29] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:29] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:29] Baksmaling 失败 [0112-21:30:29] I: 开始patch目标 gsed: no input files [0112-21:30:29] Smaling 失败 [0112-21:30:29] 修改??败 [0112-21:30:29] 修补MiuiSystemUI.apk 完成 [0112-21:30:29] 检测到apk,进行zipalign处理。。 [0112-21:30:32] apk zipalign处理完成 [0112-21:30:32] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0112-21:30:32] 开启HyperMind功能,移植包为14系列AI开发版(23.11.30 Dev) [0112-21:30:32] 正在修改 MiLinkCirculateMIUI15.apk The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:37] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:37] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:37] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:37] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:37] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:37] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:37] Baksmaling 失败 find: tmp/MiLinkCirculateMIUI15/*/com/milink/hmindlib: No such file or directory [0112-21:30:37] I: 开始patch目标 gsed: no input files [0112-21:30:37] Smaling 失败 [0112-21:30:38] 修改??败 [0112-21:30:38] 修补MiLinkCirculateMIUI15.apk 完成 [0112-21:30:38] 检测到apk,进行zipalign处理。。 [0112-21:30:38] apk zipalign处理完成 [0112-21:30:38] 复制APK到目标位置:build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk [0112-21:30:38] 解除状态栏通知个数限制(默认最大6个) [0112-21:30:38] 正在修改 MiuiSystemUI.apk The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:40] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:40] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:40] Baksmaling 失败 The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

[0112-21:30:40] Baksmaling 失败 [0112-21:30:40] I: 开始patch目标 gsed: no input files [0112-21:30:40] Smaling 失败 [0112-21:30:40] 修改??败 [0112-21:30:40] 修补MiuiSystemUI.apk 完成 [0112-21:30:40] 检测到apk,进行zipalign处理。。 [0112-21:30:41] apk zipalign处理完成 [0112-21:30:41] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0112-21:30:41] 开始移除 Android 签名校验 ~/Desktop/hyperos_port/tmp ~/Desktop/hyperos_port The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

find: services/smali_classes2/com/android/server/pm/: No such file or directory find: services/smali_classes2/com/android/server/pm/pkg/parsing/: No such file or directory [0112-21:30:43] 反编译成功,开始回编译 ~/Desktop/hyperos_port The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.

cp: tmp/services.jar: No such file or directory [0112-21:30:43] 删除多余的App [0112-21:30:43] 删除目录: build/portrom/images/product/app/MSA [0112-21:30:43] 删除目录: build/portrom/images/product/data-app/MIService [0112-21:30:43] 删除目录: build/portrom/images/product/app/SoterService [0112-21:30:43] 删除目录: build/portrom/images/product/app/HybridPlatform [0112-21:30:43] 删除目录: build/portrom/images/product/app/AnalyticsCore [0112-21:31:01] 正在修改 build.prop [0112-21:31:01] 正在处理 build/portrom/images/mi_ext/etc/build.prop [0112-21:31:01] 正在处理 build/portrom/images/product/etc/build.prop [0112-21:31:01] 正在处理 build/portrom/images/system/system/system_dlkm/etc/build.prop [0112-21:31:02] 正在处理 build/portrom/images/system/system/build.prop [0112-21:31:02] 正在处理 build/portrom/images/system_ext/etc/build.prop find: build/baserom/images/product: No such file or directory find: build/baserom/images/system: No such file or directory [0112-21:31:02] 未找到ro.fs.lcd_density,build.prop新建一个值440 gsed: can't read build/portrom/images/vendor/build.prop: No such file or directory ./port.sh: line 880: build/portrom/images/vendor/build.prop: No such file or directory [0112-21:31:02] 修复Millet ggrep: build/baserom/images/product/etc/build.prop: No such file or directory [0112-21:31:02] 原包未发现ro.millet.netlink值,请手动赋值修改(默认为29) [0112-21:31:02] 找到ro.millet.netlink修改值为29 [0112-21:31:03] 替换开机第二屏动画 devices/common/overlay/product/media/bootanimation_440.zip -> build/portrom/images/product/media/bootanimation.zip devices/common/overlay/product/app/MiLinkCirculateMIUI15 -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 devices/common/overlay/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk [0112-21:31:04] devices//overlay 未找到 [0112-21:31:04] 去除avb校验 [0112-21:31:04] Target: build/portrom/images//system/system/etc/fstab.postinstall [0112-21:31:04] Target: build/portrom/images//system_ext/etc/fstab.other [0112-21:31:04] Super大小为9126805504 [0112-21:31:04] 开始打包镜像 [0112-21:31:05] 以[EXT]文件系统打包[mi_ext.img]大小[4461411] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 46 entries Add [mi_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 47 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 46 fs_config entries Creating filesystem with parameters: Size: 4460544 Block size: 4096 Blocks per group: 32768 Inodes per group: 272 Inode size: 256 Journal blocks: 0 Label: mi_ext Blocks: 1089 Block groups: 1 Reserved block group size: 7 Created filesystem with 54/272 inodes and 137/1089 blocks [0112-21:31:06] 成功以大小 [4461411] 打包 [mi_ext.img] [EXT] 文件系统 [0112-21:31:07] 以[EXT]文件系统打包[system.img]大小[1341882476] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 4295 entries Add [system['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 4296 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 4295 fs_config entries Creating filesystem with parameters: Size: 1341882368 Block size: 4096 Blocks per group: 32768 Inodes per group: 8192 Inode size: 256 Journal blocks: 0 Label: system Blocks: 327608 Block groups: 10 Reserved block group size: 79 Created filesystem with 4303/81920 inodes and 314859/327608 blocks [0112-21:31:51] 成功以大小 [1341882476] 打包 [system.img] [EXT] 文件系统 [0112-21:31:51] 以[EXT]文件系统打包[product.img]大小[3790197834] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 1750 entries Add [product['0', '0', '0755']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15['0', '0', '0755']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk['0', '0', '0644']] FsPatcher: Add 3 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 1751 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk ['u:object_r:system_file:s0']] ContextPatcher: Add 3 entries Done! loaded 1696 fs_config entries Creating filesystem with parameters: Size: 3790196736 Block size: 4096 Blocks per group: 32768 Inodes per group: 7984 Inode size: 256 Journal blocks: 0 Label: product Blocks: 925341 Block groups: 29 Reserved block group size: 231 Created filesystem with 1704/231536 inodes and 917429/925341 blocks [0112-21:33:43] 成功以大小 [3790197834] 打包 [product.img] [EXT] 文件系统 [0112-21:33:43] 以[EXT]文件系统打包[system_ext.img]大小[726400808] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 2796 entries Add [system_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 2797 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 2796 fs_config entries Creating filesystem with parameters: Size: 726396928 Block size: 4096 Blocks per group: 32768 Inodes per group: 7392 Inode size: 256 Journal blocks: 0 Label: system_ext Blocks: 177343 Block groups: 6 Reserved block group size: 47 Created filesystem with 2804/44352 inodes and 161435/177343 blocks [0112-21:34:36] 成功以大小 [726400808] 打包 [system_ext.img] [EXT] 文件系统 [0112-21:34:36] 打包A-only super.img [0112-21:34:36] Super 子分区 [odm] 大小 [0] [0112-21:34:36] Super 子分区 [mi_ext] 大小 [4460544] [0112-21:34:36] Super 子分区 [system] 大小 [1341882368] [0112-21:34:36] Super 子分区 [system_ext] 大小 [726396928] [0112-21:34:36] Super 子分区 [product] 大小 [3790196736] [0112-21:34:36] Super 子分区 [vendor] 大小 [0] lpmake I 01-12 21:34:37 3872 57965 builder.cpp:1093] [liblp] Partition mi_ext will resize from 0 bytes to 4460544 bytes lpmake I 01-12 21:34:37 3872 57965 builder.cpp:1093] [liblp] Partition system will resize from 0 bytes to 1341882368 bytes lpmake I 01-12 21:34:37 3872 57965 builder.cpp:1093] [liblp] Partition system_ext will resize from 0 bytes to 726396928 bytes lpmake I 01-12 21:34:37 3872 57965 builder.cpp:1093] [liblp] Partition product will resize from 0 bytes to 3790196736 bytes lpmake E 01-12 21:34:37 3872 57965 images.cpp:316] [liblp] Partition size is zero: odm [0112-21:34:37] 无法打包 super.img macos@macOSdeMac hyperos_port %

toraidl commented 7 months ago

sudo chmod a+x bin/Darwin/X86_64/* 试试

tosasitill commented 7 months ago

@guoyujie666 你有两个分区打包大小都为零了 先修修这个

guoyujie666 commented 7 months ago

他那个new.dat.br都分解不出来

guoyujie666 commented 7 months ago

macos@macOSdeMac hyperos_port % sudo ./port.sh ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip ../miui_SHENNONG_OS1.0.24.1.3.DEV_cb8aeb257f_14.0.zip [0113-03:52:31] 检测到Mac,设置alias [0113-03:52:31] 底包: ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip [0113-03:52:32] 移植包: ../miui_SHENNONG_OS1.0.24.1.3.DEV_cb8aeb257f_14.0.zip [0113-03:52:32] 正在检测ROM底包 [0113-03:52:32] 开始检测ROM移植包 [0113-03:52:32] ROM初步检测通过 [0113-03:52:32] ROM初步检测通过 [0113-03:52:32] 正在清理文件 [0113-03:52:39] 文件清理完毕 [0113-03:52:39] 正在提取底包 [new.dat.br] [0113-03:55:22] 底包 [new.dat.br] 提取完毕 [0113-03:55:22] 正在提取移植包 [payload.bin] [0113-03:59:03] 移植包 [payload.bin] 提取完毕 [0113-03:59:03] 开始分解底包 [new.dat.br] ./port.sh: line 340: 941 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 945 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 949 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 953 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 957 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 ./port.sh: line 340: 961 Abort trap: 6 ${tools_dir}/brotli -d build/baserom/$i.new.dat.br > /dev/null 2>&1 mv: rename config/system to build/baserom/config/system: No such file or directory mv: rename config/system_ext to build/baserom/config/system_ext: No such file or directory mv: rename config/product to build/baserom/config/product: No such file or directory mv: rename config/mi_ext to build/baserom/config/mi_ext: No such file or directory [0113-03:59:10] 开始提取逻辑分区镜像 vendor mi_ext odm system product system_ext [0113-03:59:10] 从底包中提取 [vendor]分区 ... [0113-03:59:10] 开始提取 vendor.img [0113-03:59:11] payload.bin 提取 [mi_ext] 分区... [0113-03:59:11] 开始提取 mi_ext.img [0113-03:59:11] 移植包为 [erofs] 文件系统 [0113-03:59:11] 提取移植包[mi_ext] [erofs]镜像完毕 [0113-03:59:11] 从底包中提取 [odm]分区 ... [0113-03:59:11] 开始提取 odm.img [0113-03:59:11] payload.bin 提取 [system] 分区... [0113-03:59:45] 开始提取 system.img [0113-03:59:45] 移植包为 [erofs] 文件系统 [0113-04:00:19] 提取移植包[system] [erofs]镜像完毕 [0113-04:00:19] payload.bin 提取 [product] 分区... [0113-04:02:35] 开始提取 product.img [0113-04:02:35] 移植包为 [erofs] 文件系统 [0113-04:06:29] 提取移植包[product] [erofs]镜像完毕 [0113-04:06:29] payload.bin 提取 [system_ext] 分区... [0113-04:06:48] 开始提取 system_ext.img [0113-04:06:49] 移植包为 [erofs] 文件系统 [0113-04:07:14] 提取移植包[system_ext] [erofs]镜像完毕 [0113-04:07:14] 正在获取ROM参数 ./port.sh: line 421: build/portrom/images/vendor/build.prop: No such file or directory [0113-04:07:15] 安卓版本: 底包为[Android ], 移植包为 [Android 14] ./port.sh: line 426: build/portrom/images/vendor/build.prop: No such file or directory [0113-04:07:15] SDK 版本: 底包为 [SDK ], 移植包为 [SDK 34] ./port.sh: line 431: build/portrom/images/vendor/build.prop: No such file or directory [0113-04:07:15] 检测到开发板,跳过修改版本代码 [0113-04:07:15] ROM 版本: 底包为 [], 移植包为 [OS1.0.24.1.3.DEV] ./port.sh: line 449: build/portrom/images/vendor/build.prop: No such file or directory [0113-04:07:15] 机型代号: 底包为 [], 移植包为 [shennong] ggrep: build/portrom/images/vendor/build.prop: No such file or directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory [0113-04:07:15] 正在替换 [MiuiFrameworkResOverlay.apk] usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file target_file cp [-R [-H | -L | -P]] [-fi | -n] [-aclpsvXx] source_file ... target_directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory find: build/baserom/images/product: No such file or directory cp: build/baserom/images/product/etc/displayconfig/display_id.xml: No such file or directory [0113-04:07:15] Copying device_features cp: build/baserom/images/product/etc/device_features/: No such file or directory find: build/baserom/images/product/app: No such file or directory [0113-04:07:15] 修复息屏和屏下指纹问题 tmp/DevicesAndroidOverlay.apk -> build/portrom/images/product/overlay/DevicesAndroidOverlay.apk find: build/portrom/images/vendor/: No such file or directory find: build/baserom/images/system_ext/apex: No such file or directory [0113-04:07:38] apex不存在,从原包复制 cp: : No such file or directory ggrep: build/portrom/images/vendor/build.prop: No such file or directory ./port.sh: line 622: [: -ne: unary operator expected [0113-04:07:38] 添加成功 gdate: invalid date ‘2000-00-24’ [0113-04:07:38] 左侧挖孔灵动岛修复 [0113-04:07:39] 正在修改 MiuiSystemUI.apk [0113-04:07:51] I: 开始patch目标 classes [0113-04:08:01] 修补MiuiSystemUI.apk 完成 [0113-04:08:01] 检测到apk,进行zipalign处理。。 [0113-04:08:02] apk zipalign处理完成 [0113-04:08:02] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0113-04:08:02] 开启HyperMind功能,移植包为14系列AI开发版(23.11.30 Dev) [0113-04:08:02] 正在修改 MiLinkCirculateMIUI15.apk [0113-04:08:23] I: 开始patch目标 classes2 [0113-04:08:28] 修补MiLinkCirculateMIUI15.apk 完成 [0113-04:08:28] 检测到apk,进行zipalign处理。。 [0113-04:08:28] apk zipalign处理完成 [0113-04:08:28] 复制APK到目标位置:build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk [0113-04:08:28] 解除状态栏通知个数限制(默认最大6个) [0113-04:08:28] 正在修改 MiuiSystemUI.apk [0113-04:08:43] I: 开始patch目标 classes [0113-04:08:57] 修补MiuiSystemUI.apk 完成 [0113-04:08:57] 检测到apk,进行zipalign处理。。 [0113-04:08:57] apk zipalign处理完成 [0113-04:08:57] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0113-04:08:57] 开始移除 Android 签名校验 ~/Desktop/hyperos_port/tmp ~/Desktop/hyperos_port [0113-04:09:15] services/smali_classes2/com/android/server/pm//ApexManager$ApexManagerImpl.smali 修改成功 [0113-04:09:15] services/smali_classes2/com/android/server/pm//ScanPackageUtils.smali 修改成功 [0113-04:09:15] services/smali_classes2/com/android/server/pm//PackageSessionVerifier.smali 修改成功 [0113-04:09:15] services/smali_classes2/com/android/server/pm/pkg/parsing//ParsingPackageUtils.smali 修改成功 [0113-04:09:15] 反编译成功,开始回编译 ~/Desktop/hyperos_port tmp/services.jar -> build/portrom/images/system/system/framework/services.jar [0113-04:09:40] 删除多余的App [0113-04:09:40] 删除目录: build/portrom/images/product/app/MSA [0113-04:09:40] 删除目录: build/portrom/images/product/data-app/MIService [0113-04:09:40] 删除目录: build/portrom/images/product/app/SoterService [0113-04:09:40] 删除目录: build/portrom/images/product/app/HybridPlatform [0113-04:09:40] 删除目录: build/portrom/images/product/app/AnalyticsCore [0113-04:10:02] 正在修改 build.prop [0113-04:10:03] 正在处理 build/portrom/images/mi_ext/etc/build.prop [0113-04:10:03] 正在处理 build/portrom/images/product/etc/build.prop [0113-04:10:03] 正在处理 build/portrom/images/system/system/system_dlkm/etc/build.prop [0113-04:10:03] 正在处理 build/portrom/images/system/system/build.prop [0113-04:10:04] 正在处理 build/portrom/images/system_ext/etc/build.prop find: build/baserom/images/product: No such file or directory find: build/baserom/images/system: No such file or directory [0113-04:10:04] 未找到ro.fs.lcd_density,build.prop新建一个值440 gsed: can't read build/portrom/images/vendor/build.prop: No such file or directory ./port.sh: line 880: build/portrom/images/vendor/build.prop: No such file or directory [0113-04:10:04] 修复Millet ggrep: build/baserom/images/product/etc/build.prop: No such file or directory [0113-04:10:04] 原包未发现ro.millet.netlink值,请手动赋值修改(默认为29) [0113-04:10:04] 找到ro.millet.netlink修改值为29 [0113-04:10:04] 替换开机第二屏动画 devices/common/overlay/product/media/bootanimation_440.zip -> build/portrom/images/product/media/bootanimation.zip devices/common/overlay/product/app/MiLinkCirculateMIUI15 -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 devices/common/overlay/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk [0113-04:10:05] devices//overlay 未找到 [0113-04:10:05] 去除avb校验 [0113-04:10:05] Target: build/portrom/images//system/system/etc/fstab.postinstall [0113-04:10:05] Target: build/portrom/images//system_ext/etc/fstab.other [0113-04:10:07] Super大小为9126805504 [0113-04:10:07] 开始打包镜像 [0113-04:10:07] 以[EXT]文件系统打包[mi_ext.img]大小[4461411] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 46 entries Add [mi_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 47 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 46 fs_config entries Creating filesystem with parameters: Size: 4460544 Block size: 4096 Blocks per group: 32768 Inodes per group: 272 Inode size: 256 Journal blocks: 0 Label: mi_ext Blocks: 1089 Block groups: 1 Reserved block group size: 7 Created filesystem with 54/272 inodes and 137/1089 blocks [0113-04:10:08] 成功以大小 [4461411] 打包 [mi_ext.img] [EXT] 文件系统 [0113-04:10:08] 以[EXT]文件系统打包[system.img]大小[1332175997] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 4295 entries Add [system['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 4296 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 4295 fs_config entries Creating filesystem with parameters: Size: 1332174848 Block size: 4096 Blocks per group: 32768 Inodes per group: 8144 Inode size: 256 Journal blocks: 0 Label: system Blocks: 325238 Block groups: 10 Reserved block group size: 79 Created filesystem with 4303/81440 inodes and 312459/325238 blocks [0113-04:11:39] 成功以大小 [1332175997] 打包 [system.img] [EXT] 文件系统 [0113-04:11:40] 以[EXT]文件系统打包[product.img]大小[3790191212] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 1750 entries Add [product['0', '0', '0755']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15['0', '0', '0755']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk['0', '0', '0644']] FsPatcher: Add 3 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 1751 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk ['u:object_r:system_file:s0']] ContextPatcher: Add 3 entries Done! loaded 1696 fs_config entries Creating filesystem with parameters: Size: 3790188544 Block size: 4096 Blocks per group: 32768 Inodes per group: 7984 Inode size: 256 Journal blocks: 0 Label: product Blocks: 925339 Block groups: 29 Reserved block group size: 231 Created filesystem with 1704/231536 inodes and 917427/925339 blocks [0113-04:13:48] 成功以大小 [3790191212] 打包 [product.img] [EXT] 文件系统 [0113-04:13:49] 以[EXT]文件系统打包[system_ext.img]大小[731510697] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 2796 entries Add [system_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 2797 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 2796 fs_config entries Creating filesystem with parameters: Size: 731508736 Block size: 4096 Blocks per group: 32768 Inodes per group: 7456 Inode size: 256 Journal blocks: 0 Label: system_ext Blocks: 178591 Block groups: 6 Reserved block group size: 47 Created filesystem with 2804/44736 inodes and 162706/178591 blocks [0113-04:16:22] 成功以大小 [731510697] 打包 [system_ext.img] [EXT] 文件系统 [0113-04:16:22] 打包A-only super.img [0113-04:16:22] Super 子分区 [odm] 大小 [0] [0113-04:16:22] Super 子分区 [mi_ext] 大小 [4460544] [0113-04:16:22] Super 子分区 [system] 大小 [1332174848] [0113-04:16:22] Super 子分区 [system_ext] 大小 [731508736] [0113-04:16:22] Super 子分区 [product] 大小 [3790188544] [0113-04:16:22] Super 子分区 [vendor] 大小 [0] lpmake I 01-13 04:16:23 2967 24784 builder.cpp:1093] [liblp] Partition mi_ext will resize from 0 bytes to 4460544 bytes lpmake I 01-13 04:16:23 2967 24784 builder.cpp:1093] [liblp] Partition system will resize from 0 bytes to 1332174848 bytes lpmake I 01-13 04:16:23 2967 24784 builder.cpp:1093] [liblp] Partition system_ext will resize from 0 bytes to 731508736 bytes lpmake I 01-13 04:16:23 2967 24784 builder.cpp:1093] [liblp] Partition product will resize from 0 bytes to 3790188544 bytes lpmake E 01-13 04:16:23 2967 24784 images.cpp:316] [liblp] Partition size is zero: odm [0113-04:16:23] 无法打包 super.img macos@macOSdeMac hyperos_port %

guoyujie666 commented 7 months ago

我能不能先提取出来再进行操作

guoyujie666 commented 7 months ago

brew install brotli

你试下重新下载brotli, 然后用which brotli 获取一下路径, 再cp这个到项目对应文件夹? 我macOS系统坏了,很久没试了。

guoyujie666 commented 7 months ago

换过了,提取倒是成功了,最终刷进去的时候就卡第一屏,然后等个几秒就重启进rec了

guoyujie666 commented 7 months ago

macos@macOSdeMac hyperos_port % sudo ./port.sh ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip ../miui_SHENNONG_OS1.0.24.1.3.DEV_cb8aeb257f_14.0.zip Password: [0113-04:38:26] 检测到Mac,设置alias [0113-04:38:26] 底包: ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip [0113-04:38:26] 移植包: ../miui_SHENNONG_OS1.0.24.1.3.DEV_cb8aeb257f_14.0.zip [0113-04:38:26] 正在检测ROM底包 [0113-04:38:26] 开始检测ROM移植包 [0113-04:38:26] ROM初步检测通过 [0113-04:38:26] ROM初步检测通过 [0113-04:38:26] 正在清理文件 [0113-04:38:29] 文件清理完毕 [0113-04:38:29] 正在提取底包 [new.dat.br] [0113-04:40:48] 底包 [new.dat.br] 提取完毕 [0113-04:40:48] 正在提取移植包 [payload.bin] [0113-04:43:45] 移植包 [payload.bin] 提取完毕 [0113-04:43:45] 开始分解底包 [new.dat.br] [0113-04:50:12] 正在分解底包 system.img [ext] [0113-04:50:56] 分解底包 [system.img] 完成 [0113-04:50:56] 正在分解底包 system_ext.img [ext] [0113-04:51:04] 分解底包 [system_ext.img] 完成 [0113-04:51:04] 正在分解底包 product.img [ext] [0113-04:53:56] 分解底包 [product.img] 完成 [0113-04:53:56] 正在分解底包 mi_ext.img [ext] [0113-04:53:57] 分解底包 [mi_ext.img] 完成 [0113-04:54:53] 开始提取逻辑分区镜像 vendor mi_ext odm system product system_ext [0113-04:54:53] 从底包中提取 [vendor]分区 ... [0113-04:54:53] 开始提取 vendor.img [0113-04:55:46] 提取 [vendor] [ext]镜像完毕 [0113-04:55:46] payload.bin 提取 [mi_ext] 分区... [0113-04:55:47] 开始提取 mi_ext.img [0113-04:55:47] 移植包为 [erofs] 文件系统 [0113-04:55:47] 提取移植包[mi_ext] [erofs]镜像完毕 [0113-04:55:47] 从底包中提取 [odm]分区 ... [0113-04:55:47] 开始提取 odm.img [0113-04:55:47] 提取 [odm] [ext]镜像完毕 [0113-04:55:47] payload.bin 提取 [system] 分区... [0113-04:56:27] 开始提取 system.img [0113-04:56:27] 移植包为 [erofs] 文件系统 [0113-04:57:06] 提取移植包[system] [erofs]镜像完毕 [0113-04:57:06] payload.bin 提取 [product] 分区... [0113-04:59:29] 开始提取 product.img [0113-04:59:30] 移植包为 [erofs] 文件系统 [0113-05:02:16] 提取移植包[product] [erofs]镜像完毕 [0113-05:02:16] payload.bin 提取 [system_ext] 分区... [0113-05:02:32] 开始提取 system_ext.img [0113-05:02:32] 移植包为 [erofs] 文件系统 [0113-05:02:46] 提取移植包[system_ext] [erofs]镜像完毕 [0113-05:02:46] 正在获取ROM参数 [0113-05:02:48] 安卓版本: 底包为[Android 13], 移植包为 [Android 14] [0113-05:02:48] SDK 版本: 底包为 [SDK 30], 移植包为 [SDK 34] [0113-05:02:48] 检测到开发板,跳过修改版本代码 [0113-05:02:48] ROM 版本: 底包为 [V14.0.4.0.TJBCNXM], 移植包为 [OS1.0.24.1.3.DEV] [0113-05:02:48] 机型代号: 底包为 [umi], 移植包为 [shennong] [0113-05:02:49] 正在替换 [AospFrameworkResOverlay.apk] [0113-05:02:49] 正在替换 [MiuiFrameworkResOverlay.apk] [0113-05:02:49] 正在替换 [DevicesAndroidOverlay.apk] [0113-05:02:49] 正在替换 [DevicesOverlay.apk] [0113-05:02:50] 正在替换 [SettingsRroDeviceHideStatusBarOverlay.apk] [0113-05:02:50] Copying device_features [0113-05:02:50] 未找到MiuiBiometric,替换为原包 [0113-05:02:55] 修复息屏和屏下指纹问题 tmp/DevicesAndroidOverlay.apk -> build/portrom/images/product/overlay/DevicesAndroidOverlay.apk [0113-05:03:02] ro.vndk.version为30 [0113-05:03:02] apex不存在,从原包复制 [0113-05:03:04] 添加成功 gdate: invalid date ‘2000-00-24’ [0113-05:03:04] 左侧挖孔灵动岛修复 [0113-05:03:06] 正在修改 MiuiSystemUI.apk [0113-05:03:29] I: 开始patch目标 classes [0113-05:03:40] 修补MiuiSystemUI.apk 完成 [0113-05:03:40] 检测到apk,进行zipalign处理。。 [0113-05:03:40] apk zipalign处理完成 [0113-05:03:40] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0113-05:03:40] 开启HyperMind功能,移植包为14系列AI开发版(23.11.30 Dev) [0113-05:03:40] 正在修改 MiLinkCirculateMIUI15.apk [0113-05:04:18] I: 开始patch目标 classes2 [0113-05:04:23] 修补MiLinkCirculateMIUI15.apk 完成 [0113-05:04:23] 检测到apk,进行zipalign处理。。 [0113-05:04:24] apk zipalign处理完成 [0113-05:04:24] 复制APK到目标位置:build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk [0113-05:04:24] 解除状态栏通知个数限制(默认最大6个) [0113-05:04:26] 正在修改 MiuiSystemUI.apk [0113-05:04:39] I: 开始patch目标 classes [0113-05:04:48] 修补MiuiSystemUI.apk 完成 [0113-05:04:48] 检测到apk,进行zipalign处理。。 [0113-05:04:49] apk zipalign处理完成 [0113-05:04:49] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0113-05:04:49] 开始移除 Android 签名校验 ~/Desktop/hyperos_port/tmp ~/Desktop/hyperos_port [0113-05:05:10] services/smali_classes2/com/android/server/pm//ApexManager$ApexManagerImpl.smali 修改成功 [0113-05:05:10] services/smali_classes2/com/android/server/pm//ScanPackageUtils.smali 修改成功 [0113-05:05:11] services/smali_classes2/com/android/server/pm//PackageSessionVerifier.smali 修改成功 [0113-05:05:11] services/smali_classes2/com/android/server/pm/pkg/parsing//ParsingPackageUtils.smali 修改成功 [0113-05:05:11] 反编译成功,开始回编译 ~/Desktop/hyperos_port tmp/services.jar -> build/portrom/images/system/system/framework/services.jar [0113-05:05:34] 删除多余的App [0113-05:05:34] 删除目录: build/portrom/images/product/app/MSA [0113-05:05:34] 删除目录: build/portrom/images/product/data-app/MIService [0113-05:05:34] 删除目录: build/portrom/images/product/app/SoterService [0113-05:05:34] 删除目录: build/portrom/images/product/app/HybridPlatform [0113-05:05:34] 删除目录: build/portrom/images/product/app/AnalyticsCore [0113-05:05:55] 正在修改 build.prop [0113-05:05:56] 正在处理 build/portrom/images/mi_ext/etc/build.prop [0113-05:05:56] 正在处理 build/portrom/images/product/etc/build.prop [0113-05:05:56] 正在处理 build/portrom/images/odm/etc/build.prop [0113-05:05:56] 正在处理 build/portrom/images/system/system/system_dlkm/etc/build.prop [0113-05:05:57] 正在处理 build/portrom/images/system/system/build.prop [0113-05:05:57] 正在处理 build/portrom/images/system_ext/etc/build.prop [0113-05:05:57] 正在处理 build/portrom/images/vendor/build.prop [0113-05:05:58] 底包屏幕密度值 440 [0113-05:05:58] 未找到ro.fs.lcd_density,build.prop新建一个值440 [0113-05:05:58] 修复Millet [0113-05:05:58] 找到ro.millet.netlink修改值为29 devices/common/overlay/system/system -> build/portrom/images/system/system devices/common/overlay/system/system/app -> build/portrom/images/system/system/app devices/common/overlay/system/system/app/NQNfcNci -> build/portrom/images/system/system/app/NQNfcNci devices/common/overlay/system/system/app/NQNfcNci/NQNfcNci.apk -> build/portrom/images/system/system/app/NQNfcNci/NQNfcNci.apk devices/common/overlay/system_ext/framework/com.nxp.nfc.nq.jar -> build/portrom/images/system_ext/framework/com.nxp.nfc.nq.jar devices/common/overlay/system_ext/framework/com.xiaomi.nfc.jar -> build/portrom/images/system_ext/framework/com.xiaomi.nfc.jar [0113-05:05:58] 替换相机为10S HyperOS A13 相机,MI10可用, thanks to 酷安 @PedroZ devices/common/overlay/product/priv-app/MiuiCamera/MiuiCamera.apk -> build/portrom/images/product/priv-app/MiuiCamera/MiuiCamera.apk [0113-05:06:02] 替换开机第二屏动画 devices/common/overlay/product/media/bootanimation_440.zip -> build/portrom/images/product/media/bootanimation.zip devices/common/overlay/product/app/MiLinkCirculateMIUI15 -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 devices/common/overlay/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk [0113-05:06:03] devices/umi/overlay 未找到 [0113-05:06:03] 去除avb校验 [0113-05:06:03] Target: build/portrom/images//system/system/etc/fstab.postinstall [0113-05:06:03] Target: build/portrom/images//system_ext/etc/fstab.other [0113-05:06:04] Target: build/portrom/images//vendor/etc/fstab.qcom [0113-05:06:05] Super大小为9126805504 [0113-05:06:05] 开始打包镜像 [0113-05:06:05] 以[EXT]文件系统打包[vendor.img]大小[2026469651] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 3939 entries FsPatcher: Add 0 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 3940 entries ADD [/lost+found ['u:object_r:vendor_file:s0']] ADD [/vendor/ ['u:object_r:vendor_file:s0']] ContextPatcher: Add 2 entries Done! loaded 3938 fs_config entries Creating filesystem with parameters: Size: 2026467328 Block size: 4096 Blocks per group: 32768 Inodes per group: 7744 Inode size: 256 Journal blocks: 0 Label: vendor Blocks: 494743 Block groups: 16 Reserved block group size: 127 Created filesystem with 3946/123904 inodes and 484750/494743 blocks [0113-05:07:27] 成功以大小 [2026469651] 打包 [vendor.img] [EXT] 文件系统 [0113-05:07:29] 以[EXT]文件系统打包[mi_ext.img]大小[4461414] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 46 entries Add [mi_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 47 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 46 fs_config entries Creating filesystem with parameters: Size: 4460544 Block size: 4096 Blocks per group: 32768 Inodes per group: 272 Inode size: 256 Journal blocks: 0 Label: mi_ext Blocks: 1089 Block groups: 1 Reserved block group size: 7 Created filesystem with 54/272 inodes and 137/1089 blocks [0113-05:07:29] 成功以大小 [4461414] 打包 [mi_ext.img] [EXT] 文件系统 [0113-05:07:29] 以[EXT]文件系统打包[odm.img]大小[35512512] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 24 entries FsPatcher: Add 0 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 25 entries ADD [/lost+found ['u:object_r:vendor_configs_file:s0']] ADD [/odm/ ['u:object_r:vendor_configs_file:s0']] ContextPatcher: Add 2 entries Done! loaded 24 fs_config entries Creating filesystem with parameters: Size: 35512320 Block size: 4096 Blocks per group: 32768 Inodes per group: 2176 Inode size: 256 Journal blocks: 0 Label: odm Blocks: 8670 Block groups: 1 Reserved block group size: 7 Created filesystem with 32/2176 inodes and 479/8670 blocks [0113-05:07:29] 成功以大小 [35512512] 打包 [odm.img] [EXT] 文件系统 [0113-05:07:30] 以[EXT]文件系统打包[system.img]大小[1356737254] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 4295 entries Add [system['0', '0', '0755']] Add [system/system/app/NQNfcNci['0', '0', '0755']] Add [system/system/app/NQNfcNci/NQNfcNci.apk['0', '0', '0644']] FsPatcher: Add 3 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 4296 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/system/system/app/NQNfcNci ['u:object_r:system_file:s0']] ADD [/system/system/app/NQNfcNci/NQNfcNci.apk ['u:object_r:system_file:s0']] ContextPatcher: Add 3 entries Done! loaded 4297 fs_config entries Creating filesystem with parameters: Size: 1356734464 Block size: 4096 Blocks per group: 32768 Inodes per group: 7536 Inode size: 256 Journal blocks: 0 Label: system Blocks: 331234 Block groups: 11 Reserved block group size: 87 Created filesystem with 4305/82896 inodes and 318598/331234 blocks [0113-05:09:38] 成功以大小 [1356737254] 打包 [system.img] [EXT] 文件系统 [0113-05:09:38] 以[EXT]文件系统打包[product.img]大小[3785734858] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 1750 entries Add [product['0', '0', '0755']] Add [product/app/MiuiBiometric['0', '0', '0755']] Add [product/app/MiuiBiometric/oat['0', '0', '0755']] Add [product/app/MiuiBiometric/MiuiBiometric.apk['0', '0', '0644']] Add [product/app/MiuiBiometric/oat/arm64['0', '0', '0755']] Add [product/app/MiuiBiometric/oat/arm64/MiuiBiometric.odex['0', '0', '0644']] Add [product/app/MiuiBiometric/oat/arm64/MiuiBiometric.vdex['0', '0', '0644']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15['0', '0', '0755']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk['0', '0', '0644']] Add [product/etc/device_features/umi.xml['0', '0', '0644']] Add [product/etc/displayconfig/display_id_4630946545580055169.xml['0', '0', '0644']] Add [product/etc/displayconfig/display_id_4630947134992368257.xml['0', '0', '0644']] FsPatcher: Add 12 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 1751 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/MiuiBiometric.apk ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64 ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64/MiuiBiometric.odex ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64/MiuiBiometric.vdex ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk ['u:object_r:system_file:s0']] ADD [/product/etc/device_features/umi.xml ['u:object_r:system_file:s0']] ADD [/product/etc/displayconfig/display_id_4630946545580055169.xml ['u:object_r:system_file:s0']] ADD [/product/etc/displayconfig/display_id_4630947134992368257.xml ['u:object_r:system_file:s0']] ContextPatcher: Add 12 entries Done! loaded 1699 fs_config entries Creating filesystem with parameters: Size: 3785732096 Block size: 4096 Blocks per group: 32768 Inodes per group: 7968 Inode size: 256 Journal blocks: 0 Label: product Blocks: 924251 Block groups: 29 Reserved block group size: 231 Created filesystem with 1707/231072 inodes and 916312/924251 blocks [0113-05:13:52] 成功以大小 [3785734858] 打包 [product.img] [EXT] 文件系统 [0113-05:13:52] 以[EXT]文件系统打包[system_ext.img]大小[845958640] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 2796 entries Add [system_ext['0', '0', '0755']] Add [system_ext/apex/com.android.vndk.v30.apex['0', '0', '0644']] FsPatcher: Add 2 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 2797 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/system_ext/apex/com.android.vndk.v30.apex ['u:object_r:system_file:s0']] ContextPatcher: Add 2 entries Done! loaded 2797 fs_config entries Creating filesystem with parameters: Size: 845955072 Block size: 4096 Blocks per group: 32768 Inodes per group: 7392 Inode size: 256 Journal blocks: 0 Label: system_ext Blocks: 206532 Block groups: 7 Reserved block group size: 55 Created filesystem with 2805/51744 inodes and 191119/206532 blocks [0113-05:14:25] 成功以大小 [845958640] 打包 [system_ext.img] [EXT] 文件系统 [0113-05:14:25] 打包A-only super.img [0113-05:14:25] Super 子分区 [odm] 大小 [35512320] [0113-05:14:25] Super 子分区 [mi_ext] 大小 [4460544] [0113-05:14:25] Super 子分区 [system] 大小 [1356734464] [0113-05:14:25] Super 子分区 [system_ext] 大小 [845955072] [0113-05:14:25] Super 子分区 [product] 大小 [3785732096] [0113-05:14:26] Super 子分区 [vendor] 大小 [2026467328] lpmake I 01-13 05:14:26 6497 56324 builder.cpp:1093] [liblp] Partition odm will resize from 0 bytes to 35512320 bytes lpmake I 01-13 05:14:26 6497 56324 builder.cpp:1093] [liblp] Partition mi_ext will resize from 0 bytes to 4460544 bytes lpmake I 01-13 05:14:26 6497 56324 builder.cpp:1093] [liblp] Partition system will resize from 0 bytes to 1356734464 bytes lpmake I 01-13 05:14:26 6497 56324 builder.cpp:1093] [liblp] Partition system_ext will resize from 0 bytes to 845955072 bytes lpmake I 01-13 05:14:26 6497 56324 builder.cpp:1093] [liblp] Partition product will resize from 0 bytes to 3785732096 bytes lpmake I 01-13 05:14:26 6497 56324 builder.cpp:1093] [liblp] Partition vendor will resize from 0 bytes to 2026467328 bytes Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic [0113-05:21:17] 成功打包 super.img [0113-05:21:19] 正在压缩 super.img build/portrom/images/super.img : 44.80% ( 8.50 GiB => 3.81 GiB, build/portrom/images/super.zst) [0113-05:24:51] 正在生成刷机脚本 ./port.sh: line 1240: busybox: command not found adding: META-INF/ (stored 0%) adding: META-INF/zstd (deflated 56%) adding: META-INF/com/ (stored 0%) adding: META-INF/com/google/ (stored 0%) adding: META-INF/com/google/android/ (stored 0%) adding: META-INF/com/google/android/update-binary (deflated 70%) adding: bin/ (stored 0%) adding: bin/windows/ (stored 0%) adding: bin/windows/sqlite3.exe (deflated 46%) adding: bin/windows/cut.exe (deflated 41%) adding: bin/windows/libwinpthread-1.dll (deflated 67%) adding: bin/windows/AdbWinUsbApi.dll (deflated 49%) adding: bin/windows/awk.exe (deflated 41%) adding: bin/windows/dmtracedump.exe (deflated 58%) adding: bin/windows/make_f2fs.exe (deflated 53%) adding: bin/windows/mke2fs.exe (deflated 49%) adding: bin/windows/hprof-conv.exe (deflated 46%) adding: bin/windows/source.properties (stored 0%) adding: bin/windows/etc1tool.exe (deflated 50%) adding: bin/windows/mke2fs.conf (deflated 67%) adding: bin/windows/adb.exe (deflated 53%) adding: bin/windows/AdbWinApi.dll (deflated 49%) adding: bin/windows/NOTICE.txt (deflated 78%) adding: bin/windows/fastboot.exe (deflated 55%) adding: bin/windows/curl.exe (deflated 54%) adding: bin/windows/make_f2fs_casefold.exe (deflated 53%) adding: bin/windows/zstd.exe (deflated 60%) adding: boot_infiniR.img (deflated 15%) adding: boot_official.img (deflated 80%) adding: firmware-update/ (stored 0%) adding: firmware-update/NON-HLOS.bin (deflated 57%) adding: firmware-update/aop.mbn (deflated 53%) adding: firmware-update/dspso.bin (deflated 84%) adding: firmware-update/abl.elf (deflated 19%) adding: firmware-update/km4.mbn (deflated 58%) adding: firmware-update/qupv3fw.elf (deflated 67%) adding: firmware-update/vbmeta.img (deflated 79%) adding: firmware-update/xbl_config_5.elf (deflated 75%) adding: firmware-update/xbl_4.elf (deflated 19%) adding: firmware-update/xbl_5.elf (deflated 19%) adding: firmware-update/xbl_config_4.elf (deflated 76%) adding: firmware-update/logo.img (deflated 100%) adding: firmware-update/hyp.mbn (deflated 67%) adding: firmware-update/uefi_sec.mbn (deflated 57%) adding: firmware-update/cmnlib.mbn (deflated 41%) adding: firmware-update/dtbo.img (deflated 94%) adding: firmware-update/devcfg.mbn (deflated 65%) adding: firmware-update/storsec.mbn (deflated 62%) adding: firmware-update/tz.mbn (deflated 65%) adding: firmware-update/BTFM.bin (deflated 47%) adding: firmware-update/vbmeta_system.img (deflated 64%) adding: firmware-update/featenabler.mbn (deflated 66%) adding: firmware-update/cmnlib64.mbn (deflated 52%) adding: mac_linux_flash_script.sh (deflated 69%) adding: super.zst (deflated 0%) adding: windows_flash_script.bat (deflated 67%) [0113-05:28:47] 移植完毕 [0113-05:28:47] 输出包路径: [0113-05:28:47] /Users/macos/Desktop/hyperos_port/out/hyperos_UMI_OS1.0.24.1.3.DEV_14741ae8c7_14_shennong_01130527_EXT.zip

guoyujie666 commented 7 months ago

Snipaste_2024-01-14_10-35-17

toraidl commented 7 months ago

这种情况不好判断,你可以是不是注释掉所有对系统框架apk,jar的修改,看能否正常启动,来排除apktool问题。

tosasitill commented 7 months ago

是的 我就是这样去除之后排查出来的

toraidl commented 7 months ago

是的 我就是这样去除之后排查出来的

所以是apktool修改servicea.jar导致的?

tosasitill commented 7 months ago

是的 我上传两个jar你看看 local是本地macos cloud是ubuntu github action JAr.zip

toraidl commented 7 months ago

是的 我上传两个jar你看看 local是本地macos cloud是ubuntu github action JAr.zip

这个是哪个版本的services.jar? 24.1.8.dev么?

tosasitill commented 7 months ago

是的 我上传两个jar你看看 local是本地macos cloud是ubuntu github action JAr.zip

这个是哪个版本的services.jar? 24.1.8.dev么?

是 1.8的thor 12su的

toraidl commented 7 months ago

image 试了下,卡第二屏,日志提示: W zygote64: Can't mmap dex file /system/framework/services.jar!classes.dex directly; please zipalign to 4 bytes. Falling back to extracting file. 我试试zipalign一下你发的cloud_services.jar能否正常启动。

toraidl commented 7 months ago

zipalign 后仍然不能正常启动,BC对比了下,两个文件内容一模一样。 暂时不确定是啥原因导致的

guoyujie666 commented 7 months ago

那这么说把修改部分给注释就能启动了吗

toraidl commented 7 months ago

@tosasitill 替换apktool为smali和baksmali了,你可以试下

toraidl commented 7 months ago

那这么说把修改部分给注释就能启动了吗

脚本更新了下,你可以试试。

guoyujie666 commented 7 months ago

又遇到brotli的坑,又得重新下

guoyujie666 commented 7 months ago

macos@macOSdeMac hyperos_port % sudo ./port.sh ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip ../miui_SHENNONG_OS1.0.24.1.11.DEV_0255df605a_14.0.zip Password: [0119-03:52:42] 检测到Mac,设置alias [0119-03:52:42] 底包: ../miui_UMI_V14.0.4.0.TJBCNXM_23fc5ef4ee_13.0_2.zip [0119-03:52:42] 移植包: ../miui_SHENNONG_OS1.0.24.1.11.DEV_0255df605a_14.0.zip [0119-03:52:42] 正在检测ROM底包 [0119-03:52:42] 开始检测ROM移植包 [0119-03:52:42] ROM初步检测通过 [0119-03:52:42] ROM初步检测通过 [0119-03:52:42] 正在清理文件 [0119-03:52:50] 文件清理完毕 [0119-03:52:50] 正在提取底包 [new.dat.br] [0119-03:55:58] 底包 [new.dat.br] 提取完毕 [0119-03:55:58] 正在提取移植包 [payload.bin] [0119-03:59:57] 移植包 [payload.bin] 提取完毕 [0119-03:59:57] 开始分解底包 [new.dat.br] [0119-04:07:00] 正在分解底包 system.img [ext] [0119-04:07:48] 分解底包 [system.img] 完成 [0119-04:07:48] 正在分解底包 system_ext.img [ext] [0119-04:08:02] 分解底包 [system_ext.img] 完成 [0119-04:08:02] 正在分解底包 product.img [ext] [0119-04:11:01] 分解底包 [product.img] 完成 [0119-04:11:02] 正在分解底包 mi_ext.img [ext] [0119-04:11:04] 分解底包 [mi_ext.img] 完成 [0119-04:12:02] 开始提取逻辑分区镜像 vendor mi_ext odm system product system_ext [0119-04:12:02] 从底包中提取 [vendor]分区 ... [0119-04:12:02] 开始提取 vendor.img [0119-04:12:46] 提取 [vendor] [ext]镜像完毕 [0119-04:12:46] payload.bin 提取 [mi_ext] 分区... [0119-04:12:46] 开始提取 mi_ext.img [0119-04:12:46] 移植包为 [erofs] 文件系统 [0119-04:12:46] 提取移植包[mi_ext] [erofs]镜像完毕 [0119-04:12:46] 从底包中提取 [odm]分区 ... [0119-04:12:46] 开始提取 odm.img [0119-04:12:47] 提取 [odm] [ext]镜像完毕 [0119-04:12:47] payload.bin 提取 [system] 分区... [0119-04:13:19] 开始提取 system.img [0119-04:13:19] 移植包为 [erofs] 文件系统 [0119-04:13:43] 提取移植包[system] [erofs]镜像完毕 [0119-04:13:43] payload.bin 提取 [product] 分区... [0119-04:15:47] 开始提取 product.img [0119-04:15:47] 移植包为 [erofs] 文件系统 [0119-04:18:07] 提取移植包[product] [erofs]镜像完毕 [0119-04:18:07] payload.bin 提取 [system_ext] 分区... [0119-04:18:23] 开始提取 system_ext.img [0119-04:18:23] 移植包为 [erofs] 文件系统 [0119-04:18:32] 提取移植包[system_ext] [erofs]镜像完毕 [0119-04:18:33] 正在获取ROM参数 [0119-04:18:35] 安卓版本: 底包为[Android 13], 移植包为 [Android 14] [0119-04:18:35] SDK 版本: 底包为 [SDK 30], 移植包为 [SDK 34] [0119-04:18:36] 检测到开发板,跳过修改版本代码 [0119-04:18:36] ROM 版本: 底包为 [V14.0.4.0.TJBCNXM], 移植包为 [OS1.0.24.1.11.DEV] [0119-04:18:36] 机型代号: 底包为 [umi], 移植包为 [shennong] [0119-04:18:37] 正在替换 [AospFrameworkResOverlay.apk] [0119-04:18:38] 正在替换 [MiuiFrameworkResOverlay.apk] [0119-04:18:38] 正在替换 [DevicesAndroidOverlay.apk] [0119-04:18:38] 正在替换 [DevicesOverlay.apk] [0119-04:18:39] 正在替换 [SettingsRroDeviceHideStatusBarOverlay.apk] [0119-04:18:39] Copying device_features [0119-04:18:39] 未找到MiuiBiometric,替换为原包 [0119-04:18:40] 修复息屏和屏下指纹问题 tmp/DevicesAndroidOverlay.apk -> build/portrom/images/product/overlay/DevicesAndroidOverlay.apk [0119-04:18:52] ro.vndk.version为30 [0119-04:18:52] apex不存在,从原包复制 [0119-04:18:55] 添加成功 [0119-04:18:55] 左侧挖孔灵动岛修复 [0119-04:18:57] 正在修改 MiuiSystemUI.apk [0119-04:19:10] I: 开始patch目标 classes [0119-04:19:19] 修补MiuiSystemUI.apk 完成 [0119-04:19:19] 检测到apk,进行zipalign处理。。 [0119-04:19:19] apk zipalign处理完成 [0119-04:19:19] 复制APK到目标位置:build/portrom/images/system_ext/priv-app/MiuiSystemUI/MiuiSystemUI.apk [0119-04:19:19] 开始移除 Android 签名校验 [0119-04:20:16] tmp/services/classes2/com/android/server/pm/ApexManager$ApexManagerImpl.smali 修改成功 [0119-04:20:16] tmp/services/classes2/com/android/server/pm/ScanPackageUtils.smali 修改成功 [0119-04:20:16] tmp/services/classes2/com/android/server/pm/PackageSessionVerifier.smali 修改成功 [0119-04:20:16] tmp/services/classes2/com/android/server/pm/pkg/parsing/ParsingPackageUtils.smali 修改成功 [0119-04:20:16] 反编译成功,开始回编译 classes2 tmp/services/services.jar -> build/portrom/images/system/system/framework/services.jar [0119-04:20:22] 删除多余的App [0119-04:20:22] 删除目录: build/portrom/images/product/app/MSA [0119-04:20:22] 删除目录: build/portrom/images/product/data-app/MIService [0119-04:20:22] 删除目录: build/portrom/images/product/app/SoterService [0119-04:20:22] 删除目录: build/portrom/images/product/app/HybridPlatform [0119-04:20:22] 删除目录: build/portrom/images/product/app/AnalyticsCore [0119-04:20:43] 正在修改 build.prop [0119-04:20:46] 正在处理 build/portrom/images/mi_ext/etc/build.prop [0119-04:20:46] 正在处理 build/portrom/images/product/etc/build.prop [0119-04:20:46] 正在处理 build/portrom/images/odm/etc/build.prop [0119-04:20:46] 正在处理 build/portrom/images/system/system/system_dlkm/etc/build.prop [0119-04:20:46] 正在处理 build/portrom/images/system/system/build.prop [0119-04:20:46] 正在处理 build/portrom/images/system_ext/etc/build.prop [0119-04:20:46] 正在处理 build/portrom/images/vendor/build.prop [0119-04:20:47] 底包屏幕密度值 440 [0119-04:20:47] 未找到ro.fs.lcd_density,build.prop新建一个值440 [0119-04:20:47] 修复Millet [0119-04:20:47] 找到ro.millet.netlink修改值为29 devices/common/overlay/system/system -> build/portrom/images/system/system devices/common/overlay/system/system/app -> build/portrom/images/system/system/app devices/common/overlay/system/system/app/NQNfcNci -> build/portrom/images/system/system/app/NQNfcNci devices/common/overlay/system/system/app/NQNfcNci/NQNfcNci.apk -> build/portrom/images/system/system/app/NQNfcNci/NQNfcNci.apk devices/common/overlay/system_ext/framework/com.nxp.nfc.nq.jar -> build/portrom/images/system_ext/framework/com.nxp.nfc.nq.jar devices/common/overlay/system_ext/framework/com.xiaomi.nfc.jar -> build/portrom/images/system_ext/framework/com.xiaomi.nfc.jar [0119-04:20:48] 替换相机为10S HyperOS A13 相机,MI10可用, thanks to 酷安 @PedroZ devices/common/overlay/product/priv-app/MiuiCamera/MiuiCamera.apk -> build/portrom/images/product/priv-app/MiuiCamera/MiuiCamera.apk [0119-04:20:49] 替换开机第二屏动画 devices/common/overlay/product/media/bootanimation_440.zip -> build/portrom/images/product/media/bootanimation.zip devices/common/overlay/product/app/MiLinkCirculateMIUI15 -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 devices/common/overlay/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk -> build/portrom/images/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk [0119-04:20:52] replace files in here [0119-04:20:52] 去除avb校验 [0119-04:20:52] Target: build/portrom/images//system/system/etc/fstab.postinstall [0119-04:20:52] Target: build/portrom/images//system_ext/etc/fstab.other [0119-04:20:53] Target: build/portrom/images//vendor/etc/fstab.qcom [0119-04:20:54] Super大小为9126805504 [0119-04:20:54] 开始打包镜像 [0119-04:20:55] 以[EXT]文件系统打包[vendor.img]大小[2026469866] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 3939 entries FsPatcher: Add 0 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 3940 entries ADD [/lost+found ['u:object_r:vendor_file:s0']] ADD [/vendor/ ['u:object_r:vendor_file:s0']] ContextPatcher: Add 2 entries Done! loaded 3938 fs_config entries Creating filesystem with parameters: Size: 2026467328 Block size: 4096 Blocks per group: 32768 Inodes per group: 7744 Inode size: 256 Journal blocks: 0 Label: vendor Blocks: 494743 Block groups: 16 Reserved block group size: 127 Created filesystem with 3946/123904 inodes and 484750/494743 blocks [0119-04:24:13] 成功以大小 [2026469866] 打包 [vendor.img] [EXT] 文件系统 [0119-04:24:13] 以[EXT]文件系统打包[mi_ext.img]大小[4461415] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 46 entries Add [mi_ext['0', '0', '0755']] FsPatcher: Add 1 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 47 entries ADD [/lost+found ['u:object_r:system_file:s0']] ContextPatcher: Add 1 entries Done! loaded 46 fs_config entries Creating filesystem with parameters: Size: 4460544 Block size: 4096 Blocks per group: 32768 Inodes per group: 272 Inode size: 256 Journal blocks: 0 Label: mi_ext Blocks: 1089 Block groups: 1 Reserved block group size: 7 Created filesystem with 54/272 inodes and 137/1089 blocks [0119-04:24:14] 成功以大小 [4461415] 打包 [mi_ext.img] [EXT] 文件系统 [0119-04:24:14] 以[EXT]文件系统打包[odm.img]大小[35512512] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 24 entries FsPatcher: Add 0 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 25 entries ADD [/lost+found ['u:object_r:vendor_configs_file:s0']] ADD [/odm/ ['u:object_r:vendor_configs_file:s0']] ContextPatcher: Add 2 entries Done! loaded 24 fs_config entries Creating filesystem with parameters: Size: 35512320 Block size: 4096 Blocks per group: 32768 Inodes per group: 2176 Inode size: 256 Journal blocks: 0 Label: odm Blocks: 8670 Block groups: 1 Reserved block group size: 7 Created filesystem with 32/2176 inodes and 479/8670 blocks [0119-04:24:14] 成功以大小 [35512512] 打包 [odm.img] [EXT] 文件系统 [0119-04:24:17] 以[EXT]文件系统打包[system.img]大小[1366435762] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 4295 entries Add [system['0', '0', '0755']] Add [system/system/app/NQNfcNci['0', '0', '0755']] Add [system/system/app/NQNfcNci/NQNfcNci.apk['0', '0', '0644']] FsPatcher: Add 3 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 4296 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/system/system/app/NQNfcNci ['u:object_r:system_file:s0']] ADD [/system/system/app/NQNfcNci/NQNfcNci.apk ['u:object_r:system_file:s0']] ContextPatcher: Add 3 entries Done! loaded 4297 fs_config entries Creating filesystem with parameters: Size: 1366433792 Block size: 4096 Blocks per group: 32768 Inodes per group: 7584 Inode size: 256 Journal blocks: 0 Label: system Blocks: 333602 Block groups: 11 Reserved block group size: 87 Created filesystem with 4305/83424 inodes and 320999/333602 blocks [0119-04:27:06] 成功以大小 [1366435762] 打包 [system.img] [EXT] 文件系统 [0119-04:27:06] 以[EXT]文件系统打包[product.img]大小[3867722695] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 1750 entries Add [product['0', '0', '0755']] Add [product/app/MiuiBiometric['0', '0', '0755']] Add [product/app/MiuiBiometric/oat['0', '0', '0755']] Add [product/app/MiuiBiometric/MiuiBiometric.apk['0', '0', '0644']] Add [product/app/MiuiBiometric/oat/arm64['0', '0', '0755']] Add [product/app/MiuiBiometric/oat/arm64/MiuiBiometric.odex['0', '0', '0644']] Add [product/app/MiuiBiometric/oat/arm64/MiuiBiometric.vdex['0', '0', '0644']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15['0', '0', '0755']] Add [product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk['0', '0', '0644']] Add [product/etc/device_features/umi.xml['0', '0', '0644']] Add [product/etc/displayconfig/display_id_4630946545580055169.xml['0', '0', '0644']] Add [product/etc/displayconfig/display_id_4630947134992368257.xml['0', '0', '0644']] FsPatcher: Add 12 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 1751 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/MiuiBiometric.apk ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64 ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64/MiuiBiometric.odex ['u:object_r:system_file:s0']] ADD [/product/app/MiuiBiometric/oat/arm64/MiuiBiometric.vdex ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15 ['u:object_r:system_file:s0']] ADD [/product/app/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15/MiLinkCirculateMIUI15.apk ['u:object_r:system_file:s0']] ADD [/product/etc/device_features/umi.xml ['u:object_r:system_file:s0']] ADD [/product/etc/displayconfig/display_id_4630946545580055169.xml ['u:object_r:system_file:s0']] ADD [/product/etc/displayconfig/display_id_4630947134992368257.xml ['u:object_r:system_file:s0']] ContextPatcher: Add 12 entries Done! loaded 1707 fs_config entries Creating filesystem with parameters: Size: 3867721728 Block size: 4096 Blocks per group: 32768 Inodes per group: 8144 Inode size: 256 Journal blocks: 0 Label: product Blocks: 944268 Block groups: 29 Reserved block group size: 231 Created filesystem with 1715/236176 inodes and 936653/944268 blocks [0119-04:29:39] 成功以大小 [3867722695] 打包 [product.img] [EXT] 文件系统 [0119-04:29:41] 以[EXT]文件系统打包[system_ext.img]大小[845953482] FSPATCH by [affggh] LICENES [Apache 2.0] VERSION [1.0] FsPatcher: Load origin 2796 entries Add [system_ext['0', '0', '0755']] Add [system_ext/apex/com.android.vndk.v30.apex['0', '0', '0644']] FsPatcher: Add 2 entries Done! CONTEXTPATCH by [ColdWindScholar]

VERSION [1.0] ContextPatcher: Load origin 2797 entries ADD [/lost+found ['u:object_r:system_file:s0']] ADD [/system_ext/apex/com.android.vndk.v30.apex ['u:object_r:system_file:s0']] ContextPatcher: Add 2 entries Done! loaded 2797 fs_config entries Creating filesystem with parameters: Size: 845950976 Block size: 4096 Blocks per group: 32768 Inodes per group: 7376 Inode size: 256 Journal blocks: 0 Label: system_ext Blocks: 206531 Block groups: 7 Reserved block group size: 55 Created filesystem with 2805/51632 inodes and 191111/206531 blocks [0119-04:30:13] 成功以大小 [845953482] 打包 [system_ext.img] [EXT] 文件系统 [0119-04:30:13] 打包A-only super.img [0119-04:30:13] Super 子分区 [odm] 大小 [35512320] [0119-04:30:13] Super 子分区 [mi_ext] 大小 [4460544] [0119-04:30:13] Super 子分区 [system] 大小 [1366433792] [0119-04:30:13] Super 子分区 [system_ext] 大小 [845950976] [0119-04:30:13] Super 子分区 [product] 大小 [3867721728] [0119-04:30:13] Super 子分区 [vendor] 大小 [2026467328] lpmake I 01-19 04:30:13 38664 273815 builder.cpp:1093] [liblp] Partition odm will resize from 0 bytes to 35512320 bytes lpmake I 01-19 04:30:13 38664 273815 builder.cpp:1093] [liblp] Partition mi_ext will resize from 0 bytes to 4460544 bytes lpmake I 01-19 04:30:13 38664 273815 builder.cpp:1093] [liblp] Partition system will resize from 0 bytes to 1366433792 bytes lpmake I 01-19 04:30:13 38664 273815 builder.cpp:1093] [liblp] Partition system_ext will resize from 0 bytes to 845950976 bytes lpmake I 01-19 04:30:13 38664 273815 builder.cpp:1093] [liblp] Partition product will resize from 0 bytes to 3867721728 bytes lpmake I 01-19 04:30:13 38664 273815 builder.cpp:1093] [liblp] Partition vendor will resize from 0 bytes to 2026467328 bytes Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic Invalid sparse file format at header magic [0119-04:37:10] 成功打包 super.img [0119-04:37:11] 正在压缩 super.img build/portrom/images/super.img : 45.47% ( 8.50 GiB => 3.87 GiB, build/portrom/images/super.zst) [0119-04:40:32] 正在生成刷机脚本 ./port.sh: line 1280: busybox: command not found adding: META-INF/ (stored 0%) adding: META-INF/zstd (deflated 56%) adding: META-INF/com/ (stored 0%) adding: META-INF/com/google/ (stored 0%) adding: META-INF/com/google/android/ (stored 0%) adding: META-INF/com/google/android/update-binary (deflated 70%) adding: bin/ (stored 0%) adding: bin/windows/ (stored 0%) adding: bin/windows/sqlite3.exe (deflated 46%) adding: bin/windows/cut.exe (deflated 41%) adding: bin/windows/libwinpthread-1.dll (deflated 67%) adding: bin/windows/AdbWinUsbApi.dll (deflated 49%) adding: bin/windows/awk.exe (deflated 41%) adding: bin/windows/dmtracedump.exe (deflated 58%) adding: bin/windows/make_f2fs.exe (deflated 53%) adding: bin/windows/mke2fs.exe (deflated 49%) adding: bin/windows/hprof-conv.exe (deflated 46%) adding: bin/windows/source.properties (stored 0%) adding: bin/windows/etc1tool.exe (deflated 50%) adding: bin/windows/mke2fs.conf (deflated 67%) adding: bin/windows/adb.exe (deflated 53%) adding: bin/windows/AdbWinApi.dll (deflated 49%) adding: bin/windows/NOTICE.txt (deflated 78%) adding: bin/windows/fastboot.exe (deflated 55%) adding: bin/windows/curl.exe (deflated 54%) adding: bin/windows/make_f2fs_casefold.exe (deflated 53%) adding: bin/windows/zstd.exe (deflated 60%) adding: boot_official.img (deflated 80%) adding: firmware-update/ (stored 0%) adding: firmware-update/NON-HLOS.bin (deflated 57%) adding: firmware-update/aop.mbn (deflated 53%) adding: firmware-update/dspso.bin (deflated 84%) adding: firmware-update/abl.elf (deflated 19%) adding: firmware-update/km4.mbn (deflated 58%) adding: firmware-update/qupv3fw.elf (deflated 67%) adding: firmware-update/vbmeta.img (deflated 79%) adding: firmware-update/xbl_config_5.elf (deflated 75%) adding: firmware-update/xbl_4.elf (deflated 19%) adding: firmware-update/xbl_5.elf (deflated 19%) adding: firmware-update/xbl_config_4.elf (deflated 76%) adding: firmware-update/logo.img (deflated 100%) adding: firmware-update/hyp.mbn (deflated 67%) adding: firmware-update/uefi_sec.mbn (deflated 57%) adding: firmware-update/cmnlib.mbn (deflated 41%) adding: firmware-update/dtbo.img (deflated 94%) adding: firmware-update/devcfg.mbn (deflated 65%) adding: firmware-update/storsec.mbn (deflated 62%) adding: firmware-update/tz.mbn (deflated 65%) adding: firmware-update/BTFM.bin (deflated 47%) adding: firmware-update/vbmeta_system.img (deflated 64%) adding: firmware-update/featenabler.mbn (deflated 66%) adding: firmware-update/cmnlib64.mbn (deflated 52%) adding: mac_linux_flash_script.sh (deflated 69%) adding: super.zst (deflated 0%) adding: windows_flash_script.bat (deflated 67%) [0119-04:44:47] 移植完毕 [0119-04:44:47] 输出包路径: [0119-04:44:47] /Users/macos/Desktop/hyperos_port/out/hyperos_UMI_OS1.0.24.1.11.DEV_93ae3f3d20_14_shennong_01190443_EXT.zip macos@macOSdeMac hyperos_port %

guoyujie666 commented 7 months ago

刷入直接重启进rec

tosasitill commented 7 months ago

@tosasitill 替换apktool为smali和baksmali了,你可以试下

牛啊牛啊 我试试

tosasitill commented 7 months ago

刷入直接重启进rec

说明services.jar没问题了 你可以看看你的移植操作有没有什么问题

guoyujie666 commented 7 months ago

会不会是因为我刷完之后就刷了面具

guoyujie666 commented 7 months ago

但是他重启之后第一屏,再等一下重启就进rec了

toraidl commented 7 months ago

但是他重启之后第一屏,再等一下重启就进rec了

试试不刷面具?

guoyujie666 commented 7 months ago

试试 //续航不行了想换个电池好贵

guoyujie666 commented 7 months ago

成功的 进入了rec

toraidl commented 7 months ago

sed -i -e '$a\'$'\n''persist.sys.disable_rescue=true' build/portrom/images/system/system/build.prop

取消这行的注释试试 昨天的提交有点问题,修复了下

guoyujie666 commented 7 months ago

又成功的 进了rec

guoyujie666 commented 7 months ago

怎么说 没刷面具这回

tosasitill commented 7 months ago

@tosasitill 替换apktool为smali和baksmali了,你可以试下

OK了 ubuntu正常打包 action打包太爽了

Screenshot_2024-01-20-22-36-45-593_net imknown android forefrontinfo

guoyujie666 commented 7 months ago

可是用不了啊

tosasitill commented 7 months ago

你自己检查一下命令 先别用工具 自己手动看看需要什么操作进行删减增补

可是用不了啊

guoyujie666 commented 7 months ago

那可以帮我编一个吗

toraidl commented 7 months ago

那可以帮我编一个吗

建议直接用现成的,小米10免费的包那么多。

guoyujie666 commented 7 months ago

不好,想自己编,主要是更新快

tosasitill commented 7 months ago

不好,想自己编,主要是更新快

那你就自己琢磨啊😂

guoyujie666 commented 7 months ago

那琢磨不出来啊