Skip to content

Instantly share code, notes, and snippets.

@interface MIGlobalConfiguration : NSObject {}
@end
@interface MIDaemonConfiguration : MIGlobalConfiguration {}
@property (nonatomic,readonly) BOOL skipDeviceFamilyCheck;
@property (nonatomic,readonly) BOOL skipThinningCheck;
@property (nonatomic,readonly) BOOL allowPatchWithoutSinf;
@property (nonatomic,readonly) BOOL codeSigningEnforcementIsDisabled;
@property (nonatomic,readonly) BOOL isInternalImageType;
-(BOOL)isInternalImageType;
@dlevi309
dlevi309 / MGAllowedProtectedKeys.xml
Last active May 6, 2022 01:32
All the values that iOS grants when using the ‘com.apple.private.MobileGestalt.AllowedProtectedKeys‘ entitlement
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.private.MobileGestalt.AllowedProtectedKeys</key>
<array>
<string>AWDID</string>
<string>AmbientLightSensorSerialNumber</string>
<string>ArcModuleSerialNumber</string>
<string>ArrowChipID</string>
@dlevi309
dlevi309 / build-iOS.sh
Last active October 23, 2021 07:53
Drop this script into the head directory of swift package with a CLI tool to build as an iOS target. Set NAME=ProductName
#!/bin/bash
set -e
NAME=sURL
function build() {
START=$(date +%s)
swift build --product $NAME \
@dlevi309
dlevi309 / ForceNoBuddy.md
Last active August 24, 2023 00:03
Forcibly skip iPhone Setup (PurpleBuddy)

ForceNoBuddy

Skip the iPhone setup screen on checkra1n devices, make sure these files are written to /var/mobile/Library/Preferences

This no longer works as of iOS 15 (or it might, but I'm pretty sure it's gone)

com.apple.purplebuddy.plist

<?xml version="1.0" encoding="UTF-8"?>
@dlevi309
dlevi309 / NETRB.h
Created July 12, 2021 22:52
The missing NETRB.h
#ifndef NETRB_h
#define NETRB_h
#include <xpc/xpc.h>
#include <dispatch/dispatch.h>
#ifdef __cplusplus
extern "C" {
#endif
@dlevi309
dlevi309 / profile_defaults.md
Last active May 25, 2026 00:55
An extensive list of settings written when installing a debugging profile from developer.apple.com

Digital Car Key:

Has three sections.

defaults: {
    “com.apple.MobileBluetooth.debug” =     {
        ExtraZoningLog =         {
            EnableZoneLogging = 1;
        };
        FWStreamLogging =         {
@dlevi309
dlevi309 / realEntitlements.txt
Created June 15, 2021 14:35
A breakdown of all the actual entitlements accessed when granting the com.apple.private.security.no-container entitlement
com.apple.private.security.disk-device-access
com.apple.private.security.no-container
com.apple.private.security.storage.AppBundles
com.apple.private.security.storage.AppDataContainers
com.apple.private.security.storage.AppStoreCache
com.apple.private.security.storage.BulletinDistributor
com.apple.private.security.storage.CallHistory
com.apple.private.security.storage.CloudKit
com.apple.private.security.storage.CoreKnowledge
com.apple.private.security.storage.DCIM
@dlevi309
dlevi309 / jurpleConsole.c
Last active June 22, 2022 10:13
jurpleConsole from newosxbook.com with an adjusted buffer size to work
#include <stdio.h>
#include <dlfcn.h>
#include <CoreFoundation/CoreFoundation.h>
// Barebones purple_console clone - constructed with some reverse and forward engineering.
//
// No copyright or license. Feel free to share. Comments/Feedback welcome @http://newosxbook.com/forum/
//
//
@dlevi309
dlevi309 / ACULogStream
Last active April 9, 2021 09:46
Script to stream Apple Configurator console logs. Hold down the shift key while launching Apple Configurator to enable debug logging
#! /bin/bash
log stream --style compact --color=auto --predicate 'process == "Apple Configurator 2"' --predicate 'process == "com.apple.configurator.xpc.DeviceService"' --predicate 'process == "com.apple.configurator.xpc.AirTrafficService"' --predicate 'process == "com.apple.configurator.xpc.InternetService"'
# Launch Apple Configurator while holding down on the shift key to enable debug logging
@dlevi309
dlevi309 / ipatool
Created April 2, 2021 20:24
the ipatool script as from xcode
#!/usr/bin/sandbox-exec -n no-network /usr/bin/ruby -E UTF-8 -v
# -*- coding: utf-8; mode: ruby -*-
#
# A utility for performing various operations on IPA files. This script is
# intended to be invoked by xcodebuild. It is not intended for direct use,
# or for invocation in any manner other than through xcodebuild. Any other
# use is unsupported.
#
# Copyright © 2015-2020 Apple Inc. All Rights Reserved.
#