def handler_decompile_apk(self): packages = self.app_window.get_adb().list_packages() if packages: accept, items = ListDialog.build_and_show( self.build_packages_list, packages, double_click_to_accept=True) if accept: if len(items) > 0: path = items[0].get_apk_path() AndroidDecompileUtil.decompile(self.app_window.get_adb(), path)
def _decompile_package(self, data): package, path = data if path is not None: # todo: make qthread AndroidDecompileUtil.decompile(self.adb, path)