Install Google Apps on AOSP Build

前端 未结 4 1137
广开言路
广开言路 2021-02-03 10:33

I have installed android-6.0.1_r72 AOSP Rom on a Nexus 5 device. The rom doesn\'t come with Google Apps.

I\'ve tried to install from the follow

4条回答
  •  佛祖请我去吃肉
    2021-02-03 11:11

    The error you are getting is related to Runtime permissions, which is a concept introduced in Android API level 23 (Marshmallow onwards). Prior to this, all the permissions that an Application required where provided during installation implicitly by the user i.e. you are agreeing to give the necessary permissions to the app by installing it.

    Google overhauled this. From API level 23 onward, not only an app has to declare all the permissions it needs in manifest but if any of these permissions are categorized as DANGEROUS then application has to request for it at runtime. How an application has to do this - https://developer.android.com/training/permissions/requesting.html

    I explained all these just to give you a context. In your case, the problem is that the applications you are trying to install were not designed to run on API level 23 or above. When you installed them they were not implicitly given some permissions, and since the applications are not requesting for them at runtime, finally they are ending up without the necessary permission to do certain thing (in your case access the device location).

    Long story short, try to find a version of the application designed for Marshmallow and upward. Unfortunately Google made this change in a way that it restricts backward compatibility to some extent. So you can't escape. Find a newer version

提交回复
热议问题