frameworks/base: storage switch support

Change-Id: Ibdaad7284604c25df9d82cd8a67b91411ebdbdf0