Skip to content

Instantly share code, notes, and snippets.

Identifier=com.apple.gestalt_query
Format=Mach-O thin (arm64e)
CodeDirectory v=20400 size=2192 flags=0x2(adhoc) hashes=58+7 location=embedded
Signature=adhoc
Info.plist=not bound
TeamIdentifier=not set
Sealed Resources=none
Internal requirements count=0 size=12
[Dict]
[Key] com.apple.AppleNVMeEAN.allow
@yarshure
yarshure / drags.txt
Created March 30, 2024 12:17
drags command
ace - Command for generic read/write to ace device.
alias - Displays, creates, or deletes UEFI Shell aliases.
amcc - Command for testing the AMCC functionality.
amux - Analog Mux selection command
ASPTool - ASPTool command interface.
attrib - Displays or modifies the attributes of files or directories.
audio - General audio subsystem control.
audiohid - Manages HID report operations on audio blocks
audioparam - Get or set audio parameters.
audioreg - Manages register operations on audio blocks.
@yarshure
yarshure / iPhone15_gestalt_keys
Created March 30, 2024 10:41
iPhone15 gestalt keys
gestalt_query -listKeys
Key Name Description
======== ===========
3GProximityCapability Whether the device has a 3G proximity sensor
3GVeniceCapability Whether the device supports FaceTime over cellular
720pPlaybackCapability Whether the device supports 720p video (identical to kMGQDeviceSupports720p)
ADSCapability Type of the ADS capability (one of the MGADSType enum values)
APNCapability
ARM64ExecutionCapability Whether the device supports executing arm64 binaries
ARM64eExecutionCapability Whether the device supports executing arm64e binaries
@yarshure
yarshure / FreeBSD dpaa2.txt
Created March 3, 2023 10:55
FreeBSD dpaa2 boot
---<<BOOT>>---
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.0-CURRENT #0 main-n261074-fe5c211ba873: Thu Feb 23 07:29:46 UTC 2023
[email protected]:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64
@yarshure
yarshure / extract_pe_from_diags_body.py
Created November 6, 2021 16:47
extract_pe_from_diags_body.py
# sudo pip install uefi_firmware
#python3 e.py input output
import sys
from uefi_firmware import efi_compressor
handle=open(sys.argv[1], "rb")
content=handle.read()
newc=content[7:]
c=efi_compressor.TianoDecompress(newc,len(newc))
d=open(sys.argv[2], "wb")
st_mz=c.find(b"MZ")
@yarshure
yarshure / A14_smc.txt
Created November 6, 2021 02:16
A14_smc T8101
:-) smc list
Total Keys: 741
"#KEY"
"AC-N"
"AC-W"
"ACDI"
"ADCE"
"AOPc"
"AOPe"
"AOPs"
@yarshure
yarshure / astris.txt
Created October 16, 2021 14:34
astris.txt
2021-10-16 19:12:52.329613+0800 0xdec9d0 Default 0x0 34169 0 astris: [com.apple.astris:explore] Sicily SoC created
2021-10-16 19:12:52.330073+0800 0xdec9ea Debug 0x0 135 0 astrisprobed: [com.apple.astris:probed] {ProbeRelay_t::handleRequestFromClient} [id: #22] Recieved cs proto with id: 34
2021-10-16 19:12:52.329671+0800 0xdec9d0 Default 0x0 34169 0 astris: (applesoc_sicily) [com.apple.astris:explore] DA Base: 0x23D381000
2021-10-16 19:12:52.329707+0800 0xdec9d0 Default 0x0 34169 0 astris: (applesoc_sicily) [com.apple.astris:default] Astris Version Set: <private>
2021-10-16 19:12:52.329769+0800 0xdec9d0 Default 0x0 34169 0 astris: (applesoc_sicily) [com.apple.astris:explore] DA Base (DBG-AP): 0xFD381000
2021-10-16 19:12:52.330945+0800 0xdec9d0 Debug 0x0 34169 0 astris: (applesoc_sicily) [com.apple.astris:explore] ## memapr 1 0x00000000FD381000
@yarshure
yarshure / iPad_A12X_diag.txt
Created September 16, 2021 13:47
iPad_A12X_diag.txt
yarshure@st iPadmem % ls -l|grep macho|awk '{print $9}'
0x968124000_TestThermalMonitor.macho
0x968144000_HibiscusEdpPanel.macho
0x96818C000_SEP.macho
0x968214000_ScratchRegister.macho_PmuD2483Diagnostic.macho_PmuD2483Backlight.macho_PmuD2483AMux.macho
0x968264000_ImageProcessorDriver.macho
0x968298000_Kona.macho
0x9682D8000_TestPMUIpod.macho
0x96832C000_AppleDiagsSecurityManager.macho
0x969AEC000_DiagShell.macho
@yarshure
yarshure / TV.swift
Created June 22, 2021 08:56
TV SwiftUI
//
// ContentView.swift
// shape
//
// Created by Apple on 21/6/2021.
//
import SwiftUI
struct GridStack<Content: View>: View {
let rows: Int
@yarshure
yarshure / touchevent.txt
Created June 7, 2021 08:09
UITouch event backtrace
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
* frame #0: 0x0000000102d99ca0 touchDemo`-[ViewController touchesBegan:withEvent:](self=0x000000013f0097a0, _cmd="touchesBegan:withEvent:", touches=1 element, event=0x00000002837fc300) at ViewController.m:23:20
frame #1: 0x0000000190346c30 UIKitCore`forwardTouchMethod + 344
frame #2: 0x0000000190346ac0 UIKitCore`-[UIResponder touchesBegan:withEvent:] + 64
frame #3: 0x0000000190355448 UIKitCore`-[UIWindow _sendTouchesForEvent:] + 496
frame #4: 0x0000000190356f9c UIKitCore`-[UIWindow sendEvent:] + 3976
frame #5: 0x0000000190330bc0 UIKitCore`-[UIApplication sendEvent:] + 712
frame #6: 0x00000001903b8118 UIKitCore`__dispatchPreprocessedEventFromEventQueue + 7360
frame #7: 0x00000001903bb070 UIKitCore`__processEventQueue + 6460