Catalysis of the hydrolysis of the 4-sulfate groups of the N-acetyl-D-galactosamine 4-sulfate units of chondroitin sulfate and dermatan sulfate.
N-acetyl-D-galactosamine-4-sulfate 4-sulfohydrolase activity