Hallo. It worked for me. Everytime I connected or disconnect the charger, autorotation would not work. After deleting clean master, auto rotation...
I have exactly the same problems. No fix yet.
None of the previously mentioned fixes fixed the problem. 😟
I'm so annoyed. Sometimes it happens twice in an hour.