Example #1
0
        /// <summary>
        /// 上传IPA程序到/var/mobile/Media/PublicStaging
        /// 如果已经越狱,则会传到/PublicStaging,无法被InstallApplication调用,建议对于已经越狱的设备通过AFC操作手动上传IPA
        /// </summary>
        /// <param name="path">PC端IPA文件地址</param>
        public unsafe bool TransferApplication(string path)
        {
            int i = MobileDevice.AMDeviceTransferApplication(this.hService, MobileDevice.CFStringMakeConstantString(path), null, installCallBack, null);

            return(i == (int)kAMDError.kAMDSuccess);
        }