[1/2] Base: recover last location state during on/off switch

Change-Id: Ia2484c9266d0276fd2d8bd0dc160487422e6063d