You can install GMS in this way.
Specific steps are as follows:
#--------------------------install-----------------------------
#make the device can root;
adb shell setprop persist.sys.root_access 3;
adb root
adb remount
#push the folder into /system/priv-app
#For the specific push content, please refer to the decompressed content
adb push ~/GMS/Phonesky /system/priv-app/
adb push ~/GMS/GoogleServicesFramework /system/priv-app/
adb push ~/GMS/PrebuiltGmsCoreRvc /system/priv-app/
#-----------------------------end------------------------------
#------------------------uninstall-----------------------------
#If you want to uninstall GMS, just delete the folder pushed into system/priv-app.
adb shell setprop persist.sys.root_access 3
adb root
adb remount
adb shell
cd /system/priv-app/
rm -r Phonesky/
rm -r GoogleServicesFramework/
rm -r PrebuiltGmsCoreRvc/
#-----------------------------end------------------------------
adb shell
ls /system/priv-app|grep Phonesky
ls /system/priv-app|grep GoogleServicesFramework
ls /system/priv-app|grep PrebuiltGmsCoreRvc
If the ls command outputs the content after grep, it means that your push is successful. If no information is displayed, your operation may have failed.
adb reboot
adb root
adb shell 'sqlite3 /data/data/com.google.android.gsf/databases/gservices.db \\
"select * from main where name = \\"android_id\\";"'
//Command execution result like this.Your Andoird ID is 40XXXXXXXXXXXXXXX7
android_id|40XXXXXXXXXXXXXXX7