How can i modify the boot.img files so that when the power button and volume + is pressed during startup it doesnt start recovery but instead starts fastboot?
P.S I can unpack the boot.img
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It only takes a minute to sign up.
Sign up to join this communityHow can i modify the boot.img files so that when the power button and volume + is pressed during startup it doesnt start recovery but instead starts fastboot?
P.S I can unpack the boot.img
The preloader is fetching from hrawork10/hra_huangxj/mt8788_v9.0_G26/P08765_git/vendor/mediatek/proprietary/bootable/bootloader/preloader/platform/mt6771/src/core/main.c
as shown in your screenshot which is holding the variable which decides as to whether it should boot factory mode when you hold the power and volume up buttons or not.
Do not try to rebuild your preloader and flash it otherwise you may end up with a nice brick.
boot.img
(ramdisk and kernel), but by bootloader (ABOOT, ABL or equivalent) which hosts fastboot protocol as well. Bootloader starts main OS (kernel fromboot.img
) or recovery (kernel fromrecovery.img
) orfastboot
, depending on key combination or file/bits incache
/misc
partitions. However you can modifyrecovery.img
to make the kernel/init
run a program (even a shell script) which reads key combination and restarts device to fastboot.