[1/2] Base: recover last location state during on/off switch
Based on this SlimRoms commit:
https://gerrit.slimroms.net/#/c/1421

Settings: https://gerrit.omnirom.org/#/c/4875/

Change-Id: Ia2484c9266d0276fd2d8bd0dc160487422e6063d
Picked from CarbonRom = https://github.com/omnirom/android_frameworks_base/commit/c69e473282fea711169624186d40e368927b565f