def install_apk(self, context):
        success = False
        output = self.device.install(self.apk_file, self.install_timeout)
        if 'Failure' in output:
            if 'ALREADY_EXISTS' in output:
                self.logger.warn('Using already installed APK (did not unistall properly?)')
                self.reset(context)
            else:
                raise WorkloadError(output)
        else:
            self.logger.debug(output)
            success = True
        self.do_post_install(context)
        return success
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/common/android/workload.py/ApkWorkload.install_apk/original