Ejemplo n.º 1
0
        /// <summary>
        /// 卸载IPA功能函数
        /// </summary>
        /// <param name="bundleIdentifier">APP的BundleIdentifier,例如com.tongbu.tui</param>
        /// <returns>是否成功卸载</returns>
        public unsafe bool UnInstallApplication(string bundleIdentifier)
        {
            int i = MobileDevice.AMDeviceUninstallApplication(this.installFD, MobileDevice.CFStringMakeConstantString(bundleIdentifier), IntPtr.Zero, null, null);

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