There’s a problem with the Android implementation of the getCurrentOrientation() method that’s in the juce_Android_Windowing.cpp file.
The implementation of the getCurrentOrientation() method uses the getRotation() method in the Android Display class and translates the rotation returned by the method directly into a screen orientation value.
But as the documentation of that method states, getRotation() returns the rotation of the screen from its “natural” orientation.
So, to translate the rotation into the screeen orientation you would first need to know what a device’s “natural” orientation is, which the current implementation doesn’t do.
If you launch an Android project in the 10.1 WXGA tablet emulator built into Android Studio with the Landscape orientation, you’ll see that Juce’s method says the orientation is portrait when it’s landscape and vice versa.