AOSP/Camera2: there is no camera icon shown if have no camera in first boot up

image below scene:
there is only one external usb camera connect to board, and the usb camera is not connected
in first boot up. the camera will not show again even you connect the usb camera to board again in later boot up.

the old logic is:
system will call DisableCameraReceiver when boot complete.
If there is no valid camera reported from camera hal in first boot up, the camera icon will not show again.
It will disable component DisableCameraReceiver in first boot up.

new logic after apply this patch:
system will decide whether show camera icon according that system have valid camera in every boot up rather
than first boot up.

Bug: 160797712
Signed-off-by: zhang sanshan <pete.zhang@nxp.com>
Change-Id: I49ac01feeb7367aa97bed087e7cfba6af6cc05c7
2 files changed