Essential for the degradation of glycogen to glucose in lysosomes. Has both alpha-1,4 and alpha-1,6-glucosidase activity. Hydrolysis of terminal, non-reducing (1->4)-linked alpha-D-glucose residues with release of alpha-D-glucose. Optimum pH is 4.0. Belongs to the glycosyl hydrolase 31 family.