SimpleMobileTools / Simple-Dialer

A handy phone call manager with phonebook, number blocking and multi-SIM support
https://www.simplemobiletools.com/
GNU General Public License v3.0
621 stars 249 forks source link

Trying to call with microphone access disabled causes phone to restart #555

Open triallax opened 1 year ago

triallax commented 1 year ago

OS: Android 13 (One UI 5) Device: Galaxy A51 Simple Dialer version: 5.17.3 (installed from F-Droid)

At some point One UI (or is it Android?) got a new feature to disable microphone access system-wide:

"Microphone access" toggle

When microphone access is disabled and an app tries to the microphone, the following dialog is shown at the bottom of the screen:

Microphone access dialog

However, this doesn't work properly with Simple Dialer: when I try to call somebody while microphone access is disabled, the dialog is shown as expected, but around one second after it is shown, the phone restarts. I do not know of any other app that exhibits this issue.

I recorded a logcat while reproducing the bug. Here are the last few lines:

03-11 14:01:48.517  5189 15689 W Exynos_OSAL_Android: [0xf6630600][Exynos_OSAL_GetParameter] (0x10) is not supported
03-11 14:01:48.519  5189 15689 E OMXNodeInstance: getExtensionIndex(0xf6737ae0:Exynos.vp8.dec, OMX.google.android.index.configureVideoTunnelMode) ERROR: BadParameter(0x80001005)
03-11 14:01:48.519 27532 27532 D MediaCodecInfo: detail feature-tunneled-playback wasn't present to remove
03-11 14:01:48.519  4368  4368 I hwservicemanager: getTransport: Cannot find entry android.hardware.audio.effect@7.0::IEffectsFactory/default in either framework or device VINTF manifest.
03-11 14:01:48.524 27532 27532 I ACodec  :  [] Now uninitialized

Note that I removed a bunch of factory packages from the system to debloat it, which may be related to the issue.

tibbi commented 1 year ago

well, being the default dialer app automatically grants the access. Not sure if the permission can later be revoked manually, guess thats the case that should be handled.

triallax commented 1 year ago

For what it's worth, I also had this issue happen to me today when somebody else called me while microphone access was disabled.

ismailnurudeen commented 1 year ago

well, being the default dialer app automatically grants the access. Not sure if the permission can later be revoked manually, guess thats the case that should be handled.

This is already being handled and that's with the dialog the OP is referring to.

I have disabled my microphone access and also get the dialog but when I try to call but my Phone doesn't restarts. I have tested on both Samsung(physical) and Pixel (Emulator) but unable to recreate.

Is your device rooted? @mhmdanas

triallax commented 1 year ago

No, my device is not rooted.

ismailnurudeen commented 1 year ago

No, my device is not rooted.

Okay. Thanks. Still unable to recreate yet.