Is there any way (short of reflashing to a totally new ROM) to add a "toggle auto-rotate" or "toggle portrait/landscape" option to the menu that comes up when you press and hold the power button?

I'm endlessly fighting with auto-rotation. For whatever reason, every Android device I've owned ends up being over-eager to rotate, but stubbornly resistant to rotating BACK, even when my gestures should be making it completely obvious that I didn't want it to rotate. However, every time I disable auto-rotation, I end up finding myself in a position where I have to rotate to landscape for something, and have to kill even more time trying to re-enable it.

For what it's worth, I have both a Galaxy S3 and a Xoom (wi-fi) (S3 running ICS, Xoom running JB).

Hmmm. I was afraid of that. If anybody happens to know, is the code that governs the power-button menu behavior kernel-level, Touchwiz-level, or merely a normal app with source that's not intended to be user-modified, but can be trivially hacked and extended anyway as long as the phone is rooted & the partition can be mounted +rw?
–
Bitbang3rSep 13 '12 at 18:33

1

Definitely not kernel-level. It might be an apk but certainly not a normal app in that sens.
–
ErikSep 13 '12 at 20:20

4 Answers
4

In the more recent updates to the Galaxy S III (at least Android 4.1.2) you can modify the notification panel at the top of the notifications screens that you get when you drag from the status bar. Open settings, 'Display' (under 'Device' heading) then in the 'General' heading choose 'Notification panel'.

Here you should be able to choose which Quick setting buttons you want to appear and one of them is the toggle for 'Screen rotation'.

I don't think that an app can change the power button menu. The same is true for the "power widget", a strip of toggles at the top of the notification area that some ROMs offer. You can, however, get something very close with the help of Widgetsoid -- in this case the toggles are inside an ongoing notification instead of part of the notification area.

Notification toggles in your rom are related to the framework.apk and settings.apk. So you technically need to edit them to enable/add other toggles. You could try Swipepad for launching/performing quick tasks.