refactor base code to support one frameworks/miui dev branch

N/A

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

This reverts commit 7653e2631d0f160bf19f303b6f825e676da4ba93.
add preferred app Settings

N/A

Change-Id: I5611d6a7a56c532335acb2e0faef0dc41a329f44
Ref-Id: I595d395762f34906d952cf7cefcdc006830e4ac3