def is_installed(self, app_name):

        """Check if an application is installed on device"""

        self.shell_command("pm list packages %s" % app_name)

        if self.get_output() == ['']:
            return 0
        else:
            return 1
dataset/ETHPy150Open jakev/dtf/src/dtf/adb.py/DtfAdb.is_installed/original