diff --git a/.gitattributes b/.gitattributes index 299d654ddef6d44d6d13ecd220d12d1f85549ff4..99db22919c0b98e72e11b5271d92dc792d8207f2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -42,3 +42,18 @@ xvideos.com_72337be9231ae23883c3b36a59ff406c.mp4 filter=lfs diff=lfs merge=lfs - m3u8.dev-1714250632366.mp4 filter=lfs diff=lfs merge=lfs -text m3u8.dev-1714250578185.ts filter=lfs diff=lfs merge=lfs -text CrossOver_24_0_3_TNT.dmg filter=lfs diff=lfs merge=lfs -text +images/boot.img filter=lfs diff=lfs merge=lfs -text +images/cust.img filter=lfs diff=lfs merge=lfs -text +images/dtbo.img filter=lfs diff=lfs merge=lfs -text +images/dummy_modemst.img filter=lfs diff=lfs merge=lfs -text +images/logo.img filter=lfs diff=lfs merge=lfs -text +images/misc.img filter=lfs diff=lfs merge=lfs -text +images/persist.img filter=lfs diff=lfs merge=lfs -text +images/recovery.img filter=lfs diff=lfs merge=lfs -text +images/super.img filter=lfs diff=lfs merge=lfs -text +images/tz.mbn filter=lfs diff=lfs merge=lfs -text +images/tz_debug.mbn filter=lfs diff=lfs merge=lfs -text +images/userdata.img filter=lfs diff=lfs merge=lfs -text +images/vmlinux filter=lfs diff=lfs merge=lfs -text +images/xbl.elf filter=lfs diff=lfs merge=lfs -text +images/xbl_debug.elf filter=lfs diff=lfs merge=lfs -text diff --git a/flash_all.bat b/flash_all.bat new file mode 100644 index 0000000000000000000000000000000000000000..19e284845939c6f00539fef1bee595d2a27c4709 --- /dev/null +++ b/flash_all.bat @@ -0,0 +1,62 @@ +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" || @echo "Antirollback check error" && exit /B 1 + +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || echo Missmatching image and device +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || exit /B 1 + +fastboot %* erase boot || @echo "Erase boot error" && exit /B 1 +fastboot %* flash crclist %~dp0images\crclist.txt || @echo "Flash crclist error" && exit /B 1 +fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @echo "Flash sparsecrclist error" && exit /B 1 +fastboot %* flash xbl %~dp0images\xbl.elf || @echo "Flash xbl error" && exit /B 1 +fastboot %* flash xblbak %~dp0images\xbl.elf || @echo "Flash xblbak error" && exit /B 1 +fastboot %* flash xbl_config %~dp0images\xbl_config.elf || @echo "Flash xbl_config error" && exit /B 1 +fastboot %* flash xbl_configbak %~dp0images\xbl_config.elf || @echo "Flash xbl_configbak error" && exit /B 1 +fastboot %* flash abl %~dp0images\abl.elf || @echo "Flash abl error" && exit /B 1 +fastboot %* flash ablbak %~dp0images\abl.elf || @echo "Flash ablbak error" && exit /B 1 +fastboot %* flash tz %~dp0images\tz.mbn || @echo "Flash tz error" && exit /B 1 +fastboot %* flash tzbak %~dp0images\tz.mbn || @echo "Flash tzbak error" && exit /B 1 +fastboot %* flash hyp %~dp0images\hyp.mbn || @echo "Flash hyp error" && exit /B 1 +fastboot %* flash hypbak %~dp0images\hyp.mbn || @echo "Flash hypbak error" && exit /B 1 +fastboot %* flash devcfg %~dp0images\devcfg.mbn || @echo "Flash devcfg error" && exit /B 1 +fastboot %* flash devcfgbak %~dp0images\devcfg.mbn || @echo "Flash devcfgbak error" && exit /B 1 +fastboot %* flash storsec %~dp0images\storsec.mbn || @echo "Flash storsec error" && exit /B 1 +::fastboot %* flash storsecbak %~dp0images\storsec.mbn || @echo "Flash storsecbak error" && exit /B 1 +fastboot %* flash bluetooth %~dp0images\BTFM.bin || @echo "Flash bluetooth error" && exit /B 1 +fastboot %* flash cmnlib %~dp0images\cmnlib.mbn || @echo "Flash cmnlib error" && exit /B 1 +fastboot %* flash cmnlibbak %~dp0images\cmnlib.mbn || @echo "Flash cmnlibbak error" && exit /B 1 +fastboot %* flash cmnlib64 %~dp0images\cmnlib64.mbn || @echo "Flash cmnlib64 error" && exit /B 1 +fastboot %* flash cmnlib64bak %~dp0images\cmnlib64.mbn || @echo "Flash cmnlib64bak error" && exit /B 1 +fastboot %* flash modem %~dp0images\NON-HLOS.bin || @echo "Flash modem error" && exit /B 1 +fastboot %* flash dsp %~dp0images\dspso.bin || @echo "Flash dsp error" && exit /B 1 +fastboot %* erase metadata || @echo "Erase metadata error" && exit 1 +fastboot %* flash metadata %~dp0images\metadata.img || @echo "Flash metadata error" && exit /B 1 +fastboot %* flash keymaster %~dp0images\km41.mbn || @echo "Flash keymaster error" && exit /B 1 +fastboot %* flash keymasterbak %~dp0images\km41.mbn || @echo "Flash keymasterbak error" && exit /B 1 +fastboot %* flash logo %~dp0images\logo.img || @echo "Flash logo error" && exit /B 1 +::fastboot %* flash splash %~dp0images\splash.img || @echo "Flash splash error" && exit /B 1 +fastboot %* flash misc %~dp0images\misc.img || @echo "Flash misc error" && exit /B 1 +fastboot %* flash aop %~dp0images\aop.mbn || @echo "Flash aop error" && exit /B 1 +fastboot %* flash aopbak %~dp0images\aop.mbn || @echo "Flash aopbak error" && exit /B 1 +fastboot %* flash qupfw %~dp0images\qupv3fw.elf || @echo "Flash qupfw error" && exit /B 1 +fastboot %* flash qupfwbak %~dp0images\qupv3fw.elf || @echo "Flash qupfwbak error" && exit /B 1 +fastboot %* flash imagefv %~dp0images\imagefv.elf || @echo "Flash imagefv error" && exit /B 1 +fastboot %* flash uefisecapp %~dp0images\uefi_sec.mbn || @echo "Flash uefisecapp error" && exit /B 1 +fastboot %* flash uefisecappbak %~dp0images\uefi_sec.mbn || @echo "Flash uefisecappbak error" && exit /B 1 +fastboot %* flash multiimgoem %~dp0images\multi_image.mbn || @echo "Flash multiimgoem error" && exit /B 1 +fastboot %* flash vbmeta %~dp0images\vbmeta.img || @echo "Flash vbmeta error" && exit /B 1 +fastboot %* flash dtbo %~dp0images\dtbo.img || @echo "Flash dtbo error" && exit /B 1 +fastboot %* flash super %~dp0images\super.img || @echo "Flash super error" && exit /B 1 +fastboot %* flash vbmeta_system %~dp0images\vbmeta_system.img || @echo "Flash vbmeta_system error" && exit /B 1 +fastboot %* flash cache %~dp0images\cache.img || @echo "Flash cache error" && exit /B 1 +fastboot %* flash userdata %~dp0images\userdata.img || @echo "Flash userdata error" && exit /B 1 +fastboot %* flash recovery %~dp0images\recovery.img || @echo "Flash recovery error" && exit /B 1 +fastboot %* erase secdata || @echo "Erase secdata error" && exit /B 1 +fastboot %* flash cust %~dp0images\cust.img || @echo "Flash cust error" && exit /B 1 +fastboot %* flash boot %~dp0images\boot.img || @echo "Flash boot error" && exit /B 1 +fastboot %* reboot || @echo "Reboot error" && exit /B 1 diff --git a/flash_all.sh b/flash_all.sh new file mode 100644 index 0000000000000000000000000000000000000000..86450dc6f92447659aeae425e1d2b1e5f91e199a --- /dev/null +++ b/flash_all.sh @@ -0,0 +1,112 @@ +if [ -e $(dirname $0)/images/anti_version.txt ]; then +CURRENT_ANTI_VER=`cat $(dirname $0)/images/anti_version.txt` +fi + +if [ -z "$CURRENT_ANTI_VER" ]; then CURRENT_ANTI_VER=0; fi +ver=`fastboot $* getvar anti 2>&1 | grep -oP "anti: \K[0-9]+"` +if [ -z "$ver" ]; then ver=0; fi +if [ $ver -gt $CURRENT_ANTI_VER ]; then echo "Current device antirollback version is greater than this pakcage"; exit 1; fi + +fastboot $* getvar product 2>&1 | grep "^product: courbet*" +if [ $? -ne 0 ] ; then echo "Missmatching image and device"; exit 1; fi + +fastboot $* erase boot +if [ $? -ne 0 ] ; then echo "Erase boot error"; exit 1; fi +fastboot $* flash crclist `dirname $0`/images/crclist.txt +if [ $? -ne 0 ] ; then echo "Flash crclist error"; exit 1; fi +fastboot $* flash sparsecrclist `dirname $0`/images/sparsecrclist.txt +if [ $? -ne 0 ] ; then echo "Flash sparsecrclist error"; exit 1; fi +fastboot $* flash xbl `dirname $0`/images/xbl.elf +if [ $? -ne 0 ] ; then echo "Flash xbl error"; exit 1; fi +fastboot $* flash xblbak `dirname $0`/images/xbl.elf +if [ $? -ne 0 ] ; then echo "Flash xblbak error"; exit 1; fi +fastboot $* flash xbl_config `dirname $0`/images/xbl_config.elf +if [ $? -ne 0 ] ; then echo "Flash xbl_config error"; exit 1; fi +fastboot $* flash xbl_configbak `dirname $0`/images/xbl_config.elf +if [ $? -ne 0 ] ; then echo "Flash xbl_configbak error"; exit 1; fi +fastboot $* flash abl `dirname $0`/images/abl.elf +if [ $? -ne 0 ] ; then echo "Flash abl error"; exit 1; fi +fastboot $* flash ablbak `dirname $0`/images/abl.elf +if [ $? -ne 0 ] ; then echo "Flash ablbak error"; exit 1; fi +fastboot $* flash tz `dirname $0`/images/tz.mbn +if [ $? -ne 0 ] ; then echo "Flash tz error"; exit 1; fi +fastboot $* flash tzbak `dirname $0`/images/tz.mbn +if [ $? -ne 0 ] ; then echo "Flash tzbak error"; exit 1; fi +fastboot $* flash hyp `dirname $0`/images/hyp.mbn +if [ $? -ne 0 ] ; then echo "Flash hyp error"; exit 1; fi +fastboot $* flash hypbak `dirname $0`/images/hyp.mbn +if [ $? -ne 0 ] ; then echo "Flash hypbak error"; exit 1; fi +fastboot $* flash devcfg `dirname $0`/images/devcfg.mbn +if [ $? -ne 0 ] ; then echo "Flash devcfg error"; exit 1; fi +fastboot $* flash devcfgbak `dirname $0`/images/devcfg.mbn +if [ $? -ne 0 ] ; then echo "Flash devcfgbak error"; exit 1; fi +fastboot $* flash storsec `dirname $0`/images/storsec.mbn +if [ $? -ne 0 ] ; then echo "Flash storsec error"; exit 1; fi +#fastboot $* flash storsecbak `dirname $0`/images/storsec.mbn +#if [ $? -ne 0 ] ; then echo "Flash storsecbak error"; exit 1; fi +fastboot $* flash bluetooth `dirname $0`/images/BTFM.bin +if [ $? -ne 0 ] ; then echo "Flash bluetooth error"; exit 1; fi +fastboot $* flash cmnlib `dirname $0`/images/cmnlib.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib error"; exit 1; fi +fastboot $* flash cmnlibbak `dirname $0`/images/cmnlib.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlibbak error"; exit 1; fi +fastboot $* flash cmnlib64 `dirname $0`/images/cmnlib64.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib64 error"; exit 1; fi +fastboot $* flash cmnlib64bak `dirname $0`/images/cmnlib64.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib64bak error"; exit 1; fi +fastboot $* flash modem `dirname $0`/images/NON-HLOS.bin +if [ $? -ne 0 ] ; then echo "Flash modem error"; exit 1; fi +fastboot $* flash dsp `dirname $0`/images/dspso.bin +if [ $? -ne 0 ] ; then echo "Flash dsp error"; exit 1; fi +fastboot $* erase metadata +if [ $? -ne 0 ] ; then echo "Erase metadata error"; exit 1; fi +fastboot $* flash metadata `dirname $0`/images/metadata.img +if [ $? -ne 0 ] ; then echo "Flash metadata error"; exit 1; fi +fastboot $* flash keymaster `dirname $0`/images/km41.mbn +if [ $? -ne 0 ] ; then echo "Flash keymaster error"; exit 1; fi +fastboot $* flash keymasterbak `dirname $0`/images/km41.mbn +if [ $? -ne 0 ] ; then echo "Flash keymaster error"; exit 1; fi +fastboot $* flash logo `dirname $0`/images/logo.img +if [ $? -ne 0 ] ; then echo "Flash logo error"; exit 1; fi +#fastboot $* flash splash `dirname $0`/images/splash.img +#if [ $? -ne 0 ] ; then echo "Flash splash error"; exit 1; fi +fastboot $* flash misc `dirname $0`/images/misc.img +if [ $? -ne 0 ] ; then echo "Flash misc error"; exit 1; fi +fastboot $* flash aop `dirname $0`/images/aop.mbn +if [ $? -ne 0 ] ; then echo "Flash aop error"; exit 1; fi +fastboot $* flash aopbak `dirname $0`/images/aop.mbn +if [ $? -ne 0 ] ; then echo "Flash aopbak error"; exit 1; fi +fastboot $* flash qupfw `dirname $0`/images/qupv3fw.elf +if [ $? -ne 0 ] ; then echo "Flash qupfw error"; exit 1; fi +fastboot $* flash qupfwbak `dirname $0`/images/qupv3fw.elf +if [ $? -ne 0 ] ; then echo "Flash qupfwbak error"; exit 1; fi +fastboot $* flash imagefv `dirname $0`/images/imagefv.elf +if [ $? -ne 0 ] ; then echo "Flash imagefv error"; exit 1; fi +fastboot $* flash uefisecapp `dirname $0`/images/uefi_sec.mbn +if [ $? -ne 0 ] ; then echo "Flash uefisecapp error"; exit 1; fi +fastboot $* flash uefisecappbak `dirname $0`/images/uefi_sec.mbn +if [ $? -ne 0 ] ; then echo "Flash uefisecappbak error"; exit 1; fi +fastboot $* flash multiimgoem `dirname $0`/images/multi_image.mbn +if [ $? -ne 0 ] ; then echo "Flash multiimgoem error"; exit 1; fi +fastboot $* flash vbmeta `dirname $0`/images/vbmeta.img +if [ $? -ne 0 ] ; then echo "Flash vbmeta error"; exit 1; fi +fastboot $* flash dtbo `dirname $0`/images/dtbo.img +if [ $? -ne 0 ] ; then echo "Flash dtbo error"; exit 1; fi +fastboot $* flash super `dirname $0`/images/super.img +if [ $? -ne 0 ] ; then echo "Flash super error"; exit 1; fi +fastboot $* flash vbmeta_system `dirname $0`/images/vbmeta_system.img +if [ $? -ne 0 ] ; then echo "Flash vbmeta_system error"; exit 1; fi +fastboot $* flash cache `dirname $0`/images/cache.img +if [ $? -ne 0 ] ; then echo "Flash cache error"; exit 1; fi +fastboot $* flash userdata `dirname $0`/images/userdata.img +if [ $? -ne 0 ] ; then echo "Flash userdata error"; exit 1; fi +fastboot $* flash recovery `dirname $0`/images/recovery.img +if [ $? -ne 0 ] ; then echo "Flash recovery error"; exit 1; fi +fastboot $* erase secdata +if [ $? -ne 0 ] ; then echo "Erase secdata error"; exit 1; fi +fastboot $* flash cust `dirname $0`/images/cust.img +if [ $? -ne 0 ] ; then echo "Flash cust error"; exit 1; fi +fastboot $* flash boot `dirname $0`/images/boot.img +if [ $? -ne 0 ] ; then echo "Flash boot error"; exit 1; fi +fastboot $* reboot +if [ $? -ne 0 ] ; then echo "Reboot error"; exit 1; fi diff --git a/flash_all_debug.bat b/flash_all_debug.bat new file mode 100644 index 0000000000000000000000000000000000000000..ae4834b34f53d7978e24de978f90b10b92d1ce89 --- /dev/null +++ b/flash_all_debug.bat @@ -0,0 +1,61 @@ +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" || @echo "Antirollback check error" && exit /B 1 + +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || echo Missmatching image and device +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || exit /B 1 + +fastboot %* erase boot || @echo "Erase boot error" && exit /B 1 +::fastboot %* flash crclist %~dp0images\crclist.txt || @echo "Flash crclist error" && exit /B 1 +::fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @echo "Flash sparsecrclist error" && exit /B 1 +fastboot %* flash xbl %~dp0images\xbl_debug.elf || @echo "Flash xbl error" && exit /B 1 +fastboot %* flash xblbak %~dp0images\xbl_debug.elf || @echo "Flash xblbak error" && exit /B 1 +fastboot %* flash xbl_config %~dp0images\xbl_config_debug.elf || @echo "Flash xbl_config error" && exit /B 1 +fastboot %* flash xbl_configbak %~dp0images\xbl_config_debug.elf || @echo "Flash xbl_configbak error" && exit /B 1 +fastboot %* flash abl %~dp0images\abl.elf || @echo "Flash abl error" && exit /B 1 +fastboot %* flash ablbak %~dp0images\abl.elf || @echo "Flash ablbak error" && exit /B 1 +fastboot %* flash tz %~dp0images\tz_debug.mbn || @echo "Flash tz error" && exit /B 1 +fastboot %* flash tzbak %~dp0images\tz_debug.mbn || @echo "Flash tzbak error" && exit /B 1 +fastboot %* flash hyp %~dp0images\hyp_debug.mbn || @echo "Flash hyp error" && exit /B 1 +fastboot %* flash hypbak %~dp0images\hyp_debug.mbn || @echo "Flash hypbak error" && exit /B 1 +fastboot %* flash devcfg %~dp0images\devcfg_debug.mbn || @echo "Flash devcfg error" && exit /B 1 +fastboot %* flash devcfgbak %~dp0images\devcfg_debug.mbn || @echo "Flash devcfgbak error" && exit /B 1 +fastboot %* flash storsec %~dp0images\storsec_debug.mbn || @echo "Flash storsec error" && exit /B 1 +::fastboot %* flash storsecbak %~dp0images\storsec.mbn || @echo "Flash storsecbak error" && exit /B 1 +fastboot %* flash bluetooth %~dp0images\BTFM.bin || @echo "Flash bluetooth error" && exit /B 1 +fastboot %* flash cmnlib %~dp0images\cmnlib_debug.mbn || @echo "Flash cmnlib error" && exit /B 1 +fastboot %* flash cmnlibbak %~dp0images\cmnlib_debug.mbn || @echo "Flash cmnlibbak error" && exit /B 1 +fastboot %* flash cmnlib64 %~dp0images\cmnlib64_debug.mbn || @echo "Flash cmnlib64 error" && exit /B 1 +fastboot %* flash cmnlib64bak %~dp0images\cmnlib64_debug.mbn || @echo "Flash cmnlib64bak error" && exit /B 1 +fastboot %* flash modem %~dp0images\NON-HLOS.bin || @echo "Flash modem error" && exit /B 1 +fastboot %* flash dsp %~dp0images\dspso.bin || @echo "Flash dsp error" && exit /B 1 +fastboot %* flash metadata %~dp0images\metadata.img || @echo "Flash metadata error" && exit /B 1 +fastboot %* flash keymaster %~dp0images\km41_debug.mbn || @echo "Flash keymaster error" && exit /B 1 +fastboot %* flash keymasterbak %~dp0images\km41_debug.mbn || @echo "Flash keymasterbak error" && exit /B 1 +fastboot %* flash logo %~dp0images\logo.img || @echo "Flash logo error" && exit /B 1 +::fastboot %* flash splash %~dp0images\splash.img || @echo "Flash splash error" && exit /B 1 +fastboot %* flash misc %~dp0images\misc.img || @echo "Flash misc error" && exit /B 1 +fastboot %* flash aop %~dp0images\aop.mbn || @echo "Flash aop error" && exit /B 1 +fastboot %* flash aopbak %~dp0images\aop.mbn || @echo "Flash aopbak error" && exit /B 1 +fastboot %* flash qupfw %~dp0images\qupv3fw.elf || @echo "Flash qupfw error" && exit /B 1 +fastboot %* flash qupfwbak %~dp0images\qupv3fw.elf || @echo "Flash qupfwbak error" && exit /B 1 +fastboot %* flash imagefv %~dp0images\imagefv.elf || @echo "Flash imagefv error" && exit /B 1 +fastboot %* flash uefisecapp %~dp0images\uefi_sec_debug.mbn || @echo "Flash uefisecapp error" && exit /B 1 +fastboot %* flash uefisecappbak %~dp0images\uefi_sec_debug.mbn || @echo "Flash uefisecappbak error" && exit /B 1 +fastboot %* flash multiimgoem %~dp0images\multi_image.mbn || @echo "Flash multiimgoem error" && exit /B 1 +fastboot %* flash vbmeta %~dp0images\vbmeta.img || @echo "Flash vbmeta error" && exit /B 1 +fastboot %* flash dtbo %~dp0images\dtbo.img || @echo "Flash dtbo error" && exit /B 1 +fastboot %* flash super %~dp0images\super.img || @echo "Flash super error" && exit /B 1 +fastboot %* flash vbmeta_system %~dp0images\vbmeta_system.img || @echo "Flash vbmeta_system error" && exit /B 1 +fastboot %* flash cache %~dp0images\cache.img || @echo "Flash cache error" && exit /B 1 +fastboot %* flash userdata %~dp0images\userdata.img || @echo "Flash userdata error" && exit /B 1 +fastboot %* flash recovery %~dp0images\recovery.img || @echo "Flash recovery error" && exit /B 1 +fastboot %* erase secdata || @echo "Erase secdata error" && exit /B 1 +fastboot %* flash cust %~dp0images\cust.img || @echo "Flash cust error" && exit /B 1 +fastboot %* flash boot %~dp0images\boot.img || @echo "Flash boot error" && exit /B 1 +fastboot %* reboot || @echo "Reboot error" && exit /B 1 diff --git a/flash_all_except_storage.bat b/flash_all_except_storage.bat new file mode 100644 index 0000000000000000000000000000000000000000..7cf93f298d6a29ae0a931d92537362030b5ab1d4 --- /dev/null +++ b/flash_all_except_storage.bat @@ -0,0 +1,59 @@ +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" || @echo "Antirollback check error" && exit /B 1 + +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || echo Missmatching image and device +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || exit /B 1 + +fastboot %* erase boot || @echo "Erase boot error" && exit /B 1 +fastboot %* flash crclist %~dp0images\crclist.txt || @echo "Flash crclist error" && exit /B 1 +fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @echo "Flash sparsecrclist error" && exit /B 1 +fastboot %* flash xbl %~dp0images\xbl.elf || @echo "Flash xbl error" && exit /B 1 +fastboot %* flash xblbak %~dp0images\xbl.elf || @echo "Flash xblbak error" && exit /B 1 +fastboot %* flash xbl_config %~dp0images\xbl_config.elf || @echo "Flash xbl_config error" && exit /B 1 +fastboot %* flash xbl_configbak %~dp0images\xbl_config.elf || @echo "Flash xbl_configbak error" && exit /B 1 +fastboot %* flash abl %~dp0images\abl.elf || @echo "Flash abl error" && exit /B 1 +fastboot %* flash ablbak %~dp0images\abl.elf || @echo "Flash ablbak error" && exit /B 1 +fastboot %* flash tz %~dp0images\tz.mbn || @echo "Flash tz error" && exit /B 1 +fastboot %* flash tzbak %~dp0images\tz.mbn || @echo "Flash tzbak error" && exit /B 1 +fastboot %* flash hyp %~dp0images\hyp.mbn || @echo "Flash hyp error" && exit /B 1 +fastboot %* flash hypbak %~dp0images\hyp.mbn || @echo "Flash hypbak error" && exit /B 1 +fastboot %* flash devcfg %~dp0images\devcfg.mbn || @echo "Flash devcfg error" && exit /B 1 +fastboot %* flash devcfgbak %~dp0images\devcfg.mbn || @echo "Flash devcfgbak error" && exit /B 1 +fastboot %* flash storsec %~dp0images\storsec.mbn || @echo "Flash storsec error" && exit /B 1 +::fastboot %* flash storsecbak %~dp0images\storsec.mbn || @echo "Flash storsecbak error" && exit /B 1 +fastboot %* flash bluetooth %~dp0images\BTFM.bin || @echo "Flash bluetooth error" && exit /B 1 +fastboot %* flash cmnlib %~dp0images\cmnlib.mbn || @echo "Flash cmnlib error" && exit /B 1 +fastboot %* flash cmnlibbak %~dp0images\cmnlib.mbn || @echo "Flash cmnlibbak error" && exit /B 1 +fastboot %* flash cmnlib64 %~dp0images\cmnlib64.mbn || @echo "Flash cmnlib64 error" && exit /B 1 +fastboot %* flash cmnlib64bak %~dp0images\cmnlib64.mbn || @echo "Flash cmnlib64bak error" && exit /B 1 +fastboot %* flash modem %~dp0images\NON-HLOS.bin || @echo "Flash modem error" && exit /B 1 +fastboot %* flash dsp %~dp0images\dspso.bin || @echo "Flash dsp error" && exit /B 1 +fastboot %* flash keymaster %~dp0images\km41.mbn || @echo "Flash keymaster error" && exit /B 1 +fastboot %* flash keymasterbak %~dp0images\km41.mbn || @echo "Flash keymasterbak error" && exit /B 1 +fastboot %* flash logo %~dp0images\logo.img || @echo "Flash logo error" && exit /B 1 +::fastboot %* flash splash %~dp0images\splash.img || @echo "Flash splash error" && exit /B 1 +::fastboot %* flash misc %~dp0images\misc.img || @echo "Flash misc error" && exit /B 1 +fastboot %* flash aop %~dp0images\aop.mbn || @echo "Flash aop error" && exit /B 1 +fastboot %* flash aopbak %~dp0images\aop.mbn || @echo "Flash aopbak error" && exit /B 1 +fastboot %* flash qupfw %~dp0images\qupv3fw.elf || @echo "Flash qupfw error" && exit /B 1 +fastboot %* flash qupfwbak %~dp0images\qupv3fw.elf || @echo "Flash qupfwbak error" && exit /B 1 +fastboot %* flash imagefv %~dp0images\imagefv.elf || @echo "Flash imagefv error" && exit /B 1 +fastboot %* flash uefisecapp %~dp0images\uefi_sec.mbn || @echo "Flash uefisecapp error" && exit /B 1 +fastboot %* flash uefisecappbak %~dp0images\uefi_sec.mbn || @echo "Flash uefisecappbak error" && exit /B 1 +fastboot %* flash multiimgoem %~dp0images\multi_image.mbn || @echo "Flash multiimgoem error" && exit /B 1 +fastboot %* flash vbmeta %~dp0images\vbmeta.img || @echo "Flash vbmeta error" && exit /B 1 +fastboot %* flash dtbo %~dp0images\dtbo.img || @echo "Flash dtbo error" && exit /B 1 +fastboot %* flash super %~dp0images\super.img || @echo "Flash super error" && exit /B 1 +fastboot %* flash vbmeta_system %~dp0images\vbmeta_system.img || @echo "Flash vbmeta_system error" && exit /B 1 +fastboot %* flash cache %~dp0images\cache.img || @echo "Flash cache error" && exit /B 1 +fastboot %* flash recovery %~dp0images\recovery.img || @echo "Flash recovery error" && exit /B 1 +fastboot %* erase secdata || @echo "Erase secdata error" && exit /B 1 +::fastboot %* flash cust %~dp0images\cust.img || @echo "Flash cust error" && exit /B 1 +fastboot %* flash boot %~dp0images\boot.img || @echo "Flash boot error" && exit /B 1 +fastboot %* reboot || @echo "Reboot error" && exit /B 1 diff --git a/flash_all_except_storage.sh b/flash_all_except_storage.sh new file mode 100644 index 0000000000000000000000000000000000000000..21e9a04d98b81db1a3e42cc0e04d428280d93615 --- /dev/null +++ b/flash_all_except_storage.sh @@ -0,0 +1,106 @@ +if [ -e $(dirname $0)/images/anti_version.txt ]; then +CURRENT_ANTI_VER=`cat $(dirname $0)/images/anti_version.txt` +fi + +if [ -z "$CURRENT_ANTI_VER" ]; then CURRENT_ANTI_VER=0; fi +ver=`fastboot $* getvar anti 2>&1 | grep -oP "anti: \K[0-9]+"` +if [ -z "$ver" ]; then ver=0; fi +if [ $ver -gt $CURRENT_ANTI_VER ]; then echo "Current device antirollback version is greater than this pakcage"; exit 1; fi + +fastboot $* getvar product 2>&1 | grep "^product: courbet*" +if [ $? -ne 0 ] ; then echo "Missmatching image and device"; exit 1; fi + +fastboot $* erase boot +if [ $? -ne 0 ] ; then echo "Erase boot error"; exit 1; fi +fastboot $* flash crclist `dirname $0`/images/crclist.txt +if [ $? -ne 0 ] ; then echo "Flash crclist error"; exit 1; fi +fastboot $* flash sparsecrclist `dirname $0`/images/sparsecrclist.txt +if [ $? -ne 0 ] ; then echo "Flash sparsecrclist error"; exit 1; fi +fastboot $* flash xbl `dirname $0`/images/xbl.elf +if [ $? -ne 0 ] ; then echo "Flash xbl error"; exit 1; fi +fastboot $* flash xblbak `dirname $0`/images/xbl.elf +if [ $? -ne 0 ] ; then echo "Flash xblbak error"; exit 1; fi +fastboot $* flash xbl_config `dirname $0`/images/xbl_config.elf +if [ $? -ne 0 ] ; then echo "Flash xbl_config error"; exit 1; fi +fastboot $* flash xbl_configbak `dirname $0`/images/xbl_config.elf +if [ $? -ne 0 ] ; then echo "Flash xbl_configbak error"; exit 1; fi +fastboot $* flash abl `dirname $0`/images/abl.elf +if [ $? -ne 0 ] ; then echo "Flash abl error"; exit 1; fi +fastboot $* flash ablbak `dirname $0`/images/abl.elf +if [ $? -ne 0 ] ; then echo "Flash ablbak error"; exit 1; fi +fastboot $* flash tz `dirname $0`/images/tz.mbn +if [ $? -ne 0 ] ; then echo "Flash tz error"; exit 1; fi +fastboot $* flash tzbak `dirname $0`/images/tz.mbn +if [ $? -ne 0 ] ; then echo "Flash tzbak error"; exit 1; fi +fastboot $* flash hyp `dirname $0`/images/hyp.mbn +if [ $? -ne 0 ] ; then echo "Flash hyp error"; exit 1; fi +fastboot $* flash hypbak `dirname $0`/images/hyp.mbn +if [ $? -ne 0 ] ; then echo "Flash hypbak error"; exit 1; fi +fastboot $* flash devcfg `dirname $0`/images/devcfg.mbn +if [ $? -ne 0 ] ; then echo "Flash devcfg error"; exit 1; fi +fastboot $* flash devcfgbak `dirname $0`/images/devcfg.mbn +if [ $? -ne 0 ] ; then echo "Flash devcfgbak error"; exit 1; fi +fastboot $* flash storsec `dirname $0`/images/storsec.mbn +if [ $? -ne 0 ] ; then echo "Flash storsec error"; exit 1; fi +#fastboot $* flash storsecbak `dirname $0`/images/storsec.mbn +#if [ $? -ne 0 ] ; then echo "Flash storsecbak error"; exit 1; fi +fastboot $* flash bluetooth `dirname $0`/images/BTFM.bin +if [ $? -ne 0 ] ; then echo "Flash bluetooth error"; exit 1; fi +fastboot $* flash cmnlib `dirname $0`/images/cmnlib.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib error"; exit 1; fi +fastboot $* flash cmnlibbak `dirname $0`/images/cmnlib.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlibbak error"; exit 1; fi +fastboot $* flash cmnlib64 `dirname $0`/images/cmnlib64.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib64 error"; exit 1; fi +fastboot $* flash cmnlib64bak `dirname $0`/images/cmnlib64.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib64bak error"; exit 1; fi +fastboot $* flash modem `dirname $0`/images/NON-HLOS.bin +if [ $? -ne 0 ] ; then echo "Flash modem error"; exit 1; fi +fastboot $* flash dsp `dirname $0`/images/dspso.bin +if [ $? -ne 0 ] ; then echo "Flash dsp error"; exit 1; fi +fastboot $* flash keymaster `dirname $0`/images/km41.mbn +if [ $? -ne 0 ] ; then echo "Flash keymaster error"; exit 1; fi +fastboot $* flash keymasterbak `dirname $0`/images/km41.mbn +if [ $? -ne 0 ] ; then echo "Flash keymaster error"; exit 1; fi +fastboot $* flash logo `dirname $0`/images/logo.img +if [ $? -ne 0 ] ; then echo "Flash logo error"; exit 1; fi +#fastboot $* flash splash `dirname $0`/images/splash.img +#if [ $? -ne 0 ] ; then echo "Flash splash error"; exit 1; fi +#fastboot $* flash misc `dirname $0`/images/misc.img +#if [ $? -ne 0 ] ; then echo "Flash misc error"; exit 1; fi +fastboot $* flash aop `dirname $0`/images/aop.mbn +if [ $? -ne 0 ] ; then echo "Flash aop error"; exit 1; fi +fastboot $* flash aopbak `dirname $0`/images/aop.mbn +if [ $? -ne 0 ] ; then echo "Flash aopbak error"; exit 1; fi +fastboot $* flash qupfw `dirname $0`/images/qupv3fw.elf +if [ $? -ne 0 ] ; then echo "Flash qupfw error"; exit 1; fi +fastboot $* flash qupfwbak `dirname $0`/images/qupv3fw.elf +if [ $? -ne 0 ] ; then echo "Flash qupfwbak error"; exit 1; fi +fastboot $* flash imagefv `dirname $0`/images/imagefv.elf +if [ $? -ne 0 ] ; then echo "Flash imagefv error"; exit 1; fi +fastboot $* flash uefisecapp `dirname $0`/images/uefi_sec.mbn +if [ $? -ne 0 ] ; then echo "Flash uefisecapp error"; exit 1; fi +fastboot $* flash uefisecappbak `dirname $0`/images/uefi_sec.mbn +if [ $? -ne 0 ] ; then echo "Flash uefisecappbak error"; exit 1; fi +fastboot $* flash multiimgoem `dirname $0`/images/multi_image.mbn +if [ $? -ne 0 ] ; then echo "Flash multiimgoem error"; exit 1; fi +fastboot $* flash vbmeta `dirname $0`/images/vbmeta.img +if [ $? -ne 0 ] ; then echo "Flash vbmeta error"; exit 1; fi +fastboot $* flash dtbo `dirname $0`/images/dtbo.img +if [ $? -ne 0 ] ; then echo "Flash dtbo error"; exit 1; fi +fastboot $* flash super `dirname $0`/images/super.img +if [ $? -ne 0 ] ; then echo "Flash super error"; exit 1; fi +fastboot $* flash vbmeta_system `dirname $0`/images/vbmeta_system.img +if [ $? -ne 0 ] ; then echo "Flash vbmeta_system error"; exit 1; fi +fastboot $* flash cache `dirname $0`/images/cache.img +if [ $? -ne 0 ] ; then echo "Flash cache error"; exit 1; fi +fastboot $* flash recovery `dirname $0`/images/recovery.img +if [ $? -ne 0 ] ; then echo "Flash recovery error"; exit 1; fi +fastboot $* erase secdata +if [ $? -ne 0 ] ; then echo "Erase secdata error"; exit 1; fi +#fastboot $* flash cust `dirname $0`/images/cust.img +#if [ $? -ne 0 ] ; then echo "Flash cust error"; exit 1; fi +fastboot $* flash boot `dirname $0`/images/boot.img +if [ $? -ne 0 ] ; then echo "Flash boot error"; exit 1; fi +fastboot $* reboot +if [ $? -ne 0 ] ; then echo "Reboot error"; exit 1; fi diff --git a/flash_all_lock.bat b/flash_all_lock.bat new file mode 100644 index 0000000000000000000000000000000000000000..e9ee59de27ec098edb293228bd3d087ba05faa7b --- /dev/null +++ b/flash_all_lock.bat @@ -0,0 +1,61 @@ +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" || @echo "Antirollback check error" && exit /B 1 + +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || echo Missmatching image and device +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || exit /B 1 + +fastboot %* erase boot || @echo "Erase boot error" && exit /B 1 +fastboot %* flash crclist %~dp0images\crclist.txt || @echo "Flash crclist error" && exit /B 1 +fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @echo "Flash sparsecrclist error" && exit /B 1 +fastboot %* flash xbl %~dp0images\xbl.elf || @echo "Flash xbl error" && exit /B 1 +fastboot %* flash xblbak %~dp0images\xbl.elf || @echo "Flash xblbak error" && exit /B 1 +fastboot %* flash xbl_config %~dp0images\xbl_config.elf || @echo "Flash xbl_config error" && exit /B 1 +fastboot %* flash xbl_configbak %~dp0images\xbl_config.elf || @echo "Flash xbl_configbak error" && exit /B 1 +fastboot %* flash abl %~dp0images\abl.elf || @echo "Flash abl error" && exit /B 1 +fastboot %* flash ablbak %~dp0images\abl.elf || @echo "Flash ablbak error" && exit /B 1 +fastboot %* flash tz %~dp0images\tz.mbn || @echo "Flash tz error" && exit /B 1 +fastboot %* flash tzbak %~dp0images\tz.mbn || @echo "Flash tzbak error" && exit /B 1 +fastboot %* flash hyp %~dp0images\hyp.mbn || @echo "Flash hyp error" && exit /B 1 +fastboot %* flash hypbak %~dp0images\hyp.mbn || @echo "Flash hypbak error" && exit /B 1 +fastboot %* flash devcfg %~dp0images\devcfg.mbn || @echo "Flash devcfg error" && exit /B 1 +fastboot %* flash devcfgbak %~dp0images\devcfg.mbn || @echo "Flash devcfgbak error" && exit /B 1 +fastboot %* flash storsec %~dp0images\storsec.mbn || @echo "Flash storsec error" && exit /B 1 +::fastboot %* flash storsecbak %~dp0images\storsec.mbn || @echo "Flash storsecbak error" && exit /B 1 +fastboot %* flash bluetooth %~dp0images\BTFM.bin || @echo "Flash bluetooth error" && exit /B 1 +fastboot %* flash cmnlib %~dp0images\cmnlib.mbn || @echo "Flash cmnlib error" && exit /B 1 +fastboot %* flash cmnlibbak %~dp0images\cmnlib.mbn || @echo "Flash cmnlibbak error" && exit /B 1 +fastboot %* flash cmnlib64 %~dp0images\cmnlib64.mbn || @echo "Flash cmnlib64 error" && exit /B 1 +fastboot %* flash cmnlib64bak %~dp0images\cmnlib64.mbn || @echo "Flash cmnlib64bak error" && exit /B 1 +fastboot %* flash modem %~dp0images\NON-HLOS.bin || @echo "Flash modem error" && exit /B 1 +fastboot %* flash dsp %~dp0images\dspso.bin || @echo "Flash dsp error" && exit /B 1 +fastboot %* erase metadata || @echo "Erase metadata error" && exit 1 +fastboot %* flash metadata %~dp0images\metadata.img || @echo "Flash metadata error" && exit /B 1 +fastboot %* flash keymaster %~dp0images\km41.mbn || @echo "Flash keymaster error" && exit /B 1 +fastboot %* flash keymasterbak %~dp0images\km41.mbn || @echo "Flash keymasterbak error" && exit /B 1 +fastboot %* flash logo %~dp0images\logo.img || @echo "Flash logo error" && exit /B 1 +::fastboot %* flash splash %~dp0images\splash.img || @echo "Flash splash error" && exit /B 1 +::fastboot %* flash misc %~dp0images\misc.img || @echo "Flash misc error" && exit /B 1 +fastboot %* flash aop %~dp0images\aop.mbn || @echo "Flash aop error" && exit /B 1 +fastboot %* flash aopbak %~dp0images\aop.mbn || @echo "Flash aopbak error" && exit /B 1 +fastboot %* flash qupfw %~dp0images\qupv3fw.elf || @echo "Flash qupfw error" && exit /B 1 +fastboot %* flash qupfwbak %~dp0images\qupv3fw.elf || @echo "Flash qupfwbak error" && exit /B 1 +fastboot %* flash imagefv %~dp0images\imagefv.elf || @echo "Flash imagefv error" && exit /B 1 +fastboot %* flash uefisecapp %~dp0images\uefi_sec.mbn || @echo "Flash uefisecapp error" && exit /B 1 +fastboot %* flash uefisecappbak %~dp0images\uefi_sec.mbn || @echo "Flash uefisecappbak error" && exit /B 1 +fastboot %* flash multiimgoem %~dp0images\multi_image.mbn || @echo "Flash multiimgoem error" && exit /B 1 +fastboot %* flash vbmeta %~dp0images\vbmeta.img || @echo "Flash vbmeta error" && exit /B 1 +fastboot %* flash dtbo %~dp0images\dtbo.img || @echo "Flash dtbo error" && exit /B 1 +fastboot %* flash super %~dp0images\super.img || @echo "Flash super error" && exit /B 1 +fastboot %* flash vbmeta_system %~dp0images\vbmeta_system.img || @echo "Flash vbmeta_system error" && exit /B 1 +fastboot %* flash cache %~dp0images\cache.img || @echo "Flash cache error" && exit /B 1 +fastboot %* flash userdata %~dp0images\userdata.img || @echo "Flash userdata error" && exit /B 1 +fastboot %* flash recovery %~dp0images\recovery.img || @echo "Flash recovery error" && exit /B 1 +fastboot %* erase secdata || @echo "Erase secdata error" && exit /B 1 +fastboot %* flash cust %~dp0images\cust.img || @echo "Flash cust error" && exit /B 1 +fastboot %* flash boot %~dp0images\boot.img || @echo "Flash boot error" && exit /B 1 +fastboot %* oem lock || @echo "Oem lock error" && exit /B 1 diff --git a/flash_all_lock.sh b/flash_all_lock.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3554938aa465a31addb82f41072438a7bb71e20 --- /dev/null +++ b/flash_all_lock.sh @@ -0,0 +1,112 @@ +if [ -e $(dirname $0)/images/anti_version.txt ]; then +CURRENT_ANTI_VER=`cat $(dirname $0)/images/anti_version.txt` +fi + +if [ -z "$CURRENT_ANTI_VER" ]; then CURRENT_ANTI_VER=0; fi +ver=`fastboot $* getvar anti 2>&1 | grep -oP "anti: \K[0-9]+"` +if [ -z "$ver" ]; then ver=0; fi +if [ $ver -gt $CURRENT_ANTI_VER ]; then echo "Current device antirollback version is greater than this pakcage"; exit 1; fi + +fastboot $* getvar product 2>&1 | grep "^product: courbet*" +if [ $? -ne 0 ] ; then echo "Missmatching image and device"; exit 1; fi + +fastboot $* erase boot +if [ $? -ne 0 ] ; then echo "Erase boot error"; exit 1; fi +fastboot $* flash crclist `dirname $0`/images/crclist.txt +if [ $? -ne 0 ] ; then echo "Flash crclist error"; exit 1; fi +fastboot $* flash sparsecrclist `dirname $0`/images/sparsecrclist.txt +if [ $? -ne 0 ] ; then echo "Flash sparsecrclist error"; exit 1; fi +fastboot $* flash xbl `dirname $0`/images/xbl.elf +if [ $? -ne 0 ] ; then echo "Flash xbl error"; exit 1; fi +fastboot $* flash xblbak `dirname $0`/images/xbl.elf +if [ $? -ne 0 ] ; then echo "Flash xblbak error"; exit 1; fi +fastboot $* flash xbl_config `dirname $0`/images/xbl_config.elf +if [ $? -ne 0 ] ; then echo "Flash xbl_config error"; exit 1; fi +fastboot $* flash xbl_configbak `dirname $0`/images/xbl_config.elf +if [ $? -ne 0 ] ; then echo "Flash xbl_configbak error"; exit 1; fi +fastboot $* flash abl `dirname $0`/images/abl.elf +if [ $? -ne 0 ] ; then echo "Flash abl error"; exit 1; fi +fastboot $* flash ablbak `dirname $0`/images/abl.elf +if [ $? -ne 0 ] ; then echo "Flash ablbak error"; exit 1; fi +fastboot $* flash tz `dirname $0`/images/tz.mbn +if [ $? -ne 0 ] ; then echo "Flash tz error"; exit 1; fi +fastboot $* flash tzbak `dirname $0`/images/tz.mbn +if [ $? -ne 0 ] ; then echo "Flash tzbak error"; exit 1; fi +fastboot $* flash hyp `dirname $0`/images/hyp.mbn +if [ $? -ne 0 ] ; then echo "Flash hyp error"; exit 1; fi +fastboot $* flash hypbak `dirname $0`/images/hyp.mbn +if [ $? -ne 0 ] ; then echo "Flash hypbak error"; exit 1; fi +fastboot $* flash devcfg `dirname $0`/images/devcfg.mbn +if [ $? -ne 0 ] ; then echo "Flash devcfg error"; exit 1; fi +fastboot $* flash devcfgbak `dirname $0`/images/devcfg.mbn +if [ $? -ne 0 ] ; then echo "Flash devcfgbak error"; exit 1; fi +fastboot $* flash storsec `dirname $0`/images/storsec.mbn +if [ $? -ne 0 ] ; then echo "Flash storsec error"; exit 1; fi +#fastboot $* flash storsecbak `dirname $0`/images/storsec.mbn +#if [ $? -ne 0 ] ; then echo "Flash storsecbak error"; exit 1; fi +fastboot $* flash bluetooth `dirname $0`/images/BTFM.bin +if [ $? -ne 0 ] ; then echo "Flash bluetooth error"; exit 1; fi +fastboot $* flash cmnlib `dirname $0`/images/cmnlib.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib error"; exit 1; fi +fastboot $* flash cmnlibbak `dirname $0`/images/cmnlib.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlibbak error"; exit 1; fi +fastboot $* flash cmnlib64 `dirname $0`/images/cmnlib64.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib64 error"; exit 1; fi +fastboot $* flash cmnlib64bak `dirname $0`/images/cmnlib64.mbn +if [ $? -ne 0 ] ; then echo "Flash cmnlib64bak error"; exit 1; fi +fastboot $* flash modem `dirname $0`/images/NON-HLOS.bin +if [ $? -ne 0 ] ; then echo "Flash modem error"; exit 1; fi +fastboot $* flash dsp `dirname $0`/images/dspso.bin +if [ $? -ne 0 ] ; then echo "Flash dsp error"; exit 1; fi +fastboot $* erase metadata +if [ $? -ne 0 ] ; then echo "Erase metadata error"; exit 1; fi +fastboot $* flash metadata `dirname $0`/images/metadata.img +if [ $? -ne 0 ] ; then echo "Flash metadata error"; exit 1; fi +fastboot $* flash keymaster `dirname $0`/images/km41.mbn +if [ $? -ne 0 ] ; then echo "Flash keymaster error"; exit 1; fi +fastboot $* flash keymasterbak `dirname $0`/images/km41.mbn +if [ $? -ne 0 ] ; then echo "Flash keymaster error"; exit 1; fi +fastboot $* flash logo `dirname $0`/images/logo.img +if [ $? -ne 0 ] ; then echo "Flash logo error"; exit 1; fi +#fastboot $* flash splash `dirname $0`/images/splash.img +#if [ $? -ne 0 ] ; then echo "Flash splash error"; exit 1; fi +#fastboot $* flash misc `dirname $0`/images/misc.img +#if [ $? -ne 0 ] ; then echo "Flash misc error"; exit 1; fi +fastboot $* flash aop `dirname $0`/images/aop.mbn +if [ $? -ne 0 ] ; then echo "Flash aop error"; exit 1; fi +fastboot $* flash aopbak `dirname $0`/images/aop.mbn +if [ $? -ne 0 ] ; then echo "Flash aopbak error"; exit 1; fi +fastboot $* flash qupfw `dirname $0`/images/qupv3fw.elf +if [ $? -ne 0 ] ; then echo "Flash qupfw error"; exit 1; fi +fastboot $* flash qupfwbak `dirname $0`/images/qupv3fw.elf +if [ $? -ne 0 ] ; then echo "Flash qupfwbak error"; exit 1; fi +fastboot $* flash imagefv `dirname $0`/images/imagefv.elf +if [ $? -ne 0 ] ; then echo "Flash imagefv error"; exit 1; fi +fastboot $* flash uefisecapp `dirname $0`/images/uefi_sec.mbn +if [ $? -ne 0 ] ; then echo "Flash uefisecapp error"; exit 1; fi +fastboot $* flash uefisecappbak `dirname $0`/images/uefi_sec.mbn +if [ $? -ne 0 ] ; then echo "Flash uefisecappbak error"; exit 1; fi +fastboot $* flash multiimgoem `dirname $0`/images/multi_image.mbn +if [ $? -ne 0 ] ; then echo "Flash multiimgoem error"; exit 1; fi +fastboot $* flash vbmeta `dirname $0`/images/vbmeta.img +if [ $? -ne 0 ] ; then echo "Flash vbmeta error"; exit 1; fi +fastboot $* flash dtbo `dirname $0`/images/dtbo.img +if [ $? -ne 0 ] ; then echo "Flash dtbo error"; exit 1; fi +fastboot $* flash super `dirname $0`/images/super.img +if [ $? -ne 0 ] ; then echo "Flash super error"; exit 1; fi +fastboot $* flash vbmeta_system `dirname $0`/images/vbmeta_system.img +if [ $? -ne 0 ] ; then echo "Flash vbmeta_system error"; exit 1; fi +fastboot $* flash cache `dirname $0`/images/cache.img +if [ $? -ne 0 ] ; then echo "Flash cache error"; exit 1; fi +fastboot $* flash userdata `dirname $0`/images/userdata.img +if [ $? -ne 0 ] ; then echo "Flash userdata error"; exit 1; fi +fastboot $* flash recovery `dirname $0`/images/recovery.img +if [ $? -ne 0 ] ; then echo "Flash recovery error"; exit 1; fi +fastboot $* erase secdata +if [ $? -ne 0 ] ; then echo "Erase secdata error"; exit 1; fi +fastboot $* flash cust `dirname $0`/images/cust.img +if [ $? -ne 0 ] ; then echo "Flash cust error"; exit 1; fi +fastboot $* flash boot `dirname $0`/images/boot.img +if [ $? -ne 0 ] ; then echo "Flash boot error"; exit 1; fi +fastboot $* oem lock +if [ $? -ne 0 ] ; then echo "Oem lock error"; exit 1; fi diff --git a/flash_debug_only.bat b/flash_debug_only.bat new file mode 100644 index 0000000000000000000000000000000000000000..d40d6c533f88cead60b47e2028390335a694c0dc --- /dev/null +++ b/flash_debug_only.bat @@ -0,0 +1,37 @@ +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" || @echo "Antirollback check error" && exit /B 1 + +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || echo Missmatching image and device +fastboot %* getvar product 2>&1 | findstr /r /c:"^product: courbet*" || exit /B 1 + +::fastboot %* erase boot || @echo "Erase boot error" && exit /B 1 +::fastboot %* flash crclist %~dp0images\crclist.txt || @echo "Flash crclist error" && exit /B 1 +::fastboot %* flash sparsecrclist %~dp0images\sparsecrclist.txt || @echo "Flash sparsecrclist error" && exit /B 1 +fastboot %* flash xbl %~dp0images\xbl_debug.elf || @echo "Flash xbl error" && exit /B 1 +fastboot %* flash xblbak %~dp0images\xbl_debug.elf || @echo "Flash xblbak error" && exit /B 1 +fastboot %* flash xbl_config %~dp0images\xbl_config_debug.elf || @echo "Flash xbl_config error" && exit /B 1 +fastboot %* flash xbl_configbak %~dp0images\xbl_config_debug.elf || @echo "Flash xbl_configbak error" && exit /B 1 +fastboot %* flash tz %~dp0images\tz_debug.mbn || @echo "Flash tz error" && exit /B 1 +fastboot %* flash tzbak %~dp0images\tz_debug.mbn || @echo "Flash tzbak error" && exit /B 1 +fastboot %* flash hyp %~dp0images\hyp_debug.mbn || @echo "Flash hyp error" && exit /B 1 +fastboot %* flash hypbak %~dp0images\hyp_debug.mbn || @echo "Flash hypbak error" && exit /B 1 +fastboot %* flash devcfg %~dp0images\devcfg_debug.mbn || @echo "Flash devcfg error" && exit /B 1 +fastboot %* flash devcfgbak %~dp0images\devcfg_debug.mbn || @echo "Flash devcfgbak error" && exit /B 1 +fastboot %* flash storsec %~dp0images\storsec_debug.mbn || @echo "Flash storsec error" && exit /B 1 +::fastboot %* flash storsecbak %~dp0images\storsec.mbn || @echo "Flash storsecbak error" && exit /B 1 +fastboot %* flash cmnlib %~dp0images\cmnlib_debug.mbn || @echo "Flash cmnlib error" && exit /B 1 +fastboot %* flash cmnlibbak %~dp0images\cmnlib_debug.mbn || @echo "Flash cmnlibbak error" && exit /B 1 +fastboot %* flash cmnlib64 %~dp0images\cmnlib64_debug.mbn || @echo "Flash cmnlib64 error" && exit /B 1 +fastboot %* flash cmnlib64bak %~dp0images\cmnlib64_debug.mbn || @echo "Flash cmnlib64bak error" && exit /B 1 +fastboot %* flash keymaster %~dp0images\km41_debug.mbn || @echo "Flash keymaster error" && exit /B 1 +fastboot %* flash keymasterbak %~dp0images\km41_debug.mbn || @echo "Flash keymasterbak error" && exit /B 1 +::fastboot %* flash splash %~dp0images\splash.img || @echo "Flash splash error" && exit /B 1 +fastboot %* flash uefisecapp %~dp0images\uefi_sec_debug.mbn || @echo "Flash uefisecapp error" && exit /B 1 +fastboot %* flash uefisecappbak %~dp0images\uefi_sec_debug.mbn || @echo "Flash uefisecappbak error" && exit /B 1 +fastboot %* reboot || @echo "Reboot error" && exit /B 1 diff --git a/flash_gen_crc_list.py b/flash_gen_crc_list.py new file mode 100644 index 0000000000000000000000000000000000000000..853738766d0d97905aabab36f79356ec57b7b90c --- /dev/null +++ b/flash_gen_crc_list.py @@ -0,0 +1,259 @@ +#!/usr/bin/env python +from __future__ import print_function +import getopt, posixpath, signal, struct, sys +import os +import binascii + +sparse_file_list = { + "metadata" : "metadata.img", + "cache" : "cache.img", + "cust" : "cust.img", + "super" : "super.img", + "userdata" : "userdata.img", +} + +unsparse_file_list = { + "xbl":"xbl.elf", + "xblbak":"xbl.elf", + "xbl_config":"xbl_config.elf", + "xbl_configbak":"xbl_config.elf", + "abl":"abl.elf", + "ablbak":"abl.elf", + "tz":"tz.mbn", + "tzbak":"tz.mbn", + "hyp":"hyp.mbn", + "hypbak":"hyp.mbn", + "devcfg":"devcfg.mbn", + "devcfgbak":"devcfg.mbn", + "storsec":"storsec.mbn", + "bluetooth":"BTFM.bin", + "cmnlib":"cmnlib.mbn", + "cmnlibbak":"cmnlib.mbn", + "cmnlib64":"cmnlib64.mbn", + "cmnlib64bak":"cmnlib64.mbn", + "logfs":"logfs_ufs_8mb.bin", + "modem":"NON-HLOS.bin", + "dsp":"dspso.bin", + "keymaster":"km41.mbn", + "keymasterbak":"km41.mbn", + "aop":"aop.mbn", + "aopbak":"aop.mbn", + "qupfw":"qupv3fw.elf", + "qupfwbak":"qupv3fw.elf", + "imagefv":"imagefv.elf", + "imagefvbak":"imagefv.elf", + "uefisecapp":"uefi_sec.mbn", + "uefisecappbak":"uefi_sec.mbn", + "multiimgoem":"multi_image.mbn", + "logo":"logo.img", + "misc":"misc.img", + "recovery":"recovery.img", + "boot":"boot.img", + "vbmeta_system":"vbmeta_system.img", + "vbmeta":"vbmeta.img", + "dtbo":"dtbo.img", + "persist":"persist.img", + "persistbak":"persist.img", + "bluetooth":"BTFM.bin", +} + +MAX_DOWNLOAD_SIZE = 768*1024*1024; +MAX_SPARSE_PARTS = 20; + +SPARSE_IMAGE_HEAD_SZ = 28; +SPARSE_CHUNK_HEAD_SZ = 12; +SPARSE_OVER_HEAD_SZ = SPARSE_IMAGE_HEAD_SZ + 2*SPARSE_CHUNK_HEAD_SZ + 4 + +file_list=dict(unsparse_file_list,**sparse_file_list) + +class SparseChunk: + def __init__(self): + self.type = 0 + self.size = 0 + self.total_sz = 0 + self.data_sz = 0 + self.bksz = 0 + self.data = [] + +def split_sparse_chunk(backed_sz,bck,sck): + split_max_len = MAX_DOWNLOAD_SIZE - SPARSE_OVER_HEAD_SZ + backed_real_sz = backed_sz - SPARSE_CHUNK_HEAD_SZ - 4 + + if backed_real_sz + bck.data_sz <= split_max_len: + return 0 + elif split_max_len - backed_real_sz <= split_max_len / 8: + return 0 + else: + split_sz = bck.bksz * ((split_max_len - backed_real_sz) / bck.bksz) + + sck.type = bck.type + sck.size = bck.size + sck.bksz = bck.bksz + + sck.data_sz = bck.data_sz - split_sz + sck.total_sz = sck.data_sz + SPARSE_CHUNK_HEAD_SZ + sck.data = bck.data[split_sz:] + sck.size = sck.total_sz / sck.bksz + + bck.data_sz = split_sz + bck.total_sz = bck.data_sz + SPARSE_CHUNK_HEAD_SZ + bck.data = bck.data[:bck.data_sz] + bck.size = bck.total_sz / bck.bksz + return 1 + +def check_resparse_point(backedsize,chunk): + next_sz = chunk.total_sz + if backedsize[0] + next_sz > MAX_DOWNLOAD_SIZE - 2*SPARSE_CHUNK_HEAD_SZ: + backedsize[0] = next_sz + SPARSE_IMAGE_HEAD_SZ + SPARSE_CHUNK_HEAD_SZ + result = 1 + else: + backedsize[0] += next_sz + result = 0 + return result + +def read_chunk_from_file(FH,blk_sz): + chunk = SparseChunk() + header_bin = FH.read(12) + header = struct.unpack("<2H2I", header_bin) + chunk.type = header[0] + reserved1 = header[1] + chunk.size = header[2] + chunk.total_sz = header[3] + chunk.bksz = blk_sz + chunk.data_sz = chunk.total_sz - SPARSE_CHUNK_HEAD_SZ + if chunk.type == 0xCAC1: + if chunk.data_sz != (chunk.size * blk_sz): + raise Exception(" Raw chunk input size (%u) does not match output size (%u)!!!" + % (chunk.data_sz, chunk.size * blk_sz)) + else: + chunk.data = FH.read(chunk.data_sz) + elif chunk.type == 0xCAC2: + if chunk.data_sz != 4: + raise Exception("Fill chunk should have 4 bytes of fill, but this has %u!!!" + % (chunk.data_sz), end="") + else: + chunk.data = FH.read(4) + elif chunk.type == 0xCAC3: + if chunk.data_sz != 0: + print("Don't care chunk input size is non-zero (%u)" % (chunk.data_sz)) + elif chunk.type == 0xCAC4: + if chunk.data_sz != 4: + raise Exception("CRC32 chunk should have 4 bytes of CRC, but this has %u!!!" + % (chunk.data_sz), end="") + else: + chunk.data = FH.read(4) + crc = struct.unpack(" + + + + + + WRITE_PROTECT_BOUNDARY_IN_KB=0 + SECTOR_SIZE_IN_BYTES = 4096 + GROW_LAST_PARTITION_TO_FILL_DISK=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/patch0.xml b/images/patch0.xml new file mode 100644 index 0000000000000000000000000000000000000000..0def6f3a2042694e782af38d9134bb6257fe341b --- /dev/null +++ b/images/patch0.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/patch1.xml b/images/patch1.xml new file mode 100644 index 0000000000000000000000000000000000000000..f22f1185898a036bf79ffb8af316e24d634db846 --- /dev/null +++ b/images/patch1.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/patch2.xml b/images/patch2.xml new file mode 100644 index 0000000000000000000000000000000000000000..3a213392826a04faa04fd14e61b7b354810201dd --- /dev/null +++ b/images/patch2.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/patch3.xml b/images/patch3.xml new file mode 100644 index 0000000000000000000000000000000000000000..94270dbf318a6929832b70fea970eb255734bc92 --- /dev/null +++ b/images/patch3.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/patch4.xml b/images/patch4.xml new file mode 100644 index 0000000000000000000000000000000000000000..fa71349f27854ba10691ae4e9ce47eab23e9bc3f --- /dev/null +++ b/images/patch4.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/patch5.xml b/images/patch5.xml new file mode 100644 index 0000000000000000000000000000000000000000..296ca5f3e903c7315001744af7ecbf3d211c615d --- /dev/null +++ b/images/patch5.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/persist.img b/images/persist.img new file mode 100644 index 0000000000000000000000000000000000000000..9e20953b23145d2ae62f12408d4506936b976fb4 --- /dev/null +++ b/images/persist.img @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9715f4a597b434d7893391c1bc8ce78b19f4c736004685f9e0f1439634bd46b1 +size 67108864 diff --git a/images/prog_ufs_firehose_sm7150_ddr.elf b/images/prog_ufs_firehose_sm7150_ddr.elf new file mode 100644 index 0000000000000000000000000000000000000000..eba766b68c9e4e3a602e1ef8cb395aaf48e624f1 Binary files /dev/null and b/images/prog_ufs_firehose_sm7150_ddr.elf differ diff --git a/images/qupv3fw.elf b/images/qupv3fw.elf new file mode 100644 index 0000000000000000000000000000000000000000..b1c3df73cfdd8acd45f0d195bcf18705fcf51c25 Binary files /dev/null and b/images/qupv3fw.elf differ diff --git a/images/rawprogram0.xml b/images/rawprogram0.xml new file mode 100644 index 0000000000000000000000000000000000000000..6e20c206b19f0999825233cc0e74cde92192c527 --- /dev/null +++ b/images/rawprogram0.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/rawprogram1.xml b/images/rawprogram1.xml new file mode 100644 index 0000000000000000000000000000000000000000..5098988882816c0e9fe903db33858f0dcce74da7 --- /dev/null +++ b/images/rawprogram1.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/images/rawprogram2.xml b/images/rawprogram2.xml new file mode 100644 index 0000000000000000000000000000000000000000..b53a4c51fb711d539cb6172b86891b715edb6fcd --- /dev/null +++ b/images/rawprogram2.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/images/rawprogram3.xml b/images/rawprogram3.xml new file mode 100644 index 0000000000000000000000000000000000000000..1d595615e8dc1427a5ee21beffff135568d7bfa7 --- /dev/null +++ b/images/rawprogram3.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/images/rawprogram4.xml b/images/rawprogram4.xml new file mode 100644 index 0000000000000000000000000000000000000000..15b9d4e1a112bff07be59b6730657cd772da71ab --- /dev/null +++ b/images/rawprogram4.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/rawprogram5.xml b/images/rawprogram5.xml new file mode 100644 index 0000000000000000000000000000000000000000..c3e6a43d61f97f8b84629043260dedf6b0c9062b --- /dev/null +++ b/images/rawprogram5.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/images/recovery.img b/images/recovery.img new file mode 100644 index 0000000000000000000000000000000000000000..2963e1c407a9394655b5d5510cebc8bc2f63c50c --- /dev/null +++ b/images/recovery.img @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bcbf0ca9a5938edf8a64feaa1998de786b75e28b917c7ff4c8a3fb6f5b9c8d5 +size 134217728 diff --git a/images/sparsecrclist.txt b/images/sparsecrclist.txt new file mode 100644 index 0000000000000000000000000000000000000000..613c9b835dd46fc08de3bac8288582562981dea8 --- /dev/null +++ b/images/sparsecrclist.txt @@ -0,0 +1,6 @@ +SPARSECRC-LIST +cache 1 0x93c1cd10 +userdata 1 0x5eab4924 +cust 1 0x60f9be83 +super 11 0xbc29797c 0x98ac710b 0xfc89ca20 0xd9e954a8 0xeee5805b 0xa39cb82a 0x89e9cf0d 0xbafe18d3 0x2f088728 0xd4172c26 0x2011311b +metadata 1 0xeb12286 diff --git a/images/storsec.mbn b/images/storsec.mbn new file mode 100644 index 0000000000000000000000000000000000000000..ce89ab0d4f359c151e5b61830ac2d822f0069f7b Binary files /dev/null and b/images/storsec.mbn differ diff --git a/images/storsec_debug.mbn b/images/storsec_debug.mbn new file mode 100644 index 0000000000000000000000000000000000000000..98dbeb8ff5efb186d1f2ac0806c064e265f4445b Binary files /dev/null and b/images/storsec_debug.mbn differ diff --git a/images/super.img b/images/super.img new file mode 100644 index 0000000000000000000000000000000000000000..e71a92b96072ab9c6fac9f75feb5cca065a45dfa --- /dev/null +++ b/images/super.img @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:669a6dda0336a98b7c8ccb5d2a82dcbd16e0e5f389a4c39cbe6aa6f47f885875 +size 8243361140 diff --git a/images/tz.mbn b/images/tz.mbn new file mode 100644 index 0000000000000000000000000000000000000000..1f764265af661cda49b8c48b25565c2618219146 --- /dev/null +++ b/images/tz.mbn @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d301270b6005d9dd7cbc2b813b02f7823780d2ac056325cb359d7dea5672ebf3 +size 2064384 diff --git a/images/tz_debug.mbn b/images/tz_debug.mbn new file mode 100644 index 0000000000000000000000000000000000000000..e54861d9e19b9195b60de98fec615ff9a6b44a23 --- /dev/null +++ b/images/tz_debug.mbn @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ede95641a1565f8ca8651ed60b1580f2689e55cedd9416f3d45e27975187b447 +size 2064384 diff --git a/images/uefi_sec.mbn b/images/uefi_sec.mbn new file mode 100644 index 0000000000000000000000000000000000000000..6c2c1b2759320d74d262e9082825a5303da33879 Binary files /dev/null and b/images/uefi_sec.mbn differ diff --git a/images/uefi_sec_debug.mbn b/images/uefi_sec_debug.mbn new file mode 100644 index 0000000000000000000000000000000000000000..fd515550e26163e5c1461ce2fcc4f30abae00978 Binary files /dev/null and b/images/uefi_sec_debug.mbn differ diff --git a/images/userdata.img b/images/userdata.img new file mode 100644 index 0000000000000000000000000000000000000000..9ecf225750603a12a8934525da480e24fb1d2397 --- /dev/null +++ b/images/userdata.img @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b37b2346a4cc6696a14ebe21f08b6eb094ca1e308799deb3a65d5d8b16e8b7f5 +size 738738668 diff --git a/images/vbmeta.img b/images/vbmeta.img new file mode 100644 index 0000000000000000000000000000000000000000..496fdb8833593667cc341b3fc2d8f4839c6eb449 Binary files /dev/null and b/images/vbmeta.img differ diff --git a/images/vbmeta_system.img b/images/vbmeta_system.img new file mode 100644 index 0000000000000000000000000000000000000000..c5d602775cbd2ffd046347f74096d71850a66835 Binary files /dev/null and b/images/vbmeta_system.img differ diff --git a/images/vmlinux b/images/vmlinux new file mode 100644 index 0000000000000000000000000000000000000000..d07dc72232f9a449f40c2bc1ee69a5ff96a64a8e --- /dev/null +++ b/images/vmlinux @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35e1e4369bea065d27c3272fc82788dc4b85228afb7fe45040fdcd489ab51a23 +size 331506504 diff --git a/images/xbl.elf b/images/xbl.elf new file mode 100644 index 0000000000000000000000000000000000000000..d4bae8591f3b4ad3f462298e11cbf83771a317d4 --- /dev/null +++ b/images/xbl.elf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72d16eca878cc57a27cc6e31c53d027280c499740c11e82f057701fe85884096 +size 3818744 diff --git a/images/xbl_config.elf b/images/xbl_config.elf new file mode 100644 index 0000000000000000000000000000000000000000..43bc0172fc542d285f0c0e6e5ba0b34198d70c34 Binary files /dev/null and b/images/xbl_config.elf differ diff --git a/images/xbl_config_debug.elf b/images/xbl_config_debug.elf new file mode 100644 index 0000000000000000000000000000000000000000..8b57d5cc478c0965400fb710a63f850dbc0f3458 Binary files /dev/null and b/images/xbl_config_debug.elf differ diff --git a/images/xbl_debug.elf b/images/xbl_debug.elf new file mode 100644 index 0000000000000000000000000000000000000000..2b0ae5ef11363c3fd15b217dc5bcbcd85d06a1d4 --- /dev/null +++ b/images/xbl_debug.elf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:80f625082b375575ba2e5fdf49127c1f9f9b2e38606d3e4b0b040dfd118ea04b +size 3825320 diff --git a/misc.txt b/misc.txt new file mode 100644 index 0000000000000000000000000000000000000000..ad8deb0eeb034d2dcbca9783e72a7af11b1b665a --- /dev/null +++ b/misc.txt @@ -0,0 +1,4 @@ +device=courbet +build_number=V14.0.4.0.TKQMIXM +userdata_version=20231016.0000.00 +custom_bulid_number=courbet.mi.1.1.0041