FLAG_PRIVILEGED disappears if privileged app is updated and rebooted

Since Kitkat, an app pre-loaded under /system/priv-app/ has
FLAG_PRIVILEGED. However, if the app updated and the device
rebooted, privileged flag is unset from pkgFlags. This patch
fix issue to assign privileged flag when scanning the updated
packages.

Bug: 12640283

Change-Id: Ic24b5882f65dabdfae9cc39da3d68661bed4fc31
Merge "FLAG_PRIVILEGED disappears if privileged app is updated and rebooted" into android-4.4
[1/2] Base: Clock tweaks

PS5: changed to slim as base for commit:
- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

PS6:
- Fixed build
- Removed color options because we don't have it for any other
statusbar objects.

PS7:
- fixed clock on lockscreen after reboot
- fixed clock transition
- cleanup

OmniGears: https://gerrit.omnirom.org/#/c/4939/

Change-Id: I9129067775d65119d27085f93efb798a7124ae2c
Base: fix icon overflowing with centre clock

Based on @maxwen commits
1 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
2 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
3 - https://github.com/maxwen/frameworks_base/commit/b5f7820e50fd03522b5462777779a4520594c796

All credits goes to him.

Change-Id: I86dd9b133adc917d8590a7b3c28abd30ccea48f4
Merge pull request #2 from omnirom/android-4.4

merge