def ask_for_user_choose(): Utils.printy('[1]: I have installed the app .', 1) Utils.printy('[2]: I have the ipa file local to install.', 1) while True: user_choose_input = raw_input(clint.textui.colored.yellow("> >> >>> Enter your choice please [1/2]: > ")) if user_choose_input == '1': Utils.getInstalledAppList() break elif user_choose_input == '2': if install_ipa_from_local(""): break else: continue else: Utils.printy('Invalid input!', 2)
# Metadata().get_metadata() # print data.app_bundleID # pre_clutch.clutch() 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: data.app_dict = Utils.ret_last_launch_9() # set app_dict should_install.ask_for_user_choose() Utils.getInstalledAppList() # set bundle_ID data.app_dict = Utils.ret_last_launch() # set app_dict 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":