Created
May 7, 2020 16:08
-
-
Save koumaza/c427660d7b12df8fa3dc8dcff972e797 to your computer and use it in GitHub Desktop.
flashall for payton
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish | |
function device | |
echo 'devices' | |
fastboot devices | |
end | |
function getvar_max-sparse-size | |
echo 'getvar max-sparse-size' | |
fastboot getvar max-sparse-size | |
end | |
function oem_fb_mode_set | |
echo 'oem fb_mode_set' | |
fastboot oem fb_mode_set | |
end | |
function flash_partition | |
echo 'flash partition gpt.bin' | |
fastboot flash partition_a gpt.bin | |
fastboot flash partition_b gpt.bin | |
end | |
function flash_bootloader | |
echo 'flash bootloader bootloader.img' | |
fastboot flash bootloader_a bootloader.img | |
fastboot flash bootloader_b bootloader.img | |
end | |
function flash_boot | |
echo 'flash boot_a boot.img' | |
fastboot flash boot_a boot.img | |
fastboot flash boot_b boot.img | |
end | |
function flash_modem | |
echo 'flash modem NON-HLOS.bin' | |
fastboot flash modem_a NON-HLOS.bin | |
fastboot flash modem_b NON-HLOS.bin | |
end | |
function flash_fsg | |
echo 'flash fsg fsg.mbn' | |
fastboot flash fsg_a fsg.mbn | |
fastboot flash fsg_b fsg.mbn | |
end | |
function erase_modemst | |
echo 'erase modemst1' | |
fastboot erase modemst1 | |
echo 'erase modemst2' | |
fastboot erase modemst2 | |
end | |
function flash_bluetooth | |
echo 'flash bluetooth BTFM.bin' | |
fastboot flash bluetooth_a BTFM.bin | |
fastboot flash bluetooth_b BTFM.bin | |
end | |
function flash_dsp | |
echo 'flash dsp dspso.bin' | |
fastboot flash dsp_a dspso.bin | |
fastboot flash dsp_b dspso.bin | |
end | |
function flash_logo | |
echo 'flash logo logo.bin' | |
fastboot flash logo_a logo.bin | |
fastboot flash logo_b logo.bin | |
end | |
function flash_system | |
echo 'flash system_a system.img_sparsechunk.0' | |
fastboot flash system_a system.img_sparsechunk.0 | |
echo 'flash system_a system.img_sparsechunk.1' | |
fastboot flash system_a system.img_sparsechunk.1 | |
echo 'flash system_a system.img_sparsechunk.2' | |
fastboot flash system_a system.img_sparsechunk.2 | |
echo 'flash system_a system.img_sparsechunk.3' | |
fastboot flash system_a system.img_sparsechunk.3 | |
echo 'flash system_a system.img_sparsechunk.4' | |
fastboot flash system_a system.img_sparsechunk.4 | |
echo 'flash system_a system.img_sparsechunk.5' | |
fastboot flash system_a system.img_sparsechunk.5 | |
echo 'flash system_a system.img_sparsechunk.6' | |
fastboot flash system_a system.img_sparsechunk.6 | |
echo 'flash system_a system.img_sparsechunk.7' | |
fastboot flash system_a system.img_sparsechunk.7 | |
echo 'flash system_b system_other' | |
fastboot flash system_b system_other.img | |
end | |
function flash_oem | |
echo 'flash oem oem.img' | |
fastboot flash oem_a oem.img | |
fastboot flash oem_b oem.img | |
end | |
function erase_cache | |
echo 'erase cache' | |
fastboot erase cache | |
end | |
function erase_carrier | |
echo 'erase carrier' | |
fastboot erase carrier | |
end | |
function erase_clogo | |
echo 'erase clogo' | |
fastboot erase clogo | |
end | |
function erase_userdata | |
echo 'erase userdata' | |
fastboot erase userdata | |
end | |
function erase_ddr | |
echo 'erase ddr' | |
fastboot erase ddr | |
end | |
function oem_fb_mode_clear | |
echo 'oem fb_mode_clear' | |
fastboot oem fb_mode_clear | |
end | |
device | |
getvar_max-sparse-size | |
oem_fb_mode_set | |
flash_partition | |
flash_bootloader | |
flash_boot | |
flash_modem | |
flash_fsg | |
erase_modemst | |
flash_bluetooth | |
flash_dsp | |
flash_logo | |
flash_system | |
flash_oem | |
erase_cache | |
erase_carrier | |
erase_clogo | |
erase_userdata | |
erase_ddr | |
oem_fb_mode_clear | |
echo Flashed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment