Play Services on lollipop

1,559 views
Skip to first unread message

Andrew Leech

unread,
Nov 13, 2014, 3:26:20 AM11/13/14
to andro...@googlegroups.com
Hi,
I'm enjoying trying out a build of lollipop, but struggling with apps.

Am I correct in thinking that for the android system to be registered on play store to install programs remotely I need Google Play Services installed (and an account set up on the system)?

Has anyone had any luck finding a lollipop build of com.google.android.gms for x86?
Everything I've seen for lollipop appears to be arm only and results in a boot loop.

I've tried installing an older version of Google Play Services com.google.android.gms-6.1.88_(1557022-070) but it gives an error when I try to add an account of:

E/AndroidRuntime( 2198): java.lang.RuntimeException: Unable to create service com.google.android.gms.gcm.GcmService: java.lang.SecurityException: attempting to read gservices without permission: Neither user 10052 nor current process has com.google.android.providers.gsf.permission.READ_GSERVICES.

Does anyone have any suggestions?

Thanks,
Andrew

Andrew Leech

unread,
Nov 14, 2014, 8:45:04 AM11/14/14
to andro...@googlegroups.com
I've been trying a bit more, without much success;
I found the factory image for Nexus Player here: http://forum.xda-developers.com/showpost.php?p=56517474&postcount=5

From this I extracted the system image and tried grabbing some google services files to push to the emulator, with little success.
I referred to other lollipop gapps packages as suggestions for which files would likely be needed, although some were different.

For instance /system/priv/apps/PrebuiltGmsCorePano seems to throw up the most problems. Pushing just this, GoogleServicesFramework and framesworks/com.android.location.jar results in the system booting, but just a number of popups that the processes have failed. More packages cherry-picked basically just result in more process failure notices.
I always did a wipe data and reboot after pushing some packages.

In logcat the errors seem to be related to the matching odex file (which did get copied from factory image)

I/art     ( 1250): DexFile_isDexOptNeeded failed to open oat file '/data/dalvik-cache/x86/system@priv-app@PrebuiltG...@PrebuiltGmsCorePano.apk@classes.dex' for file location '/system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk': Failed to open oat filename for reading: No such file or directory
I/art     ( 1250): DexFile_isDexOptNeeded file /system/priv-app/PrebuiltGmsCorePano/x86/PrebuiltGmsCorePano.odex is out of date for /system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk
I/PackageManager( 1250): Running dexopt on: /system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk pkg=com.google.android.gms isa=x86 vmSafeMode=false
I/dex2oat ( 1912): /system/bin/dex2oat --zip-fd=5 --zip-location=/system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk --oat-fd=6 --oat-location=/data/dalvik-cache/x86/system@priv-app@PrebuiltG...@PrebuiltGmsCorePano.apk@classes.dex --instruction-set=x86 --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --compiler-filter=interpret-only
E/dex2oat ( 1912): Failed to open dex from file descriptor for zip file '/system/priv-app/PrebuiltGmsCorePano/PrebuiltGmsCorePano.apk': Entry not found
I/dex2oat ( 1912): dex2oat took 203.864ms (threads: 2)


I haven't dealt with these dex/odex files before, does anyone know if there's a way to fix this problem?

Cheers.

Andrew Leech

unread,
Nov 15, 2014, 6:55:36 PM11/15/14
to andro...@googlegroups.com
Positive update!
I had seen this post from rbg earlier: https://groups.google.com/d/msg/android-x86/W_toCPwSLvM/CDv9v3ih5d0J
and tried a gapps package from the link, however when I looked at it again yesterday it was a newer version so tried that.

after pushing it over adb I also did a adb shell wipe data which I didn't know about previously.
this time it worked!

It gave me multiple popups about google+ not working but each time that happened I just hit back button until it disappeared and was able to configure the system and log into google account and play store is working!

for anyone interested, the basic method I used:
compile android-x86 and install the iso onto a vm.

alt-f1 to get to console then type 
netcfg
to find system ip address

on host system download gapps-lp-20141107-signed.zip from https://s.basketbuild.com/gapps
unzip it. cd to unzipped folder in console.
ensure lollipop compataible adb is installed/available
# adb push ./system /system
# adb shell wipe data
# adb reboot

and it's good to go!

Reply all
Reply to author
Forward
0 new messages