Skip to content

Instantly share code, notes, and snippets.

View ianb821's full-sized avatar

Ian ianb821

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ianb821 on github.
  • I am ianburns (https://keybase.io/ianburns) on keybase.
  • I have a public key ASC84ljVRfYbh4cruPvmybZIyZQqd6UmaN3H8Ay7VmeJKwo

To claim this, I am signing this object:

@ianb821
ianb821 / Screenshot
Created November 25, 2014 02:00
Grabbing Screenshot on Lock
To get the background I use _UICreateScreenUIImage();
Here's the declaration:
OBJC_EXTERN UIImage *_UICreateScreenUIImage(void) NS_RETURNS_RETAINED;
Specifically I hook SBBackLightController. Here is the bare bones of what I use:
%hook SBBacklightController
- (void)animateBacklightToFactor:(CGFloat)factor duration:(double)duration source:(int)source completion:(void (^)(void))completion {
if (factor < 0.1) {
UIImage *currentBackground = _UICreateScreenUIImage();
@ianb821
ianb821 / GuestMode 2.0.1Changes
Created November 19, 2014 04:09
GuestMode 2.0.1 Changes
* Single App Mode is now compatible with iOS 8.
* When the camera is enabled and the photos app is disabled the camera roll is no longer accessible.
* Fixed issue where tapping on icons in the app switcher would allow access to restricted apps.
* Fixed issue where restricted apps could be launched from spotlight search in iOS 8.
* Fixed issue where restricted apps could be launched from a stack using Apex.
* Add option to disable notification when entering guest mode from the home screen.
* Phone Dialer Only and Single Safari Tab are still not functioning properly, these will be addressed in the next update.