the Easiest way to install google
step 1 go to http://opengapps.org/
step 2 choose system x86 - 7.1 - and pico than download (note if you choose another version your pi will be very slow I tested all of them and this is the only one that works )
step 3 put the download file into your SD card
step 4 boot your pi into recovery mode (when your turn on the emteria there is a power off button tap there than choose reboot in recovery)
step 5 choose install from zip and install the zip file you downloaded and reboot
done you now have a working version of google play...
no need all the crazy changes or codes