GmsCore: Android 11 android.permission.RECEIVE_SMS not working
In self check, the permission to receive text messages (SMS) is always unchecked / denied. In app info the SMS permission is denied. Changing it to allowed then reverts immediately back to denied.
Permissions xml file shows denied too. Changing to granted then reverts back to denied.
<permission name="android.permission.RECEIVE_SMS" granted="false" flags="4000" />
Android Version: 11 Custom ROM: LineageOS 18.0
This looks to be a problem with many apps requiring SMS access. Google advises the SMS Retriever API.
There is an article that discusses the issue.
Is this needed and does microG have a workaround?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (2 by maintainers)
Hey, I’m running into the same issue. I installed MicroG using the MicroG Installer (Revived) magisk module. It won’t let me grant background location nor SMS permissions; does anyone have a clear solution that doesn’t involve fiddling with files in various system folders?
This seems to be a known issue since MinMicroG references it:
The
npem
file is downloaded from https://gitlab.com/nanolx/nanodroid/raw/master/Full/system/bin/nanodroid-perm and is attached here: nanodroid-perm.txtI shall investigate next week when I have more time, but maybe it helps others too, or the devs here can integrate it to microg.
Installing through the MicroG Installer (Revived) Magisk module I had the same problems - couldn’t give SMS or background location permissions. I even unzipped the module to add chris42’s permissions files and download the newest GmsCore apk from microG’s github (version 0.2.18.204714). That didn’t work, neither did the nanodroid perm script.
So I installed GmsCore.apk on its own, disabled the magisk module and rebooted. Now I could allow SMS and background location. Enabled the magisk module again, rebooted and voila - microG has all the permissions and is a system app.