It's done during manufacture. Doing so after the fact voids your warranty so most folk can't do this. If you want a water resistant phone, shop for that.