#for use with custom ROMs such as LineageOS
#enable adb root in phones settings
adb root
#get key to submit
adb shell 'sqlite3 /data/*/*/*/gservices.db "select * from main where name = \"android_id\";"'
#copy it to clipboard
adb shell 'sqlite3 /data/*/*/*/gservices.db "select * from main where name = \"android_id\";"'|cut -d\| -f2|xclip
#get certification for Google Play Store
xdg-open https://www.google.com/android/uncertified/
#clear google services cache
adb shell pm clear com.google.android.gms
#This could take up to 12 hours to activate