I am using Android 13
My application is the Android file manager itself and this is my driver settings:
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['deviceName'] = 'Android'
desired_caps['automationName'] = 'UiAutomator2'
desired_caps['udid'] = Udid
desired_caps['appPackage'] = "com.android.documentsui"
desired_caps['appActivity'] = 'com.android.documentsui.files.FilesActivity'
desired_caps['noReset'] = False
I didn’t enter the command to close the application anywhere, but after a few rounds of working, the application automatically closes, it’s very strange for me!