Let the phone automatically goes into flight mode and exit the flight mode.