In PokémonGo both CalcyIV and Pokegenie are using an automation to recognize the Pokémon.
They Scan the screen manually (like doing a Screenshot) which seems like a stupid workaround, but it works quite Well. So you do not have to get Access to the memory of pokemmo at all.
Darkmode or batterysaving ist Interfering with the solution tho but Not a big Problem For me and many Others who are using the App.