[guide] - Set Up Microg On Bugers Cm12.1

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by .bastian, May 28, 2016.

  1. .bastian

    .bastianMembers

    Jun 17, 2013
    249
    196
    65
    Male
    #1.bastian,May 28, 2016
    Last edited: Sep 18, 2016
    [​IMG]

    With microG we're finally able to get rid of the unnecessary bloated Gapps packages on our phones without loosing the PlayStore and Pushmessage support. Only for comparison: The smallest OpenGapps package has about 65MB, microG only <15MB.

    First of all, microG isn't my own project. All I provide is a guide how to use it with bugers latest CM 12.1 release on our Mi2S and a flashable zip which makes it a bit easier to install it. So all credits should be go directly to the developer.
    More detailed information can be found on the projects homepage (https://microg.org/) and the corresponding thread on xda.

    Why only bugers ROM? - Because at the moment its the only ROM for our Mi2 which provides SignatureSpoofing without using the xposed framework.
    Theoretically it should also work on every other rom when you install xposed with the FakeGAPPS module.
    ___________________________________________________________

    Lets get started:
    Before you start it would be the best if you do a clean install of bugers ROM on your phone. The latter should originnaly be free of any kind of GAPPS package.

    1. Download my flashable zip with the actual microG packages:

    Actual Stable Version: 0.2.4
    http://www79.zippyshare.com/v/HqoqsYeT/file.html

    Actual BETA Version (for those feeling a bit adventurous): 0.2.4-14-gdb93985
    http://www79.zippyshare.com/v/84z2kriZ/file.html


    It will install:
    • Service Core (GmsCore) is a library app, providing the functionality required to run apps that use Google Play Services or Google Maps Android API (v2).
    • Services Framework Proxy (GsfProxy) is a small helper utility to allow apps developed for Google Cloud to Device Messaging (C2DM) to use the compatible Google Cloud Messaging service included with GmsCore.
    • Unified Network Location Provider (UnifiedNlp) is a library that provides Wi-Fi- and Cell-tower-based geolocation to applications that use Google’s network location provider. It is included in GmsCore but can also run independently on most Android systems.
    • Maps API (mapsv1) is a system library, providing the same functionality as now deprecated Google Maps API (v1).
    • A actual Version of the PlayStore (If you want a installation completely without PlayStore support use This File)
    2. Flash the zip with TWRP

    3. Now reboot your phone. (You should notice two new apps in the AppDrawer, the PlayStore and the microG setup. But leave it there we have to do some setup before.

    4. Open the Android settings and enable the developer options by tapping five?! times on the build-number in the "About the Phone" menu

    5. Go to the developer-options and search for a setting called "Enable Signature Spoofing" (should be quite at the end of the list) - ENABLE IT!

    6. Now open the microG Settings, enable "Device check in" and, if you need it (for Whatsapp, Threema, etc.) Google Cloud Messaging

    7. If you now open "Self-Check" it should look like this: [​IMG]

    8. Finally its about to set up the location provider (Needed for all the loaction services) - We begin with installing FDroid from -here-

    9. Fire up FDroid and type NLP in the search field. Right now you can choose from a bunch of different location providers. Until now i've made positive experiences with MozillaNLP, but also the others should work fine. - CHOOSE ONE, INSTALL IT!
    (If you dont want to use FDroid you can also search on xda or github for your preferred backend, but keep in mind that you can use FDroid also for receiving updates for microG itself , despite that FDroid is always a great choice to get free useful apps.)
    [​IMG]

    10. Go back to the microG settings and choose the menu UnifiedNlpSettings. For Network-based-Location choose Mozilla (or your chose other), for Adress Lookup chose Nominatim. - DONE

    11. Last but not least - Log on in the PlayStore. If it gives you an error or just a blank page when you open it close it and open it again. Also after you have entered your login credentials the first time it should only show an error or a blank page. Like i said: close and open it again.

    (12.) There are few apps requiring a manual intall of microG to provide a correct function (for example: DB Navigator -> crashes without a manual install). To avoid problems or crashes download the microG Services Core apk from here (choose the version you have chosen before stable/beta): https://microg.org/download.html and reinstall it directly (document manager on your phone etc.) over your existing installation (steps 1 - 11).

    Done!

    -----------------------------------------------------------
    2016/09/18
    - Updated stable/beta script to the actual MicroG packages
    - Updated the included PlayStore to the new v7 version (7.0.12)
     
    L9Killer, Beyaz, VinSWADED and 9 others like this.
  2. kamakasnh

    kamakasnhMembers

    Aug 23, 2013
    315
    120
    65
    Male
    Reserved (Thanks)

    Sent from my MI 2S using Tapatalk
     
  3. Takao

    TakaoMembers

    May 25, 2016
    5
    4
    15
    Male
    In rc8, it seems that I have to uninstall the gapps installed internally before flashing microG .

    By the the way, didn't the microG support synchronize contacts?

    通过我的 MI 2S 上的 Tapatalk发言
     
  4. .bastian

    .bastianMembers

    Jun 17, 2013
    249
    196
    65
    Male
    You only have to uninstall GAPPS if you've installed it before or if you did an upgrade with RC8 from an older version in which you had already installed GAPPS.

    Until i don't use the google services to store my contacts (i use DAVDrouid to sync it with my mail provider) im not really sure about it, but in my opinion it should work. Just add your google account in the account settings and enable the appropriate option in the sync settings for that account.
     
    Takao and rendolf like this.
  5. bugers

    bugersMembers

    Sep 19, 2015
    154
    529
    153
    Male
    PL
    @.bastian - great work and step-by-step tutorial!
     
    VinSWADED, .bastian and rendolf like this.
  6. DeAkion

    DeAkionMembers

    Jan 10, 2016
    50
    29
    28
    Male
    #6DeAkion,May 29, 2016
    Last edited: May 29, 2016
    Thanks for the great tutorial!
    Sometimes MozillaNLP is ANR, any suggestions?
     
  7. loadeddiapers

    May 19, 2016
    7
    1
    15
    Interesting. Will try with xposed since I use different ROM

    "Don't be a derp. Use TWRP!"
     
  8. kamakasnh

    kamakasnhMembers

    Aug 23, 2013
    315
    120
    65
    Male
    .bastian likes this.
  9. kamakasnh

    kamakasnhMembers

    Aug 23, 2013
    315
    120
    65
    Male
    #9kamakasnh,May 31, 2016
    Last edited: Jun 1, 2016
    Up and running. What about Google Play Games.
    One more question. Your guide is easier than any other. Did you create the zip? Can I use this
    guide for another ROM with FakeGAPPS xposed module? More than one question.. sorry

    Sent from my MI 2S using Tapatalk
     
  10. .bastian

    .bastianMembers

    Jun 17, 2013
    249
    196
    65
    Male
    Thanks - but only because of your great rom - keeps my phone alife and usable ;)

    What do you mean with ANR? - But generally also the other location providers are doing a great job. I`ve used also the apple unifiednlp Backed for a while - had not a single reason to complain about.

    Will add it soon, thanks for reporting.

    Never heard about Google Play Games, but generally the goal of microG is using as little google stuff as possible without loosing the usability of our devices. Adding additional google stuff which isnt really necessary sabotages the whole idea.

    Yes, the actual versions were created by me. Use them for whatever you want. And sure, this zip should work on any phone with any rom. The only thing is, like you've already mentioned, if the rom doesnt support signature spoofing you have to use xposed with FakeGAPPS to ge full functionality.
     
    DeAkion and kamakasnh like this.
  11. .bastian

    .bastianMembers

    Jun 17, 2013
    249
    196
    65
    Male
    Update: Added the actual beta: 0.2.3-1-gec93cc4
     
  12. wirens

    wirensMembers

    Jan 22, 2016
    13
    6
    13
  13. wirens

    wirensMembers

    Jan 22, 2016
    13
    6
    13
    Actually, whole idea it's create free and open source implementation of google services, so everyone can use it without google vendor lock and probing.
     
  14. VinSWADED

    VinSWADEDMembers

    Apr 27, 2014
    115
    56
    38
  15. rendolf

    rendolfMembers

    Feb 22, 2012
    206
    51
    50
    Male
    @.bastian: thanks! Can I share a digital PayPal beer with you?

    Verstuurd vanaf mijn MI 2S met Tapatalk
     
  16. Infinitely

    InfinitelyMembers

    Mar 18, 2012
    201
    21
    42
    #16Infinitely,Jun 6, 2016
    Last edited: Jun 6, 2016
    I did a clean install of bugers' RC8 but it came with play store and some other gapps stuff...

    EDIT: did a /system format and flashed ROM again, it's clean now! My bad :p

    EDIT2: everything seems to be working fine except the GPS. I've tried using different NLP's but nothing works. I can't get a fix in Gpsfix and google maps gives me a "Your current location is temorarly unavailable". Location mode is on 'high accuracy'. Any solutions?
     
  17. .bastian

    .bastianMembers

    Jun 17, 2013
    249
    196
    65
    Male
    Hey rendolf, well-meant but until microG isnt my project my only work is to create a flashable zip from time to time and of course to keep thread alive. So no need to pay for.
    Van motorrijders tot motorrijders - twee vinger begroeting ;) Ich hoffe das war richtig

    Strange, for me it works quite fine. But i'll try to find a solution for you.
     
  18. kamakasnh

    kamakasnhMembers

    Aug 23, 2013
    315
    120
    65
    Male
    In Greece the Mozilla NLP locates me 2-3 miles western. Apple NLP :( :( :( found my real location. I use f... ApplesNLP though. It's perfect but proprietary
     
  19. Infinitely

    InfinitelyMembers

    Mar 18, 2012
    201
    21
    42
    Thanks man. What's strange though is that the only place the location fix seems to work is in the latest google maps. I used to use the old version (6.14.4) but I can't get a fix there or any other app (like GpsFix).
     
  20. Infinitely

    InfinitelyMembers

    Mar 18, 2012
    201
    21
    42
    Is there a way to uninstall micro-g without reinstalling the ROM?
     
    DeAkion likes this.
  21. DeAkion

    DeAkionMembers

    Jan 10, 2016
    50
    29
    28
    Male
    [​IMG]

    Need help here. Last night the play store show this error page, close and open it nothing changed. Try to clear data, nonting changed.
     
  22. L9Killer

    L9KillerMembers

    Feb 14, 2014
    12
    3
    13
    Do you plan to make CM13 compatible version?

    Xiao MI Note - MIUI8 China Developer Alpha 6.6.17
     
  23. kamakasnh

    kamakasnhMembers

    Aug 23, 2013
    315
    120
    65
    Male
    Do you force closed it and re opened that again? If nothing happens, try Lucky Patcher method to install one new Phonesky.apk

    Sent from my MI 2S using Tapatalk
     
    DeAkion likes this.
  24. kamakasnh

    kamakasnhMembers

    Aug 23, 2013
    315
    120
    65
    Male
    This is compatible with every clean ROM with Xposed module "fakeGAPPS" enabled

    Sent from my MI 2S using Tapatalk
     
  25. L9Killer

    L9KillerMembers

    Feb 14, 2014
    12
    3
    13
    Thanks for this info...

    Xiao MI Note - MIUI8 China Developer Alpha 6.6.17
     

Share Our Site