def reset(self, context):  # pylint: disable=W0613
        self.device.execute('am force-stop {}'.format(self.package))
        self.device.execute('pm clear {}'.format(self.package))

        # As of android API level 23, apps can request permissions at runtime,
        # this will grant all of them so requests do not pop up when running the app
        if self.device.get_sdk_version() >= 23:
            self._grant_requested_permissions()
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/common/android/workload.py/ApkWorkload.reset/original