Can apps modify the system-level "Display->Auto-rotation" setting?
According to this StackOverflow question, YES.

Excerpt:  

public static void setAutoOrientationEnabled(ContentResolver resolver, boolean enabled)  
{  
   Settings.System.putInt(resolver, Settings.System.ACCELEROMETER_ROTATION, enabled ? 1 : 0);  
}