QWERTY患者(完治)の日記

DAPやイヤホン、カメラ関連についてだらだらと書いています。

【Blackberry KEY2】6月の月例パッチがリリースされました…が!

Crackberry.com に6月の月例パッチがリリースされました。
forums.crackberry.com
…が!!

しょうもないタイプミスが。

echo Note:If device is not in fastboot mode
echo Please switch to fastboot mode by holding the power and volume down key for 30s
VAR1=$($BIN/fastboot getvar device 2>&1 | grep "device")
read_dev="${VAR1#*:}"
read_dev=$(echo ${read_dev} | sed 's/:space://g');
if [ "bbe100" != "${read_dev}" ]; then
echo ""
echo "Loader is not valid for this device variant, the device product detected is ${read_dev}."
echo "Please obtain a loader which supports the device variant above and try again."
exit
fi
VAR1=$($BIN/fastboot getvar hlos-sig-tag 2>&1 | grep "hlos-sig-tag")
read_dev="${VAR1#*:}"
read_dev=$(echo ${read_dev} | sed 's/:space://g');
if [ "" == "${read_dev}" ]; then read_dev=common; fi
VAR2=$($BIN/fastboot getvar variant 2>&1 | grep "variant")
read_dev_variant="${VAR2#*:}"
read_dev_variant=$(echo ${read_dev_variant} | sed 's/:space://g');
if [ "dscn" == "${read_dev_variant}" ]; then read_dev_variant=china; fi
if [ "cn" == "${read_dev_variant}" ]; then read_dev_variant=china; fi
DCFG="devcfg"
if [ "china" == "${read_dev_variant}" ]; then DCFG="devcfg_cn"; fi

while true; do
read -p "This script will NOT wipe off all user data, do you want to continue? [y/n]:" answer
case $answer in
[Yy] ) break;;
[Nn] ) exit;;
* ) echo "Please enter y or n.";;
esac
done
echo "It may take 5 to 15 minutes to securely wipe the device"
sleep 5
read_bootchain_slots=$($BIN/fastboot getvar bootchain-slots 2>&1)
slots=$(echo ${read_bootchain_slots} | cut -d " " -f2)
if [ "${slots}" != "" ] && [ ${#slots} -ge 2 ]; then
slot="${slots:1:1}"
else
echo "Failed to detect bootchain slots."
exit
fi

$BIN/$FASTBOOT flash tz_${slot} $IMG/tz.mbn
$BIN/$FASTBOOT flash devcfg_${slot} $IMG/${DCFG}.mbn
$BIN/$FASTBOOT flash rpm_${slot} $IMG/rpm.mbn
$BIN/$FASTBOOT flash hyp_${slot} $IMG/hyp.signed.mbn
$BIN/$FASTBOOT flash pmic_${slot} $IMG/pmic.elf
$BIN/$FASTBOOT flash xbl_${slot} $IMG/xbl.elf
$BIN/$FASTBOOT flash abl_${slot} $IMG/abl.elf
$BIN/$FASTBOOT flash cmnlib_${slot} $IMG/cmnlib.signed.mbn
$BIN/$FASTBOOT flash cmnlib64_${slot} $IMG/cmnlib64.signed.mbn
$BIN/$FASTBOOT flash keymaster_${slot} $IMG/keymaster64.signed.mbn
$BIN/$FASTBOOT flash mdtpsecapp_${slot} $IMG/mdtpsecapp.signed.mbn
$BIN/$FASTBOOT oem switch-bootchain:${slot}
$BIN/$FASTBOOT reboot bootloader
Sleep 10
$BIN/$FASTBOOT flash bootsig $IMG/boot.img.sig
$BIN/$FASTBOOT flash recoverysig $IMG/recovery.img.sig
$BIN/$FASTBOOT flash boot $IMG/boot.img
$BIN/$FASTBOOT flash recovery $IMG/recovery.img
$BIN/$FASTBOOT flash cache $IMG/cache.img
$BIN/$FASTBOOT flash modem $IMG/NON-HLOS-${read_dev_variant}.bin
$BIN/$FASTBOOT flash dsp $IMG/dspso.bin
$BIN/$FASTBOOT flash bluetooth $IMG/BTFM.bin
$BIN/$FASTBOOT flash vendor $IMG/vendor.img
$BIN/$FASTBOOT flash system $IMG/system.img
$BIN/$FASTBOOT flash oem $IMG/${read_dev}.img
$BIN/$FASTBOOT reboot

「bbe100」って、あんたそれ KEY2 LE ですがな…。
「bbf100」に直してパッチあてました。
Pie はまだ食えませんでした。
KEYone 同様、8月頃でしょうかね…はよ。