Use application context when fetching shared prefs.

Using non-application contexts incurs extra disk access because shared prefs are cached per context.

Test: manually ejected sim and observed no strict mode violations
PiperOrigin-RevId: 183739285
Change-Id: I9337e226ae1e060478219cf495752ceccf5a31e6
2 files changed