We have moved to a new Sailfish OS Forum. Please start new discussions there.
10

Running Google dependent apps w/o actual gapps package

asked 2016-03-11 13:34:33 +0300

Vermut gravatar image

I want to have google-free phone but many apps require google apps to work. For example Taxify and NextBike wants to get and show my location via Google Maps API.

The is a free "emulator" microG GmsCore which had some mentions in this forum. But seems it requires "signature spoofing" to run.

Xposed framework presumably enables signature spoofing and also had mentions in the forum. And it throws the same errors for me.

My question is - is there anyone who had luck with the whole google-apps-emulator solution or at least with some of the sub-tasks? If you at least tell me it's possible and give me some pointers, I promise to test it myself and write a complete wiki page for this.

@coderus ? @Vistaus ? @fungs ?

edit retag flag offensive close delete

Comments

i tried to install xposed to jolla phone couple of times without any success. xposed installer not anoption, obviously, so i copied files manually and even patched some aliendalvik scripts.

coderus ( 2016-03-11 14:09:18 +0300 )edit

Maybe you tried Needle ?

Vermut ( 2016-03-11 14:15:43 +0300 )edit

Ok, I went for investigation. Enabling spoofing means changing dalvik framework core. Currently the tool for it is "smali" by JesusFreke. Unfortunately even simple compile/decompile cycle without patching anything crashed Dalvik. I raised an issue.

Meanwhile - maybe Sailfish Alien-Dalvik code is available somewhere where I can simply patch the source and recompile?..

Vermut ( 2016-03-12 01:03:50 +0300 )edit

I'm not expert on this subject, but Alien-Dalvik isn't open source (it is made and sold by company called Myriad and afaik they don't sell it to inviduals) and the code isn't available on the net so recompiling it... nope. That is why only official Sailfish phones/tablet has Android support.

avhakola ( 2016-03-12 06:23:36 +0300 )edit
1

Ok, I managed to deodex framework and apps (using Universal Deodexer V5) and patched framework.jar with patched version of Needle patch so now I have "signature spoofing" enabled and microG is happy with me.

But UnifiedNlp is not. NextBike crashedbut Taxify was able to guess my location (and crashed only after). Will continue with microG people.

Vermut ( 2016-03-13 19:16:34 +0300 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2016-03-15 00:20:05 +0300

Vermut gravatar image

Ok, after applying signature spoofing patch it's only a matter of correctly installing µg UnifiedNlp.

edit flag offensive delete publish link more

Comments

How can the patch be applied? And does it apply on all APKs, and therefore compromises the security of all Android apps on the phone?

AnaT ( 2016-08-16 22:04:46 +0300 )edit
1

Yes, sort of. It will allow any APK with FAKE_SIGNATURE header to impersonate any other APK. So it's up to your how compromise your security - either by running gapps or applying this patch.

Vermut ( 2016-09-06 19:12:26 +0300 )edit

With the current patch yes, I hope someone will create an app like SuperSU to handle rights for spoofing signature and then we need only a patch to link spoofing requests to that app.

ale5000 ( 2016-09-07 01:34:37 +0300 )edit
Login/Signup to Answer

Question tools

Follow
10 followers

Stats

Asked: 2016-03-11 13:34:33 +0300

Seen: 957 times

Last updated: Mar 15 '16