Heterojunction battery production process