Summary
Seeing crashes on devices with Android 12+ due to intune not overriding all the constructors in their MAMMediaRecorder class.
Details
We use the "new" (has been around since Android 12/api 31), constructor that requires a context object on the MediaRecorder class. It appears that MAMMediaRecorder does not have an override and therefore does not initialize the MediaRecorderBehavior instance, and on subsequent calls to setOutputFile throw a fatal null pointer error.
Let me know if you need more information but I think if what we've seen in MAMMediaRecorder is correct that should be enough for a fix.
Summary
Seeing crashes on devices with Android 12+ due to intune not overriding all the constructors in their
MAMMediaRecorderclass.Details
We use the "new" (has been around since Android 12/api 31), constructor that requires a context object on the
MediaRecorderclass. It appears that MAMMediaRecorder does not have an override and therefore does not initialize theMediaRecorderBehaviorinstance, and on subsequent calls tosetOutputFilethrow a fatal null pointer error.Let me know if you need more information but I think if what we've seen in
MAMMediaRecorderis correct that should be enough for a fix.