To install Pokemon Go from Google Play, you phone needs to have 2GB RAM. Motorola Moto E2 only has 1GB RAM, and 4GB usable space in its flash memory. Here are the modification I did to enable my Moto E2 to run Pokemon Go.
There is no /etc/rc.local
equivalent on Android, I personally use SManager to manually run the script at boot. You can of course create your own init file.