Problem: On a OnePlus device (OxygenOS / ColorOS), the screen keeps auto-rotating even though the Auto-rotate toggle in the UI / Quick Settings is switched off.
Root cause: The visible OxygenOS toggle and the underlying Android framework flag
system.accelerometer_rotation can drift out of sync. The framework flag stays at 1
(rotation enabled) while the UI shows it off. OxygenOS's rotation-suggestion feature
can also silently re-assert rotation behaviour. The fix is to set the framework flags
directly with ADB.