Catalysis of the reaction: adenine + H2O = hypoxanthine + NH3.