refactor base code to support one frameworks/miui dev branch

N/A

Change-Id: I07344f8d144a6bf983e3accb8a7ec21279c58b87
Ref-Id: I5bdcbab5a64f0912a5b5c82b234466270041c4a3

Conflicts:

	framework2.jar.out/smali/android/widget/ProgressBar.smali
Revert "Remove post-install processing of auto-start state."

This reverts commit c06a6ac7320d804c0790caf73a84461a0aa28c64.
add preferred app Settings

N/A

Change-Id: I61d0f978177c601239a46e521acea470c8b44250
Ref-Id: I595d395762f34906d952cf7cefcdc006830e4ac3