Cadmium sulfide (CdS) has received widespread attention as the building block of optoelectronic devices due to its extraordinary optoelectronic properties, low work function, and excellent thermal and chemical stability. Here, a self-powered flexible …