diff --git a/Signal/Signal-Info.plist b/Signal/Signal-Info.plist index 3e9efa8d3..88d51f0f3 100644 --- a/Signal/Signal-Info.plist +++ b/Signal/Signal-Info.plist @@ -2,18 +2,14 @@ - NSContactsUsageDescription - Signal uses your AddressBook as contacts list. We do not store your contacts on the server. - NSMicrophoneUsageDescription - Signal needs access to your microphone to make and receive phone calls. - CFBundleGetInfoString - CFBundleDevelopmentRegion en CFBundleDisplayName ${PRODUCT_NAME} CFBundleExecutable ${EXECUTABLE_NAME} + CFBundleGetInfoString + CFBundleIcons CFBundleIcons~ipad @@ -44,7 +40,7 @@ CFBundleVersion - 2.0.21 + 2.0.22 LOGS_EMAIL support@whispersystems.org LOGS_URL @@ -53,6 +49,10 @@ public.app-category.social-networking LSRequiresIPhoneOS + NSContactsUsageDescription + Signal uses your AddressBook as contacts list. We do not store your contacts on the server. + NSMicrophoneUsageDescription + Signal needs access to your microphone to make and receive phone calls. UIAppFonts HelveticaNeueLTStd-Bd.otf diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index 67738de9c..29ba36141 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -60,10 +60,10 @@ // the phone directory being looked up during tests. loggingIsEnabled = TRUE; [DebugLogger.sharedInstance enableTTYLogging]; - #elif RELEASE loggingIsEnabled = Environment.preferences.loggingIsEnabled; #endif + [self verifyBackgroundBeforeKeysAvailableLaunch]; if (loggingIsEnabled) { [DebugLogger.sharedInstance enableFileLogging]; @@ -260,6 +260,22 @@ [[PushManager sharedManager] application:application handleActionWithIdentifier:identifier forLocalNotification:notification completionHandler:completionHandler]; } +/** + * Signal requires an iPhone to be unlocked after reboot to be able to access keying material. + */ +- (void)verifyBackgroundBeforeKeysAvailableLaunch { + if ([self applicationIsActive]) { + return; + } + + if (![[TSStorageManager sharedManager] databasePasswordAccessible]) { + UILocalNotification *notification = [[UILocalNotification alloc] init]; + notification.alertBody = NSLocalizedString(@"PHONE_NEEDS_UNLOCK", nil); + [[UIApplication sharedApplication] presentLocalNotificationNow:notification]; + exit(0); + } +} + - (BOOL)applicationIsActive { UIApplication *app = [UIApplication sharedApplication]; diff --git a/Signal/src/Storyboard/Storyboard.storyboard b/Signal/src/Storyboard/Storyboard.storyboard index 893076fc2..326cb8c70 100755 --- a/Signal/src/Storyboard/Storyboard.storyboard +++ b/Signal/src/Storyboard/Storyboard.storyboard @@ -242,7 +242,7 @@ - + @@ -1129,7 +1129,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -2138,7 +2138,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -3777,7 +3777,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -3818,7 +3818,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -3983,7 +3983,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -4110,7 +4110,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -4173,7 +4173,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -4204,10 +4204,10 @@ A0 09 9A FF A8 8A 09 99 - + + - @@ -4215,10 +4215,10 @@ A0 09 9A FF A8 8A 09 99 - + + - @@ -4236,7 +4236,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -4299,7 +4299,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -4518,7 +4518,7 @@ A0 09 9A FF A8 8A 09 99 - + @@ -4798,9 +4798,6 @@ A0 09 9A FF A8 8A 09 99 - - - @@ -4848,7 +4845,7 @@ A0 09 9A FF A8 8A 09 99