Git Product home page Git Product logo

fastbootenhance's Introduction

Fastboot Enhance

A user-friendly Fastboot ToolBox & Payload Dumper for Windows

What can it do?

  • Show fastboot vars
  • Switch between fastbootd, bootloader, recovery & system
  • Switch between A & B slot
  • Flash Payload.bin in fastbootd
  • Flash images
  • Erase partitions
  • Delete logical partitions
  • Create logical partitions
  • Resize logical partitions
  • Unpack Payload.bin
  • Extract specific image from Payload.bin
  • Show Payload vars
  • Show dynamic partition metadata

Usage

  • Make sure .NET Framework 4.5+ is supported

  • Download Release.zip from Github Releases

  • Unzip

  • Click FastbootEnhance.exe

Note

  • Incremental packages are not supported

( I don't have a plan to support it in the future because it is quite useless )

  • Still you are able to extract correct image from incremental packages if the checksum passes

( The checksum will be automatically done if "ignore checksum" is not checked )

Building

  • Clone and build it with Visual Studio

Credits

fastbootenhance's People

Contributors

guosasipo avatar jamxi233 avatar libxzr avatar mlgmxyysd avatar soralis0912 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fastbootenhance's Issues

can't extract partition image

Can't extract partition image. When I hit extract button application closes immediately.
I used payload.bin from full OTA package.

刷payload.bin时提示Writing 'product_a' FAILED (remote: 'No such file or directory')

日志如下:
Extracting apusys
Extracted apusys
Extracting audio_dsp
Extracted audio_dsp
Extracting boot
Extracted boot
Extracting ccu
Extracted ccu
Extracting dpm
Extracted dpm
Extracting dtbo
Extracted dtbo
Extracting gpueb
Extracted gpueb
Extracting gz
Extracted gz
Extracting lk
Extracted lk
Extracting logo
Extracted logo
Extracting mcf_ota
Extracted mcf_ota
Extracting mcupm
Extracted mcupm
Extracting md1img
Extracted md1img
Extracting mvpu_algo
Extracted mvpu_algo
Extracting odm
Extracted odm
Extracting odm_dlkm
Extracted odm_dlkm
Extracting pi_img
Extracted pi_img
Extracting preloader_raw
Extracted preloader_raw
Extracting product
Extracted product
Extracting scp
Extracted scp
Extracting spmfw
Extracted spmfw
Extracting sspm
Extracted sspm
Extracting system
Extracted system
Extracting system_ext
Extracted system_ext
Extracting tee
Extracted tee
Extracting vbmeta
Extracted vbmeta
Extracting vbmeta_system
Extracted vbmeta_system
Extracting vbmeta_vendor
Extracted vbmeta_vendor
Extracting vcp
Extracted vcp
Extracting vendor
Extracted vendor
Extracting vendor_boot
Extracted vendor_boot
Extracting vendor_dlkm
Extracted vendor_dlkm
Extracting mi_ext
Extracted mi_ext
Sending 'apusys_a' (1372 KB) OKAY [ 0.090s]
Writing 'apusys_a' OKAY [ 0.007s]
Finished. Total time: 0.117s
Sending 'audio_dsp_a' (5388 KB) OKAY [ 0.362s]
Writing 'audio_dsp_a' OKAY [ 0.014s]
Finished. Total time: 0.387s
Sending 'boot_a' (65536 KB) OKAY [ 3.193s]
Writing 'boot_a' OKAY [ 0.094s]
Finished. Total time: 3.951s
Sending 'ccu_a' (172 KB) OKAY [ 0.006s]
Writing 'ccu_a' OKAY [ 0.002s]
Finished. Total time: 0.018s
Sending 'dpm_a' (260 KB) OKAY [ 0.008s]
Writing 'dpm_a' OKAY [ 0.002s]
Finished. Total time: 0.020s
Sending 'dtbo_a' (32768 KB) OKAY [ 1.527s]
Writing 'dtbo_a' OKAY [ 0.050s]
Finished. Total time: 1.589s
Sending 'gpueb_a' (128 KB) OKAY [ 0.004s]
Writing 'gpueb_a' OKAY [ 0.001s]
Finished. Total time: 0.016s
Sending 'gz_a' (1984 KB) OKAY [ 0.082s]
Writing 'gz_a' OKAY [ 0.012s]
Finished. Total time: 0.100s
Sending 'lk_a' (2928 KB) OKAY [ 0.137s]
Writing 'lk_a' OKAY [ 0.010s]
Finished. Total time: 0.153s
Sending 'logo_a' (3360 KB) OKAY [ 0.138s]
Writing 'logo_a' OKAY [ 0.013s]
Finished. Total time: 0.158s
Sending 'mcf_ota_a' (3328 KB) OKAY [ 0.139s]
Writing 'mcf_ota_a' OKAY [ 0.012s]
Finished. Total time: 0.162s
Sending 'mcupm_a' (616 KB) OKAY [ 0.021s]
Writing 'mcupm_a' OKAY [ 0.006s]
Finished. Total time: 0.037s
Sending 'md1img_a' (74884 KB) OKAY [ 3.912s]
Writing 'md1img_a' OKAY [ 0.106s]
Finished. Total time: 4.026s
Sending 'mvpu_algo_a' (60 KB) OKAY [ 0.002s]
Writing 'mvpu_algo_a' OKAY [ 0.001s]
Finished. Total time: 0.012s
Resizing 'odm_a' OKAY [ 0.003s]
Sending 'odm_a' (17276 KB) OKAY [ 0.878s]
Writing 'odm_a' OKAY [ 0.084s]
Finished. Total time: 0.974s
Resizing 'odm_dlkm_a' OKAY [ 0.002s]
Sending 'odm_dlkm_a' (340 KB) OKAY [ 0.011s]
Writing 'odm_dlkm_a' OKAY [ 0.048s]
Finished. Total time: 0.067s
Sending 'pi_img_a' (8 KB) OKAY [ 0.001s]
Writing 'pi_img_a' OKAY [ 0.000s]
Finished. Total time: 0.016s
Sending 'preloader_raw_a' (472 KB) OKAY [ 0.015s]
Writing 'preloader_raw_a' OKAY [ 0.008s]
Finished. Total time: 0.032s
Invalid sparse file format at header magic
Resizing 'product_a' OKAY [ 0.003s]
Sending sparse 'product_a' 1/6 (262140 KB) OKAY [ 12.908s]
Writing 'product_a' FAILED (remote: 'No such file or directory')
fastboot: error: Command failed
Sending 'scp_a' (2120 KB) OKAY [ 0.082s]
Writing 'scp_a' OKAY [ 0.008s]
Finished. Total time: 0.098s
Sending 'spmfw_a' (20 KB) OKAY [ 0.001s]
Writing 'spmfw_a' OKAY [ 0.001s]
Finished. Total time: 0.009s
Sending 'sspm_a' (976 KB) OKAY [ 0.033s]
Writing 'sspm_a' OKAY [ 0.006s]
Finished. Total time: 0.045s
Invalid sparse file format at header magic
Resizing 'system_a' OKAY [ 0.003s]
Sending sparse 'system_a' 1/4 (262140 KB) OKAY [ 13.093s]
Writing 'system_a' OKAY [ 0.541s]
Sending sparse 'system_a' 2/4 (237068 KB) OKAY [ 11.518s]
Writing 'system_a' OKAY [ 0.456s]
Sending sparse 'system_a' 3/4 (262140 KB) OKAY [ 12.637s]
Writing 'system_a' OKAY [ 0.491s]
Sending sparse 'system_a' 4/4 (84856 KB) OKAY [ 3.898s]
Writing 'system_a' OKAY [ 0.245s]
Finished. Total time: 43.962s
Invalid sparse file format at header magic
Resizing 'system_ext_a' OKAY [ 0.003s]
Sending sparse 'system_ext_a' 1/2 (262140 KB) OKAY [ 12.735s]
Writing 'system_ext_a' OKAY [ 0.791s]
Sending sparse 'system_ext_a' 2/2 (166784 KB) OKAY [ 7.270s]
Writing 'system_ext_a' OKAY [ 0.326s]
Finished. Total time: 21.680s
Sending 'tee_a' (3408 KB) OKAY [ 0.124s]
Writing 'tee_a' OKAY [ 0.016s]
Finished. Total time: 0.150s
Sending 'vbmeta_a' (8 KB) OKAY [ 0.001s]
Writing 'vbmeta_a' OKAY [ 0.001s]
Finished. Total time: 0.009s
Sending 'vbmeta_system_a' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_system_a' OKAY [ 0.001s]
Finished. Total time: 0.014s
Sending 'vbmeta_vendor_a' (4 KB) OKAY [ 0.001s]
Writing 'vbmeta_vendor_a' OKAY [ 0.001s]
Finished. Total time: 0.010s
Sending 'vcp_a' (1552 KB) OKAY [ 0.053s]
Writing 'vcp_a' OKAY [ 0.012s]
Finished. Total time: 0.072s
Invalid sparse file format at header magic
Resizing 'vendor_a' OKAY [ 0.003s]
Sending sparse 'vendor_a' 1/8 (262140 KB) OKAY [ 13.112s]
Writing 'vendor_a' OKAY [ 0.477s]
Sending sparse 'vendor_a' 2/8 (262140 KB) OKAY [ 12.005s]
Writing 'vendor_a' OKAY [ 0.490s]
Sending sparse 'vendor_a' 3/8 (245388 KB) OKAY [ 12.407s]
Writing 'vendor_a' OKAY [ 0.458s]
Sending sparse 'vendor_a' 4/8 (262140 KB) OKAY [ 13.784s]
Writing 'vendor_a' OKAY [ 0.667s]
Sending sparse 'vendor_a' 5/8 (262140 KB) OKAY [ 12.779s]
Writing 'vendor_a' OKAY [ 0.604s]
Sending sparse 'vendor_a' 6/8 (262140 KB) OKAY [ 12.538s]
Writing 'vendor_a' OKAY [ 0.610s]
Sending sparse 'vendor_a' 7/8 (262140 KB) OKAY [ 14.011s]
Writing 'vendor_a' OKAY [ 0.500s]
Sending sparse 'vendor_a' 8/8 (122900 KB) OKAY [ 6.477s]
Writing 'vendor_a' OKAY [ 0.449s]
Finished. Total time: 103.985s
Sending 'vendor_boot_a' (65536 KB) OKAY [ 3.278s]
Writing 'vendor_boot_a' OKAY [ 0.120s]
Finished. Total time: 3.407s
Resizing 'vendor_dlkm_a' OKAY [ 0.002s]
Sending 'vendor_dlkm_a' (18964 KB) OKAY [ 0.832s]
Writing 'vendor_dlkm_a' OKAY [ 0.088s]
Finished. Total time: 0.930s
Resizing 'mi_ext_a' OKAY [ 0.002s]
Sending 'mi_ext_a' (20 KB) OKAY [ 0.001s]
Writing 'mi_ext_a' OKAY [ 0.054s]
Finished. Total time: 0.062s
手机是红米note11t pro,固件是miui_XAGA_V14.0.3.0.TLOCNXM_3a52786fc2_13.0.zip 。可能不是工具问题,即使用fastboot命令手动刷解压出来的product.img也是这个提示,不确定是否解压出来的img有问题

血的教训,望作者采纳关于一加刷机时的建设性意见

血的教训:使用FastbootEnhance给一加8Pro刷官方Android12的payload.bin作为底包
正常操作,在fastbootd状态下刷入。

由于不知是什么大聪明工程师把8 Pro / 8T / 9R的LDDR固件都放在了一加8Pro的全量更新包里面,所以payload.bin里面会同时包含有xbl.img(DDR4),xbl_lp5.img(DDR5)的固件,故如果按照正常流程刷机会烧坏主板。
https://forum.xda-developers.com/t/guide-how-to-avoid-killing-your-oneplus-8-pro-8t-9r-with-oxygenos-12-coloros-12.4426167/

望工具在检测到刷机包为一加8Pro的时候可以让用户做出选择,或者做出提醒。

给一加8Pro默哀一秒...

可否增加分区备份功能?

作者可以增加备份功能吗,既然是刷机,提前备份是很一个必要的,防止各种状况后变砖可以恢复。

Hope to split unpacking payload.bin and flashing into two steps

希望能够将解包和安装 payload.bin 的过程分离。具体地说,我希望能够解包生成某个文件(比如仅存储的 zip,其中包含所有分区的 img),然后安装 payload.bin 时使用该文件直接安装,而不需要在重启到 fastbootd 后等待解包。

I hope to split the unpacing payload.bin and flashing into two steps. To be specific, I hope a file of some format (e.g. a stored zip containing imgs of all partitions) can be generated without connecting to my phone, and flashing can be done with this file, rather than having to reboot to fastbootd and wait for the unpacking process.

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.