Skip to content

Instantly share code, notes, and snippets.

@hanetzer
Created January 12, 2020 03:13
Show Gist options
  • Save hanetzer/784935f862c324c249e8dc67df31f833 to your computer and use it in GitHub Desktop.
Save hanetzer/784935f862c324c249e8dc67df31f833 to your computer and use it in GitHub Desktop.
stdin
@ECHO OFF
:: Copyright 2012 The Android Open Source Project
::
:: Licensed under the Apache License, Version 2.0 (the "License");
:: you may not use this file except in compliance with the License.
:: You may obtain a copy of the License at
::
:: http://www.apache.org/licenses/LICENSE-2.0
::
:: Unless required by applicable law or agreed to in writing, software
:: distributed under the License is distributed on an "AS IS" BASIS,
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
:: See the License for the specific language governing permissions and
:: limitations under the License.
PATH=%PATH%;"%SYSTEMROOT%\System32"
fastboot flash aop_a aop_a.img
fastboot flash aop_b aop_b.img
fastboot flash bluetooth_a bluetooth_a.img
fastboot flash bluetooth_b bluetooth_b.img
fastboot flash boot_a boot_a.img
fastboot flash boot_b boot_b.img
fastboot flash dsp_a dsp_a.img
fastboot flash dsp_b dsp_b.img
fastboot flash dtbo_a dtbo_a.img
fastboot flash dtbo_b dtbo_b.img
fastboot flash LOGO_a LOGO_a.img
fastboot flash LOGO_b LOGO_b.img
fastboot flash modem_a modem_a.img
fastboot flash modem_b modem_b.img
fastboot flash oem_stanvbk oem_stanvbk.img
fastboot flash qupfw_a qupfw_a.img
fastboot flash qupfw_b qupfw_b.img
fastboot flash storsec_a storsec_a.img
fastboot flash storsec_b storsec_b.img
fastboot flash multiimgoem_a multiimgoem_a.img
fastboot flash multiimgoem_b multiimgoem_b.img
fastboot flash uefisecapp_a uefisecapp_a.img
fastboot flash uefisecapp_b uefisecapp_b.img
fastboot flash recovery_a recovery_a.img
fastboot flash recovery_b recovery_b.img
fastboot --disable-verity flash vbmeta_a vbmeta_a.img
fastboot --disable-verity flash vbmeta_b vbmeta_b.img
fastboot --disable-verity flash vbmeta_system_a vbmeta_system_a.img
fastboot --disable-verity flash vbmeta_system_b vbmeta_system_b.img
fastboot --set-active=b
fastboot flash super super.img
echo Press any key to exit...
pause >nul
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment