question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using microG EN as library

See original GitHub issue

I am attempting to use microG as a library for the SwissCovid app as has been suggested by @mar-v-in.

My apologies in advance if I am doing something silly, just starting up with microG…

What I have done so far is remove the dependencies on GMS in my project, put the relevant modules in (play-services-core etc.), implement provideDiagnosisKeys() in the client lib, and minor fixes until the app compiles. Now the app starts running, but as soon as it tries to start EN (sending com.google.android.gms.nearby.exposurenotification.START Intent), it fails to bind in MultiConnectionKeeper.this.context.bindService() (returns false), eventually returning API_UNAVAILABLE to the app. I have tried to change GMS_PACKAGE_NAME to org.microg.gms or the app package, with no success.

From logcat:

2020-09-17 15:14:18.645 4340-5972/? W/ActivityManager: Unable to start service Intent { act=com.google.android.gms.nearby.exposurenotification.START pkg=org.microg.gms } U=0: not found

My questions are:

  • Any hints on what I should be changing to make it work?
  • Can the app as such even run on a phone with Google GMS installed (which is what I am testing on right now)? Should I rename all com.google.android.gms to avoid conflicts?
  • Am I missing something to enable microG, some sort of init()?

Thank you in advance for any help!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

3reactions
cgrigiscommented, May 6, 2021

A version of SwissCovid using microG as a library is now available on F-Droid. Thank you @Bubu and @fynngodau for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using microG EN as library · Issue #1179 - GitHub
I am attempting to use microG as a library for the SwissCovid app as has been suggested by @mar-v-in. My apologies in advance...
Read more >
microG Project
microG Project. A free-as-in-freedom re-implementation of Google's proprietary Android user space apps and libraries.
Read more >
How it Makes the Phone Functional. Is it Safe? - YouTube
MicroG is a primary ingredient to make de-Googled phones ... backups and tech tools, and evading mass surveillance from NSA, CIA, FBI.
Read more >
MicroG - Wikipedia
MicroG (typically styled as microG) is a free and open-source implementation of proprietary Google libraries that serves as a replacement for Google Play ......
Read more >
MicroG: A libre Google Apps and libraries' replacement and ...
MicroG is a free and open replacement of Google's proprietary Android user space apps and libraries. Wait! Is not Android an open-source ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found