The problem with batteries is better solved by someone experienced. If the phone is under contract and the battery is faulty by default, then the carrier will replace the phone. I can't say much about the glass of the camera. I suppose, it doesn't get the warranty service.
All in all, you'd better contact the managers from the shop where you've bought the phone or get in touch with the actual developers at email@example.com.