Flat-band full localization and symmetry-protected topological phase on bilayer lattice systems