INNER CODE UNIT · Python
install_app
ctripcorp/flybirds · flybirds/core/plugin/plugins/default/android/app.py:29
def install_app(self, package_path, wait_time=None):
"""
Install application on device
:param package_path: the path to file to be installed on target device
:param wait_time:
:return: None
:platforms: Android
:Example:
>>> install_app(r"D:\\demo\\test.apk")
"""
i_result = install(package_path)
if not (wait_time is None):
time.sleep(wait_time)
return i_result
def uninstall_app(self, package_name, wait_time=None):
"""