lunes, 7 de marzo de 2016

BlackBerry - patching android APK - GMS(Google Maps Services)

Why to do this:
Some apps are using Google Play/Maps services and they requires them to run.
However BB10, not only doesn't include these services  but also cannot be installed from Blackberry World.

Example of successfully  patch apps because its Google maps services (gms) requirements:

-Wikiloc (though this apps uses OpenStreetMaps offlines maps, it requires the gms) 
Transport apps:
  -City mapper
  -Moovit (it work very good without gms services, but few functions requires them)
 










Definitions and synonyms:
 
GMS, Google maps services
PS, Play services
GS, Google services
android.vending=Google Play (shop)
apk, file with a full 


In the  Crackberry forums there is plenty of posts and information about the process.




Following instruction are just a simple quick reference.




Installing on Blackberry 
1)  Google maps services (by Cobalt)
Download Cobalt's files (lookup crackberry, or any web searcher)
Copy to BB10, the  apk containing gms, such as com.google.android.gms-8.4.xx-cobalt-buildx.apk
Execute apk file from any file explorer (com.google.android.gms-8.4.xx-cobalt-buildx.apk)












2)(Optional) Blackberry Google ID
Most third party apps don't require of this service, but if your want to use apps from Google you need it.
Besides its main function, which is identifying you BB device with your Google account, it also gives you 2 additional options. From Android settings you have the complete configuration for the Android Runtime.
cobalt.blackberry.googleid-x.x.apk














3)(Optional) Mobile Network/Google Settings
It gives you the function to disable mobile data for Android apps.
Besides previous main function, it also gives you the access to the Android Settings  and from there you have the complete configuration for the Android Runtime.
cobalt.mobilenetwork-x.x.apk


Patching from PC Desktop
Download and install "Play_services_PS_Patcher-1.4", (it requires JAVA)
Execute, browse, load apk file,
Click on "Analyse APK file" (with default options), Click on "Continue"







Screenshots of patched and working apps








Download fixed/patched apps:

Wikiloc 2.7.8 apk fixed for BB10





(requires GMS service running in the BB10)

By default you cannot the see the maps because default maps are online Google, but an offline map is hundred times in the mountain better for mountain than one requiring a 3G connection.
So from the main menu "Offline maps", download any map (thanks to openstreetmaps community)




Uninstalling Google Services from Blackberry

There are some reason to uninstall these services temporary or definitively, but as it is logic, those patched apps which really require Google services will not work any more ;)



Method1: From Blackberry Google ID, Android Settings, Applications, Google Play services, Uninstall