I have now fried two different phone batteries trying this: basically I wanted to set up old phones as time lapse photo capture using open camera but the battery swells up and becomes a fire hazard in a few weeks/months.
Old phones seem like a really nice cheap high quality camera shame it doesn't work. Have you tried setting up something like a single board computer + usb cam?