[frameworks] optimize && clean up MagicMod Settings part [1/2]

Change-Id: Ia4d87f0937d3eacdf20e2aab74150767fcf8d825