yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] if-else-endif:
And how do I need to install that?

I put it to the /system/app, and can`t see Contacts sync in Accounts/Google...
[Android Apps and Games] zeduck:
You dont need any Google App!

Take a look at CardDav Sync Free
[Android Apps and Games] Shadow53:
I personally use DAVDroid from F-Droid. I use my own server however, not Google, so I can't say if it works with Google. I should figure it to, however.

I assume Play Store got installed in priv-app. Have you enabled device checkin? I have never needed to use the dialer code along with it, but you may need that too.

The other thing I would think of is the system download manager being blocked in a firewall.
[Android Apps and Games] vagkoun83:
I think carddav is for calendars and caldav for contacts.
[Android Apps and Games] nussbaum:
Its the other way round.:)
[Android Apps and Games] vagkoun83:
I had try many apps from fdroid using caldav but i didnt solve the problem. Finally i found 2 solutions.

1. I moved some google apps(i cant remember exactly the path because now i am running a different setup on my phone)

google calendar sync

google backup transport

google contacts sync

google account manager

Contacts sync working ok but not google calendar. So i install caldav sync from fdroid and calendar sync working perfect.

2. I make an account to Fruux, its a free service (there are many others like Fruux) to sync contacts, calendars and tasks.

I think he best solution but not for new users is Owncloud

[MENTION=4435317]if-else-endif[/MENTION] give a try, maybe you must add in system google account manager
[Android Apps and Games] zeduck:
It's the opposite.

Card for contacts, Cal for calendars.

---------- Post added at 09:10 AM ---------- Previous post was at 09:06 AM ----------

I agree. To me, using OwnCloud is the best solution.

It handles contacts, calendars and files.

I have a question: how did you managed to have only the Google account manager?

It's needed for Google Play Music.
[Android Apps and Games] vagkoun83:
Not only google account manager but:

google calendar sync

google backup transport

google contacts sync

google account manager

Is there any solution to setup owncloud without hosting?? like virtual server? or you need a domain etc..
[Android Apps and Games] silentvisitor:
[MENTION=7126506]Shadow53[/MENTION] I used zip provided by [MENTION=5905555]GasLoop[/MENTION] (Thanks buddy) and Play Store is in Priv-app. Here's my setup. I can do everything in Play Store except downloading :rolleyes:

Thanks for help :good:
[Android Apps and Games] GasLoop:
You can use your own computer to run owncloud, but you need a dynamic ip for that. Just google setting up your own owncloud. It's a lot of dirty handwork.

Did you "checkin"? (Enter *#*#CHECKIN#*#* in dialer with active data.) You can also check whether download manager is not blocked by your firewall. If that's all given, try wiping data of the Play Store. It should work then.

I know it's not as comfortable as using gapps (play store can mess around more than once) but it works.
[Android Apps and Games] silentvisitor:
Thanks [MENTION=5905555]GasLoop[/MENTION] Play Store working after dialer trick :good:

Btw what it does?

Can Google Now on Tap made to work too ?
[Android Apps and Games] GasLoop:
I don't know either, [MENTION=3999488]MaR-V-iN[/MENTION] will know more. :)
[Android Apps and Games] MaR-V-iN:
This will send a new Checkin request to Google. Checkin is what Google uses to identify devices and create and android id. Play Store heavily relies on this (e.g. to filter apps), so it won't work with a improper checkin. Usually the checkin should be updated automatically when it is required and the corresponding checkbox is ticked, but sometimes it does not.
[Android Apps and Games] silentvisitor:
Thank for clarification.

Can Now On Tap work ?
[Android Apps and Games] MaR-V-iN:
No idea, never tried. I guess it requires Google App to be installed to /system/priv-app.
[Android Apps and Games] silentvisitor:
I thought same but will Google App work with our setup?
[Android Apps and Games] MaR-V-iN:
I don't know why it should not, try it out and report :)
[Android Apps and Games] silentvisitor:
Sure. Will do.
[Android Apps and Games] phreakenstein:
I clean flashed cm13 on my Redmi 1S, used zip by [MENTION=5905555]GasLoop[/MENTION], Mozilla back end and nominatim lookup. I'm still getting highest battery usage by micro. Doesn't matter if it's optimized, battery profile or heartbeat interval(Currently at 60s default). I'm attaching screenshot, if I need logs to solve this I'll get some. So far I have no clue why this is happening or how to remedy this. If we need logs to solve, do I get them overnight?
[Android Apps and Games] masmoe:
Could you monitor the wakelock use BBS or similar app?

I though it is not microG, but another app fault that use microgG so microG show up in battery use stat. The culprit ussualy bad app and your gsm signal or internet connection is not good (stable).
[Android Apps and Games] phreakenstein:
Here's some..
[Android Apps and Games] masmoe:
Wakelock is seen normal. Could you monitor which app use the most battery?

I though this app use microG alot.
[Android Apps and Games] phreakenstein:
Only apps I really use are chrome, slide and inbox. They didn't even make it to top 5 battery users. Only apps in start at boot are email, IM and system apps. I don't have fb/messenger. Usually biggest consumer of battery is screen, but it's showing up way below 5th rank. Also, my battery isn't all that worse from when I was on play services. But does and battery are my main reasons to switch.
[Android Apps and Games] Mentor.37:
Heartbeat and Battery Drain on Android ≥ 5.x

This seems to be a common problem with microG and Android ≥ 5.x when using the mobile data network, the problem isn't present when using the wifi.

In my case I experienced it using these backends: LocalGsmNlpBackend, LocalWifiNlpBackend and NominatimNlpBackend.

You can read more in the posts #755, #819, #831.

At the end the only solution has been increasing the heartbeat interval as suggested by [MENTION=2238538]OmegaBlaze[/MENTION](#821), [MENTION=6440862]aaqibismail[/MENTION](#826) and [MENTION=5038522]tomasz86[/MENTION](#827).

Now my heartbeat value is 900s from more than a month and I haven't more the battery drain from microG and I haven't problems with push notifications.
[Android Apps and Games] phreakenstein:
I'm on 6.0.1. But I'll try gradually increasing heartbeat value and see for each one. Thanks.
[Android Apps and Games] silentvisitor:
I tried but neither it could read my account from device nor could it sign me in :(
[Android Apps and Games] MaR-V-iN:
You need to manually grant at least contacts permission (from system settings) to google app for login.
[Android Apps and Games] MaR-V-iN:
I am running OmniROM and I don't have high battery drain. Can you provide a logcat with details over ~20mins without usage (screen off)? You can send me a PM if you don't want to make it public.
[Android Apps and Games] silentvisitor:
Oh....no then I'll pass.

Don't want Google to have my data ;)
[Android Apps and Games] TheNec:
You may use XPrivacy to fake contacts/accounts access for several apps.

Best regards
[Android Apps and Games] Mentor.37:
Heartbeat and Battery Drain on Android ≥ 5.x

You can experience this problem only when using the mobile data network and only on Android ≥ 5.x.

As I already told i made more tests on more phones always with clean installation and this problem isn't present in Android 4.4.x.

On what version of Android are you with OmniRom?

Are you using the default heartbeat value of 60s?

What is the average of your battery drain by microG?

In my case with the default heartbeat value my average was 16-17%, now with an heartbeat value of 900s the average is 3-4%.

I already sent you a log via pm a month ago and a bit after I also uploaded this other log 2016-04-04-15-17-30.txt of almost two hours in post #819 in which I also uploaded some screenshots about the problem.

If I can help in some other way I'm here.
[Android Apps and Games] MaR-V-iN:
My primary test device uses OmniROM 6.0. At heartbeat interval 60s it takes about 3-5% battery, at 180s it will go down to 1%. All using mobile data (mostly LTE) all day on a Nexus 5x. Similar results on a Nexus 4

The log misses a lot of information. Beside information on gcm network activity there is basically nothing. And the data usage of GCM alone should not be able to eat your battery.
[Android Apps and Games] Mentor.37:
This is really strange, I have this problem on a Motorola Droid 4 xt894, on a Motorola Photon Q xt897 and on an LG G2 D802 using 2G/3G.

The screenshots in the post #819 are related at a clean install of Cyanogenmod 13 M1 on the LG G2 D802 with only Signal, Whatsapp and the native AOSP Email client.

I don't think that the problem is related to the carrier considering that the problem isn't present with the Cyanogenmod 11.

I don't think that the problem is related to a particular phone or its OS considering that in all my phones the behavior is the same and that the problem is present only on Android ≥ 5.x .

Yes I filtered that log to upload it but the log that I sent you in pm was complete, unfortunatly I haven't more it.

I can take a new log on my daily phone decreasing the heartbeat value to 60s and I can send it via pm, let me know if you want a full log or a log took with:

logcat -v threadtime | grep GmsGcm
[Android Apps and Games] n76:
As another data point, I'm running a AOSP 6.0.1 ROM on my Galaxy Nexus (Maguro) and default settings on GmsCore. I've never noticed GmsCore taking more that a couple percent of the battery. With Marshmallow and GmsCore battery life has been better than I've every had on this phone before.
[Android Apps and Games] GasLoop:
That's weird, clean flashing solved that issue for me...

Doesn't that cause a major delay?
[Android Apps and Games] phreakenstein:
Logs as per request, [MENTION=3999488]MaR-V-iN[/MENTION].

I took logs for extended idle periods, overnight. First is with 240s heartbeat. Changed heartbeat interval to 60s immediately after that, let it idle for 6hrs. Logs taken with Andylog, if any more tests required, I'm happy to help. Both logs attached, hope this helps.
[Android Apps and Games] Mentor.37:
[MENTION=3999488]MaR-V-iN[/MENTION], I took two new logcats of about 14 hours on my daily phone using 2G/3G.

As soon I decreased the heartbeat value from 900s to the defalutl 60s and I turned off the wifi then microG has started to draining the battery skipping from 3% to 20% as it is visible in the screenshoots here attached.

Here I uploaded the filtered version of the logcat, at the same time I also took a full logcat that I sent you via pm.

I made alot of tests, also using Push Notification Tester, before setting 900s as my daily value for the heartbeat and I haven't any noticeable delay.
[Android Apps and Games] :
Setting the interval to 900s does not mean that your notifications will necessarily be delayed by 900s :)

They are still instant if the connection to GCM is active. Sure, there will be a delay sometimes but usually it is not longer than a few minutes. Of course, the highest possible delay is almost 15 minutes (in the extreme case) and you should keep this in mind if you absolutely need to receive all notifications instantly, but I have never experienced such a long delay for the whole time of using microG, and I do get a lot of notifications every day.
[Android Apps and Games] moriel5:
Do you have Xposed installed?

What about SuperSU?
[Android Apps and Games] Jonas Cardoso:
I do not Xposed use, so wanted to know an alternative method, supersu is working
[Android Apps and Games] moriel5:
Xposed is not neccesary, it just makes things safer.

Begore we begin, what android version are you on?
[Android Apps and Games] Shadow53:
Check the wiki:

https://github.com/microg/android_packages_apps_GmsCore/wiki/Signature-Spoofing

I personally have used Needle and found it to work, though it does not include the marshmallow permissions dialog that Omni does - it just allows things to spoof signatures. So be careful with that.
[Android Apps and Games] MaR-V-iN:
[MENTION=4922774]phreakenstein[/MENTION]

according to your logs, your connection is extremely unstable. Either the system kills GCM regularly (this can happen if Android 6 battery optimization is enabled for GmsCore) or your link quality is too bad for long time GCM connections (which is not handled very good in microG).

[MENTION=5003013]Mentor.37[/MENTION]

the only thing I noticed in your logs is that your phone is switching between UMTS and HSPA+ network rather often, assuming that your phone was at the same position during the logging period. It might be that microG is causing your device to switch network mode, which will result in high battery usage. Can you try what happens when you force your phone into 2G only?
[Android Apps and Games] phreakenstein:
Last night, phone consumed 4% battery in 8 hrs. MicroG core and framework are not optimized. Heartbeat interval at 240s, microG is at top with 2% of usage. I'm sure with heartbeat interval 1/4th the current number, it would have been more. I'll find more ideal conditions for phone and take logs again. Thank you for looking into previous logs, I'm happy to help as much as I can.
[Android Apps and Games] Sick1:
Updated to 0.2.2-9 a moment ago, and all push notifications working! Including Tapatalk, i thank you very very much and send some bucks for some drinks etc!

Lähetetty minun Nexus 5 laitteesta Tapatalkilla
[Android Apps and Games] sonickles9:
what's the difference between official builds and sww13's builds? which of them is more frequently updated?

Enviado do meu GT-S5310B
[Android Apps and Games] n76:
From observation, the official GmsCore F-Droid repository seems to have a new version within hours of when a commit is made to the source code. I suspect that [MENTION=3999488]MaR-V-iN[/MENTION] has a work flow that automatically builds and puts the result in the repository when a git commit to the source code takes place. It seems unlikely that anyone else could put out a new build faster than that.
[Android Apps and Games] Mentor.37:
Sure, the phone was at the same position during the logging period and yes the problem could be the fact that microG causes continuosly switching network mode to my devices considering that my carrier goes in UMTS when there isn't any network activity and goes in HSPA+ when something starts using the network and in effect with locking the phone in 2g there isn't any abnormal battery drain caused by microG.

Do you think that there is something that can be done to solve this problem and avoiding microG to force the phone to go from UMTS to HSPA+?
[Android Apps and Games] MaR-V-iN:
If it's your carrier forcing your device to switch between UMTS/HSPA+ there is nothing we can do on the phone itself. The problem would occur with original GCM implementation as well, but I guess they use a lower heartbeat rate (Google has a mechanism built-in that decides the heartbeat rate based on carrier,phone,etc) and so can you. As you said you did not experience problems with less heartbeats, probably your carrier does a good job in keeping the GCM connection stable (it is known that some carriers do so) and Google already knows this, that's why you don't experience high battery drain with Google GCM.

Summary: Just keep your hearbeat interval at a high level and you should be fine.

Can you tell what carrier you are using?
[Android Apps and Games] sonickles9:
I'm quite ignorant about git, commits and other stuff so could you speak more clearly please?

Enviado do meu GT-S5310B
[Android Apps and Games] MaR-V-iN:
Kudos to [MENTION=6259269]zoff99[/MENTION], who reported the issue with complete technical details on GitHub
[Android Apps and Games] n76:
[MENTION=3999488]MaR-V-iN[/MENTION] makes this software available by both choosing an appropriate license and by publishing the source code where others can access it. He has picked the GitHub website to publish the software and GitHub, as well as pretty much all of Android and the Linux kernel use a "Version Control System" (VCS) called "git".

There are other VCSs out there, the main thing to remember is each is capable of saving copies of your source as it existed at different points in time. A git "commit" is a snapshot of all your version controlled files as they exist(ed) when the commit was executed. Git saves all those old versions of software in a "repository" (basically a hidden directory structure associated with your source code project).

When using git a typical work flow is to make your changes on your local machine and, once satisfied that you have something worth keeping and/or releasing to the world, you "commit" the current copies of your source to the git repository on your local machine or network. If you are ready for releasing the software update to the world, then you can "push" the changes from your repository to a public repository (in this case one on GitHub) for others to see and download.

Git, as well as other VCSs, has a way to trigger programs or shell scripts to run when certain things happen (triggers). It is possible to trigger the compilation of a new binary from the source when a commit is made.

From what I see happening, I think it is likely that [MENTION=3999488]MaR-V-iN[/MENTION] has a post commit trigger that builds GmsCore and puts the built app into his F-Droid repository. This means that his build probably happens nearly simultaneously with his release of the source code to GitHub where someone else can also make the build (but later as they get a later start).
[Android Apps and Games] sonickles9:
ohh so that is a git! thank you very much! :)

Enviado do meu GT-S5310B
[Android Apps and Games] Mentor.37:
As I imagined... ...and remembering in the cm11 to have a lower battery drain I was usual set the network in 2g and switch in 3g only when needed with the network toggle, thing that I haven't never done in cm12 neither in cm13 because the network toggle has been removed, this is why I had different behaviors for microg between cm11 and cm13, I'm really sorry for having alarmed you for nothing, i should have been more careful, sorry.

About my carrier it is Wind and the Play Services heartbeat rate was really low, now I don't remember correctly it but the Play Services' heartbeat value can be checked with the code *#*#426#*#*.

A last little question, do you think that could be done something to have the notifications working in eBay 3.0.0.19?

I thank you for your patience and for your work, I really love your project and I think that is the best ever project for Android.

Thank you.

#PostEdit:

Some days ago eBay with version 5.x has finally released a new good version of its app and the new one also works without problem with microG.
[Android Apps and Games] mrrocketdog:
[MENTION=6204913]n76[/MENTION] , thank you (out of :thumbup: freakin thank limiter) for the explanation. very understandable the way you worded that.:highcowboy:

"err on the side of kindness"
[Android Apps and Games] hamzaeid:
could this app works on cm10.1 :confused:
[Android Apps and Games] phreakenstein:
I'm not sure this is related to microG package, but I don't see update to 0.2.2-9. I'm on 0.2.2-5, installed from [MENTION=5905555]GasLoop[/MENTION]'s zip on setup, everything working fine, repository added to F-Droid. I don't even see microG gmscore in installed app list, let alone update it. I removed and added repository back, updated all repositories, no luck.

Edit: Never mind, fixed it. Somehow unifiednlp was no longer recognised in system. Rebooting fixed that, and I was able to manually select and download latest microG package from F-Droid. It still didn't recognise update availability by itself though.
[Android Apps and Games] GasLoop:
You could've also changed the apk in the zip and refreshed the zip. I'll see when I'll have time to update the zip.
[Android Apps and Games] phreakenstein:
Goes without saying I'm a lazy ass. I'll update zip when I get home, though.
[Android Apps and Games] GasLoop:
Cheers, mate :good:
[Android Apps and Games] phreakenstein:
Here, happy now? I only changed GmsCore.apk, should be OK?
[Android Apps and Games] n76:
Any reason why you ZIP puts GmsCore, et al into /system? Not sure about Phonesky, but I thought only Blankstore and Maps API v1 needed to be in /system (and I've heard recently that Blankstore does not need that but haven't actually checked to be sure).

I am pretty sure that by putting GmsCore into /system you will be keeping F-Droid from being able to update it.
[Android Apps and Games] phreakenstein:
Phonesky(play store here) has to be in /system to work. Everything is same as old zip, only gmscore.apk is new. F-Droid didn't detect it automatically, something about version number and version code, but manual update went just fine.
[Android Apps and Games] Cirra92:
Yeah, but when you increase heartbeat to 900s, "gcm.mcs.reconnect" alarm kicks in to keep the connection alive and that increases number of alarms per hour. I have increased HB to 900s, and I'm getting more alarms from RECONNECT, so it's going up to 20 alarms per hour from Micro G (HB and REC combined).

That's why even 900s won't cause any delay. Not that I had any problem with 300s, just pointing out.

300s seems like best option, because only HEARTBEAT alarm is used to keep connection alive.
[Android Apps and Games] Jonas Cardoso:
Need help in Windows or Linux :confused:
[Android Apps and Games] Nosepull:
Has anybody else the problem that the FDroid-Repo gives errors (error updating package index or something like that) since a couple of days?
[Android Apps and Games] GasLoop:
I put them there to be on the safe side. Why don't you give it a try modifying the zip and tell us whether it's been better? :)
[Android Apps and Games] bhammler:
Does someone use the app Flightradar? It worked for me, but since a couple of weeks it keeps crashing, like all other apps that need maps
[Android Apps and Games] n76:
I just installed "Fightradar24 Free" and it seems to run for me. It does have some display issues, similar to what I've see on other apps when you go back to the map after looking at the settings. And, as a caveat, I have a custom build of the Nominatum backend that fixes some crashes with other location aware apps so that might make a difference.

That is a fairly nice app (other than the ads that pop up, presumably because I installed the free one) and I think I might keep it on my phone.

Do you have a logcat showing the crash?
[Android Apps and Games] bhammler:
Yes, I've got a logcat
[Android Apps and Games] Mentor.37:
The Blankstore can be installed in /data, I installed it in this way.

With 300s I have an higher visible battery drain compared to 900s.
[Android Apps and Games] n76:
For whatever reason, it is not finding libvtm-jni.so on your phone, here are the lines I am focusing on:

05-14 10:34:34.545 D/GmsMapView(27372): Loading native vtm-jni
05-14 10:34:34.603 W/art (27372): Suspending all threads took: 17.430ms
05-14 10:34:34.612 D/AndroidRuntime(27372): Shutting down VM
05-14 10:34:34.615 E/AndroidRuntime(27372): FATAL EXCEPTION: main
05-14 10:34:34.615 E/AndroidRuntime(27372): Process: com.flightradar24pro, PID: 27372
05-14 10:34:34.615 E/AndroidRuntime(27372): java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.android.location.provider.jar", zip file "/system/priv-app/GmsCore/GmsCore.apk"],nativeLibraryDirectories=[/system/priv-app/GmsCore/lib/arm, /system/priv-app/GmsCore/GmsCore.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]] couldn't find "libvtm-jni.so"

As to why it can't find it, I cannot say. What distribution/version ROM are you using?

And what version of GmsCore? As it might, in some way, be related to this closed issue which had to do with loading libvtm-jni.so.
[Android Apps and Games] jb91:
I've got a problem here trying to install MicroG on a Nexus 6P running CyanogenMod. I tried enabling the signature spoofing with Needle. When I run Needle, it only returns this:

FileNotFoundError: [Errno 2] No such file or directory: 'framework.jar.out/smali/android/content/pm/PackageParser.smali'

What could be the problem here?