I run this error, and I can only say, you need to install the application as an application with system privileges, go to the system folder and try to copy the application to the application folder or priv_app folder. On my Android platform, when I made a folder inside the priv_app folder for my application and copied its apk and restarted Android, everything worked fine. In my case, I added all these permissions in the manifest at the beginning, but it worked only after this step above.
Ladyg
source share