Android 10 vs Android 11 Inconsistent

When testing the menu on Android 10 and Android 11 appium gives inconsistent results.

Use case: Accessing the disabled menu item
Android 10 :
self.wait_for(item.accessibility_id()).get_attribute('enabled') returns true

Android 9 and Android 11:
self.wait_for(item.accessibility_id()).get_attribute('enabled') returns false

Expected behavior:

should return false when item is disabled.


Check with android inspector. I bet you will see same.