System navigation bars not accessible by UIAutomator 2

I am not able to access system navigation bars in Appium after switching from UI Automator 1 to UI Automator 2. Before I could inspect them from Appium Desktop tool and also find them using the code.

In UI Automator 1 I could find them with: “android:id/statusBarBackground” “android:id/navigationBarBackground”