Skip to content

Instantly share code, notes, and snippets.

@zhuowei
Created August 12, 2018 19:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuowei/56d74ce943755db6e2475f558e2435e4 to your computer and use it in GitHub Desktop.
Save zhuowei/56d74ce943755db6e2475f558e2435e4 to your computer and use it in GitHub Desktop.
plutil -p - <~/Library/Developer/CoreSimulator/Devices/<device>/data/Library/Avatar/avatars.db and also a dump of that hex blob inside the first dump
{
"$archiver" => "NSKeyedArchiver"
"$objects" => [
0 => "$null"
1 => {
"$class" => <CFKeyedArchiverUID 0x7fb2a4c0d8d0 [0x7fffa1485af0]>{value = 12}
"domains" => <CFKeyedArchiverUID 0x7fb2a4c0d890 [0x7fffa1485af0]>{value = 2}
"records" => <CFKeyedArchiverUID 0x7fb2a4c0d8b0 [0x7fffa1485af0]>{value = 8}
}
2 => {
"$class" => <CFKeyedArchiverUID 0x7fb2a4c0da40 [0x7fffa1485af0]>{value = 7}
"NS.objects" => [
0 => <CFKeyedArchiverUID 0x7fb2a4c0d9e0 [0x7fffa1485af0]>{value = 3}
]
}
3 => {
"$class" => <CFKeyedArchiverUID 0x7fb2a4c0db60 [0x7fffa1485af0]>{value = 6}
"domainIdentifier" => <CFKeyedArchiverUID 0x7fb2a4c0db80 [0x7fffa1485af0]>{value = 4}
"primaryAvatarIdentifier" => <CFKeyedArchiverUID 0x7fb2a4c0db40 [0x7fffa1485af0]>{value = 5}
}
4 => "com.worthdoingbadly.Laurelmoji"
5 => "BEEC087A-D978-4D33-8275-F90324062235"
6 => {
"$classes" => [
0 => "AVTArchiverBasedDomain"
1 => "NSObject"
]
"$classname" => "AVTArchiverBasedDomain"
}
7 => {
"$classes" => [
0 => "NSArray"
1 => "NSObject"
]
"$classname" => "NSArray"
}
8 => {
"$class" => <CFKeyedArchiverUID 0x7fb2a4c0da40 [0x7fffa1485af0]>{value = 7}
"NS.objects" => [
0 => <CFKeyedArchiverUID 0x7fb2a4c0deb0 [0x7fffa1485af0]>{value = 9}
]
}
9 => {
"$class" => <CFKeyedArchiverUID 0x7fb2a4c0dfb0 [0x7fffa1485af0]>{value = 11}
"avatarData" => <CFKeyedArchiverUID 0x7fb2a4c0dfd0 [0x7fffa1485af0]>{value = 10}
"identifier" => <CFKeyedArchiverUID 0x7fb2a4c0db40 [0x7fffa1485af0]>{value = 5}
}
10 => <7b0a2020 226d696e 56657273 696f6e22 203a2037 2c0a2020 22707265 73657473 22203a20 7b0a2020 20202265 79657765 61722220 3a20226e 6f6e6522 2c0a2020 20202268 6967686c 69676874 7322203a 20226e6f 6e65222c 0a202020 20226579 6562726f 77732220 3a202265 76656e5f 726f756e 6465645f 7468696e 222c0a20 20202022 6c697073 22203a20 226f7661 6c5f6d65 6469756d 222c0a20 20202022 6e6f7365 22203a20 226d6564 69756d22 2c0a2020 20202268 65616422 203a2022 726f756e 645f6d65 6469756d 222c0a20 20202022 65617273 22203a20 226d6564 69756d22 2c0a2020 20202261 67652220 3a202261 64756c74 222c0a20 20202022 65617272 696e6773 22203a20 226e6f6e 65222c0a 20202020 22657965 6c617368 65732220 3a20226e 61747572 616c5f74 68696e22 2c0a2020 20202266 61636961 6c686169 7222203a 20226e6f 6e65222c 0a202020 20226865 61647765 61722220 3a20226e 6f6e6522 2c0a2020 20202273 69646562 75726e73 22203a20 226e6f6e 65222c0a 20202020 22686169 7222203a 20226e6f 6e65222c 0a202020 20226579 65732220 3a20226c 61726765 5f737472 61696768 74222c0a 20202020 22667265 636b6c65 7322203a 20226e6f 6e65220a 20207d2c 0a202022 636f6c6f 72732220 3a207b0a 20202020 22657965 77656172 22203a20 7b0a2020 20202020 226e616d 6522203a 2022426c 61636b22 2c0a2020 20202020 22766172 69617469 6f6e2220 3a20300a 20202020 7d2c0a20 20202022 65796562 726f7773 22203a20 7b0a2020 20202020 226e616d 6522203a 2022536f 66742042 6c61636b 222c0a20 20202020 20227661 72696174 696f6e22 203a2030 0a202020 207d2c0a 20202020 226c6970 7322203a 207b0a20 20202020 20226e61 6d652220 3a20224e 61747572 616c222c 0a202020 20202022 76617269 6174696f 6e22203a 20300a20 2020207d 2c0a2020 20202268 65616422 203a207b 0a202020 20202022 6e616d65 22203a20 2259656c 6c6f7722 2c0a2020 20202020 22766172 69617469 6f6e2220 3a20300a 20202020 7d2c0a20 20202022 65617272 696e6773 22203a20 7b0a2020 20202020 226e616d 6522203a 20225369 6c766572 222c0a20 20202020 20227661 72696174 696f6e22 203a2030 0a202020 207d2c0a 20202020 22686967 686c6967 68747322 203a207b 0a202020 20202022 6e616d65 22203a20 22477261 79222c0a 20202020 20202276 61726961 74696f6e 22203a20 300a2020 20207d2c 0a202020 20226579 656c6173 68657322 203a207b 0a202020 20202022 6e616d65 22203a20 22426c61 636b222c 0a202020 20202022 76617269 6174696f 6e22203a 20300a20 2020207d 2c0a2020 20202266 61636961 6c686169 7222203a 207b0a20 20202020 20226e61 6d652220 3a202253 6f667420 426c6163 6b222c0a 20202020 20202276 61726961 74696f6e 22203a20 300a2020 20207d2c 0a202020 20226865 61647765 61722220 3a207b0a 20202020 2020226e 616d6522 203a2022 57686974 65222c0a 20202020 20202276 61726961 74696f6e 22203a20 300a2020 20207d2c 0a202020 20226861 69722220 3a207b0a 20202020 2020226e 616d6522 203a2022 536f6674 20426c61 636b222c 0a202020 20202022 76617269 6174696f 6e22203a 20300a20 2020207d 2c0a2020 20202273 69646562 75726e73 22203a20 7b0a2020 20202020 226e616d 6522203a 2022536f 66742042 6c61636b 222c0a20 20202020 20227661 72696174 696f6e22 203a2030 0a202020 207d2c0a 20202020 22657965 7322203a 207b0a20 20202020 20226e61 6d652220 3a202242 726f776e 222c0a20 20202020 20227661 72696174 696f6e22 203a2030 0a202020 207d0a20 207d2c0a 20202273 65636f6e 64617279 436f6c6f 72732220 3a207b0a 20202020 22657965 77656172 22203a20 7b0a2020 20202020 226e616d 6522203a 2022436c 65617222 2c0a2020 20202020 22766172 69617469 6f6e2220 3a20300a 20202020 7d0a2020 7d2c0a20 2022636c 61737322 203a2032 2c0a2020 22766572 73696f6e 22203a20 370a7d0a>
11 => {
"$classes" => [
0 => "AVTAvatarRecord"
1 => "NSObject"
]
"$classname" => "AVTAvatarRecord"
}
12 => {
"$classes" => [
0 => "AVTArchiverBasedStoreRoot"
1 => "NSObject"
]
"$classname" => "AVTArchiverBasedStoreRoot"
}
]
"$top" => {
"root" => <CFKeyedArchiverUID 0x7fb2a4c0e350 [0x7fffa1485af0]>{value = 1}
}
"$version" => 100000
}
{
"minVersion" : 7,
"presets" : {
"eyewear" : "none",
"highlights" : "none",
"eyebrows" : "even_rounded_thin",
"lips" : "oval_medium",
"nose" : "medium",
"head" : "round_medium",
"ears" : "medium",
"age" : "adult",
"earrings" : "none",
"eyelashes" : "natural_thin",
"facialhair" : "none",
"headwear" : "none",
"sideburns" : "none",
"hair" : "none",
"eyes" : "large_straight",
"freckles" : "none"
},
"colors" : {
"eyewear" : {
"name" : "Black",
"variation" : 0
},
"eyebrows" : {
"name" : "Soft Black",
"variation" : 0
},
"lips" : {
"name" : "Natural",
"variation" : 0
},
"head" : {
"name" : "Yellow",
"variation" : 0
},
"earrings" : {
"name" : "Silver",
"variation" : 0
},
"highlights" : {
"name" : "Gray",
"variation" : 0
},
"eyelashes" : {
"name" : "Black",
"variation" : 0
},
"facialhair" : {
"name" : "Soft Black",
"variation" : 0
},
"headwear" : {
"name" : "White",
"variation" : 0
},
"hair" : {
"name" : "Soft Black",
"variation" : 0
},
"sideburns" : {
"name" : "Soft Black",
"variation" : 0
},
"eyes" : {
"name" : "Brown",
"variation" : 0
}
},
"secondaryColors" : {
"eyewear" : {
"name" : "Clear",
"variation" : 0
}
},
"class" : 2,
"version" : 7
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment