To enhance the performance of all-inorganic perovskite photodetectors via constructing both bilayer heterostructure and bipolar carrier transporting channels