Do not update db if apns xml file has not changed.

This CL also includes some code cleanup.

Bug: 25017416
Change-Id: I68dfa1fe2101e20863cbd9319c870c3196a7e115
1 file changed