yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] MaR-V-iN:
The restriction 4.4+ is a "soft restriction", meaning that I test against 4.4 and 5.1.

I think that you need to push GmsCore.apk to /system/app if you want to use network based geolocation (can you try out if it works without it?)

Yes, CM denies to apply the patch because of the possible security/privacy issues that appear if you allow "third-parties" to provide a play services library already discussed in this thread. There will also be a restriction in OmniROM in an upcoming nightly, asking you to enable the feature in settings before using it. Once the new OmniROM patch is reviewed, we will check with integration in other custom ROMs like Resurrection and SlimROMs.
[Android Apps and Games] Koloses:
I'll ask my friend about later, cause it was his phone. He wanted to get rid of Google Play Services cause they ate a lot of storage (about 150 MB) and 80 MB of his RAM, but i guess it should work as he has everything in /system/app already. Have to check it out later though cause he isn't making any use of GPS or any other kind of location. Gmscore part works flawlessly or at least seems to do so for now.

About CM: Well... I don't know why they put so much of their attention into security. CM itself is not more secure than the patch provided earlier anyway.

BTW: I made a pull requets regarding polish translation of microG gmscore and UnifiedNlp
[Android Apps and Games] ktulu84:
hi, i get this error with ghostly sms app

10-10 16:27:22.562 I/OpenGLRenderer( 4438): Initialized EGL, version 1.4
10-10 16:27:22.569 D/OpenGLRenderer( 4438): Enabling debug mode 0
10-10 16:27:22.602 D/GmsServiceBroker( 1989): Service not supported: GetServiceRequest{serviceId=ADREQUEST, gmsVersion=6587000, packageName='it.sineo.android.GhostSMS', extras=Bundle[EMPTY_PARCEL]}
10-10 16:27:22.602 D/AndroidRuntime( 4438): Shutting down VM

I guess is related to the ad service non implemented? let me know if you need some information
[Android Apps and Games] MaR-V-iN:
Just a small update that is interesting for users here: Starting with OmniROM nightly 20151012, it will be required to enable signature spoofing at the bottom of the developer settings to continue using microG GmsCore. Other custom ROMs that added signature faking capabilities are likely to follow this restriction for security purposes, thus I updated the first post respectively.
[Android Apps and Games] cobalt232:
You may want to try my patched Google Play Store which works without having to be in the system image.

I posted my work on Crackberry. Do a Google search for "crackberry google play store" to find the post.
[Android Apps and Games] briskspirit:
Strange thing with push notifications... After install and checkin Push Notifications Tester works great, but other 2 programs don't receive notifications... Reinstalled them few times - no luck...
[Android Apps and Games] Portgas D. Ace:
Maybe you could include a log file, so that the issue can be adressed.
[Android Apps and Games] briskspirit:
Log from Push Notifications Tester? Or if I need to include log from other 2 progs - where are they? Sorry, don't know where to find them.
[Android Apps and Games] wkwkwk:
Would running the xposed module on an unsupported rom (like cm12.1) have any issues (security wise) as opposed to having the rom patched (like omnirom)?

also, is the xposed module required only during the initial install or needs to be left active?

Thanks
[Android Apps and Games] Portgas D. Ace:
Search for "How to logcat".
[Android Apps and Games] MaR-V-iN:
The Xposed module must stay active as long as you want to use play services.

From security perspective there is no relevant difference between the Xposed module, however it should be noted that Xposed itself might be a security issue.
[Android Apps and Games] wkwkwk:
Cool, thanks for that. I need xposed anyway for xprivacy.

I'm a big fan of OmniROM (the main driver is still on 4.4.4-final) but I feel that 5.1 is somewhat incomplete and a bit abandoned.

However, I'm quite reluctant on going back to CM due to the recent 'corporatism' around it..

Thanks again for all your work, really appreciate it.
[Android Apps and Games] naraita:
On my phone is not working, it said "Check your connection and try again" same as original Play store

And blankstore doesnt work either i got FC

I have gmscore.apk gsfproxy.apk, working with google account and gcm
[Android Apps and Games] Koloses:
You probably don't have xposed module, right? Then it's not gonna work.
[Android Apps and Games] naraita:
i have it too, the fakeGapps right?
[Android Apps and Games] Tentos:
As others have already written: This is an excellent project. It allows me to use the Threema app together with push messaging (handled by GCM) without having to install the official Play services. Thank you, [MENTION=3999488]MaR-V-iN[/MENTION] !

