Code Monkey home page Code Monkey logo

d.n.a3's Introduction

D.N.A

测试版DNA3已发布

介绍

  1. 全称:安卓一般固件解包打包助手【 Droid Normal Assistant 】 简称: D.N.A

  2. 支持常见格式【 *.zip, *.br, *.dat, *.dat.1~20, ext4/2 *.img, payload.bin, *.win000-004 】,只认后缀,任意名称!

  3. 支持安卓5.0+解包,支持安卓11 vendor.img 解包

  4. 支持安卓 [5.0+] 【非动态分区、动态分区】 打包,由于没有动态机子,未进行刷入测试 ----2020.12.20

  5. 支持合并分段*.dat.*,最大支持20个(1~20 看了几个vivo rom,通常为15个分段文件,多了影响解包速度)

  6. 支持分解payload.bin,解开bin后自动查找所有ext2/4镜像再次进行分解,一步到位 !!!

  7. 支持分解TWRP备份文件(data除外),最大支持4个( *.win000~004 ) ----2020.11.24

  8. 电脑Linux版公测 ----2020.11.30

  9. 加入插件功能,插件在工具中的相对路径:DNA/Insides/Errors/submodules文件夹 公测 ----2020.12.21

  10. 加入MagiskBootKItchen(Android-Image-Kitchen)分解合成[boot|exaid|recovery/etc].img ----2024.4.4

  11. 支持分解部分super.img(不支持动态AB双系统),最新小米11super.img测试不支持 公测 ----2021.01.09

  12. 修复部分动态分区size识别不准确问题! ----2021.01.09

  13. 修复使用[ make_ext4fs ]打包错误问题! ----2021.01.21

  14. 打包过程加入静默模式(不询问,自动打包工程目录中所有可打包内容) ----2021.01.21

软件架构 同时支持

  1. 手机 Termux 及以上版本 Arm64[aarch64] (原生支持TERMUX 无需容器!)

  2. 电脑 Win10 x86_64[x64]

  3. 虚拟机或实体机 Ubuntu 20.04及以上版本 x86_64[x64] 推荐!!!

安装教程【PC版教程从第5条开始】以下每一行均为一条完整命令

  1. 手机安装原版Termux.apk 运行Termux 获取存储权限
    • termux-setup-storage
原生支持TERMUX 无需容器!
  1. 进入ubuntu/linux/termux系统 【 PC版教程从此开始,手机端继续往下 】 【复制下面命令,终端中执行】

    • sudo apt update && sudo apt upgrade -y必须执行,近期这一步出错是因为清华源抽风,执行mv -f /etc/apt/sources.list.bak /etc/apt/sources.list后再执行这一步,网速慢科学上网

    • sudo apt install git cpio aria2 brotli android-sdk-libsparse-utils openjdk-11-jre p7zip-full -y必须执行,使用新版本前建议重新安装一次

    • sudo apt install zip unzip gawk sed curl wget -y [可选,非必需]

  2. 下载此工具【复制下面命令,终端中执行】

    • git clone https://github.com/ColdWindScholar/DNA3 -b feature --depth 1最新DNA3公测
  3. 下载完成后执行【复制下面命令,终端中执行】

    • cd DNA && python3 dna.py
  4. 至此你已启动此工具,教程结束 !

      1. 今后每次启动只需打开Termux 输入【 ubuntu 】就可直接启动工具(工具存在时)
      1. 如果你想打开Termux就直接启动工具: 在Termux(不是在proot ubuntu中,建议重启termux再执行)中执行【 echo -e "if [ -d ubuntu ] && [ $(command -v ubuntu) ]; then\n\tubuntu\nfi" >> .bashrc 】 然后重新启动Termux就可以直接启动工具(工具存在时)

使用说明

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

  2. 工具每次启动都要联网进行版本检测,所以会有点慢;如果经常使用,切记不要退出工具

  3. 关于手机解压zip - 请将zip文件放置在【 内置存储 /sdcard/Download 】工具会自动查找,如果没找到就放在工具目录下

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

  5. 请勿删除【工程目录/configs文件夹】,打包时所需的文件信息都在此处,若你想修改打包img大小,可以打开 【工程目录/configs/*_size.txt】把里面数值改成你想要的大小,该数值必须是字节大小,动态分区打包超出大小可以同时修改【工程目录/configs/*_size.txt】和【dynamic_partitions_op_list】 中例如【resize vendor 2016763904】 ,因为我没有动态分区的机子,不保证打包后能正常开机!

  6. 由于手机性能、proot效率以及工具工作方式( 比如每次打包img前都要自动比对获取新增文件的fs_config,不会立刻询问是否打包 )等原因,工具会出现像是卡住不动,不必担心,保持耐心,等待片刻即可

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

  8. 不要放在含有中文名文件夹下运行,不要选择带有空格的文件进行解包,工程文件夹不得有空格或其他特殊符号 !!!

  9. 更新说明: 在proot ubuntu下删除原 DNA文件夹(记得提前备份DNA文件夹内的重要文件/插件),重新【 git clone https://github.com/ColdWindScholar/D.N.A3 --depth 1

  10. 动态分区必须打包成原官方卡刷包格式[zip](即打包成.new.dat.br或.new.dat,同时必须使用工程文件夹下的dynamic_partitions_op_list,一块压缩成zip卡刷包),不允许单刷.img

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

工具预览

Image text Image text Image text

交流反馈

  1. QQ群1:MIO-KITCHEN 官方2群
  2. QQ群2: DNA3

免责声明

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

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

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

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

d.n.a3's People

Contributors

coldwindscholar avatar zhlhlf avatar

Stargazers

 avatar 深夜小贼 avatar 苏九儿 avatar  avatar  avatar Gauti avatar  avatar  avatar  avatar 原味胖次 avatar  avatar  avatar  avatar Sh1zuku avatar  avatar  avatar  avatar  avatar NIkio  avatar  avatar Sharpeter avatar

Watchers

 avatar

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.