Skip to content
Commit 97999565 authored by Daichi Hirono's avatar Daichi Hirono Committed by Eino-Ville Talvala
Browse files

Stop invoke initAppOps in Camera default constructor.

Camera default constructor does not create the underlying native camera
object. Thus calling _enableShutterSound after the default constuctor
causes application crash.

Bug: 132362603
Bug: 80498247
Test: ARC++ Eve/Kevin:
        Manually modify the code to return MODE_IGNORED for
        AppOpsService#checkAudioOperation() and to return false for
        CameraManager#supportsCamera2ApiLocked. Then start voice call in
        Hangouts.
      cf_x86_phone with camera HALv1 enabled:
        New CTS test
Change-Id: Ia232dd71da15fda31c4dbe5568ba5083cbfaed9b
Merged-In: Id738c4d46a8e3625bc3b1142b11acac9cfb0b603
parent 60087566
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment