├── .gitignore ├── MagicBackgroundKeyboard.plist ├── Makefile ├── README.md ├── control ├── image.png └── init.mm /.gitignore: -------------------------------------------------------------------------------- 1 | .theos/ 2 | packages/ 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /MagicBackgroundKeyboard.plist: -------------------------------------------------------------------------------- 1 | { 2 | Filter = { 3 | Bundles = ( 4 | "com.apple.UIKitCore" 5 | ); 6 | }; 7 | } -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | FINALPACKAGE=1 2 | TARGET := iphone:clang:latest 3 | THEOS_PACKAGE_SCHEME = rootless 4 | export ARCHS = arm64 arm64e 5 | 6 | include $(THEOS)/makefiles/common.mk 7 | 8 | TWEAK_NAME = MagicBackgroundKeyboard 9 | $(TWEAK_NAME)_CFLAGS = -fno-objc-arc -fno-objc-weak -Wno-module-import-in-extern-c -Wno-unused-variable -Wno-parentheses -std=c++2b 10 | $(TWEAK_NAME)_FRAMEWORKS = Foundation UIKit 11 | $(TWEAK_NAME)_FILES = init.mm 12 | 13 | include $(THEOS_MAKE_PATH)/tweak.mk 14 | include $(THEOS_MAKE_PATH)/tool.mk 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MagicBackgroundKeyboard 2 | 3 | Show Apple Intelligence Keyboard everywhere! 4 | 5 | ![](image.png) 6 | -------------------------------------------------------------------------------- /control: -------------------------------------------------------------------------------- 1 | Package: com.pookjw.magicbackgroundkeyboard 2 | Name: MagicBackgroundKeyboard 3 | Version: 1.0.1 4 | Architecture: iphoneos-arm64 5 | Description: Hello World! 6 | Maintainer: pookjw 7 | Author: pookjw 8 | Section: Tweaks 9 | Depends: firmware (>= 18.0) 10 | -------------------------------------------------------------------------------- /image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pookjw/MagicBackgroundKeyboard/c06ccc0ad2dbfe4ce6def11c7d4d6e3a7e129d8f/image.png -------------------------------------------------------------------------------- /init.mm: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | 5 | namespace mbk_UIKBRenderConfig { 6 | namespace animatedBackground { 7 | BOOL (*original)(id self, SEL _cmd); 8 | BOOL custom(id self, SEL _cmd) { 9 | return YES; 10 | } 11 | void hook(void) { 12 | MSHookMessageEx( 13 | objc_lookUpClass("UIKBRenderConfig"), 14 | sel_registerName("animatedBackground"), 15 | reinterpret_cast(&custom), 16 | reinterpret_cast(&original) 17 | ); 18 | } 19 | } 20 | 21 | namespace setAnimatedBackground_ { 22 | void (*original)(id self, SEL _cmd, BOOL newValue); 23 | void custom(id self, SEL _cmd, BOOL newValue) { 24 | original(self, _cmd, YES); 25 | } 26 | void hook(void) { 27 | MSHookMessageEx( 28 | objc_lookUpClass("UIKBRenderConfig"), 29 | sel_registerName("setAnimatedBackground:"), 30 | reinterpret_cast(&custom), 31 | reinterpret_cast(&original) 32 | ); 33 | } 34 | } 35 | } 36 | 37 | __attribute__((constructor)) static void init() { 38 | NSAutoreleasePool *pool = [NSAutoreleasePool new]; 39 | 40 | mbk_UIKBRenderConfig::animatedBackground::hook(); 41 | mbk_UIKBRenderConfig::setAnimatedBackground_::hook(); 42 | 43 | [pool release]; 44 | } 45 | --------------------------------------------------------------------------------