Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dea09dc1 authored by Nate Myren's avatar Nate Myren Committed by Android (Google) Code Review
Browse files

Merge "Add note to telecom startOp that they are only for tracing"

parents c75c5d1a c9886a5b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1508,6 +1508,7 @@ public class InCallController extends CallsManagerListenerBase implements
            }

            if (shouldStart) {
                // Note, not checking return value, as this op call is merely for tracing use
                mAppOpsManager.startOp(AppOpsManager.OP_PHONE_CALL_CAMERA, myUid(),
                        mContext.getOpPackageName(), false, null, null);
                mSensorPrivacyManager.showSensorUseDialog(SensorPrivacyManager.Sensors.CAMERA);
@@ -2480,6 +2481,7 @@ public class InCallController extends CallsManagerListenerBase implements
                && !isCarrierPrivilegedUsingMicDuringVoipCall();
        if (wasUsingMicrophone != mIsCallUsingMicrophone) {
            if (mIsCallUsingMicrophone) {
                // Note, not checking return value, as this op call is merely for tracing use
                mAppOpsManager.startOp(AppOpsManager.OP_PHONE_CALL_MICROPHONE, myUid(),
                        mContext.getOpPackageName(), false, null, null);
                mSensorPrivacyManager.showSensorUseDialog(SensorPrivacyManager.Sensors.MICROPHONE);