Force an app to be able to auto-rotate in Android 12



  • I have some apps, like Spotify for example, which for some inexplicable reason do not allow me to rotate some activities (like the player) into landscape.

    I am looking for an app or method that can force these apps to follow my device rotation despite that.

    Up until Android 12, I used to use https://f-droid.org/packages/com.spydiko.rotationmanager_foss/ for this purpose. It wasn't perfect but it did the job.
    It no longer seems to function however: Turning on "Forced Auto" still works but it now prevents touches from being registered in any other app which is obviously bad and unusable.
    (I have a feeling this might be a new security "feature".)



  • I achieved what I personally want (always SCREEN_ORIENTATION_UNSPECIFIED) using a crude patch to android_frameworks/base:

    https://github.com/Atemu/robot-config/blob/282f7bbf6477dc4c6677ece77d528eff5b833d86/0001-always-have-screenOrientation-SCREEN_ORIENTATION_UNS.patch

    I'm not 100% sure all of these hunks are necessary or even complete but what it's supposed to do is stub any write access to an activity's in-code representation of its screenOrientation preference such that it's always on the default SCREEN_ORIENTATION_UNSPECIFIED.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2