[Redmi Note 8 Pro Guides, News, & Discussion] harmakhis:
hi

flashed chinese phone with 10.4.11 rom to global 14.4.1 rom, no rollback flag on the phone, and no rollback flag on the rom global (they are all "1")

i read the tutorial on MI community, this guide is originally for "EU", i understand that the img file in the package is in fact a boot.img modded with the recovery?

it seems its done with using android image kitchen for obtaining modded boot.img

but i dont see a guide to make that, i tried with the boot.img from china and global, they are all twice without ramdisk directory

the problem seem to be with the boot.img, but when flashing china to global, the boot.img is flashed too, no?

so, if global boot.img runs, i think the project is to inject TWRP in this boot.img and reconbuild one?

the flash_all.bat used by miflash (flash and clear, NO LOCK!)

if exist %~dp0images\anti_version.txt (for /f "delims==" %%a in (%~dp0images\anti_version.txt) do (set CURRENT_ANTI_VER=%%a))

if [%CURRENT_ANTI_VER%] EQU [] set CURRENT_ANTI_VER=0

for /f "tokens=2 delims=: " %%i in ('fastboot %* getvar anti 2^>^&1 ^| findstr /r /c:"anti:"') do (set version=%%i)

if [%version%] EQU [] set version=0

set anticheck="antirollback check pass"

if %version% GTR %CURRENT_ANTI_VER% set anticheck="Current device antirollback version is greater than this pakcage"

echo %anticheck% | findstr /r /c:"pass" || [MENTION=279333]ECHO[/MENTION] "Antirollback check error" && exit /B 1

fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *begonia" || echo Missmatching image and device

fastboot %* getvar product 2>&1 | findstr /r /c:"^product: *begonia" || exit /B 1

fastboot %* flash crclist %~dp0images\crclist.txt || [MENTION=279333]ECHO[/MENTION] "Flash crclist error" && exit /B 1

fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || [MENTION=279333]ECHO[/MENTION] "Flash sparsecrclist error" && exit /B 1

fastboot %* erase boot || [MENTION=279333]ECHO[/MENTION] "Erase boot error" && exit /B 1

fastboot %* flash preloader %~dp0images\preloader_begonia.bin || [MENTION=279333]ECHO[/MENTION] "Flash preloader error" && exit /B 1

fastboot %* flash lk %~dp0images\lk.img || [MENTION=279333]ECHO[/MENTION] "Flash lk error" && exit /B 1

fastboot %* flash lk2 %~dp0images\lk.img || [MENTION=279333]ECHO[/MENTION] "Flash lk2 error" && exit /B 1

fastboot %* flash tee1 %~dp0images\tee.img || [MENTION=279333]ECHO[/MENTION] "Flash tee1 error" && exit /B 1

fastboot %* flash tee2 %~dp0images\tee.img || [MENTION=279333]ECHO[/MENTION] "Flash tee2 error" && exit /B 1

fastboot %* flash sspm_1 %~dp0images\sspm.img || [MENTION=279333]ECHO[/MENTION] "Flash sspm_1 error" && exit /B 1

fastboot %* flash sspm_2 %~dp0images\sspm.img || [MENTION=279333]ECHO[/MENTION] "Flash sspm_2 error" && exit /B 1

fastboot %* flash gz1 %~dp0images\gz.img || [MENTION=279333]ECHO[/MENTION] "Flash gz1 error" && exit /B 1

fastboot %* flash gz2 %~dp0images\gz.img || [MENTION=279333]ECHO[/MENTION] "Flash gz2 error" && exit /B 1

fastboot %* flash scp1 %~dp0images\scp.img || [MENTION=279333]ECHO[/MENTION] "Flash scp1 error" && exit /B 1

fastboot %* flash scp2 %~dp0images\scp.img || [MENTION=279333]ECHO[/MENTION] "Flash scp2 error" && exit /B 1

