Added 'WRITE_SETTINGS' permission. and Rotation setting toggle implemented