From a04cd8c2ab9079003eee439352fbcd9b9df66555 Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sun, 20 Sep 2009 18:26:55 +0000 Subject: [PATCH] no need to check if installed in SpringBoard when using MobileSubstrate filter --- SpringBoardAccess/SpringBoardAccessExtension.mm | 10 +--------- TODO.txt | 3 +-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/SpringBoardAccess/SpringBoardAccessExtension.mm b/SpringBoardAccess/SpringBoardAccessExtension.mm index 299e88340..88a02c66b 100644 --- a/SpringBoardAccess/SpringBoardAccessExtension.mm +++ b/SpringBoardAccess/SpringBoardAccessExtension.mm @@ -15,11 +15,8 @@ class SpringBoard; @interface UIApplication (privateStatusBarIconAPI) -- (void)addStatusBarImageNamed:(id)fp8 removeOnAbnormalExit:(BOOL)fp12; - (void)addStatusBarImageNamed:(id)fp8; - (void)removeStatusBarImageNamed:(id)fp8; -// iPhoneOS >= 2.2 -- (void)addStatusBarImageNamed:(id)fp8 removeOnExit:(BOOL)fp12; @end #define HOOK(class, name, type, args...) \ @@ -62,7 +59,7 @@ HOOK(SpringBoard, applicationDidFinishLaunching$, void, id 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); CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode); @@ -73,11 +70,6 @@ HOOK(SpringBoard, applicationDidFinishLaunching$, void, id app) { extern "C" void SpringBoardAccessInitialize(){ 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!"); // Setup hooks diff --git a/TODO.txt b/TODO.txt index 4bc1763b7..ceaad8165 100644 --- a/TODO.txt +++ b/TODO.txt @@ -4,7 +4,7 @@ Last milestone reached: BTdaemon automatically started by launchd on Mac and iPh NEXT: - 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 - command_status_event with custom errors - hci open failed @@ -12,7 +12,6 @@ NEXT: - create script to build APT package - create new pgp key for gmail account and sign APT package - provide test version by setting up APT repository within BTstack SVN - == Release Version 0.1 - implement rest of L2CAP state machine - incoming connections