Is microG safe?? Its a lot safer than Google as Google keeps all your info. Microg is an alternative to play services and lineage have there own "microg for lineage" on there website I believe. What version of gapps are you trying to install? And are you rooted with Magisk and what version?
If it is aroma gapps on the new Magisk 16.6 than it probably won't work as a few changes have been made to the latest Magisk release and Samsung phones are having trouble booting if its an aroma rom or gapps.
Try pico gapps from opengapps.org
Thanks. I realized, I did not provide detailed info. As I was only using opengapps, I did not think of other. I used opengapps arom from 6 july and pico from 6 july. They get install. But after aroma phone does not boot and with pico, google play services just keep on failing. I followed this below procedure.
1 wipe - factory reset, system, cache, internal, dalvik
2 flash rom
3 wipe dalvik/cache
4 flash gapps
5 wipe dalvik and cache
Update: I tried to install MindTheGapps 8.1_arm_20180610. It installs and system boots up. But same as opengapps pico, google play services keeps failing.
No, I do not have any magisk on my phone. Not that deep into this stuff (yet) . I searched about microg for Lineageos, but seems it is the other way out. LineageOS for microG. But as per their documentation, they do not support J5. Not sure if there is some unofficial support for it like this one
On the other hand, is there some way and some know "google play services" that can be installed on this ROM without installing all the other opengapps stuff?
Another options for me is that I need to sync contacts with google account and have calendar sync with google account. is there a other way to achieve that without google play services?
I tried to install MicroG from NanoDroid-microG package. MicroG installs, but it needs signature spoofing support. But the system patch-script that is suppose to enable it fails because this ROM is odexed!
Then I installed Magiskv16.0. and then nandroid MicroG zip. It installed fine.
But the signature spoofing file still fails, giving the same reason that ROM is odexed.
I installed flashed xposed and installed xposed.apk from https://forum.xda-developers.com/showthread.php?t=3034811.
Installed module FakeGApps on xposed.
I modified the config for Nanodroid-microG to install google sync adapters and flashed it again.
Now I can add google account in Contacts. But it still does not sync contacts
There is something still missing, as when I tried to add account in Calendar, it asks again my gmail account. When I provide details, it complains that this account exists, but there is no options to use existing account and sync contacts and calendar
Anybody got it working?