def prepare_for_basic_info(ipa_path, bundle_id): # data.app_dict = Utils.ret_LastLaunch() # set app_dict # if ipa_path: # should_install.install_ipa_from_local(ipa_path) # set bundleID # elif bundle_id: # data.app_bundleID = bundle_id # else: # should_install.ask_for_user_choose() # Utils.getInstalledAppList() # set bundle_ID # Metadata().get_metadata() # print data.app_bundleID # pre_clutch.clutch() # data.app_dict = Utils.ret_last_launch() !!! NOT SUPPORTED BY iOS9 ANYMORE if not data.app_dict: data.app_dict = Utils.ret_last_launch_9() # 获取当前已安装应用列表 if ipa_path: # 来自于平台 try: should_install.install_ipa_from_local(ipa_path) # set bundleID except Exception, e: Utils.printy("Cannot install ipa ", 2) data.logger.debug(e) return 4 # 安装失败
# data.app_dict = Utils.ret_last_launch() !!! NOT SUPPORTED BY iOS9 ANYMORE if not data.app_dict: data.app_dict = Utils.ret_last_launch_9() # 获取当前已安装应用列表 if ipa_path: # 来自于平台 try: should_install.install_ipa_from_local(ipa_path) # set bundleID except Exception, e: Utils.printy("Cannot install ipa ", 2) data.logger.debug(e) return 4 # 安装失败 elif bundle_id: # 来自于平台 data.app_bundleID = bundle_id else: should_install.ask_for_user_choose() data.app_dict = Utils.ret_last_launch_9() Metadata().get_metadata() Utils.printy("start analyse " + data.app_bundleID, 4) if pre_clutch.clutch(): pass else: return 5 # if IOS.decrypt() == 5: # return 5 return 0 @staticmethod def connect(connector): if connector == "u": thread.start_new_thread(tcprelay.main, (['-t', '22:2222'], ))