This block of code takes unusually long and prompting to close the app
However when I check the permission section of the app it has been set correctly.
I am prompting for 3 permissions READ_SMS, READ_EXTERNAL_STORAGE, READ_CONTACTS. incase of Android <10 WRITE_EXTERNAL_STORAGE.
I ran this on Android 13 and on Android 9 the result was same.
Please see the attached blocks.
Please let me know if I am doing it incorrectly or is there a better approach.