Fix Photosphere/Camera FCs

Photosphere is setting a few parameters "blindly"
while the API says it should check the device capabilities first.

On TF101 (and probably other devices) the camera HAL doesn't handle
FLASH_MODE & SCENE_MODE and so it sends the required RuntimeException
for these, which makes Photosphere FC the Camera app.

=> Fix: check device capabilities & ignore these 2 parameters if the device doesn't support them.

Fix based on following Team EOS patch: https://review.teameos.org/#/c/1598/

Change-Id: Idd80299802e9213a3c40414ace3d516d39f47783
Fixed incorrect calculation of dirty invalidation area

Padding was already taken into consideration before calling
invalidateDrawable in ProgressBar.

Change-Id: Id7f23bd15bb19e2294c07adb2acb397100ea97e8
Fix scroll boost placement
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: I1bd996fd167fabae5b0106685895ca11ad4e8c5e
Write entropy data 4 times a day instead of 8 times.
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Change-Id: I0be1f04ff7d1ae32fd9b6971e7c32e9f7e49721a