├── .gitattributes ├── .gitignore ├── IOKitBrowser.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── IOKitTest ├── Base.lproj │ ├── Main_iPad.storyboard │ └── Main_iPhone.storyboard ├── ELLAppDelegate.h ├── ELLAppDelegate.m ├── ELLIOKitDumper.h ├── ELLIOKitDumper.m ├── ELLIOKitNodeInfo.h ├── ELLIOKitNodeInfo.m ├── ELLViewController.h ├── ELLViewController.m ├── IOKitBrowser-Info.plist ├── IOKitBrowser-Prefix.pch ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── AppIcon29x29.png │ │ ├── AppIcon29x29@2x-1.png │ │ ├── AppIcon29x29@2x.png │ │ ├── AppIcon40x40.png │ │ ├── AppIcon40x40@2x-1.png │ │ ├── AppIcon40x40@2x.png │ │ ├── AppIcon60x60@2x.png │ │ ├── AppIcon76x76.png │ │ ├── AppIcon76x76@2x.png │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ ├── 1024x768.png │ │ ├── 1536x2048.png │ │ ├── 2048x1536.png │ │ ├── 640x1136.png │ │ ├── 640x960.png │ │ ├── 768x1024.png │ │ └── Contents.json ├── en.lproj │ └── InfoPlist.strings └── main.m ├── IOKitTestTests ├── IOKitBrowserTests-Info.plist ├── IOKitTestTests.m └── en.lproj │ └── InfoPlist.strings └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj binary merge=union -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X Finder 2 | .DS_Store 3 | 4 | # Xcode per-user config 5 | *.mode1 6 | *.mode1v3 7 | *.mode2v3 8 | *.perspective 9 | *.perspectivev3 10 | *.pbxuser 11 | xcuserdata 12 | # Build products 13 | build/ 14 | *.o 15 | *.LinkFileList 16 | *.hmap 17 | # Automatic backup files 18 | *~.nib/ 19 | *.swp 20 | *~ 21 | *.dat 22 | *.dep 23 | # AppCode 24 | .idea -------------------------------------------------------------------------------- /IOKitBrowser.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | AD538626186E4E4F00BC5972 /* ELLIOKitNodeInfo.m in Sources */ = {isa = PBXBuildFile; fileRef = AD538625186E4E4F00BC5972 /* ELLIOKitNodeInfo.m */; }; 11 | AD7E3E93186BBBBB00E47119 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E92186BBBBB00E47119 /* Foundation.framework */; }; 12 | AD7E3E95186BBBBB00E47119 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E94186BBBBB00E47119 /* CoreGraphics.framework */; }; 13 | AD7E3E97186BBBBB00E47119 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3E96186BBBBB00E47119 /* UIKit.framework */; }; 14 | AD7E3E9D186BBBBB00E47119 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = AD7E3E9B186BBBBB00E47119 /* InfoPlist.strings */; }; 15 | AD7E3E9F186BBBBB00E47119 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = AD7E3E9E186BBBBB00E47119 /* main.m */; }; 16 | AD7E3EA3186BBBBB00E47119 /* ELLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = AD7E3EA2186BBBBB00E47119 /* ELLAppDelegate.m */; }; 17 | AD7E3EA6186BBBBB00E47119 /* Main_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD7E3EA4186BBBBB00E47119 /* Main_iPhone.storyboard */; }; 18 | AD7E3EA9186BBBBB00E47119 /* Main_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AD7E3EA7186BBBBB00E47119 /* Main_iPad.storyboard */; }; 19 | AD7E3EAC186BBBBB00E47119 /* ELLViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = AD7E3EAB186BBBBB00E47119 /* ELLViewController.m */; }; 20 | AD7E3EAE186BBBBB00E47119 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AD7E3EAD186BBBBB00E47119 /* Images.xcassets */; }; 21 | AD7E3ED0186BBDCA00E47119 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AD7E3ECF186BBDCA00E47119 /* IOKit.framework */; }; 22 | ADDA110718A8D511002E84F9 /* ELLIOKitDumper.m in Sources */ = {isa = PBXBuildFile; fileRef = ADDA110618A8D511002E84F9 /* ELLIOKitDumper.m */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXFileReference section */ 26 | AD538624186E4E4F00BC5972 /* ELLIOKitNodeInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ELLIOKitNodeInfo.h; sourceTree = ""; }; 27 | AD538625186E4E4F00BC5972 /* ELLIOKitNodeInfo.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ELLIOKitNodeInfo.m; sourceTree = ""; }; 28 | AD7E3E8F186BBBBB00E47119 /* IOKitBrowser.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = IOKitBrowser.app; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | AD7E3E92186BBBBB00E47119 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 30 | AD7E3E94186BBBBB00E47119 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 31 | AD7E3E96186BBBBB00E47119 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 32 | AD7E3E9A186BBBBB00E47119 /* IOKitBrowser-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "IOKitBrowser-Info.plist"; sourceTree = ""; }; 33 | AD7E3E9C186BBBBB00E47119 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 34 | AD7E3E9E186BBBBB00E47119 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 35 | AD7E3EA0186BBBBB00E47119 /* IOKitBrowser-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "IOKitBrowser-Prefix.pch"; sourceTree = ""; }; 36 | AD7E3EA1186BBBBB00E47119 /* ELLAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ELLAppDelegate.h; sourceTree = ""; }; 37 | AD7E3EA2186BBBBB00E47119 /* ELLAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ELLAppDelegate.m; sourceTree = ""; }; 38 | AD7E3EA5186BBBBB00E47119 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPhone.storyboard; sourceTree = ""; }; 39 | AD7E3EA8186BBBBB00E47119 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main_iPad.storyboard; sourceTree = ""; }; 40 | AD7E3EAA186BBBBB00E47119 /* ELLViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ELLViewController.h; sourceTree = ""; }; 41 | AD7E3EAB186BBBBB00E47119 /* ELLViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ELLViewController.m; sourceTree = ""; }; 42 | AD7E3EAD186BBBBB00E47119 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 43 | AD7E3EB4186BBBBB00E47119 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 44 | AD7E3EBC186BBBBB00E47119 /* IOKitBrowserTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "IOKitBrowserTests-Info.plist"; sourceTree = ""; }; 45 | AD7E3EBE186BBBBB00E47119 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 46 | AD7E3EC0186BBBBB00E47119 /* IOKitTestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = IOKitTestTests.m; sourceTree = ""; }; 47 | AD7E3ECF186BBDCA00E47119 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; 48 | ADDA110518A8D511002E84F9 /* ELLIOKitDumper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ELLIOKitDumper.h; sourceTree = ""; }; 49 | ADDA110618A8D511002E84F9 /* ELLIOKitDumper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ELLIOKitDumper.m; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | AD7E3E8C186BBBBB00E47119 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | AD7E3ED0186BBDCA00E47119 /* IOKit.framework in Frameworks */, 58 | AD7E3E95186BBBBB00E47119 /* CoreGraphics.framework in Frameworks */, 59 | AD7E3E97186BBBBB00E47119 /* UIKit.framework in Frameworks */, 60 | AD7E3E93186BBBBB00E47119 /* Foundation.framework in Frameworks */, 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | /* End PBXFrameworksBuildPhase section */ 65 | 66 | /* Begin PBXGroup section */ 67 | AD7E3E86186BBBBB00E47119 = { 68 | isa = PBXGroup; 69 | children = ( 70 | AD7E3E98186BBBBB00E47119 /* IOKitTest */, 71 | AD7E3EBA186BBBBB00E47119 /* IOKitTestTests */, 72 | AD7E3E91186BBBBB00E47119 /* Frameworks */, 73 | AD7E3E90186BBBBB00E47119 /* Products */, 74 | ); 75 | sourceTree = ""; 76 | }; 77 | AD7E3E90186BBBBB00E47119 /* Products */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | AD7E3E8F186BBBBB00E47119 /* IOKitBrowser.app */, 81 | ); 82 | name = Products; 83 | sourceTree = ""; 84 | }; 85 | AD7E3E91186BBBBB00E47119 /* Frameworks */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | AD7E3ECF186BBDCA00E47119 /* IOKit.framework */, 89 | AD7E3E92186BBBBB00E47119 /* Foundation.framework */, 90 | AD7E3E94186BBBBB00E47119 /* CoreGraphics.framework */, 91 | AD7E3E96186BBBBB00E47119 /* UIKit.framework */, 92 | AD7E3EB4186BBBBB00E47119 /* XCTest.framework */, 93 | ); 94 | name = Frameworks; 95 | sourceTree = ""; 96 | }; 97 | AD7E3E98186BBBBB00E47119 /* IOKitTest */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | AD7E3EA1186BBBBB00E47119 /* ELLAppDelegate.h */, 101 | AD7E3EA2186BBBBB00E47119 /* ELLAppDelegate.m */, 102 | AD7E3EA4186BBBBB00E47119 /* Main_iPhone.storyboard */, 103 | AD7E3EA7186BBBBB00E47119 /* Main_iPad.storyboard */, 104 | AD7E3EAA186BBBBB00E47119 /* ELLViewController.h */, 105 | AD7E3EAB186BBBBB00E47119 /* ELLViewController.m */, 106 | ADDA110518A8D511002E84F9 /* ELLIOKitDumper.h */, 107 | ADDA110618A8D511002E84F9 /* ELLIOKitDumper.m */, 108 | AD538624186E4E4F00BC5972 /* ELLIOKitNodeInfo.h */, 109 | AD538625186E4E4F00BC5972 /* ELLIOKitNodeInfo.m */, 110 | AD7E3EAD186BBBBB00E47119 /* Images.xcassets */, 111 | AD7E3E99186BBBBB00E47119 /* Supporting Files */, 112 | ); 113 | path = IOKitTest; 114 | sourceTree = ""; 115 | }; 116 | AD7E3E99186BBBBB00E47119 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | AD7E3E9A186BBBBB00E47119 /* IOKitBrowser-Info.plist */, 120 | AD7E3E9B186BBBBB00E47119 /* InfoPlist.strings */, 121 | AD7E3E9E186BBBBB00E47119 /* main.m */, 122 | AD7E3EA0186BBBBB00E47119 /* IOKitBrowser-Prefix.pch */, 123 | ); 124 | name = "Supporting Files"; 125 | sourceTree = ""; 126 | }; 127 | AD7E3EBA186BBBBB00E47119 /* IOKitTestTests */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | AD7E3EC0186BBBBB00E47119 /* IOKitTestTests.m */, 131 | AD7E3EBB186BBBBB00E47119 /* Supporting Files */, 132 | ); 133 | path = IOKitTestTests; 134 | sourceTree = ""; 135 | }; 136 | AD7E3EBB186BBBBB00E47119 /* Supporting Files */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | AD7E3EBC186BBBBB00E47119 /* IOKitBrowserTests-Info.plist */, 140 | AD7E3EBD186BBBBB00E47119 /* InfoPlist.strings */, 141 | ); 142 | name = "Supporting Files"; 143 | sourceTree = ""; 144 | }; 145 | /* End PBXGroup section */ 146 | 147 | /* Begin PBXNativeTarget section */ 148 | AD7E3E8E186BBBBB00E47119 /* IOKitBrowser */ = { 149 | isa = PBXNativeTarget; 150 | buildConfigurationList = AD7E3EC4186BBBBB00E47119 /* Build configuration list for PBXNativeTarget "IOKitBrowser" */; 151 | buildPhases = ( 152 | AD7E3E8B186BBBBB00E47119 /* Sources */, 153 | AD7E3E8C186BBBBB00E47119 /* Frameworks */, 154 | AD7E3E8D186BBBBB00E47119 /* Resources */, 155 | 34008090A8A94093980B6DA7 /* icon versioning */, 156 | ); 157 | buildRules = ( 158 | ); 159 | dependencies = ( 160 | ); 161 | name = IOKitBrowser; 162 | productName = IOKitTest; 163 | productReference = AD7E3E8F186BBBBB00E47119 /* IOKitBrowser.app */; 164 | productType = "com.apple.product-type.application"; 165 | }; 166 | /* End PBXNativeTarget section */ 167 | 168 | /* Begin PBXProject section */ 169 | AD7E3E87186BBBBB00E47119 /* Project object */ = { 170 | isa = PBXProject; 171 | attributes = { 172 | CLASSPREFIX = ELL; 173 | LastUpgradeCheck = 0610; 174 | ORGANIZATIONNAME = "Electric Labs"; 175 | TargetAttributes = { 176 | AD7E3E8E186BBBBB00E47119 = { 177 | DevelopmentTeam = G7W9WL7U59; 178 | }; 179 | }; 180 | }; 181 | buildConfigurationList = AD7E3E8A186BBBBB00E47119 /* Build configuration list for PBXProject "IOKitBrowser" */; 182 | compatibilityVersion = "Xcode 3.2"; 183 | developmentRegion = English; 184 | hasScannedForEncodings = 0; 185 | knownRegions = ( 186 | en, 187 | Base, 188 | ); 189 | mainGroup = AD7E3E86186BBBBB00E47119; 190 | productRefGroup = AD7E3E90186BBBBB00E47119 /* Products */; 191 | projectDirPath = ""; 192 | projectRoot = ""; 193 | targets = ( 194 | AD7E3E8E186BBBBB00E47119 /* IOKitBrowser */, 195 | ); 196 | }; 197 | /* End PBXProject section */ 198 | 199 | /* Begin PBXResourcesBuildPhase section */ 200 | AD7E3E8D186BBBBB00E47119 /* Resources */ = { 201 | isa = PBXResourcesBuildPhase; 202 | buildActionMask = 2147483647; 203 | files = ( 204 | AD7E3EA9186BBBBB00E47119 /* Main_iPad.storyboard in Resources */, 205 | AD7E3EAE186BBBBB00E47119 /* Images.xcassets in Resources */, 206 | AD7E3EA6186BBBBB00E47119 /* Main_iPhone.storyboard in Resources */, 207 | AD7E3E9D186BBBBB00E47119 /* InfoPlist.strings in Resources */, 208 | ); 209 | runOnlyForDeploymentPostprocessing = 0; 210 | }; 211 | /* End PBXResourcesBuildPhase section */ 212 | 213 | /* Begin PBXShellScriptBuildPhase section */ 214 | 34008090A8A94093980B6DA7 /* icon versioning */ = { 215 | isa = PBXShellScriptBuildPhase; 216 | buildActionMask = 2147483647; 217 | files = ( 218 | ); 219 | inputPaths = ( 220 | ); 221 | name = "icon versioning"; 222 | outputPaths = ( 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | shellPath = /bin/sh; 226 | shellScript = "\ncommit=`git rev-parse --short HEAD`\nbranch=`git rev-parse --abbrev-ref HEAD`\nversion=`/usr/libexec/PlistBuddy -c \"Print CFBundleVersion\" \"${INFOPLIST_FILE}\"`\n\nfunction processIcon() {\n export PATH=$PATH:/usr/local/bin\n base_file=$1\n base_path=`find ${SRCROOT} -name $base_file`\n\n if [[ ! -f ${base_path} || -z ${base_path} ]]; then\n return;\n fi\n\n target_file=`echo $base_file | sed \"s/_base//\"`\n target_path=\"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/${target_file}\"\n\n if [ $CONFIGURATION = \"Release\" ]; then\n cp ${base_file} $target_path\n return\n fi\n\n width=`identify -format %w ${base_path}`\n\n convert -background '#0008' -fill white -gravity center -size ${width}x40\\\n caption:\"${version} ${branch} ${commit}\"\\\n ${base_path} +swap -gravity south -composite ${target_path}\n}\n\nprocessIcon \"Icon_base.png\"\nprocessIcon \"Icon@2x_base.png\"\nprocessIcon \"Icon-72_base.png\"\nprocessIcon \"Icon-72@2x_base.png\"\n"; 227 | }; 228 | /* End PBXShellScriptBuildPhase section */ 229 | 230 | /* Begin PBXSourcesBuildPhase section */ 231 | AD7E3E8B186BBBBB00E47119 /* Sources */ = { 232 | isa = PBXSourcesBuildPhase; 233 | buildActionMask = 2147483647; 234 | files = ( 235 | AD538626186E4E4F00BC5972 /* ELLIOKitNodeInfo.m in Sources */, 236 | AD7E3EAC186BBBBB00E47119 /* ELLViewController.m in Sources */, 237 | AD7E3EA3186BBBBB00E47119 /* ELLAppDelegate.m in Sources */, 238 | ADDA110718A8D511002E84F9 /* ELLIOKitDumper.m in Sources */, 239 | AD7E3E9F186BBBBB00E47119 /* main.m in Sources */, 240 | ); 241 | runOnlyForDeploymentPostprocessing = 0; 242 | }; 243 | /* End PBXSourcesBuildPhase section */ 244 | 245 | /* Begin PBXVariantGroup section */ 246 | AD7E3E9B186BBBBB00E47119 /* InfoPlist.strings */ = { 247 | isa = PBXVariantGroup; 248 | children = ( 249 | AD7E3E9C186BBBBB00E47119 /* en */, 250 | ); 251 | name = InfoPlist.strings; 252 | sourceTree = ""; 253 | }; 254 | AD7E3EA4186BBBBB00E47119 /* Main_iPhone.storyboard */ = { 255 | isa = PBXVariantGroup; 256 | children = ( 257 | AD7E3EA5186BBBBB00E47119 /* Base */, 258 | ); 259 | name = Main_iPhone.storyboard; 260 | sourceTree = ""; 261 | }; 262 | AD7E3EA7186BBBBB00E47119 /* Main_iPad.storyboard */ = { 263 | isa = PBXVariantGroup; 264 | children = ( 265 | AD7E3EA8186BBBBB00E47119 /* Base */, 266 | ); 267 | name = Main_iPad.storyboard; 268 | sourceTree = ""; 269 | }; 270 | AD7E3EBD186BBBBB00E47119 /* InfoPlist.strings */ = { 271 | isa = PBXVariantGroup; 272 | children = ( 273 | AD7E3EBE186BBBBB00E47119 /* en */, 274 | ); 275 | name = InfoPlist.strings; 276 | sourceTree = ""; 277 | }; 278 | /* End PBXVariantGroup section */ 279 | 280 | /* Begin XCBuildConfiguration section */ 281 | 0AAC631A05DE4B7697873C8E /* profiling */ = { 282 | isa = XCBuildConfiguration; 283 | buildSettings = { 284 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 285 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 286 | CODE_SIGN_IDENTITY = "iPhone Developer"; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 289 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 290 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 291 | PRODUCT_NAME = IOKitBrowser; 292 | PROVISIONING_PROFILE = ""; 293 | WRAPPER_EXTENSION = app; 294 | }; 295 | name = profiling; 296 | }; 297 | 131952FD1E734D12BD1AD9A0 /* profiling */ = { 298 | isa = XCBuildConfiguration; 299 | buildSettings = { 300 | ALWAYS_SEARCH_USER_PATHS = NO; 301 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 302 | CLANG_CXX_LIBRARY = "libc++"; 303 | CLANG_ENABLE_MODULES = YES; 304 | CLANG_ENABLE_OBJC_ARC = YES; 305 | CLANG_WARN_BOOL_CONVERSION = YES; 306 | CLANG_WARN_CONSTANT_CONVERSION = YES; 307 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 308 | CLANG_WARN_EMPTY_BODY = YES; 309 | CLANG_WARN_ENUM_CONVERSION = YES; 310 | CLANG_WARN_INT_CONVERSION = YES; 311 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 312 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 313 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 314 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 315 | COPY_PHASE_STRIP = NO; 316 | GCC_C_LANGUAGE_STANDARD = gnu99; 317 | GCC_DYNAMIC_NO_PIC = NO; 318 | GCC_OPTIMIZATION_LEVEL = 0; 319 | GCC_PREPROCESSOR_DEFINITIONS = ( 320 | "DEBUG=1", 321 | "$(inherited)", 322 | ); 323 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 324 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 325 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 326 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 327 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 328 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 329 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 330 | GCC_WARN_MISSING_PARENTHESES = YES; 331 | GCC_WARN_SHADOW = YES; 332 | GCC_WARN_SIGN_COMPARE = YES; 333 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 334 | GCC_WARN_UNDECLARED_SELECTOR = YES; 335 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 336 | GCC_WARN_UNUSED_FUNCTION = YES; 337 | GCC_WARN_UNUSED_LABEL = YES; 338 | GCC_WARN_UNUSED_VALUE = YES; 339 | GCC_WARN_UNUSED_VARIABLE = YES; 340 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 341 | ONLY_ACTIVE_ARCH = YES; 342 | RUN_CLANG_STATIC_ANALYZER = YES; 343 | SDKROOT = iphoneos; 344 | TARGETED_DEVICE_FAMILY = "1,2"; 345 | }; 346 | name = profiling; 347 | }; 348 | 181C7BC432D84E9DA902BDAA /* profiling */ = { 349 | isa = XCBuildConfiguration; 350 | buildSettings = { 351 | ALWAYS_SEARCH_USER_PATHS = NO; 352 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 353 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 354 | CLANG_CXX_LIBRARY = "libc++"; 355 | CLANG_ENABLE_MODULES = YES; 356 | CLANG_ENABLE_OBJC_ARC = YES; 357 | CLANG_WARN_BOOL_CONVERSION = YES; 358 | CLANG_WARN_CONSTANT_CONVERSION = YES; 359 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 360 | CLANG_WARN_EMPTY_BODY = YES; 361 | CLANG_WARN_ENUM_CONVERSION = YES; 362 | CLANG_WARN_INT_CONVERSION = YES; 363 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 364 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 365 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 366 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 367 | COPY_PHASE_STRIP = NO; 368 | GCC_C_LANGUAGE_STANDARD = gnu99; 369 | GCC_DYNAMIC_NO_PIC = NO; 370 | GCC_OPTIMIZATION_LEVEL = 0; 371 | GCC_PREPROCESSOR_DEFINITIONS = ( 372 | "DEBUG=1", 373 | "$(inherited)", 374 | ); 375 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 376 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 377 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 378 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 379 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 380 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 381 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 382 | GCC_WARN_MISSING_PARENTHESES = YES; 383 | GCC_WARN_SHADOW = YES; 384 | GCC_WARN_SIGN_COMPARE = YES; 385 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 386 | GCC_WARN_UNDECLARED_SELECTOR = YES; 387 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 388 | GCC_WARN_UNUSED_FUNCTION = YES; 389 | GCC_WARN_UNUSED_LABEL = YES; 390 | GCC_WARN_UNUSED_VALUE = YES; 391 | GCC_WARN_UNUSED_VARIABLE = YES; 392 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 393 | ONLY_ACTIVE_ARCH = YES; 394 | RUN_CLANG_STATIC_ANALYZER = YES; 395 | SDKROOT = iphoneos; 396 | TARGETED_DEVICE_FAMILY = "1,2"; 397 | }; 398 | name = profiling; 399 | }; 400 | 254D11163F85421D922EA685 /* adhoc */ = { 401 | isa = XCBuildConfiguration; 402 | buildSettings = { 403 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 404 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 405 | CODE_SIGN_IDENTITY = "iPhone Developer"; 406 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 407 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 408 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 409 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 410 | PRODUCT_NAME = IOKitBrowser; 411 | PROVISIONING_PROFILE = ""; 412 | WRAPPER_EXTENSION = app; 413 | }; 414 | name = adhoc; 415 | }; 416 | A230520F0D10488D815CA69C /* adhoc */ = { 417 | isa = XCBuildConfiguration; 418 | buildSettings = { 419 | ALWAYS_SEARCH_USER_PATHS = NO; 420 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 421 | CLANG_CXX_LIBRARY = "libc++"; 422 | CLANG_ENABLE_MODULES = YES; 423 | CLANG_ENABLE_OBJC_ARC = YES; 424 | CLANG_WARN_BOOL_CONVERSION = YES; 425 | CLANG_WARN_CONSTANT_CONVERSION = YES; 426 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 427 | CLANG_WARN_EMPTY_BODY = YES; 428 | CLANG_WARN_ENUM_CONVERSION = YES; 429 | CLANG_WARN_INT_CONVERSION = YES; 430 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 431 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 432 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 433 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 434 | COPY_PHASE_STRIP = NO; 435 | GCC_C_LANGUAGE_STANDARD = gnu99; 436 | GCC_DYNAMIC_NO_PIC = NO; 437 | GCC_OPTIMIZATION_LEVEL = 0; 438 | GCC_PREPROCESSOR_DEFINITIONS = ( 439 | "DEBUG=1", 440 | "$(inherited)", 441 | ); 442 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 443 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 444 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 445 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 446 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 447 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 448 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 449 | GCC_WARN_MISSING_PARENTHESES = YES; 450 | GCC_WARN_SHADOW = YES; 451 | GCC_WARN_SIGN_COMPARE = YES; 452 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 453 | GCC_WARN_UNDECLARED_SELECTOR = YES; 454 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 455 | GCC_WARN_UNUSED_FUNCTION = YES; 456 | GCC_WARN_UNUSED_LABEL = YES; 457 | GCC_WARN_UNUSED_VALUE = YES; 458 | GCC_WARN_UNUSED_VARIABLE = YES; 459 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 460 | ONLY_ACTIVE_ARCH = YES; 461 | RUN_CLANG_STATIC_ANALYZER = YES; 462 | SDKROOT = iphoneos; 463 | TARGETED_DEVICE_FAMILY = "1,2"; 464 | }; 465 | name = adhoc; 466 | }; 467 | AD7E3EC2186BBBBB00E47119 /* Debug */ = { 468 | isa = XCBuildConfiguration; 469 | buildSettings = { 470 | ALWAYS_SEARCH_USER_PATHS = NO; 471 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 472 | CLANG_CXX_LIBRARY = "libc++"; 473 | CLANG_ENABLE_MODULES = YES; 474 | CLANG_ENABLE_OBJC_ARC = YES; 475 | CLANG_WARN_BOOL_CONVERSION = YES; 476 | CLANG_WARN_CONSTANT_CONVERSION = YES; 477 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 478 | CLANG_WARN_EMPTY_BODY = YES; 479 | CLANG_WARN_ENUM_CONVERSION = YES; 480 | CLANG_WARN_INT_CONVERSION = YES; 481 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 482 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 483 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 484 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 485 | COPY_PHASE_STRIP = NO; 486 | GCC_C_LANGUAGE_STANDARD = gnu99; 487 | GCC_DYNAMIC_NO_PIC = NO; 488 | GCC_OPTIMIZATION_LEVEL = 0; 489 | GCC_PREPROCESSOR_DEFINITIONS = ( 490 | "DEBUG=1", 491 | "$(inherited)", 492 | ); 493 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 494 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 495 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 496 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 497 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 498 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 499 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 500 | GCC_WARN_MISSING_PARENTHESES = YES; 501 | GCC_WARN_SHADOW = YES; 502 | GCC_WARN_SIGN_COMPARE = YES; 503 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 504 | GCC_WARN_UNDECLARED_SELECTOR = YES; 505 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 506 | GCC_WARN_UNUSED_FUNCTION = YES; 507 | GCC_WARN_UNUSED_LABEL = YES; 508 | GCC_WARN_UNUSED_VALUE = YES; 509 | GCC_WARN_UNUSED_VARIABLE = YES; 510 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 511 | ONLY_ACTIVE_ARCH = YES; 512 | RUN_CLANG_STATIC_ANALYZER = YES; 513 | SDKROOT = iphoneos; 514 | TARGETED_DEVICE_FAMILY = "1,2"; 515 | }; 516 | name = Debug; 517 | }; 518 | AD7E3EC3186BBBBB00E47119 /* Release */ = { 519 | isa = XCBuildConfiguration; 520 | buildSettings = { 521 | ALWAYS_SEARCH_USER_PATHS = NO; 522 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 523 | CLANG_CXX_LIBRARY = "libc++"; 524 | CLANG_ENABLE_MODULES = YES; 525 | CLANG_ENABLE_OBJC_ARC = YES; 526 | CLANG_WARN_BOOL_CONVERSION = YES; 527 | CLANG_WARN_CONSTANT_CONVERSION = YES; 528 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 529 | CLANG_WARN_EMPTY_BODY = YES; 530 | CLANG_WARN_ENUM_CONVERSION = YES; 531 | CLANG_WARN_INT_CONVERSION = YES; 532 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 533 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 534 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 535 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 536 | COPY_PHASE_STRIP = YES; 537 | ENABLE_NS_ASSERTIONS = NO; 538 | GCC_C_LANGUAGE_STANDARD = gnu99; 539 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 540 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 541 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 542 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 543 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 544 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 545 | GCC_WARN_MISSING_PARENTHESES = YES; 546 | GCC_WARN_SHADOW = YES; 547 | GCC_WARN_SIGN_COMPARE = YES; 548 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 549 | GCC_WARN_UNDECLARED_SELECTOR = YES; 550 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 551 | GCC_WARN_UNUSED_FUNCTION = YES; 552 | GCC_WARN_UNUSED_LABEL = YES; 553 | GCC_WARN_UNUSED_VALUE = YES; 554 | GCC_WARN_UNUSED_VARIABLE = YES; 555 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 556 | RUN_CLANG_STATIC_ANALYZER = YES; 557 | SDKROOT = iphoneos; 558 | TARGETED_DEVICE_FAMILY = "1,2"; 559 | VALIDATE_PRODUCT = YES; 560 | }; 561 | name = Release; 562 | }; 563 | AD7E3EC5186BBBBB00E47119 /* Debug */ = { 564 | isa = XCBuildConfiguration; 565 | buildSettings = { 566 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 567 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 568 | CODE_SIGN_IDENTITY = "iPhone Developer"; 569 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 570 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 571 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 572 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 573 | PRODUCT_NAME = IOKitBrowser; 574 | PROVISIONING_PROFILE = ""; 575 | WRAPPER_EXTENSION = app; 576 | }; 577 | name = Debug; 578 | }; 579 | AD7E3EC6186BBBBB00E47119 /* Release */ = { 580 | isa = XCBuildConfiguration; 581 | buildSettings = { 582 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 583 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 584 | CODE_SIGN_IDENTITY = "iPhone Developer"; 585 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 586 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 587 | GCC_PREFIX_HEADER = "IOKitTest/IOKitBrowser-Prefix.pch"; 588 | INFOPLIST_FILE = "IOKitTest/IOKitBrowser-Info.plist"; 589 | PRODUCT_NAME = IOKitBrowser; 590 | PROVISIONING_PROFILE = ""; 591 | WRAPPER_EXTENSION = app; 592 | }; 593 | name = Release; 594 | }; 595 | DAE539FBEE7A4889B8EAD138 /* adhoc */ = { 596 | isa = XCBuildConfiguration; 597 | buildSettings = { 598 | ALWAYS_SEARCH_USER_PATHS = NO; 599 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; 600 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 601 | CLANG_CXX_LIBRARY = "libc++"; 602 | CLANG_ENABLE_MODULES = YES; 603 | CLANG_ENABLE_OBJC_ARC = YES; 604 | CLANG_WARN_BOOL_CONVERSION = YES; 605 | CLANG_WARN_CONSTANT_CONVERSION = YES; 606 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 607 | CLANG_WARN_EMPTY_BODY = YES; 608 | CLANG_WARN_ENUM_CONVERSION = YES; 609 | CLANG_WARN_INT_CONVERSION = YES; 610 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 611 | CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES; 612 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 613 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 614 | COPY_PHASE_STRIP = NO; 615 | GCC_C_LANGUAGE_STANDARD = gnu99; 616 | GCC_DYNAMIC_NO_PIC = NO; 617 | GCC_OPTIMIZATION_LEVEL = 0; 618 | GCC_PREPROCESSOR_DEFINITIONS = ( 619 | "DEBUG=1", 620 | "$(inherited)", 621 | ); 622 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 623 | GCC_TREAT_WARNINGS_AS_ERRORS = YES; 624 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 625 | GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES; 626 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 627 | GCC_WARN_CHECK_SWITCH_STATEMENTS = YES; 628 | GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES; 629 | GCC_WARN_MISSING_PARENTHESES = YES; 630 | GCC_WARN_SHADOW = YES; 631 | GCC_WARN_SIGN_COMPARE = YES; 632 | GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES; 633 | GCC_WARN_UNDECLARED_SELECTOR = YES; 634 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 635 | GCC_WARN_UNUSED_FUNCTION = YES; 636 | GCC_WARN_UNUSED_LABEL = YES; 637 | GCC_WARN_UNUSED_VALUE = YES; 638 | GCC_WARN_UNUSED_VARIABLE = YES; 639 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 640 | ONLY_ACTIVE_ARCH = YES; 641 | RUN_CLANG_STATIC_ANALYZER = YES; 642 | SDKROOT = iphoneos; 643 | TARGETED_DEVICE_FAMILY = "1,2"; 644 | }; 645 | name = adhoc; 646 | }; 647 | /* End XCBuildConfiguration section */ 648 | 649 | /* Begin XCConfigurationList section */ 650 | AD7E3E8A186BBBBB00E47119 /* Build configuration list for PBXProject "IOKitBrowser" */ = { 651 | isa = XCConfigurationList; 652 | buildConfigurations = ( 653 | AD7E3EC2186BBBBB00E47119 /* Debug */, 654 | AD7E3EC3186BBBBB00E47119 /* Release */, 655 | A230520F0D10488D815CA69C /* adhoc */, 656 | DAE539FBEE7A4889B8EAD138 /* adhoc */, 657 | 131952FD1E734D12BD1AD9A0 /* profiling */, 658 | 181C7BC432D84E9DA902BDAA /* profiling */, 659 | ); 660 | defaultConfigurationIsVisible = 0; 661 | defaultConfigurationName = Release; 662 | }; 663 | AD7E3EC4186BBBBB00E47119 /* Build configuration list for PBXNativeTarget "IOKitBrowser" */ = { 664 | isa = XCConfigurationList; 665 | buildConfigurations = ( 666 | AD7E3EC5186BBBBB00E47119 /* Debug */, 667 | AD7E3EC6186BBBBB00E47119 /* Release */, 668 | 254D11163F85421D922EA685 /* adhoc */, 669 | 0AAC631A05DE4B7697873C8E /* profiling */, 670 | ); 671 | defaultConfigurationIsVisible = 0; 672 | defaultConfigurationName = Release; 673 | }; 674 | /* End XCConfigurationList section */ 675 | }; 676 | rootObject = AD7E3E87186BBBBB00E47119 /* Project object */; 677 | } 678 | -------------------------------------------------------------------------------- /IOKitBrowser.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /IOKitTest/Base.lproj/Main_iPad.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /IOKitTest/Base.lproj/Main_iPhone.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /IOKitTest/ELLAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLAppDelegate.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ELLAppDelegate : UIResponder 12 | 13 | @property(strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /IOKitTest/ELLAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLAppDelegate.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import "ELLAppDelegate.h" 10 | 11 | @implementation ELLAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 14 | // Override point for customization after application launch. 15 | return YES; 16 | } 17 | 18 | - (void)applicationWillResignActive:(UIApplication *)application { 19 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 20 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 21 | } 22 | 23 | - (void)applicationDidEnterBackground:(UIApplication *)application { 24 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 25 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 26 | } 27 | 28 | - (void)applicationWillEnterForeground:(UIApplication *)application { 29 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 30 | } 31 | 32 | - (void)applicationDidBecomeActive:(UIApplication *)application { 33 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 34 | } 35 | 36 | - (void)applicationWillTerminate:(UIApplication *)application { 37 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitDumper.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitDumper.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 10/02/2014. 6 | // Copyright (c) 2014 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @class ELLIOKitNodeInfo; 12 | 13 | @interface ELLIOKitDumper : NSObject 14 | 15 | - (ELLIOKitNodeInfo *)dumpIOKitTree; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitDumper.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitDumper.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 10/02/2014. 6 | // Copyright (c) 2014 Electric Labs. All rights reserved. 7 | // 8 | // This code is based on Apple's IOKitTools http://opensource.apple.com/source/IOKitTools/IOKitTools-89.1.1/ioreg.tproj/ioreg.c 9 | 10 | #import "ELLIOKitDumper.h" 11 | #import 12 | #import "ELLIOKitNodeInfo.h" 13 | 14 | #define kIOServicePlane "IOService" 15 | 16 | typedef mach_port_t io_object_t; 17 | typedef io_object_t io_registry_entry_t; 18 | typedef io_object_t io_iterator_t; 19 | typedef char io_name_t[128]; 20 | typedef UInt32 IOOptionBits; 21 | 22 | io_object_t IOIteratorNext(io_iterator_t iterator); 23 | 24 | kern_return_t IOObjectRelease(io_object_t object); 25 | 26 | kern_return_t IORegistryEntryGetNameInPlane(io_registry_entry_t entry, 27 | const io_name_t plane, 28 | io_name_t name); 29 | 30 | kern_return_t IOMasterPort(mach_port_t bootstrapPort, 31 | mach_port_t *masterPort); 32 | 33 | io_registry_entry_t IORegistryGetRootEntry(mach_port_t masterPort); 34 | 35 | kern_return_t IORegistryEntryCreateCFProperties(io_registry_entry_t entry, 36 | CFMutableDictionaryRef *properties, 37 | CFAllocatorRef allocator, 38 | IOOptionBits options); 39 | 40 | 41 | boolean_t IOObjectConformsTo(io_object_t object, 42 | const io_name_t className); 43 | 44 | 45 | kern_return_t IORegistryEntryGetChildIterator(io_registry_entry_t entry, 46 | const io_name_t plane, 47 | io_iterator_t *iterator); 48 | 49 | const UInt32 kIORegFlagShowProperties = (1 << 1); 50 | 51 | struct options { 52 | char *class; 53 | UInt32 flags; 54 | char *name; 55 | char *plane; 56 | }; 57 | 58 | static void assertion(int condition, char *message) { 59 | if (condition == 0) { 60 | fprintf(stderr, "ioreg: error: %s.\n", message); 61 | exit(1); 62 | } 63 | } 64 | 65 | 66 | @implementation ELLIOKitDumper 67 | 68 | - (ELLIOKitNodeInfo *)dumpIOKitTree { 69 | mach_port_t iokitPort = 0; 70 | struct options options; 71 | io_registry_entry_t service = 0; 72 | kern_return_t status = KERN_SUCCESS; 73 | 74 | options.class = 0; 75 | options.flags = kIORegFlagShowProperties; 76 | options.name = 0; 77 | options.plane = kIOServicePlane; 78 | 79 | status = IOMasterPort(bootstrap_port, &iokitPort); 80 | assertion(status == KERN_SUCCESS, "can't obtain I/O Kit's master port"); 81 | 82 | service = IORegistryGetRootEntry(iokitPort); 83 | assertion(service, "can't obtain I/O Kit's root service"); 84 | 85 | ELLIOKitNodeInfo *root = [self _scan:nil service:service options:options]; 86 | 87 | IOObjectRelease(service); 88 | 89 | return root; 90 | } 91 | 92 | 93 | - (ELLIOKitNodeInfo *)_scan:(ELLIOKitNodeInfo *)parent service:(io_registry_entry_t)service options:(struct options)options { 94 | 95 | io_registry_entry_t child = 0; 96 | io_registry_entry_t childUpNext = 0; 97 | io_iterator_t children = 0; 98 | kern_return_t status = KERN_SUCCESS; 99 | 100 | // Obtain the service's children. 101 | 102 | status = IORegistryEntryGetChildIterator(service, options.plane, &children); 103 | assertion(status == KERN_SUCCESS, "can't obtain children"); 104 | 105 | childUpNext = IOIteratorNext(children); 106 | 107 | ELLIOKitNodeInfo *node = [self _showService:service parent:parent options:options]; 108 | 109 | // Traverse over the children of this service. 110 | while (childUpNext) { 111 | child = childUpNext; 112 | childUpNext = IOIteratorNext(children); 113 | 114 | ELLIOKitNodeInfo *childNode = [self _scan:node service:child options:options]; 115 | 116 | [node addChild:childNode]; 117 | 118 | IOObjectRelease(child); 119 | } 120 | 121 | IOObjectRelease(children); 122 | children = 0; 123 | 124 | return node; 125 | 126 | } 127 | 128 | - (ELLIOKitNodeInfo *)_showService:(io_registry_entry_t)service parent:(ELLIOKitNodeInfo *)parent options:(struct options)options { 129 | io_name_t name; 130 | CFMutableDictionaryRef properties = 0; 131 | kern_return_t status = KERN_SUCCESS; 132 | 133 | status = IORegistryEntryGetNameInPlane(service, options.plane, name); 134 | if(status != KERN_SUCCESS) return nil; 135 | assertion(status == KERN_SUCCESS, "can't obtain name"); 136 | 137 | NSMutableArray *translatedProperties = [NSMutableArray new]; 138 | 139 | if (options.class && IOObjectConformsTo(service, options.class)) { 140 | options.flags |= kIORegFlagShowProperties; 141 | } 142 | 143 | if (options.name && !strcmp(name, options.name)) { 144 | options.flags |= kIORegFlagShowProperties; 145 | } 146 | 147 | if (options.flags & kIORegFlagShowProperties) { 148 | 149 | // Obtain the service's properties. 150 | 151 | status = IORegistryEntryCreateCFProperties(service, 152 | &properties, 153 | kCFAllocatorDefault, 154 | kNilOptions); 155 | 156 | assertion(status == KERN_SUCCESS, "can't obtain properties"); 157 | assertion(CFGetTypeID(properties) == CFDictionaryGetTypeID(), NULL); 158 | 159 | CFDictionaryApplyFunction(properties, CFDictionaryShow_Applier, (__bridge void *) (translatedProperties)); 160 | 161 | CFRelease(properties); 162 | } 163 | 164 | return [[ELLIOKitNodeInfo alloc] initWithParent:parent nodeInfoWithInfo:[NSString stringWithCString:name encoding:NSUTF8StringEncoding] properties:translatedProperties]; 165 | 166 | 167 | } 168 | 169 | static void CFArrayShow_Applier(const void *value, void *parameter) { 170 | NSMutableArray *translatedElements = (__bridge NSMutableArray *) parameter; 171 | NSString *translatedElement = CFObjectShow(value); 172 | 173 | if (translatedElement) { 174 | [translatedElements addObject:translatedElement]; 175 | } 176 | } 177 | 178 | static NSString *CFArrayShow(CFArrayRef object) { 179 | CFRange range = {0, CFArrayGetCount(object)}; 180 | NSMutableArray *translatedElements = [NSMutableArray new]; 181 | CFArrayApplyFunction(object, range, CFArrayShow_Applier, (__bridge void *) (translatedElements)); 182 | 183 | return [NSString stringWithFormat:@"(%@)", [translatedElements componentsJoinedByString:@","]]; 184 | } 185 | 186 | static NSString *CFBooleanShow(CFBooleanRef object) { 187 | return CFBooleanGetValue(object) ? @"Yes" : @"No"; 188 | } 189 | 190 | static NSString *CFDataShow(CFDataRef object) { 191 | UInt32 asciiNormalCount = 0; 192 | UInt32 asciiSymbolCount = 0; 193 | const UInt8 *bytes; 194 | CFIndex index; 195 | CFIndex length; 196 | 197 | NSMutableString *result = [[NSMutableString alloc] initWithString:@"<"]; 198 | 199 | length = CFDataGetLength(object); 200 | bytes = CFDataGetBytePtr(object); 201 | 202 | // 203 | // This algorithm detects ascii strings, or a set of ascii strings, inside a 204 | // stream of bytes. The string, or last string if in a set, needn't be null 205 | // terminated. High-order symbol characters are accepted, unless they occur 206 | // too often (80% of characters must be normal). Zero padding at the end of 207 | // the string(s) is valid. If the data stream is only one byte, it is never 208 | // considered to be a string. 209 | // 210 | 211 | for (index = 0; index < length; index++) { // (scan for ascii string/strings) 212 | 213 | if (bytes[index] == 0) { // (detected null in place of a new string, 214 | // ensure remainder of the string is null) 215 | for (; index < length && bytes[index] == 0; index++) {} 216 | 217 | break; // (either end of data or a non-null byte in stream) 218 | } else { // (scan along this potential ascii string) 219 | 220 | for (; index < length; index++) { 221 | if (isprint(bytes[index])) { 222 | asciiNormalCount++; 223 | } else if (bytes[index] >= 128 && bytes[index] <= 254) { 224 | asciiSymbolCount++; 225 | } else { 226 | break; 227 | } 228 | } 229 | 230 | if (index < length && bytes[index] == 0) { // (end of string) 231 | continue; 232 | } else { 233 | break; 234 | } 235 | } 236 | } 237 | 238 | if ((asciiNormalCount >> 2) < asciiSymbolCount) { // (is 80% normal ascii?) 239 | index = 0; 240 | } else if (length == 1) { // (is just one byte?) 241 | index = 0; 242 | } 243 | 244 | if (index >= length && asciiNormalCount) { // (is a string or set of strings?) 245 | Boolean quoted = FALSE; 246 | 247 | for (index = 0; index < length; index++) { 248 | if (bytes[index]) { 249 | if (quoted == FALSE) { 250 | quoted = TRUE; 251 | if (index) { 252 | [result appendString:@",\""]; 253 | } else { 254 | [result appendString:@"\""]; 255 | } 256 | } 257 | [result appendFormat:@"%c", bytes[index]]; 258 | } else { 259 | if (quoted == TRUE) { 260 | quoted = FALSE; 261 | [result appendString:@"\""]; 262 | } else { 263 | break; 264 | } 265 | } 266 | } 267 | if (quoted == TRUE) { 268 | [result appendString:@"\""]; 269 | } 270 | } else { // (is not a string or set of strings) 271 | for (index = 0; index < length; index++) { 272 | [result appendFormat:@"%02x", bytes[index]]; 273 | } 274 | } 275 | 276 | [result appendString:@">"]; 277 | return result; 278 | } 279 | 280 | static void CFDictionaryShow_Applier(const void *key, const void *value, void *parameter) { 281 | 282 | NSMutableArray *translatedElements = (__bridge NSMutableArray *) (parameter); 283 | 284 | NSString *name = CFObjectShow(key); 285 | NSString *val = CFObjectShow(value); 286 | 287 | if (name) { 288 | [translatedElements addObject:[NSString stringWithFormat:@"%@ = %@", name, val ?: @""]]; 289 | } 290 | } 291 | 292 | static NSString *CFDictionaryShow(CFDictionaryRef object) { 293 | NSMutableArray *translatedElements = [NSMutableArray new]; 294 | 295 | CFDictionaryApplyFunction(object, CFDictionaryShow_Applier, (__bridge void *) (translatedElements)); 296 | 297 | return [NSString stringWithFormat:@"{%@}", [translatedElements componentsJoinedByString:@","]]; 298 | } 299 | 300 | static NSString *CFNumberShow(CFNumberRef object) { 301 | long long number; 302 | 303 | if (CFNumberGetValue(object, kCFNumberLongLongType, &number)) { 304 | return [NSString stringWithFormat:@"%qd", number]; 305 | } 306 | return @""; 307 | } 308 | 309 | static NSString *CFObjectShow(CFTypeRef object) { 310 | CFTypeID type = CFGetTypeID(object); 311 | 312 | if (type == CFArrayGetTypeID()) return CFArrayShow(object); 313 | else if (type == CFBooleanGetTypeID()) return CFBooleanShow(object); 314 | else if (type == CFDataGetTypeID()) return CFDataShow(object); 315 | else if (type == CFDictionaryGetTypeID()) return CFDictionaryShow(object); 316 | else if (type == CFNumberGetTypeID()) return CFNumberShow(object); 317 | else if (type == CFSetGetTypeID()) return CFSetShow(object); 318 | else if (type == CFStringGetTypeID()) return CFStringShow(object); 319 | else return @""; 320 | } 321 | 322 | static void CFSetShow_Applier(const void *value, void *parameter) { 323 | NSMutableArray *translatedElements = (__bridge NSMutableArray *) (parameter); 324 | NSString *objectValue = CFObjectShow(value); 325 | 326 | if (objectValue) { 327 | [translatedElements addObject:objectValue]; 328 | } 329 | } 330 | 331 | static NSString *CFSetShow(CFSetRef object) { 332 | NSMutableArray *translatedElements = [NSMutableArray new]; 333 | CFSetApplyFunction(object, CFSetShow_Applier, (__bridge void *) (translatedElements)); 334 | return [NSString stringWithFormat:@"[%@]", [translatedElements componentsJoinedByString:@","]]; 335 | } 336 | 337 | static NSString *CFStringShow(CFStringRef object) { 338 | 339 | NSString *stringToShow = @""; 340 | 341 | const char *c = CFStringGetCStringPtr(object, kCFStringEncodingMacRoman); 342 | 343 | if (c) { 344 | return [NSString stringWithFormat:@"%s", c]; 345 | } else { 346 | CFIndex bufferSize = CFStringGetLength(object) + 1; 347 | char *buffer = malloc(bufferSize); 348 | 349 | if (buffer) { 350 | if (CFStringGetCString(object, buffer, bufferSize, kCFStringEncodingMacRoman)) { 351 | stringToShow = [NSString stringWithFormat:@"%s", buffer]; 352 | } 353 | 354 | free(buffer); 355 | } 356 | } 357 | return stringToShow; 358 | } 359 | 360 | @end 361 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitNodeInfo.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitNodeInfo.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 28/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ELLIOKitNodeInfo : NSObject 12 | 13 | @property(nonatomic, weak) ELLIOKitNodeInfo *parent; 14 | @property(nonatomic, copy, readonly) NSMutableArray *children; 15 | 16 | 17 | @property(nonatomic, strong) NSString *name; 18 | @property(nonatomic, strong) NSArray *properties; 19 | 20 | 21 | @property(nonatomic, assign) NSInteger searchCount; 22 | @property(nonatomic, strong) NSArray *matchingProperties; 23 | @property(nonatomic, strong) NSArray *matchedChildren; 24 | 25 | 26 | - (id)initWithParent:(ELLIOKitNodeInfo *)parent nodeInfoWithInfo:(NSString *)info properties:(NSArray *)properties; 27 | 28 | - (void)addChild:(ELLIOKitNodeInfo *)child; 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /IOKitTest/ELLIOKitNodeInfo.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLIOKitNodeInfo.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 28/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import "ELLIOKitNodeInfo.h" 10 | 11 | 12 | @implementation ELLIOKitNodeInfo 13 | 14 | 15 | - (instancetype)init { 16 | self = [super init]; 17 | if (self) { 18 | _children = [NSMutableArray new]; 19 | } 20 | return self; 21 | } 22 | 23 | - (id)initWithParent:(ELLIOKitNodeInfo *)parent nodeInfoWithInfo:(NSString *)info properties:(NSArray *)properties { 24 | self = [self init]; 25 | if (self) { 26 | _parent = parent; 27 | _name = info; 28 | _properties = properties; 29 | 30 | } 31 | return self; 32 | } 33 | 34 | - (void)addChild:(ELLIOKitNodeInfo *)child { 35 | if(child != nil) 36 | [_children addObject:child]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /IOKitTest/ELLViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ELLViewController.h 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ELLViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /IOKitTest/ELLViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ELLViewController.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import "ELLViewController.h" 10 | #import "ELLIOKitNodeInfo.h" 11 | #import "ELLIOKitDumper.h" 12 | 13 | @interface ELLViewController () 14 | @property(nonatomic, strong) ELLIOKitNodeInfo *root; 15 | @property(nonatomic, strong) ELLIOKitNodeInfo *locationInTree; 16 | 17 | @property(nonatomic, strong) IBOutlet UITableView *tableView; 18 | @property(nonatomic, strong) IBOutlet UIActivityIndicatorView *spinner; 19 | @property(nonatomic, strong) IBOutlet UISearchBar *searchBar; 20 | @property(nonatomic, strong) IBOutlet UILabel *trailLabel; 21 | @property(nonatomic, strong) IBOutlet UIView *trailHolder; 22 | 23 | @property(nonatomic, strong) NSMutableArray *trailStack; 24 | @property(nonatomic, strong) NSMutableArray *offsetStack; 25 | 26 | @property(nonatomic, copy) NSString *searchTerm; 27 | 28 | @property(nonatomic, strong) NSTimer *searchDelayTimer; 29 | 30 | @property(nonatomic, strong) ELLIOKitDumper *dumper; 31 | @end 32 | 33 | @implementation ELLViewController 34 | 35 | static NSString *kSearchTerm = @"kSearchTerm"; 36 | 37 | - (void)awakeFromNib { 38 | [[NSNotificationCenter defaultCenter] addObserver:self 39 | selector:@selector(keyboardWasShown:) 40 | name:UIKeyboardDidShowNotification object:nil]; 41 | 42 | [[NSNotificationCenter defaultCenter] addObserver:self 43 | selector:@selector(keyboardWillBeHidden:) 44 | name:UIKeyboardWillHideNotification object:nil]; 45 | 46 | self.dumper = [ELLIOKitDumper new]; 47 | [super awakeFromNib]; 48 | } 49 | 50 | - (void)dealloc { 51 | [[NSNotificationCenter defaultCenter] removeObserver:self]; 52 | [_searchDelayTimer invalidate]; 53 | } 54 | 55 | - (void)viewWillAppear:(BOOL)animated { 56 | [super viewWillAppear:animated]; 57 | [self _loadIOKit]; 58 | } 59 | 60 | - (void)_loadIOKit { 61 | _tableView.hidden = YES; 62 | _trailHolder.hidden = YES; 63 | [_spinner startAnimating]; 64 | 65 | self.trailStack = [NSMutableArray new]; 66 | self.offsetStack = [NSMutableArray new]; 67 | 68 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 69 | self.root = [_dumper dumpIOKitTree]; 70 | self.locationInTree = _root; 71 | dispatch_async(dispatch_get_main_queue(), ^{ 72 | [_trailStack addObject:_root.name]; 73 | [self _setupTrail]; 74 | [_tableView reloadData]; 75 | 76 | _tableView.hidden = NO; 77 | _trailHolder.hidden = NO; 78 | [_spinner stopAnimating]; 79 | }); 80 | }); 81 | } 82 | 83 | - (NSAttributedString *)_stringForTrail:(NSArray *)stack { 84 | return [[NSAttributedString alloc] initWithString:[stack componentsJoinedByString:@" > "]]; 85 | } 86 | 87 | - (IBAction)moveBack:(id)sender { 88 | if (_locationInTree.parent) { 89 | _locationInTree = _locationInTree.parent; 90 | [_trailStack removeLastObject]; 91 | 92 | [_tableView reloadData]; 93 | 94 | CGPoint contentOffset = [[_offsetStack lastObject] CGPointValue]; 95 | _tableView.contentOffset = contentOffset; 96 | [_offsetStack removeLastObject]; 97 | 98 | [self _setupTrail]; 99 | } 100 | } 101 | 102 | - (void)_setupTrail { 103 | _trailLabel.attributedText = [self _stringForTrail:_trailStack]; 104 | } 105 | 106 | - (NSInteger)_searchForTerm:(NSString *)searchTerm inSubTree:(ELLIOKitNodeInfo *)subTree { 107 | __block NSInteger searchCount = 0; 108 | 109 | if ([subTree.name rangeOfString:searchTerm options:NSCaseInsensitiveSearch].location != NSNotFound) { 110 | searchCount++; 111 | } 112 | 113 | 114 | NSMutableArray *matchingProperties = [NSMutableArray new]; 115 | 116 | [subTree.properties enumerateObjectsUsingBlock:^(NSString *obj, NSUInteger idx, BOOL *stop) { 117 | if ([obj rangeOfString:searchTerm options:NSCaseInsensitiveSearch].location != NSNotFound) { 118 | searchCount++; 119 | [matchingProperties addObject:obj]; 120 | } 121 | }]; 122 | 123 | 124 | NSMutableArray *matchedChildren = [NSMutableArray new]; 125 | 126 | for (ELLIOKitNodeInfo *child in subTree.children) { 127 | NSInteger preThisPropertySearchCount = searchCount; 128 | searchCount += [self _searchForTerm:searchTerm inSubTree:child]; 129 | if (searchCount > preThisPropertySearchCount) { 130 | [matchedChildren addObject:child]; 131 | } 132 | } 133 | 134 | subTree.matchingProperties = matchingProperties; 135 | subTree.matchedChildren = matchedChildren; 136 | return subTree.searchCount = searchCount; 137 | } 138 | 139 | #pragma mark UITableViewDataSource 140 | 141 | - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { 142 | if (section == 0) { 143 | return [[self _propertiesForLocation] count]; 144 | } else { 145 | return [[self _childrenForLocation] count]; 146 | } 147 | 148 | } 149 | 150 | - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { 151 | return 2; 152 | } 153 | 154 | - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section { 155 | if (section == 0) { 156 | return [[self _propertiesForLocation] count] ? @"Properties" : @""; 157 | } else { 158 | return [[self _childrenForLocation] count] ? @"Children" : @""; 159 | } 160 | } 161 | 162 | - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { 163 | static NSString *identifier = @"ELLViewControllerCellPropertiesIdentifier"; 164 | 165 | UITableViewCell *cell = [_tableView dequeueReusableCellWithIdentifier:identifier]; 166 | if (cell == nil) { 167 | cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier]; 168 | cell.textLabel.numberOfLines = 0; 169 | cell.textLabel.font = [UIFont systemFontOfSize:14.0f]; 170 | } 171 | 172 | NSString *cellText = @""; 173 | if (indexPath.section == 0) { 174 | cellText = [self _propertiesForLocation][indexPath.row]; 175 | 176 | cell.accessoryType = UITableViewCellAccessoryNone; 177 | } else { 178 | ELLIOKitNodeInfo *childNode = [self _childrenForLocation][indexPath.row]; 179 | 180 | cellText = [NSString stringWithFormat:@"%@ %@", childNode.name, 181 | childNode.searchCount ? [NSString stringWithFormat:@"[%li]", (long) childNode.searchCount] : @""]; 182 | cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; 183 | } 184 | 185 | 186 | NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:cellText]; 187 | [self _highlightSearchTerm:_searchTerm inText:text]; 188 | cell.textLabel.attributedText = text; 189 | 190 | return cell; 191 | } 192 | 193 | - (void)_highlightSearchTerm:(NSString *)searchTerm inText:(NSMutableAttributedString *)text { 194 | if (searchTerm.length) { 195 | NSDictionary *attrs = @{NSFontAttributeName : [UIFont boldSystemFontOfSize:14.0f]}; 196 | 197 | NSRange range = [text.string rangeOfString:searchTerm options:NSCaseInsensitiveSearch]; 198 | while (range.location != NSNotFound) { 199 | [text setAttributes:attrs range:range]; 200 | range = [text.string rangeOfString:searchTerm 201 | options:NSCaseInsensitiveSearch 202 | range:NSMakeRange(range.location + 1, [text length] - range.location - 1)]; 203 | } 204 | 205 | } 206 | } 207 | 208 | - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { 209 | NSDictionary *attributes = @{NSFontAttributeName : [UIFont systemFontOfSize:14.0f]}; 210 | 211 | CGRect textBounds = CGRectZero; 212 | 213 | if (indexPath.section == 0) { 214 | NSString *value = [self _propertiesForLocation][indexPath.row]; 215 | textBounds = [value boundingRectWithSize:CGSizeMake(CGRectGetWidth(_tableView.bounds), MAXFLOAT) 216 | options:NSStringDrawingUsesLineFragmentOrigin 217 | attributes:attributes 218 | context:nil]; 219 | } else { 220 | ELLIOKitNodeInfo *childNode = [self _childrenForLocation][indexPath.row]; 221 | textBounds = [childNode.name boundingRectWithSize:CGSizeMake(CGRectGetWidth(_tableView.bounds), MAXFLOAT) 222 | options:NSStringDrawingUsesLineFragmentOrigin 223 | attributes:attributes 224 | context:nil]; 225 | 226 | } 227 | 228 | return MIN(MAX(40.0f, textBounds.size.height + 10.0f), 300.0f); 229 | } 230 | 231 | - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { 232 | if (indexPath.section == 1) { 233 | [_searchBar resignFirstResponder]; 234 | 235 | ELLIOKitNodeInfo *childNode = [self _childrenForLocation][indexPath.row]; 236 | 237 | self.locationInTree = childNode; 238 | 239 | [_trailStack addObject:_locationInTree.name]; 240 | [_offsetStack addObject:[NSValue valueWithCGPoint:_tableView.contentOffset]]; 241 | _tableView.contentOffset = CGPointZero; 242 | 243 | 244 | [self _setupTrail]; 245 | 246 | [tableView reloadData]; 247 | } 248 | 249 | [tableView deselectRowAtIndexPath:indexPath animated:YES]; 250 | } 251 | 252 | - (void)scrollViewDidScroll:(UIScrollView *)scrollView { 253 | [_searchBar resignFirstResponder]; 254 | } 255 | 256 | #pragma mark Helpers 257 | 258 | - (NSArray *)_propertiesForLocation { 259 | return _searchTerm.length ? _locationInTree.matchingProperties : _locationInTree.properties; 260 | } 261 | 262 | - (NSArray *)_childrenForLocation { 263 | return (_searchTerm.length ? _locationInTree.matchedChildren : _locationInTree.children); 264 | } 265 | 266 | #pragma mark UISearchBar 267 | 268 | - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchTerm { 269 | [_searchDelayTimer invalidate]; 270 | self.searchDelayTimer = [NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(_searchWithTimer:) 271 | userInfo:@{kSearchTerm : searchTerm} 272 | repeats:NO]; 273 | } 274 | 275 | - (void)_searchWithTimer:(NSTimer *)timer { 276 | NSString *searchTerm = timer.userInfo[kSearchTerm]; 277 | self.searchTerm = searchTerm; 278 | [self _searchForTerm:searchTerm inSubTree:_root]; 279 | [_tableView reloadData]; 280 | } 281 | 282 | #pragma mark Keyboard 283 | 284 | - (void)keyboardWasShown:(NSNotification *)aNotification { 285 | NSDictionary *info = [aNotification userInfo]; 286 | CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size; 287 | 288 | UIEdgeInsets contentInsets = UIEdgeInsetsMake(0.0, 0.0, kbSize.height, 0.0); 289 | _tableView.contentInset = contentInsets; 290 | _tableView.scrollIndicatorInsets = contentInsets; 291 | 292 | } 293 | 294 | - (void)keyboardWillBeHidden:(NSNotification *)aNotification { 295 | UIEdgeInsets contentInsets = UIEdgeInsetsZero; 296 | _tableView.contentInset = contentInsets; 297 | _tableView.scrollIndicatorInsets = contentInsets; 298 | } 299 | @end 300 | -------------------------------------------------------------------------------- /IOKitTest/IOKitBrowser-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | com.electriclabs.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main_iPhone 29 | UIMainStoryboardFile~ipad 30 | Main_iPad 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /IOKitTest/IOKitBrowser-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | 15 | #import 16 | #import 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x-1.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x-1.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon60x60@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/AppIcon.appiconset/AppIcon76x76@2x.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "AppIcon29x29@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "40x40", 11 | "idiom" : "iphone", 12 | "filename" : "AppIcon40x40@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "60x60", 17 | "idiom" : "iphone", 18 | "filename" : "AppIcon60x60@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "ipad", 24 | "filename" : "AppIcon29x29.png", 25 | "scale" : "1x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "ipad", 30 | "filename" : "AppIcon29x29@2x-1.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "ipad", 36 | "filename" : "AppIcon40x40.png", 37 | "scale" : "1x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "ipad", 42 | "filename" : "AppIcon40x40@2x-1.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "76x76", 47 | "idiom" : "ipad", 48 | "filename" : "AppIcon76x76.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "76x76", 53 | "idiom" : "ipad", 54 | "filename" : "AppIcon76x76@2x.png", 55 | "scale" : "2x" 56 | } 57 | ], 58 | "info" : { 59 | "version" : 1, 60 | "author" : "xcode" 61 | } 62 | } -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/LaunchImage.launchimage/1024x768.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/LaunchImage.launchimage/1024x768.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/LaunchImage.launchimage/1536x2048.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/LaunchImage.launchimage/1536x2048.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/LaunchImage.launchimage/2048x1536.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/LaunchImage.launchimage/2048x1536.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/LaunchImage.launchimage/640x1136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/LaunchImage.launchimage/640x1136.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/LaunchImage.launchimage/640x960.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/LaunchImage.launchimage/640x960.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/LaunchImage.launchimage/768x1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matthiasgasser/IOKitBrowser/3bf60e9dd3517184604ff573d836d29280ebce83/IOKitTest/Images.xcassets/LaunchImage.launchimage/768x1024.png -------------------------------------------------------------------------------- /IOKitTest/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "filename" : "640x960.png", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "extent" : "full-screen", 13 | "idiom" : "iphone", 14 | "subtype" : "retina4", 15 | "filename" : "640x1136.png", 16 | "minimum-system-version" : "7.0", 17 | "orientation" : "portrait", 18 | "scale" : "2x" 19 | }, 20 | { 21 | "orientation" : "portrait", 22 | "idiom" : "ipad", 23 | "extent" : "full-screen", 24 | "minimum-system-version" : "7.0", 25 | "filename" : "768x1024.png", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "orientation" : "landscape", 30 | "idiom" : "ipad", 31 | "extent" : "full-screen", 32 | "minimum-system-version" : "7.0", 33 | "filename" : "1024x768.png", 34 | "scale" : "1x" 35 | }, 36 | { 37 | "orientation" : "portrait", 38 | "idiom" : "ipad", 39 | "extent" : "full-screen", 40 | "minimum-system-version" : "7.0", 41 | "filename" : "1536x2048.png", 42 | "scale" : "2x" 43 | }, 44 | { 45 | "orientation" : "landscape", 46 | "idiom" : "ipad", 47 | "extent" : "full-screen", 48 | "minimum-system-version" : "7.0", 49 | "filename" : "2048x1536.png", 50 | "scale" : "2x" 51 | } 52 | ], 53 | "info" : { 54 | "version" : 1, 55 | "author" : "xcode" 56 | } 57 | } -------------------------------------------------------------------------------- /IOKitTest/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /IOKitTest/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // IOKitTest 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | 10 | #import "ELLAppDelegate.h" 11 | 12 | int main(int argc, char *argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([ELLAppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /IOKitTestTests/IOKitBrowserTests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | com.electriclabs.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /IOKitTestTests/IOKitTestTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // IOKitTestTests.m 3 | // IOKitTestTests 4 | // 5 | // Created by Christopher Anderson on 26/12/2013. 6 | // Copyright (c) 2013 Electric Labs. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface IOKitTestTests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation IOKitTestTests 16 | 17 | - (void)setUp { 18 | [super setUp]; 19 | // Put setup code here. This method is called before the invocation of each test method in the class. 20 | } 21 | 22 | - (void)tearDown { 23 | // Put teardown code here. This method is called after the invocation of each test method in the class. 24 | [super tearDown]; 25 | } 26 | 27 | - (void)testExample { 28 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /IOKitTestTests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | IOKitBrowser 2 | ============ 3 | 4 | Uses private API to access various hardware related informations on iOS. 5 | I used it to check the battery cycle count. But there are other informations hidden es well, eg. temperature etc. 6 | 7 | (c) developed and copyright by Lyon Anderson 8 | http://www.lyonanderson.org/blog/2014/02/12/ios-iokit-browser/ 9 | 10 | iOS 8 adapted by me. 11 | 12 | ## Check memory type: 13 | 14 | Root > N61AP > AppleARMPE > arm-io > AppleT7000IO > ans > AppleA7IOPV1 > AppleCSI > asp > ASPStorage 15 | 16 | defaults-bits-per-cell: 17 | * 3 = TLC 18 | * 2 = MLC 19 | * 1 = SLC 20 | 21 | ## Check Battery Cycle Count 22 | 23 | Root > N61AP > AppleARMPE > charger > AppleARMPMUCharger 24 | 25 | Scroll to CycleCount. 26 | 27 | ## Warning! 28 | Do not use for App submissions. You will be rejected. 29 | 30 | ## Disclaimer 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 32 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 33 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 34 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 35 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 36 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 37 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 38 | --------------------------------------------------------------------------------