Essential for the degradation of glycogen in lysosomes. Has highest activity on alpha-1,4-linked glycosidic linkages, but can also hydrolyze alpha-1,6-linked glucans. Hydrolysis of terminal, non-reducing (1->4)-linked alpha-D-glucose residues with release of alpha-D-glucose. Belongs to the glycosyl hydrolase 31 family.