【问题标题】:Installing google play services in new android Oreo device(AOSP)在新的安卓奥利奥设备(AOSP)中安装谷歌播放服务
【发布时间】:2019-01-21 12:18:37
【问题描述】:

正在定制 android Oreo 设备。 最初在我的自定义 Oreo AOSP 谷歌播放服务中不可用。 我已经安装了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 地图应用程序,总是显示 Goolge 播放服务正在更新。

我已经关注了这个链接Install Google Apps on AOSP Build

【问题讨论】:

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


    【解决方案1】:

    这里有两件事:

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

    2. 您确定在未经 Google 许可的情况下将 gapps 作为 ROM 的一部分包含在内是合法的吗?

    总的来说,最好在 ROM 页面中提供指向 OpenGapps 的链接。

    【讨论】:

    • 感谢您的回复。我在系统目录中添加了 .jar 和 .lib 文件。单击 google play store 时出现 GMAIL 应用程序。在提供用户名和密码后(与 google 服务器通信时出现问题)并继续“更新 google play 服务”通知来了。
    • 你需要正确的GMSCore.apk
    • CHMcore.apk 正在尝试复制到 /system/priv-app 的位置。但是正在生成内存不足错误。我正在尝试增加文件系统-->u-boot 中的系统分区大小loader 但它的系统分区内存没有改变。
    • 删除任何可以从 Play 商店下载的额外应用,例如 chrome、play book 等。
    • 设备中没有额外的应用程序。设备系统分区内存为653M。我尝试从U-boot和android设备增加系统分区但没有效果。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-05-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多