Skip to content

Instantly share code, notes, and snippets.

View freedomtan's full-sized avatar

Koan-Sin Tan freedomtan

View GitHub Profile
@freedomtan
freedomtan / d431ap-dt.txt
Created September 21, 2019 09:03
iPhone 11 Pro Max (D431AP) device tree
Device Tree with 18 properties and 19 children
Properties:
device-tree:
| +--target-type 5 bytes: D431 0x44 0x34 0x33 0x31 0x00
| +--mlb-serial-number 29 bytes: syscfg/MLB#/0x20,zeroes/0x20 0x73 0x79 0x73 0x63 0x66 0x67 0x2f 0x4d 0x4c 0x42 0x23 0x2f 0x30 0x78 0x32 0x30 0x2c 0x7a 0x65 0x72 0x6f 0x65 0x73 0x2f 0x30 0x78 0x32 0x30 0x00
| +--compatible 27 bytes: D431AP 0x44 0x34 0x33 0x31 0x41 0x50 0x00 0x69 0x50 0x68 0x6f 0x6e 0x65 0x31 0x32 0x2c 0x35 0x00 0x41 0x70 0x70 0x6c 0x65 0x41 0x52 0x4d 0x00
| +--secure-root-prefix 3 bytes: md 0x6d 0x64 0x00
| +--AAPL,phandle 4 bytes: (null) 0x01 0x00 0x00 0x00
| +--platform-name 32 bytes: (null) 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
| +--device_type 8 bytes: (null) 0x62 0x6f 0x6f 0x74 0x72 0x6f 0x6d 0x00
@freedomtan
freedomtan / n104ap-dt.txt
Last active November 23, 2023 11:06
iPhone 11 (N104AP) device tree
Device Tree with 18 properties and 19 children
Properties:
device-tree:
| +--target-type 5 bytes: N104 0x4e 0x31 0x30 0x34 0x00
| +--mlb-serial-number 29 bytes: syscfg/MLB#/0x20,zeroes/0x20 0x73 0x79 0x73 0x63 0x66 0x67 0x2f 0x4d 0x4c 0x42 0x23 0x2f 0x30 0x78 0x32 0x30 0x2c 0x7a 0x65 0x72 0x6f 0x65 0x73 0x2f 0x30 0x78 0x32 0x30 0x00
| +--compatible 27 bytes: N104AP 0x4e 0x31 0x30 0x34 0x41 0x50 0x00 0x69 0x50 0x68 0x6f 0x6e 0x65 0x31 0x32 0x2c 0x31 0x00 0x41 0x70 0x70 0x6c 0x65 0x41 0x52 0x4d 0x00
| +--secure-root-prefix 3 bytes: md 0x6d 0x64 0x00
| +--AAPL,phandle 4 bytes: (null) 0x01 0x00 0x00 0x00
| +--platform-name 32 bytes: (null) 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
| +--device_type 8 bytes: (null) 0x62 0x6f 0x6f 0x74 0x72 0x6f 0x6d 0x00
@freedomtan
freedomtan / mobilenet_v1_1.0_224_on_NCS_and_NCS2
Last active November 23, 2018 04:38
MobileNet V1 1.0 224 on Intel NCS and NCS2
$ ./classification_sample -d MYRIAD -i /hack/freedom/intel/computer_vision_sdk/deployment_tools/demo/../demo/car.png -m /hack/freedom/intel/computer_vision_sdk/deployment_tools/model_optimizer/mobilenet_v1_1.0_224_frozen.xml -pc
[ INFO ] InferenceEngine:
API version ............ 1.4
Build .................. 17328
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ] /hack/freedom/intel/computer_vision_sdk/deployment_tools/demo/../demo/car.png
[ INFO ] Loading plugin
API version ............ 1.4
@freedomtan
freedomtan / d331pap-dt.txt
Created October 1, 2018 15:21
iPhone XS Max (D331PAP) Device Tree
Device Tree with 18 properties and 17 children
Properties:
device-tree:
| +--target-type 6 bytes: D331p 0x44 0x33 0x33 0x31 0x70 0x00
| +--mlb-serial-number 29 bytes: syscfg/MLB#/0x20,zeroes/0x20 0x73 0x79 0x73 0x63 0x66 0x67 0x2f 0x4d 0x4c 0x42 0x23 0x2f 0x30 0x78 0x32 0x30 0x2c 0x7a 0x65 0x72 0x6f 0x65 0x73 0x2f 0x30 0x78 0x32 0x30 0x00
| +--compatible 28 bytes: (null) 0x44 0x33 0x33 0x31 0x70 0x41 0x50 0x00 0x69 0x50 0x68 0x6f 0x6e 0x65 0x31 0x31 0x2c 0x36 0x00 0x41 0x70 0x70 0x6c 0x65 0x41 0x52 0x4d 0x00
| +--secure-root-prefix 3 bytes: md 0x6d 0x64 0x00
| +--AAPL,phandle 4 bytes: (null) 0x01 0x00 0x00 0x00
| +--platform-name 32 bytes: (null) 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
| +--device_type 8 bytes: (null) 0x62 0x6f 0x6f 0x74 0x72 0x6f 0x6d 0x00
@freedomtan
freedomtan / d331ap-dt.txt
Last active October 17, 2018 17:33
iPhone XS Max (D331AP) Device tree
Device Tree with 18 properties and 17 children
Properties:
device-tree:
| +--target-type 5 bytes: D331 0x44 0x33 0x33 0x31 0x00
| +--mlb-serial-number 29 bytes: syscfg/MLB#/0x20,zeroes/0x20 0x73 0x79 0x73 0x63 0x66 0x67 0x2f 0x4d 0x4c 0x42 0x23 0x2f 0x30 0x78 0x32 0x30 0x2c 0x7a 0x65 0x72 0x6f 0x65 0x73 0x2f 0x30 0x78 0x32 0x30 0x00
| +--compatible 27 bytes: D331AP 0x44 0x33 0x33 0x31 0x41 0x50 0x00 0x69 0x50 0x68 0x6f 0x6e 0x65 0x31 0x31 0x2c 0x34 0x00 0x41 0x70 0x70 0x6c 0x65 0x41 0x52 0x4d 0x00
| +--secure-root-prefix 3 bytes: md 0x6d 0x64 0x00
| +--AAPL,phandle 4 bytes: (null) 0x01 0x00 0x00 0x00
| +--platform-name 32 bytes: (null) 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
| +--device_type 8 bytes: (null) 0x62 0x6f 0x6f 0x74 0x72 0x6f 0x6d 0x00
@freedomtan
freedomtan / d22ap-dt.txt
Created November 28, 2017 06:45
iPhone X (D22AP) Device Tree
Device Tree with 18 properties and 16 children
Properties:
device-tree:
| +--target-type 4 bytes: (null)
| +--mlb-serial-number 29 bytes: syscfg/MLB#/0x20,zeroes/0x20
| +--compatible 26 bytes: D22AP
| +--secure-root-prefix 3 bytes: md
| +--AAPL,phandle 4 bytes: (null)
| +--platform-name 32 bytes: (null)
| +--device_type 8 bytes: (null)
@freedomtan
freedomtan / d211ap-dt.txt
Created November 28, 2017 06:42
iPhone 8 Plus (D211AP) Device Tree
Device Tree with 18 properties and 16 children
Properties:
device-tree:
| +--target-type 5 bytes: D211
| +--mlb-serial-number 29 bytes: syscfg/MLB#/0x20,zeroes/0x20
| +--compatible 27 bytes: D211AP
| +--secure-root-prefix 3 bytes: md
| +--AAPL,phandle 4 bytes: (null)
| +--platform-name 32 bytes: (null)
| +--device_type 8 bytes: (null)
@freedomtan
freedomtan / d101ap-dt.txt
Last active October 17, 2018 17:32
iPhone 7 (D101AP) Device Tree
Device Tree with 18 properties and 16 children
Properties:
device-tree:
| +--target-type 5 bytes: D101
| +--mlb-serial-number 29 bytes: syscfg/MLB#/0x20,zeroes/0x20
| +--compatible 26 bytes: D101AP
| +--secure-root-prefix 3 bytes: md
| +--AAPL,phandle 4 bytes: (null)
| +--platform-name 32 bytes: (null)
| +--device_type 8 bytes: (null)
@freedomtan
freedomtan / thermal-sensors.md
Last active April 3, 2021 09:21
Thermal Sensors in iOS Devices

get thermal sensors information on iOS devices

Sensors

As far as I can tell, there are two kinds of thermal sensors: "real" and synthetic ones. To get thermal sensor information, on iPhone 6s, we'll get something similar to the following

  iPhone:~ root# cycript  -p UserEventAgent
  
  cy# hs = [HidSensors sharedInstance]
  #"<HidSensors: 0x14de04210>"