Interestingly, push messaging works without GsfProxy for WhatsApp and Threema. On the other hand, the DB Navigator (app of the German railways) needs it. I still have to test it properly, but the installation of GsfProxy was the missing part to get the push messaging for DB Navigator to work. Again, excellent work, [MENTION=3999488]MaR-V-iN[/MENTION] ! :good:

Edit: The installation of GsfProxy even seems to improve the behaviour of Threema: the app no longer has its message service running after the installation of GsfProxy.
[Android Apps and Games] barturblits:
As I read it, GsfProxy is a compatiblity translation layer for the old api calls and sends them to GCM. Whatsapp and Threema probably use the latest and greatest GCM, and DB Navigator the old legacy api. Google probably wants this separated so they can phase it out. Some apps should also work properly without push services with the cost of some battery usage but this can hinder battery apps and vice versa. For example telegram has GCM and a homemade notification system:

https://telegram.org/faq#notification-problems

Unfortunately, the article is unclear about how the 'best' notification system is determined for your setup and how to set/change it manually.
[Android Apps and Games] Cookie Ninja:
Installed on my gapps-free nexus 10 running omni ROM. Uninstalled unified NLP, installed fake Gapps mobile, activated in Xposed, installed android market, microGapps, GMs proxy from OP and rebooted. Checked that fake gapps module was enabled and then started android market and entered data correctly including the GSF ID. On pressing installed apps, market FCed... Any help will be appreciated.

Dead Cookies leave no trails...
[Android Apps and Games] barturblits:
Probably because google blocks unknown logins. Try to login in your Gmail and accept the new device login. Additionally, allow lower security apps to work by lowering the security options.
[Android Apps and Games] siavash2death:
I can't get my location on lux auto brightness. I have installed resurrection remix rom (5.1.1) on my phone. How can I solve this?
[Android Apps and Games] sonickles9:
I suppose you are using MicroG, right? Please be a little more specific when asking questions.

I dont think they are related. Are you really sure its due to the auto brightness?

If so then its a ROM bug and you should report to the dev

Enviado de meu GT-I9505 usando Tapatalk
[Android Apps and Games] MaR-V-iN:
People have various reasons to use microG instead of original Google Apps. The initial reason to start development on microG was privacy concerns, but there are numerous other reasons: security, free software, no bloatware, legal issues with gapps... All of them are equally valid. I personally do not use Play Store, GMail or other Google Apps on my primary device and thus don't test this setup constantly, it's up to users / the community to do so and I'll happily help out when there are practical bug reports.

There will be a replacement for Blank Store and until then I will provide critical patches (as long as they are not to huge), so that functionality is still available.

Currently development on microG is focused around GmsCore and providing some often requested features for full compatibility: Android Wear, Chromecast, Play Games. After this is done, I will continue work on a new Play Store (sometime around mid year).
[Android Apps and Games] siavash2death:
Sorry. I wasn't sure what should I say. I've installed microG. I also installed fakegapps. There's a function in lux auto brightness, that by getting your current location info like longitude & latitude, it can set the brightness based on your location, like sunrise, sunset,etc... Though I've installed MicroG, that app can't locate me or get the place's information. Sorry for bad English. I hope you understood what I'm saying. If you need more info, just ask. One more thing, I couldn't understand anything about the backends & how should I use them or which file should I download.
[Android Apps and Games] MSF Jarvis:
Do you have Unifiednlp installed as well?
[Android Apps and Games] siavash2death:
Yes.Also, xposed unifiednlp is installed,too.
[Android Apps and Games] sonickles9:
I wonder... maybe it could be a ROM feature that works only with gapps? Idk

Enviado de meu GT-I9505 usando Tapatalk
[Android Apps and Games] Mentor.37:
When installing the microg gms in /system I suggest to include also the Maps API v1.

Personally I also use the lib to enable the swype on the aosp keyboard.

The lib to enable the swype on Android 4.4.x x86 is:

/system/lib/libjni_latinime.so

The libs to enable the swype on Android ≥ 5.x x86 are:

/system/lib/libjni_keyboarddecoder.so

/system/lib/libjni_latinimegoogle.so

The libs to enable the swype on Android ≥ 5.x x64 are:

system/lib64/libjni_keyboarddecoder.so

system/lib64/libjni_latinimegoogle.so

These libs need of permissions 644.

