Using a ruggard Android devices running Nougat and Oreo. I have a profile which disables screen rotation to lock the device in portrait orientation. Whenever the profile for the Android Launcher runs it re enables the screen rotation.
Android launcher version is 4.2.021