Skip to content

Instantly share code, notes, and snippets.

View zhuowei's full-sized avatar

zhuowei

View GitHub Profile
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="__external__btn_shutter_desc">Take a photo</string>
<string name="__external__credit_card_permissions_allow">Allow camera access</string>
<string name="__external__credit_card_permissions_deny">"Don't allow camera access"</string>
<string name="__external__credit_card_permissions_explanation">"Then you'll be able to scan your card. You can change this in your settings any time."</string>
<string name="__external__credit_card_permissions_title_fb">Allow Facebook to access your camera</string>
<string name="__external__download_failed_body">"Check your device's network connection and try again."</string>
<string name="__external__download_failed_title">No network connection</string>
<string name="__external__download_retry">Try again</string>
diff --git a/DT.txt b/../../../../../watch7ota/AssetData/boot/Firmware/all_flash/DTn187sap.txt
index 4cc7323..08f26d9 100755
--- a/DT.txt
+++ b/../../../../../watch7ota/AssetData/boot/Firmware/all_flash/DTn187sap.txt
@@ -4,19 +4,19 @@ device-tree:
AAPL,phandle (4): 0x1
config-number (29): "syscfg/CFG#/0x40,zeroes/0x40"
serial-number (29): "syscfg/SrNm/0x20,zeroes/0x20"
- target-type (6): "N157s"
+ target-type (6): "N187s"
iBoot version: iBoot-7429.40.92.0.5
Registering: IOService:/options/IODTNVRAMDiags
Registering: IOService:/options/options-system
Registering: IOService:/options/options-common
Darwin Image4 Validator Version 4.1.0: Wed Sep 29 23:41:27 PDT 2021; root:AppleImage4-157.40.10~81/AppleImage4/RELEASE_ARM64E
AppleImage4: failed to read nvram property: oblit-inprogress: 2
AMFI: UDID enforcement enabled
Registering: IOService:/
Registering: IOService:/AppleARMPE/IOSystemStateNotification
Registering: IOService:/AppleARMPE/IOPMrootDomain
diff --git a/SortedJ517DT.txt b/../../../macos12b9/Firmware/all_flash/SortedJ274DT.txt
index dafb4da..50a6d11 100644
--- a/SortedJ517DT.txt
+++ b/../../../macos12b9/Firmware/all_flash/SortedJ274DT.txt
@@ -3,12 +3,12 @@ device-tree:
#size-cells (4): 2
AAPL,phandle (4): 0x1
clock-frequency (4): 0
- compatible (25): "J517AP\0iPad13,4\0AppleARM\0"
+ compatible (27): "J274AP\0Macmini9,1\0AppleARM\0"
iBoot version: iBoot-7429.40.68
Registering: IOService:/options/IODTNVRAMDiags
Registering: IOService:/options/options-system
Registering: IOService:/options/options-common
Darwin Image4 Validator Version 5.0.0: Mon Sep 6 01:31:08 PDT 2021; root:AppleImage4-157.40.6.0.2~68/AppleImage4/RELEASE_ARM64E
AppleImage4: failed to read nvram property: oblit-inprogress: 2
AMFI: UDID enforcement enabled
Registering: IOService:/
Registering: IOService:/AppleARMPE/IOSystemStateNotification
Registering: IOService:/AppleARMPE/IOPMrootDomain
iBoot version: iBoot-7429.40.68
Registering: IOService:/options/IODTNVRAMDiags
Registering: IOService:/options/options-system
Registering: IOService:/options/options-common
Darwin Image4 Validator Version 5.0.0: Mon Sep 6 01:31:08 PDT 2021; root:AppleImage4-157.40.6.0.2~68/AppleImage4/RELEASE_ARM64E
AppleImage4: failed to read nvram property: oblit-inprogress: 2
AMFI: UDID enforcement enabled
Registering: IOService:/
Registering: IOService:/AppleARMPE/IOSystemStateNotification
Registering: IOService:/AppleARMPE/IOPMrootDomain
@zhuowei
zhuowei / main.lua
Last active October 6, 2021 15:43
Partially decompiled source of Bloom by Jake White & Ben Busche
import("CoreLibs/object")
import("CoreLibs/graphics")
import("CoreLibs/sprites")
import("CoreLibs/timer")
import("CoreLibs/animation")
import("extra_math")
import("phone")
import("character")
import("roof")
import("flower")
.version 5.4
.format 0
.instruction_size 4
.integer_format 4
.float_format 4
.endianness LITTLE
.function main
@zhuowei
zhuowei / patch_constanttype.patch
Last active September 25, 2022 12:17
Patches for unluac to disassemble (and partially decompile) Playdate's Lua 5.4.0 beta bytecode
# HG changeset patch
# User Zhuowei Zhang <[email protected]>
# Date 1633490863 14400
# Tue Oct 05 23:27:43 2021 -0400
# Node ID 9a209bac7961ed4cc661f1a358d8ef2e23c74d7b
# Parent 0390d042f93125be8257ae3a0520aa6b1003145c
Add PlayDate's 0x23 integer type, fix boolean parsing for Lua 5.4 beta
diff --git a/src/unluac/parse/LConstantType.java b/src/unluac/parse/LConstantType.java
--- a/src/unluac/parse/LConstantType.java
iBoot version: iBoot-7429.40.68
Registering: IOService:/options/IODTNVRAMDiags
Registering: IOService:/options/options-system
Registering: IOService:/options/options-common
Darwin Image4 Validator Version 5.0.0: Mon Sep 6 01:31:08 PDT 2021; root:AppleImage4-157.40.6.0.2~68/AppleImage4/RELEASE_ARM64E
AppleImage4: failed to read nvram property: oblit-inprogress: 2
AMFI: UDID enforcement enabled
Registering: IOService:/
Registering: IOService:/AppleARMPE/IOSystemStateNotification
Registering: IOService:/AppleARMPE/IOPMrootDomain