                     version = runtime.componentsSeparatedByString(".").last
                     _name = name1! + " v" + version!
                     isValid = true
+                    initDeviceType(runtime)
                     initTrustStorePath()
                 }
             }

            }
        }
        if appPath != nil {
            if let appUrl = NSURL.fileURLWithPath(appPath!) {
                var error : NSError?
                let launchArg : [String : AnyObject] = (UDID != nil) ?

        self.path = device.devicePath() as String?
        self.UDID = device.UDID as NSUUID
        self.version = device.runtime?.versionString
        
        self.build = device.runtime?.buildVersionString
        initDeviceType(device.runtime?.identifier)
        initTrustStorePath()
        isValid = true
    }
    
    func getAppDataDirMap() -> [String : String] {
