coldwindscholar / tik Goto Github PK
View Code? Open in Web Editor NEW开源的安卓全版本ROM处理工具
License: GNU General Public License v3.0
开源的安卓全版本ROM处理工具
License: GNU General Public License v3.0
请问能适配下三星的 super.img 吗?三星的 super.img 好像比较特殊,在 sparse image 转为 raw image 就会出错,转换后的镜像文件会提示未知格式
希望新增解打包“.bin”格式的ROM文件,“.bin”格式常用于各类电视机的系统刷写,这些刷机包通常内置了许多流氓软件,需要精简。
使用3.0老版本时能正常解包,使用该新版本时,转换后变成了未知格式,无法继续解包[NEED SS OR LOG]
按照提示编译的时候提示语法无法,是我python版本不对?
$ ython3 --version
Python 3.6.9
$ uname -a
Linux MACHC-WAX9 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Issue:
$ python3 run.py
Output:
File "run.py", line 144
"1": lambda: settings.change('brcom', brcom if (brcom := input(
^
SyntaxError: invalid syntax
你好。使用TIK4和TIK5解包system_b.img显示失败。麻烦看看什么问题,谢谢。
注:使用7zip打开system_b.img显示里面只有一个system_b文件。
[1]- product_a.img
[2]- super.img
[3]- system_a.img
[4]- system_b.img
[5]- system_ext_a.img
[6]- vendor_a.img
请输入对应序号:4
[18:40:34][img]解包system_b.img中...
[18:40:34][erofs]解包system_b.img中...
erofs: bogus i_mode (117202) @ nid 308864
Extract: failed to initialize ErofsNode!
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ERROR:Exception ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Describe:Binary not found │
│ May Not Support Your Device? │
│ Lines:136 Module:main │
├──────────────────────────────────────────────────────┤
│ Platform:arm64 System:Darwin 23.2.0 │
│ Python:3.11.2 Tool Version:Unknown │
├──────────────────────────────────────────────────────┤
│ Report:https://github.com/ColdWindScholar/TIK/issues │
└──────────────────────────────────────────────────────┘
分解
请将文件放于/home/bruce/TIK4/TI_umi_port根目录下!
[0]- 分解所有文件
[Img]文件
[1]- vendor.img
[2]- system_ext.img
[3]- product.img
[4]- odm.img
[5]- system.img
[6]- mi_ext.img
请输入对应序号:1
[11:17:48][img]解包vendor.img中...
[11:17:48][erofs]解包vendor.img中...
Extract: Starting...
erofs: failed to create directory: /home/bruce/TIK4/TI_umi_port/vendor/apex (No such file or directory)
大神你好,
在运行程序前, 所有文件都赋权777, 用sudo权限运行(也尝试过sudo -i,直接用su用户运行 )。 解包时会遇到这个报错。
不管是下载打包好的程序, 或者直接git clone 运行,都会卡在这里。
望指教,谢谢。
在遇到该格式的 img 时,貌似无法识别并提取
反馈一个 BUG,在卡刷一体包封装时,会将 super 与 modem 镜像转为 zst 格式,然后脚本刷入时,线刷解压 modem.img.zst 并刷入时会报错
ERROR:FileNotFoundError
[Errno 2] No such file or directory: 'D:\Users\88058\Desktop\1\TIK-5-122-win_2\1\\config\dtbinfo_uboot'
您好,我想问一下,可以打包product镜像吗,为什么在现在的版本中,打包选项里,没有看到此项打包
vab 机型,解包后得到对应的 img,比如 system_a.img,但是将它们打包到 super.img 时,我需要将 system_a.img 改为 system.img,这样才能正常刷入,包括其它 img 也是
大佬帮忙看下这是啥问题
/TIK# python3.11 build.py
______ ______ __ __ __ __
/\__ _\/\__ _\ /\ \/\ \ /\ \\ \
\/_/\ \/\/_/\ \/ \ \ \/'/'\ \ \\ \
\ \ \ \ \ \ \ \ , < \ \ \\ \_
\ \ \ \_\ \__\ \ \\`\ \ \__ ,__\
\ \_\ /\_____\\ \_\ \_\\/_/\_\_/
\/_/ \/_____/ \/_/\/_/ \/_/
Build for Linux
Installing extract-dtb
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: extract-dtb in /var/packages/python311/target/lib/python3.11/site-packages (1.2.3)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing pyinstaller
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pyinstaller in /var/packages/python311/target/lib/python3.11/site-packages (6.6.0)
Requirement already satisfied: setuptools>=42.0.0 in /var/packages/python311/target/lib/python3.11/site-packages (from pyinstaller) (68.1.2)
Requirement already satisfied: altgraph in /var/packages/python311/target/lib/python3.11/site-packages (from pyinstaller) (0.17.4)
Requirement already satisfied: pyinstaller-hooks-contrib>=2024.3 in /var/packages/python311/target/lib/python3.11/site-packages (from pyinstaller) (2024.4)
Requirement already satisfied: packaging>=22.0 in /var/packages/python311/target/lib/python3.11/site-packages (from pyinstaller) (24.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing pycryptodome
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pycryptodome in /var/packages/python311/target/lib/python3.11/site-packages (3.20.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing Requests
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: Requests in /var/packages/python311/target/lib/python3.11/site-packages (2.31.0)
Requirement already satisfied: charset-normalizer<4,>=2 in /var/packages/python311/target/lib/python3.11/site-packages (from Requests) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in /var/packages/python311/target/lib/python3.11/site-packages (from Requests) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in /var/packages/python311/target/lib/python3.11/site-packages (from Requests) (2.2.1)
Requirement already satisfied: certifi>=2017.4.17 in /var/packages/python311/target/lib/python3.11/site-packages (from Requests) (2023.11.17)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing rich
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: rich in /var/packages/python311/target/lib/python3.11/site-packages (13.7.1)
Requirement already satisfied: markdown-it-py>=2.2.0 in /var/packages/python311/target/lib/python3.11/site-packages (from rich) (3.0.0)
Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /var/packages/python311/target/lib/python3.11/site-packages (from rich) (2.17.2)
Requirement already satisfied: mdurl~=0.1 in /var/packages/python311/target/lib/python3.11/site-packages (from markdown-it-py>=2.2.0->rich) (0.1.2)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing lxml
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: lxml in /var/packages/python311/target/lib/python3.11/site-packages (5.2.1)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Traceback (most recent call last):
File "/volume3/TIK/build.py", line 48, in <module>
import PyInstaller.__main__
File "/var/packages/python311/target/lib/python3.11/site-packages/PyInstaller/__init__.py", line 17, in <module>
from PyInstaller import compat
File "/var/packages/python311/target/lib/python3.11/site-packages/PyInstaller/compat.py", line 95, in <module>
is_musl = is_linux and "musl" in subprocess.run(["ldd"], capture_output=True, encoding="utf-8").stderr
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/python311/target/lib/python3.11/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/packages/python311/target/lib/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/var/packages/python311/target/lib/python3.11/subprocess.py", line 1950, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ldd'
提示未知格式
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.