Maybe, I don't understand accelerometer... Acceleration is of course also detectable in space. Just the acceleration by gravity you feel on earth is missing, typically.
OTOH, I can't see, how an accelerometer can reliably detect, how the cover is folded back. Some sort of sensor or switch, that...