Giter VIP home page Giter VIP logo

tik's Introduction

TIK

介绍


Caution

此项目非发布在gitcode, 如果您在gitcode发现此项目,请联系我们并保留截图证据


Caution

免费软件, 未经允许禁止商用 | Free software, unauthorized commercial use prohibited

Русский

  1. TIK工具箱 】 ——一个永久开源的ROM工具箱,支持安卓全版本ROM镜像的处理,目前更新到Ver.5;

  2. 已支持大多常见镜像的分解/打包,较完善支持erofs/V-AB分区等

  3. 新增设置功能-调整交互习惯、打包行为

  4. 测试支持Android15中...

  5. 全新MKC_Boot_Kitchen解打[boot|exaid|recovery/etc].img

  6. 支持分解全版本super.img(V-AB)支持各种类型打包(半自动识别,高效稳定)

支持

识别分解 打包支持

  1. 【 *.zip, *.br, *.dat, ext4/2 *.img, bootimg 等】传统镜像识别-分解-打包
  2. 【 Super.img <A-onloy/AB/V-AB>, bootimg, erofs *.img, F2FS(本工具LINUX 64BIT版本支持) 等】较新镜像识别-分解-打包
  3. 【 dtbo,dtb , TWRP, ops, ofp, ozip, payload.bin, *.win000-004, *.dat.1~20等】特殊文件的解包/打包
  4. 较完善适配最新 安卓14 Erofs 动态分区 V-AB分区

软件架构 同时支持

  1. 手机 Termux Arm64[aarch64] 原生支持 或者 [/Termux] Chroot Ubuntu 20.04及以上版本 Arm64[aarch64] 【推荐chroot,效率更高】

  2. 虚拟机或实体机 Ubuntu 20.04及以上版本 x86_64[x64]

3.Windows 7 and Newer[x64/x86]

Note: WSL 可能存在权限出错的问题 请自行判断测试!

引用项目

  1. ApkParse
  2. sdat2img
  3. img2sdat
  4. make_ext4fs
  5. oppo_decrypt
  6. lpunpack
  7. brotli
  8. rich
  9. context_patch
  10. erofs-utils
  11. Magisk_Patch_Python
  12. And More...

合作伙伴

  1. Sakura
  2. Affggh
  3. Yeliqin666
  4. qlenlen - For F2FS REPACK

支持系统

  1. Android-(Termux) | ARM64
  2. Windows(7 AND NEWER) | AMD64 X86 ARM64
  3. Linux | ARM64 X86_64
  4. Macos | ARM64(by sewzj) X86_64

安装教程

git clone https://github.com/ColdWindScholar/TIK
cd TIK
chmod a+x ./*
python build.py
sudo ./run

使用说明

  1. Termux内所有操作尽量【 Warning 不要使用系统root功能 】, PC端需要root权限(sudo,其实不需要也行) 且最好不要在【root用户登录状态下】运行此工具,以免打包后刷入手机出现权限问题 !

  2. 关于Proot下选择文件 - 请将zip文件或mpk插件等放置在【 内置存储 工具资源目录 】,工具会自动查找(设置中可以修改)

  3. 手机端termux proot ubuntu下工具目录: 【/data/data/com.termux/files/home/ubuntu/root/TIK

  4. **请勿删除【工程目录/config文件夹】,打包时所需的文件信息都在此处,工具会自动修改大小以适配动态分区!(可自行调整)

  5. 由于手机性能、proot效率、工作模式( 如打包img前自动比对fs_config,不会立刻打包 )等原因工作时可能出现卡顿,保持耐心,等待片刻即可;

  6. 删除文件尽量在【Termux或proot ubuntu】执行 【rm -rf 文件、文件夹】 【 **不要使用系统root功能 ** 】

  7. 为保证工具正常运行,请保证强条件:工作路径中不得含有中文字符、空格,工程文件夹不得有空格或其他特殊符号 ,文件名不要过长!!!

  8. 动态分区不允许单刷其中的任何分区(除非在fastbootd下),具体请参见安卓文档

  9. 手机上使用工具时如果使用 系统ROOT 对工程目录下进行了操作(如: 添加文件,修改文件 ),请记得给操作过的文件或文件夹 777 满权!!!

  10. 关于一键生成“卡线一体包”的说明:个别厂商对一些分区有所限制,目前更推荐在fastbootd下进行刷入以维护super信息的完整性

参与维护途径

请发起PR,我们将会第一时间查看并处理,感谢所有为本项目提供支持的开发者/爱好者!

交流反馈

QQ群:932388310 开发者QQ群:777617022

免责声明

  1. 本工具在Termux proot环境中运行,不需要root权限 【 请在Termux中慎用系统root功能 】 !!!

  2. 此工具不含任何【破坏系统、获取数据】等其他不法代码 !!!

  3. 如果由于用户利用root权限对工具中的工程目录进行操作导致的数据丢失、损毁,不承担任何责任 !!!

ColdWindScholar([email protected]).All rights reserved.

tik's People

Contributors

cathgao avatar coldwindscholar avatar qlenlen avatar yeliqin666 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tik's Issues

【疑问】关于product打包

您好,我想问一下,可以打包product镜像吗,为什么在现在的版本中,打包选项里,没有看到此项打包

卡刷一体包封装的 BUG

反馈一个 BUG,在卡刷一体包封装时,会将 super 与 modem 镜像转为 zst 格式,然后脚本刷入时,线刷解压 modem.img.zst 并刷入时会报错

无法解包三星的 super.img

请问能适配下三星的 super.img 吗?三星的 super.img 好像比较特殊,在 sparse image 转为 raw image 就会出错,转换后的镜像文件会提示未知格式

请求优化打包逻辑

vab 机型,解包后得到对应的 img,比如 system_a.img,但是将它们打包到 super.img 时,我需要将 system_a.img 改为 system.img,这样才能正常刷入,包括其它 img 也是

安卓14解包system_b失败

你好。使用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

[00] 返回 [77] 循环解包

请输入对应序号: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!

解包 super.img 失败

使用3.0老版本时能正常解包,使用该新版本时,转换后变成了未知格式,无法继续解包[NEED SS OR LOG]

TIK-5.318-WIN中未加入payload-dumper-go

手动加入payload-dumper-go之前:
image
手动加入payload-dumper-go之后:
image
如图,代码中已经集成该功能,所以希望加入payload-dumper-go.exe,一步到位

Ubuntu 22.10/ Deepin 20, 解包HyperOS 镜像出错。

分解

请将文件放于/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

[00] 返回 [11] 循环解包

请输入对应序号: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 运行,都会卡在这里。
望指教,谢谢。

解压uboot失败

ERROR:FileNotFoundError
[Errno 2] No such file or directory: 'D:\Users\88058\Desktop\1\TIK-5-122-win_2\1\\config\dtbinfo_uboot'

uboot.zip

FileNotFoundError: [Errno 2] No such file or directory: 'ldd'

大佬帮忙看下这是啥问题

/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'

error mac

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ 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
└──────────────────────────────────────────────────────┘

run.py 144 行语法无效

按照提示编译的时候提示语法无法,是我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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.