refactor base code to support one frameworks/miui dev branch

N/A

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

This reverts commit a9441bcce64fe661acb11a0eb65483de509c97a0.
add preferred app Settings

N/A

Change-Id: I69a64d9e9773f0fcd1062170f75db48cddfd8ff0
Ref-Id: I595d395762f34906d952cf7cefcdc006830e4ac3
fix build break

N/A

Change-Id: I056fae7e8e87811db1519f82f309d62aeae4fdf0
Signed-off-by: mochangming <mochangming@xiaomi.com>