A surface modifier enhances the performance of the all-inorganic CsPbI2Br perovskite solar cells with efficiencies approaching 15.