def download_target_mnt(self): abi = self.get_abi() target_url = '{}/{}/bin/minitouch'.format(config.MNT_PREBUILT_URL, abi) logger.info('target minitouch url: ' + target_url) mnt_path = download_file(target_url) # push and grant subprocess.check_call([_ADB, '-s', self.device_id, 'push', mnt_path, config.MNT_HOME]) subprocess.check_call([_ADB, '-s', self.device_id, 'shell', 'chmod', '777', config.MNT_HOME]) logger.info('minitouch already installed in {}'.format(config.MNT_HOME)) # remove temp os.remove(mnt_path)
def download_target_mnt(self): abi = self.get_abi() target_url = "{}/{}/bin/minitouch".format(config.MNT_PREBUILT_URL, abi) logger.info("target minitouch url: " + target_url) mnt_path = download_file(target_url) # push and grant subprocess.check_call( [_ADB, "-s", self.device_id, "push", mnt_path, config.MNT_HOME]) subprocess.check_call([ _ADB, "-s", self.device_id, "shell", "chmod", "777", config.MNT_HOME ]) logger.info("minitouch already installed in {}".format( config.MNT_HOME)) # remove temp os.remove(mnt_path)