refactor base code to support one frameworks/miui dev branch

N/A

Change-Id: I07344f8d144a6bf983e3accb8a7ec21279c58b87
Ref-Id: I5bdcbab5a64f0912a5b5c82b234466270041c4a3
Revert "Remove post-install processing of auto-start state."

This reverts commit 459e0952f05d901dbdecb4f5ecdb799fc678b505.
add preferred app Settings

N/A

Change-Id: I61d0f978177c601239a46e521acea470c8b44250
Ref-Id: I595d395762f34906d952cf7cefcdc006830e4ac3