fastboot %* flash logo %~dp0images\logo.bin || [MENTION=279333]ECHO[/MENTION] "Flash logo error" && exit /B 1

fastboot %* flash dtbo %~dp0images\dtbo.img || [MENTION=279333]ECHO[/MENTION] "Flash dtbo error" && exit /B 1

fastboot %* flash spmfw %~dp0images\spmfw.img || [MENTION=279333]ECHO[/MENTION] "Flash spmfw error" && exit /B 1

fastboot %* flash exaid %~dp0images\exaid.img || [MENTION=279333]ECHO[/MENTION] "Flash exaid error" && exit /B 1

fastboot %* flash oem_misc1 %~dp0images\oem_misc1.img || [MENTION=279333]ECHO[/MENTION] "Flash oem_misc1 error" && exit /B 1

fastboot %* flash md1img %~dp0images\md1img.img || [MENTION=279333]ECHO[/MENTION] "Flash md1img error" && exit /B 1

fastboot %* flash cam_vpu1 %~dp0images\cam_vpu1.img || [MENTION=279333]ECHO[/MENTION] "Flash cam_vpu1 error" && exit /B 1

fastboot %* flash cam_vpu2 %~dp0images\cam_vpu2.img || [MENTION=279333]ECHO[/MENTION] "Flash cam_vpu2 error" && exit /B 1

fastboot %* flash cam_vpu3 %~dp0images\cam_vpu3.img || [MENTION=279333]ECHO[/MENTION] "Flash cam_vpu3 error" && exit /B 1

fastboot %* flash audio_dsp %~dp0images\audio_dsp.img || [MENTION=279333]ECHO[/MENTION] "Flash audio_dsp error" && exit /B 1

fastboot %* flash vendor %~dp0images\vendor.img || [MENTION=279333]ECHO[/MENTION] "Flash vendor error" && exit /B 1

fastboot %* flash system %~dp0images\system.img || [MENTION=279333]ECHO[/MENTION] "Flash system error" && exit /B 1

fastboot %* flash cache %~dp0images\cache.img || [MENTION=279333]ECHO[/MENTION] "Flash cache error" && exit /B 1

fastboot %* flash recovery %~dp0images\recovery.img || [MENTION=279333]ECHO[/MENTION] "Flash recovery error" && exit /B 1

fastboot %* flash cust %~dp0images\cust.img || [MENTION=279333]ECHO[/MENTION] "Flash cust error" && exit /B 1

fastboot %* flash vbmeta %~dp0images\vbmeta.img || [MENTION=279333]ECHO[/MENTION] "Flash vbmeta error" && exit /B 1

fastboot %* flash userdata %~dp0images\userdata.img || [MENTION=279333]ECHO[/MENTION] "Flash userdata error" && exit /B 1

fastboot %* flash boot %~dp0images\boot.img || [MENTION=279333]ECHO[/MENTION] "Flash boot error" && exit /B 1

fastboot %* reboot || [MENTION=279333]ECHO[/MENTION] "Reboot error" && exit /B 1

result for android image kitchen global boot.img

Supplied image: boot.img

Setting up work folders . . .

Image type: AOSP

Signature with "AVBv2" type detected.

Splitting image to "split_img/" . . .

BOARD_KERNEL_CMDLINE bootopt=64S3,32N2,64N2 buildvariant=user

BOARD_KERNEL_BASE 40078000

BOARD_NAME

BOARD_PAGE_SIZE 2048

BOARD_HASH_TYPE sha1

BOARD_KERNEL_OFFSET 00008000

BOARD_RAMDISK_OFFSET 07c08000

BOARD_SECOND_OFFSET 00e88000

BOARD_TAGS_OFFSET 0bc08000

BOARD_OS_VERSION 9.0.0

BOARD_OS_PATCH_LEVEL 2019-09

BOARD_HEADER_VERSION 1

BOARD_HEADER_SIZE 1648

Warning: No ramdisk found to be unpacked!

Done!

Appuyez sur une touche pour continuer...