You need to find the post in this forum to enable google2api first. Warning it may wipe your device. So have a backup.
Then there are many posts here as well on various versions of gcam that can be installed. Fyi, it's not perfect, especially on pie. But it's fun to play with
Sent from my Mi A1 using Tapatalk