@ECHO OFF
:: Copyright 2012 The Android Open Source Project
:: Copyright 2023 Iodé Technologies
::
:: 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 erase avb_custom_key
fastboot flash avb_custom_key avb_custom_key-axolotl.bin
fastboot format:ext4 cache
fastboot format:ext4 userdata
fastboot flash modem modem.img
fastboot --skip-reboot -w update iode-4.5-20230926-axolotl-img.zip
fastboot getvar is-userspace 2>&1 | findstr /r /c:"^is-userspace: yes" || fastboot reboot fastboot && ping -n 5 127.0.0.1 >nul
fastboot flash abl abl.img
fastboot flash aop aop.img
fastboot flash bluetooth bluetooth.img
fastboot flash cmnlib64 cmnlib64.img
fastboot flash cmnlib cmnlib.img
fastboot flash devcfg devcfg.img
fastboot flash dsp dsp.img
fastboot flash hyp hyp.img
fastboot flash ImageFv ImageFv.img
fastboot flash keymaster keymaster.img
fastboot flash qupfw qupfw.img
fastboot flash storsec storsec.img
fastboot flash tz tz.img
fastboot flash xbl_config xbl_config.img
fastboot flash xbl xbl.img
fastboot reboot-bootloader
ping -n 5 127.0.0.1 >nul
fastboot flashing lock
echo Pre
ss any key to exit...
pause >nul
exit