Skip to content

Instantly share code, notes, and snippets.

View zhuowei's full-sized avatar

zhuowei

View GitHub Profile

SoftSIM across two computers: this doesn't work and I don't know why; can someone help

On the bluetooth computer:

sudo sdptool browse 00:11:22:33:44:55
<snip>
Service Name: SIM Access
Service RecHandle: 0x1000c
Service Class ID List:
zhuowei@faith:~/softsim$ ruby src/demo_client.rb -s tcp -p 23366 --host 192.168.1.13 -t info -v 5
/home/zhuowei/softsim/src/lib/apdu.rb:140: warning: key 28493 is duplicated and overwritten on line 140
"-s"
"-p"
"--host"
"-t"
"-v"
[state] state set to not_connected
[client] connecting
[msg send] < CONNECT_REQ (00)
<?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