mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-16 08:42:28 +00:00
no need to check if installed in SpringBoard when using MobileSubstrate filter
This commit is contained in:
parent
3ac066c31a
commit
a04cd8c2ab
@ -15,11 +15,8 @@
|
|||||||
class SpringBoard;
|
class SpringBoard;
|
||||||
|
|
||||||
@interface UIApplication (privateStatusBarIconAPI)
|
@interface UIApplication (privateStatusBarIconAPI)
|
||||||
- (void)addStatusBarImageNamed:(id)fp8 removeOnAbnormalExit:(BOOL)fp12;
|
|
||||||
- (void)addStatusBarImageNamed:(id)fp8;
|
- (void)addStatusBarImageNamed:(id)fp8;
|
||||||
- (void)removeStatusBarImageNamed:(id)fp8;
|
- (void)removeStatusBarImageNamed:(id)fp8;
|
||||||
// iPhoneOS >= 2.2
|
|
||||||
- (void)addStatusBarImageNamed:(id)fp8 removeOnExit:(BOOL)fp12;
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#define HOOK(class, name, type, args...) \
|
#define HOOK(class, name, type, args...) \
|
||||||
@ -62,7 +59,7 @@ HOOK(SpringBoard, applicationDidFinishLaunching$, void, id app) {
|
|||||||
|
|
||||||
CALL_ORIG(SpringBoard, applicationDidFinishLaunching$, app);
|
CALL_ORIG(SpringBoard, applicationDidFinishLaunching$, app);
|
||||||
|
|
||||||
CFMessagePortRef local = CFMessagePortCreateLocal(NULL, CFSTR("SpringBoardAccess"), myCallBack, NULL, false);
|
CFMessagePortRef local = CFMessagePortCreateLocal(NULL, CFSTR(SBA_MessagePortName), myCallBack, NULL, false);
|
||||||
CFRunLoopSourceRef source = CFMessagePortCreateRunLoopSource(NULL, local, 0);
|
CFRunLoopSourceRef source = CFMessagePortCreateRunLoopSource(NULL, local, 0);
|
||||||
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
|
CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode);
|
||||||
|
|
||||||
@ -73,11 +70,6 @@ HOOK(SpringBoard, applicationDidFinishLaunching$, void, id app) {
|
|||||||
extern "C" void SpringBoardAccessInitialize(){
|
extern "C" void SpringBoardAccessInitialize(){
|
||||||
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
// NOTE: This library should only be loaded for SpringBoard
|
|
||||||
NSString *identifier = [[NSBundle mainBundle] bundleIdentifier];
|
|
||||||
if (![identifier isEqualToString:@"com.apple.springboard"])
|
|
||||||
return;
|
|
||||||
|
|
||||||
NSLog(@"SpringBoardAccessInitialize called for SpringBoard!");
|
NSLog(@"SpringBoardAccessInitialize called for SpringBoard!");
|
||||||
|
|
||||||
// Setup hooks
|
// Setup hooks
|
||||||
|
3
TODO.txt
3
TODO.txt
@ -4,7 +4,7 @@ Last milestone reached: BTdaemon automatically started by launchd on Mac and iPh
|
|||||||
|
|
||||||
NEXT:
|
NEXT:
|
||||||
- check why test.c does not start up instantly when Bluetooth is already turned on
|
- check why test.c does not start up instantly when Bluetooth is already turned on
|
||||||
- clean up debug output: messages to stdou, errors to stderr
|
- clean up debug output: messages to stdout, errors to stderr
|
||||||
- decide on error reporting from BTdaemon
|
- decide on error reporting from BTdaemon
|
||||||
- command_status_event with custom errors
|
- command_status_event with custom errors
|
||||||
- hci open failed
|
- hci open failed
|
||||||
@ -12,7 +12,6 @@ NEXT:
|
|||||||
- create script to build APT package
|
- create script to build APT package
|
||||||
- create new pgp key for gmail account and sign APT package
|
- create new pgp key for gmail account and sign APT package
|
||||||
- provide test version by setting up APT repository within BTstack SVN
|
- provide test version by setting up APT repository within BTstack SVN
|
||||||
|
|
||||||
== Release Version 0.1
|
== Release Version 0.1
|
||||||
- implement rest of L2CAP state machine
|
- implement rest of L2CAP state machine
|
||||||
- incoming connections
|
- incoming connections
|
||||||
|
Loading…
x
Reference in New Issue
Block a user