To make everything persistent at the rom's updates you should simply use a script /system/addon.d/70-gapps.sh with permissions 755 like this:

#!/sbin/sh
#
# /system/addon.d/70-gapps.sh
#
. /tmp/backuptool.functions

list_files() {
cat <<EOF
etc/permissions/com.google.android.maps.xml
framework/com.google.android.maps.jar
lib/libjni_keyboarddecoder.so
lib/libjni_latinimegoogle.so
priv-app/GmsCore/GmsCore.apk
priv-app/GsfProxy/GsfProxy.apk
priv-app/BlankStore/BlankStore.apk
EOF
}

case "$1" in
backup)
list_files | while read FILE DUMMY; do
backup_file $S/$FILE
done
;;
restore)
list_files | while read FILE REPLACEMENT; do
R=""
[ -n "$REPLACEMENT" ] && R="$S/$REPLACEMENT"
[ -f "$C/$S/$FILE" ] && restore_file $S/$FILE $R
done
;;
pre-backup)
# Stub
;;
post-backup)
# Stub
;;
pre-restore)
# Stub
;;
post-restore)
# Stub
;;
esac
[Android Apps and Games] OmegaBlaze:
What gapps can I find those two files in? I've downloaded Opengapps (micro) and Slimgapps and neither have them?
[Android Apps and Games] wdevil12:
I have already made the script (btw you missed 5.0 apk locations part and permissions in post-restore), added nominatim backend (which always works for me, gps-based), updated playstore,gmscore (6.3.16, 0.2.2). But I wonder If it is really needed to include keyboard swype libs, maps v1? What do you think guys? You're feedbacks are really helpful now.
[Android Apps and Games] mrrocketdog:
probably alot of people probably use them , but i never have ; so my personal feedback is , sounds like a lot of extra work. (though i am not a "builder" in any sense of the word).

is it worth your time to add them ? ; would be my better response.

thank you for sharing your work [MENTION=5515871]wdevil12[/MENTION].:good:

"err on the side of kindness"
[Android Apps and Games] Buslova:
[MENTION=5515871]wdevil12[/MENTION] , I use both maps api & default keyboard swype and I've seen a few others request/talk about getting them to work.

