Tiny utility for generating and downgrading system keybags. It's needed for iOS dualboots
fixkeybag [-v2] [key 0x835]
For more information read my iOS dualboot guide
It's very experimental, be extremely careful with it
- Using command line
cd .../fixkeybag-master
mkdir binary
xcrun --sdk iphoneos clang fixkeybag/main.c fixkeybag/KeybagDowngrade.c fixkeybag/KeybagGeneration.c fixkeybag/iphone-dataprotection/AppleEffaceableStorage.c fixkeybag/iphone-dataprotection/IOAESAccelerator.c fixkeybag/iphone-dataprotection/IOKit.c fixkeybag/iphone-dataprotection/bsdcrypto/key_wrap.c fixkeybag/iphone-dataprotection/bsdcrypto/rijndael.c -Ifixkeybag/iphone-dataprotection -Ifixkeybag/iphone-dataprotection/bsdcrypto -IHeaders -framework IOKit -framework CoreFoundation -arch armv7 -mios-version-min=4.0 -o binary/fixkeybag
ldid -S binary/fixkeybag
- Using Xcode
To compile for iOS versions older than 6.0 use Xcode 7.x or older
This patch is needed to prevent Effaceable Storage's keys regeneration. Example of patched Device Tree for n90 is attached to this repository
Original code by jean jean - there's nothing left of it in my program (except name), but I think I still should mention it
Downgrading part is based on iphone-dataprotection project