Foreigners are required to carry their passport with a valid Indian visa. Restricted Area Permit will be issued at the airport or port, valid for 30 days, and can be extended for further 15 days upon expiry. There will be no further extensions. You need to go back to any Indian city and board flight again if you wish to explore Andaman.