However, I agree with [MENTION=5511100]mrrocketdog[/MENTION] . If it's a lot of work/time then we can figure out how to do it on our own or other alternatives (like a diff keyboard like I'm using now). No biggie. I just appreciate the effort in making the zip since I flash roms so often.
[Android Apps and Games] if-else-endif:
Guys, can somebody help me? I installed microg official market and gmail isn't working. Looks like syncing of Gmail and Keep is working, but app isn't (auth?).
[Android Apps and Games] kalapapa:
I've had issues with Gmail as well. I suggest you try inbox for gmail. If works perfectly for me
[Android Apps and Games] if-else-endif:
The thing not only in Gmail, also with Keep, Play and other...
[Android Apps and Games] wdevil12:
No, its not about time/effort. I am doing it in my free time. I just have a feeling that we are slowly using more and more standard gapps files. Anyway, I will add libs and maps v1 as Extra (meaning they will be unselected by default in the installer's setup wizard).
[Android Apps and Games] jisoo:
Just FYI -- 64-bit devices (like the Nexus 5X and 6P) require 2 different library files in a different location to enable swipe recognition:

system/lib64/libjni_latinimegoogle.so

system/lib64/libjni_keyboarddecoder.so

The files are different from the 32-bit version (at least the md5sum is different), so you would need to add those as well.
[Android Apps and Games] Mentor.37:
In the Opengapps the two libs are in:

/optional/swypelibs.tar.xz/swypelibs.tar/swypelibs/common/lib

anyway I added them at my previous post.

The apk paths for Android ≥ 5.x are there, in the script that I posted I haven't inserted the paths for Android 4.4.x but only because mine was an example considering that I would use two separate addon.d scripts for the different paths and I would choose which of them use at the installation time based on the version.prop.

I have not even forgotten the permissions in post-restore considering that they aren't necessary, during the rom's updates these files are temporarily copied from /system in /cache and the permissions aren't lost.

Personally I use the microg gms apks as user apps but if someone decides to install them as system apps i think that in a complete package there should be at least the maps api v1 considering that some app requires the google maps api to be installed.
[Android Apps and Games] mrrocketdog:
+1 sounds like a smart middle ground. thank you for solution other than 'forcing' more gapps files.:good:

"err on the side of kindness"
[Android Apps and Games] mrrocketdog:
just sayin
[Android Apps and Games] wdevil12:
Ifyou share those files I will add them too, cause I got no 64-bit gapps package.

---------- Post added at 01:55 PM ---------- Previous post was at 01:53 PM ----------

Are permissions for paths (folders) also saved in temp file? So I dont need any post-restore part for setting them?
[Android Apps and Games] jisoo:
https://github.com/kimjisoo/android...rebuilt/common/lib64/libjni_latinimegoogle.so

https://github.com/kimjisoo/android...ebuilt/common/lib64/libjni_keyboarddecoder.so
[Android Apps and Games] MaR-V-iN:
If you're on Android 6, did you grant Contacts permission to GMail and Google Apps? Contacts permission is often required to find the account. If problem persists, try to remove and recreate the Google Account in system settings.
[Android Apps and Games] Mentor.37:
Everything is moved as superuser from a path to the other with its permissions and ownership, so you don't need post-restore the permissions of files and directories.
[Android Apps and Games] if-else-endif:
Like this?

I have tried, but have no effect.

I have tried to recreate account -same thing.

When you told "Google Apps", did you mean that I need to install something more than Microg services core, Play market, Gmail?
[Android Apps and Games] MaR-V-iN:
Yes.

No, it's fine without other Google Apps, this was just in case you want others.

Did you follow installation instructions?
[Android Apps and Games] if-else-endif:
I have tried to install on OPO TugaPower 48 ROM.

What did i do:

Clean ROM install;

Direct download of the microG core and gfcProxy (without F-Droid);

Install microG core, then gfcProxy;

Install official PlayStore (not Blank PlayStore), Gmail, Keep;

Check checkboxes;

Reboot

Add google account without any issue at system setting.

Looks like now I have working good gmail and keep syncronization, without syncing of the Contacts (need to install something else?) and can`t login to any gapp (Gmail, Play, Keep).

First time i tried with 2-factor auth, then turn it off... Tried to reinstall all, excluding ROM.
[Android Apps and Games] wdevil12:
ok, thanks for the hint:) I looked at xposed and supersu scripts which both were concluded with the permission part. Now its seems they were for various reasons. Thanks again

---------- Post added at 08:11 PM ---------- Previous post was at 08:01 PM ----------

Thanks. After testing all the changes I will release V3:)
[Android Apps and Games] wis3m0nkey:
It is as stable as it gets, been using it for months now.

The only thing that's been worked on are new features I suppose.
[Android Apps and Games] Mentor.37:
How much in percentage micro g drains your battery?

Hey guys, how much in percentage micro g drains your battery(specially when using the mobile data network)? No other has noticed a battery drain problem caused by micro g gms on Lollipop and Marshmallow using the mobile data network?

I already spoke about this problem in the post #755 and in the last days I had some free time, so I tested again micro g on Marshmallow with the same results.

For example today microG Services Core has been the major battery drainer with the 17%, more of the screen that has been on for 4 hours.

I tested the battery life with the Play Services and it is almost three days, with the microg instead it is less then a day. In my test the Play Services has drained the battery only 3-4%.

The strange thing is that microG uses the CPU for only few seconds but it leaves the mobile radio active for several hours, with the Play Services this doesn't happen, so I exclude the Mobile radio active bug.

I tested everything with a clean cm13 m1 installation on an lg g2 d802 with microg and only Signal, Whatsapp and the native AOSP Email client configured.

I left the microg heartbeat interval at the default value of 60s, now my phone is in charge and in the next test I will set this value at 300s as suggested in the issue #52 to check the difference.

Below some screenshots and a log of almost two hours.

You are welcome, it's a pleasure to contribute at this great project.
[Android Apps and Games] OmegaBlaze:
Could you post the 64bit versions of those files? I've personally tried copy & pasting the files into system/lib, as well as system/lib64 w/ permissions 644 to no avail.
[Android Apps and Games] OmegaBlaze:
Yes. Change the heartbeat interval from 60 to 240.
[Android Apps and Games] siavash2death:
Isn't there any solution for my problem? My phone is note 3 SM-N900.
[Android Apps and Games] n76:
MicroG has a setup app/icon in your apps area. The top item in that is "self-check". What does that show?

Regarding backends: You need at least one backend of each type installed. You do that through the "UnifiedNlp Settings" under "location services" in the microG settings. For the "location backends" you have several choices, some need to have data downloaded to the phone before they can function, others use your phone's Internet connection to query remote servers (Apple or Mozilla depending on backend). If you have no backends installed then you will have no location given by microG (GPS should still work but many apps don't use that).
[Android Apps and Games] siavash2death:
Thanks for your answer. Could you tell me which file should I download for location? And what's their extension?
[Android Apps and Games] n76:
Backends are available through F-Droid. In the F-Droid app store search for UnifiedNLP and you should see them all.
[Android Apps and Games] kalapapa:
I too have the same problem on lollipop and marshmallow roms. However the only thing we can do is increase heartbeat rate
[Android Apps and Games] :
The official PlayStore has to be put into /system/priv-app and granted all the required permissions. It will not work if you just install the APK file! I know that because I tried doing that on my phone and could not log in into my account until I moved it to the priv-app folder.

The battery drain is directly related to the heartbeat interval. The shorter it is, the higher your battery drain will be. I have set mine to 15m (900s) and it seems to provide a good balance between timely received notifications and battery use.

I would also recommend using BetterBatteryStats to check the real battery use. The graph shown in the Android system settings does not show everything and is often buggy or simply incorrect.
[Android Apps and Games] masmoe:
No big problem with battery drain for me on CM13.
[Android Apps and Games] Primokorn:
I can't enter my Gmail account in the system settings. The page is loading again and again after pressing Next.

I already tried without my firewall but it didn't help.

Gmscore 0.2.2 (all permissions granted except location (disabled))

I already have a Blankstore account in the system settings.

EDIT: [MENTION=3999488]MaR-V-iN[/MENTION]

I have recorded a log (check from 15h45 if you want) since I hace no issue in this situation:

1. Clean flash

2. Restore GmsCore and Framework proxy

3. Log in to my Gmail account

What do you think about this?

EDIT: Finally fixed!

Caused by blocked domains from my host file.
[Android Apps and Games] bilbonotry:
Deleted
[Android Apps and Games] Mentor.37:
Heartbeat and Battery Drain on Android ≥ 5.x

I forgot to repeat that I have the battery drain problem with micro g specially using the mobile data network.

Yes, I know that the battery drain is directly related to the heartbeat interval but the strange thing is that I used for months micro g on KitKat with the default heartbeat interval and I never had the battery drain that with the default interval I have on Lollipop and Marshmallow.

Why this difference between Android 4.4.x and Android ≥ 5.x?

Anyway I think that an heartbeat interval of 15m is too low considering that the same [MENTION=3999488]MaR-V-iN[/MENTION] in the issue #52 tell us that "values like 300 might be a little high for push message feeling".

For now I'm testing an heartbeat interval of 5m(300s) and seem to me that everything is working without problem and the battery drain seems now normal, but I will try to decrease it at 240 as has been suggested above.

Anyway when I will have a little free time I will check what is the default heartbeat interval of Play Services, according this google group it should be:

28 minutes on mobile connection 2g/3g/4g

15 minutes on wifi

and we can check it with the code *#*#426#*#*

I already used BetterBatteryStats and as I reported in the post #755:

In BetterBatteryStats I haven't any strange behavior from "microG Services Core" or RILJ, they don't cause any wakelock, in BetterBatteryStats I can see only that microG causes a lot of alarms.

Also in locgat I don't see any strange behavior.

Also Amplify has confirmed the results of BetterBatteryStats and in post #819 I posted the screenshots.

About the alarms they don't should be the problem and in fact MaR-V-iN confirms this in the post #364:

and in fact on KitKat they aren't a problem.

Have you changed the heartbeat interval?

Are you on snapshot or nightly?
[Android Apps and Games] masmoe:
I am on unofficial CM13 for LG P880. Microg setting is default.
[Android Apps and Games] Mentor.37:
Thanks, I'll check your rom.

In my last post I forgot to repeat that I have this problem specially using the mobile data network.

You do not have this problem even using the mobile data and not the wifi?

Please could you post a screenshot of the stats of microg's battery?

Last question, which backends are you using?
[Android Apps and Games] masmoe:
I will turn on data and let my phone stand by for few hours. I will post the screenshot later.
[Android Apps and Games] wdevil12:
Wait! Do different android versions require different swypelib files?
[Android Apps and Games] bigsupersquid:
yes. each android numbered release, plus each architecture. (though they never built swipelibs for armv5te, just armv7 and up.)