UiAutomator exited unexpectedly with code 0, signal null

Hi Folks,

Im getting UiAutomator exited unexpectedly with code 0, signal null error while using android 11 device, till android 10 it working fine. What could be the reason here?

Appium version:v1.9.1

[info] e[35m[Appium]e[39m Welcome to Appium v1.9.1
[info] e[35m[Appium]e[39m Appium REST http interface listener started on 0.0.0.0:4723[info] e[35m[HTTP]e[39m e[37m–>e[39m e[37mPOSTe[39m e[37m/wd/hub/sessione[39m
[info] e[35m[HTTP]e[39m e[90m{“desiredCapabilities”:{“appPackage”:“com.netflix.mediaclient”,“appActivity”:“com.netflix.mediaclient.ui.launch.UIWebViewActivity”,“noReset”:true,“newCommandTimeout”:3600,“automationName”:“Appium”,“udid”:“dbdb8f3f”,“platformName”:“Android”,“deviceName”:“Redmi”,“version”:“11 RKQ1.211001.001”}}e[39m
[debug] e[35m[MJSONWP]e[39m Calling AppiumDriver.createSession() with args: [{“appPackage”:“com.netflix.mediaclient”,“appActivity”:“com.netflix.mediaclient.ui.launch.UIWebViewActivity”,“noReset”:true,“newCommandTimeout”:3600,“automationName”:“Appium”,“udid”:“dbdb8f3f”,“platformName”:“Android”,“deviceName”:“Redmi”,“version”:“11 RKQ1.211001.001”},null,null]
[debug] e[35m[BaseDriver]e[39m Event ‘newSessionRequested’ logged at 1665555503630 (11:48:23 GMT+0530 (India Standard Time))
[info] e[35m[Appium]e[39m Creating new AndroidDriver (v4.1.1) session
[info] e[35m[Appium]e[39m Capabilities:
[info] e[35m[Appium]e[39m appPackage: com.netflix.mediaclient
[info] e[35m[Appium]e[39m appActivity: com.netflix.mediaclient.ui.launch.UIWebViewActivity
[info] e[35m[Appium]e[39m noReset: true
[info] e[35m[Appium]e[39m newCommandTimeout: 3600
[info] e[35m[Appium]e[39m automationName: Appium
[info] e[35m[Appium]e[39m udid: dbdb8f3f
[info] e[35m[Appium]e[39m platformName: Android
[info] e[35m[Appium]e[39m deviceName: Redmi
[info] e[35m[Appium]e[39m version: 11 RKQ1.211001.001
[debug] e[35m[BaseDriver]e[39m Creating session with MJSONWP desired capabilities: {“appPackage”:“com.netflix…
[warn] e[35m[BaseDriver]e[39m The following capabilities were provided, but are not recognized by appium: version.
[info] e[35m[BaseDriver]e[39m Session created with session id: c53c79ff-5c88-4fe9-9f87-4540b0b0804a
[info] e[35m[AndroidDriver]e[39m Java version is: 1.8.0_281
[info] e[35m[ADB]e[39m Checking whether adb is present
[info] e[35m[ADB]e[39m Found 1 ‘build-tools’ folders under ‘C:\Users\divyansr\AppData\Local\Android\Sdk’ (newest first):
[info] e[35m[ADB]e[39m C:/Users/divyansr/AppData/Local/Android/Sdk/build-tools/30.0.3
[info] e[35m[ADB]e[39m Using adb.exe from C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe
[info] e[35m[AndroidDriver]e[39m Retrieving device list
[debug] e[35m[ADB]e[39m Trying to find a connected android device
[debug] e[35m[ADB]e[39m Getting connected devices…
[debug] e[35m[ADB]e[39m 1 device(s) connected
[info] e[35m[AndroidDriver]e[39m Using device: dbdb8f3f
[debug] e[35m[ADB]e[39m Setting device id to dbdb8f3f
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell getprop ro.build.version.sdk’
[debug] e[35m[ADB]e[39m Current device property ‘ro.build.version.sdk’: 30
[debug] e[35m[ADB]e[39m Device API level: 30
[warn] e[35m[AndroidDriver]e[39m Consider setting ‘automationName’ capability to ‘uiautomator2’ on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor.
[info] e[35m[AndroidDriver]e[39m App file was not listed, instead we’re going to run com.netflix.mediaclient directly on the device
[debug] e[35m[AndroidDriver]e[39m Checking whether package is present on the device
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell pm list packages com.netflix.mediaclient’
[info] e[35m[AndroidDriver]e[39m Starting Android session
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f wait-for-device’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell echo ping’
[debug] e[35m[AndroidDriver]e[39m Pushing settings apk to device…
[debug] e[35m[ADB]e[39m Getting install status for io.appium.settings
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell pm list packages io.appium.settings’
[debug] e[35m[ADB]e[39m App is installed
[debug] e[35m[ADB]e[39m Getting package info for ‘io.appium.settings’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell dumpsys package io.appium.settings’
[info] e[35m[ADB]e[39m Checking whether aapt is present
[info] e[35m[ADB]e[39m Using aapt.exe from C:\Users\divyansr\AppData\Local\Android\Sdk\build-tools\30.0.3\aapt.exe
[debug] e[35m[ADB]e[39m The installed ‘io.appium.settings’ package does not require upgrade (‘2.3.0’ >= ‘2.3.0’)
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell ps’
[debug] e[35m[ADB]e[39m Device API level: 30
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’
[debug] e[35m[ADB]e[39m Device API level: 30
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell appops set io.appium.settings android:mock_location allow’
[warn] e[35m[AndroidDriver]e[39m setDeviceLanguageCountry requires language or country.
[warn] e[35m[AndroidDriver]e[39m Got language: ‘undefined’ and country: ‘undefined’
[debug] e[35m[Logcat]e[39m Starting logcat capture
[debug] e[35m[AndroidDriver]e[39m Pushing unlock helper app to device…
[debug] e[35m[ADB]e[39m Getting install status for io.appium.unlock
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell pm list packages io.appium.unlock’
[debug] e[35m[ADB]e[39m App is installed
[debug] e[35m[ADB]e[39m Getting package info for ‘io.appium.unlock’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell dumpsys package io.appium.unlock’
[debug] e[35m[ADB]e[39m The installed ‘io.appium.unlock’ package does not require upgrade (‘2.0.0’ >= ‘2.0.0’)
[info] e[35m[ADB]e[39m Getting device platform version
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell getprop ro.build.version.release’
[debug] e[35m[ADB]e[39m Current device property ‘ro.build.version.release’: 11
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell wm size’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell getprop ro.product.model’
[debug] e[35m[ADB]e[39m Current device property ‘ro.product.model’: 2201117TI
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell getprop ro.product.manufacturer’
[debug] e[35m[ADB]e[39m Current device property ‘ro.product.manufacturer’: Xiaomi
[warn] e[35m[AndroidDriver]e[39m No app sent in, not parsing package/activity
[debug] e[35m[AndroidDriver]e[39m No app capability. Assuming it is already on the device
[debug] e[35m[AndroidBootstrap]e[39m Watching for bootstrap disconnect
[debug] e[35m[ADB]e[39m Forwarding system: 4724 to device: 4724
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f forward tcp:4724 tcp:4724’
[debug] e[35m[UiAutomator]e[39m Starting UiAutomator
[debug] e[35m[UiAutomator]e[39m Moving to state ‘starting’
[debug] e[35m[UiAutomator]e[39m Parsing uiautomator jar
[debug] e[35m[UiAutomator]e[39m Found jar name: ‘AppiumBootstrap.jar’
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f push C:\Users\divyansr\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-android-driver\bootstrap\bin\AppiumBootstrap.jar /data/local/tmp/’
[debug] e[35m[ADB]e[39m Attempting to kill all uiautomator processes
[debug] e[35m[ADB]e[39m Getting all processes with uiautomator
[debug] e[35m[ADB]e[39m Running ‘C:\Users\divyansr\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s dbdb8f3f shell ps’
[info] e[35m[ADB]e[39m No uiautomator process found to kill, continuing…
[debug] e[35m[UiAutomator]e[39m Starting UIAutomator
[debug] e[35m[ADB]e[39m Creating ADB subprocess with args: [”-P",5037,"-s",“dbdb8f3f”,“shell”,“uiautomator”,“runtest”,“AppiumBootstrap.jar”,"-c",“io.appium.android.bootstrap.Bootstrap”,"-e",“pkg”,“com.netflix.mediaclient”,"-e",“disableAndroidWatchers”,false,"-e",“acceptSslCerts”,false]
[error] e[35m[UiAutomator]e[39m UiAutomator exited unexpectedly with code 0, signal null
[debug] e[35m[UiAutomator]e[39m Moving to state ‘stopped’

Any suggestions?

Regards
Divyansh