Skip to content

Commit

Permalink
[Update] Fix ROM Unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Feb 6, 2024
1 parent c66ed7c commit 22a4b5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bin/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"diyimgtype": "1",
"online": "true",
"erofs_old_kernel": "0",
"version": "4.85"
"context":"true",
"version": "4.89"
}
8 changes: 6 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,8 @@ def settings3(self):
\033[33m > 工具设置 \033[0m\n
1>自定义首页banner \033[93m[{settings.banner}]\033[0m\n
2>联网模式 \033[93m[{settings.online}]\033[0m\n
3>检查更新 \n
3>Contexts修补 \033[93m[{settings.online}]\033[0m\n
4>检查更新 \n
0>返回上级\n
--------------------------
''')
Expand All @@ -350,6 +351,8 @@ def settings3(self):
elif op_pro == '2':
settings.change('online', 'false' if settings.online == 'true' else 'true')
elif op_pro == '3':
settings.change('context', 'false' if settings.context == 'true' else 'true')
elif op_pro == '4':
upgrade()
self.settings3()

Expand Down Expand Up @@ -1478,7 +1481,8 @@ def rdi(name_):
elif settings.diysize == '':
img_size0 = dirsize(in_files, 1, 3, project + os.sep + "dynamic_partitions_op_list").rsize_v
fspatch.main(in_files, fs_config)
contextpatch.main(in_files, file_contexts)
if settings.context == 'true':
contextpatch.main(in_files, file_contexts)
utils.qc(fs_config)
utils.qc(file_contexts)
size = img_size0 / int(settings.BLOCKSIZE)
Expand Down

0 comments on commit 22a4b5b

Please sign in to comment.