在新的Android Oreo设备(AOSP)中安装Google Play服务

时间:2018-08-14 15:23:19

标签: android google-maps google-play-services android-8.0-oreo

正在定制Android Oreo设备。 最初,在我的自定义Oreo AOSP中无法使用Google Play服务。 我已经安装了GoogleServicesFramework.apkPhonesky.apk

Google地图立即崩溃。

 08-14 14:53:47.359  2280  2292 I ActivityManager: Killing 4063:com.google.android.apps.maps/u0a67 (adj 900): depends on provider com.google.android.gms/.auth.account.be.legacy.AccountContentProvider in dying proc com.google.android.gms.persistent (adj 0)
 08-14 14:55:22.717   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:22.718  2221  2310 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:22.720  2753  2823 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:22.783   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:22.784  2221  2310 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:22.786  2280  2334 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.340   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.340  2221  2309 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.347   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.348  2221  2309 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
  08-14 14:55:23.359   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.360  2221  2309 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.360  3152  4278 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 4096
  08-14 14:55:23.442   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.443  2221  2310 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.446  3152  4278 D vndksupport: Loading /vendor/lib/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
 08-14 14:55:23.450  3152  4278 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.485   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.489  2221  2309 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.491  3152  4278 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.503   198   284 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.507  2221  2310 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056
 08-14 14:55:23.510  3152  4278 E IMGSRV  : :0: PVRSRVMapDmaBuf: offset from mapping dmabuf 0 size 6189056

Google Play商店只是白屏了。

并且我已经创建了基本的android maps应用程序,始终显示Goolge播放服务正在更新。

我已点击此链接Install Google Apps on AOSP Build

1 个答案:

答案 0 :(得分:0)

这里有两件事:

  1. 据我所知,您不能简单地直接使用.apk文件。 /system/frameworks文件夹中还有一些其他.jar文件,而/system/lib文件夹中还有一些.so文件,它们是间隙正确运行所必需的。

  2. 您确定在未获得Google许可的情况下将缺口作为ROM的一部分是合法的吗?

总体而言,更好的是,您在ROM页中提供了指向OpenGapps的链接。