Add google-gms service to Android11.0 system

Add google-gms service

This article mainly describes the installation of google-gms service in RK3568 Android11.

Install gms service

You can choose to download it from the https://opengapps.org/ website, or you can use the most basic service files that I have compiled myself. I will explain them later.
Insert image description here

  1. Download the resource package and unzip it. The device and computer are connected correctly and the adb service is normal. Execute the install.bat file to install the gms service software. After the installation is completed, the Play Store can be seen after the device restarts.
    Insert image description here
    The content of install.bat is as follows:
set dir=%~dp0

%dir%adb\adb wait-for-device
%dir%adb\adb root
%dir%adb\adb remount
%dir%adb\adb wait-for-device

%dir%adb\adb push %dir%priv-app\GoogleServicesFramework /system/priv-app/
%dir%adb\adb push %dir%priv-app\Phonesky /system/priv-app/
%dir%adb\adb push %dir%priv-app\PrebuiltGmsCore /system/priv-app/

%dir%adb\adb push %dir%defaultetc-common\common\etc\default-permissions /system/etc/
%dir%adb\adb push %dir%defaultetc-common\common\etc\permissions\. /system/etc/permissions/
%dir%adb\adb push %dir%defaultetc-common\common\etc\preferred-apps /system/etc/
%dir%adb\adb push %dir%defaultetc-common\common\etc\sysconfig\. /system/etc/sysconfig/

%dir%adb\adb push %dir%defaultframework-common\common\etc\permissions\. /system/etc/permissions/
%dir%adb\adb push %dir%defaultframework-common\common\framework\. /system/framework/

%dir%adb\adb wait-for-device
%dir%adb\adb reboot

Solve the problem that the play protection mechanism certification has not been obtained and the play market cannot be used.

  1. If you cannot access www.google.com directly, please install and enable a VPN proxy; open the Play Store and log in. After checking the information, the login will fail, prompting that the Play Protection Mechanism certification has not been obtained.
    Insert image description here
  2. Close all networks on the device and obtain the gfs service ID; you can obtain it in the following two ways
    a. Execute the following command to obtain it
adb root
adb shell
sqlite3 /data/*/*/*/gservices.db "select * from main where name = \"android_id\";"

b. Execute install_deviceid.bat to install the DeviceID application, open the application and view the gsf id;
Insert image description here
3. Open https://www.rapidtables.com/convert/ in the computer browser number/hex-to-decimal.html, input the obtained gsf id and convert it into decimal
Insert image description here
4. Open the Google device registration address: https://www.google.com/ android/uncertified/ Perform device authentication
Insert image description here
5. Go back to the device, Settings - Applications and notifications - View all applications, enter the application list, click More in the upper right corner, select Show system programs, slide the list Go to the Google Service Framework
Insert image description here
6. Click to enter the Google Service Framework, click the Force Stop button to stop, click Storage and Cache, and clear the cache ( Note: 10 million Do not clear the storage space, otherwise the GSF ID will change and the previous registration will be invalid)
7. Click on Google Play Store, click on Force Stop, click on Storage and Cache, Clear cache, clear storage space
8. Click to enter Google Play Services, click Force Stop, click Storage and Cache, clear cache, clear storage space
9. Restart Device, connect to the Internet, open the Play Store app, log in to the account, and use it normally (if the protection mechanism prompt box still pops up when logging in, please restart the device again)
10. This method cannot completely avoid future Obtaining Play Protection Mechanism certification issue, if prompts appear again later, enter the certification again

other

  1. If you want to install GoogleContactsSyncAdapter and GoogleExtShared in the app directory, they need to be placed in the system/app directory.
  2. Other applications in the priv-app directory can be installed by yourself.

Guess you like

Origin blog.csdn.net/yjz_0314/article/details/134205333