If the files have been tampered, you need to actually Factory Reset the phone. Go to Settings > Privacy/Security > Factory Reset. Confirm the operation then the phone will reboot. Configure the account again when it starts and perform the firmware update without configuring anything else.