tmo1 / sms-ie

SMS Import / Export is a simple Android app that imports and exports SMS and MMS messages, call logs, and contacts from and to JSON / NDJSON files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow_voicemails?

Biscorn opened this issue · comments

Hi !

I am using this beautiful app to make few backups ! But I got a problem where it says, "Please set 'allow_voicemails=true' in the URI.

I am not sure how to do it nor handle it with an Android.

Nevertheless, I tried few things in my browser like that : content://call_log/calls?allow_voicemails=true, but the error continue.

I also opened the XML file through VS to check if a option was there, but nothing too.

What could be the solutions and how could I fix it ?

Thanks 💯

commented

Thank you!

This is an internal Android error. It's not something you can or should address - it seems to indicate that the app needs an adjustment in order to be able to properly access voice mail entries in the call logs:

See also:

I've never seen this error before, though. Please post a logcat, and please report exactly what version of Android you're running (and whether it's vanilla Android, or some sort of variant).

I'm running into the same error message. I've attached a logcat . I'm running GrapheneOS build TQ2A.230505.002.2023060700

I do have some calls with an automatically dialed extension in my history, which I suspicious of due to this error in the log:

06-15 15:35:45.392 14972 15083 W DialerDialerPhoneNumberUtil: com.android.dialer.phonenumberproto.DialerPhoneNumberUtil.parse:143 failed parsing number        
06-15 15:35:45.392 14972 15083 W DialerDialerPhoneNumberUtil: Error type: TOO_LONG. The string supplied is too long to be a phone number.  

sms-io-logcat.txt

commented

I'm running into the same error message. I've attached a logcat . I'm running GrapheneOS build TQ2A.230505.002.2023060700

Thank you - I will look into this when I get a chance.

commented

I'm running into the same error message.

Where is the "Please set 'allow_voicemails=true' in the URI." message appearing? I don't see it in the logcat. If it's some kind of pop-up message, can you post a screenshot?

Hey ! Sorry for my delayed answer because of my work.
I will try to do a logcat very soon and send it to you but as Tiberious, I am running the same version of GrapheneOS.

I though it was an hardware problem (for eg. to reconnect my SIM card etc.), but nothing happened and the same message occur.

When you go to the app, click on "import calllog" function with an XML file, we get this message. In my case, it restore one to four voicemail but then, a pop-up appear on the application.

Screenshot and logcat

Screenshot_20230809_034017_SMS Import  Export
logcat.zip

It turns out that this is a trickier and more frustrating - and poorly documented - problem than I first thought:

  • Accessing voicemail requires the use of a special URI / query parameter, as per here, here and here, but:
  • Using this URI requires "READ_VOICEMAIL and WRITE_VOICEMAIL permissions to read and write voicemails," however:
  • The voicemail permissions are only available to privileged / system apps, and there's no clean way to grant them to ordinary apps.

It seems, then, that the best we can do is to try to exclude voicemail entries from call log import. I'm attaching a build that does this - please test and report your results.

Skipping voicemail seems to work just fine.

Skipping voicemail seems to work just fine.

Thanks! If no one reports the problem persisting with the fix I posted within the next day or two, I'll commit it and close this issue.

Awesome!