GMS之AER认证

文章目录

    • AER认证需求修改

AER认证需求修改

一般来说我们会按照当前AER的需求设置feature
比如:com.google.android.feature.GMSEXPRESS_PLUS_BUILD需要去除,我们这里就注释掉
需要新增com.google.android.feature.AER_OPTIMIZED,如果是出货RU地区,还需要新增com.google.android.feature.RU
具体还是根据当前的需求来新增或者移除feature

system\vendor\partner_gms\etc\sysconfig\gmsexpress.xml (Android 13)

<?xml version="1.0" encoding="utf-8"?>
<config>
    <!--Track GMSExpress plus log-->
    <!-- <feature name="com.google.android.feature.GMSEXPRESS_PLUS_BUILD" /> -->
    <feature name="com.google.android.contacts.feature.SIM_WRITE" />
    <feature name="com.google.android.googlequicksearchbox.OEM_SMARTSPACE_WIDGET" />
    <feature name="com.google.android.feature.AER_OPTIMIZED" />
	
    <feature name="com.google.android.feature.RU" />
</config>

在刷机过后需要进入DPC模式验证
AER进入的五种方式:
1.开机向导中连接网络,将 afw#testdpc 作为账号登录Google
2.Google商店下载TEST DPC
3.专门的测试Google账号
4.QR扫码 (OOBE首页连点击6次)
5.Zero Touch

可以按需求配置在模式下应用的移除或新增
配置应用列表:
system/vendor/partner_gms/overlay/GmsConfigOverlayCommon/res/values/vendor_required_apps_managed_device.xml (Android 13)

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- A list of apps to be retained on the managed device. -->
    <string-array name="vendor_required_apps_managed_device" translatable="false">
        <item>com.android.vending</item> <!-- Google Play -->
        <item>com.google.android.gms</item> <!-- Required by Play -->
        <item>com.google.android.contacts</item> <!-- Google Contacts -->
        <item>com.google.android.apps.wellbeing</item> <!-- Digital Wellbeing -->
        <item>com.google.android.googlequicksearchbox</item> <!-- package that contains Google Launcher -->
        <item>com.android.launcher</item> <!-- Android Launcher (if it's preloaded) -->
        <item>com.google.android.dialer</item> <!-- Google dialer to enable making phone calls -->
        <item>com.google.android.apps.messaging</item> <!-- Google Messenger for SMS -->
        <item>com.google.android.setupwizard</item> <!-- Google SetupWizard to finish DO provisioning properly -->
        <item>com.google.android.documentsui</item> <!-- Files -->
        <item>com.google.android.go.documentsui</item> <!-- Files Go-->
        <item>com.google.android.apps.assistant</item> <!-- Google Assistant -->
        <item>com.google.android.apps.searchlite</item> <!-- Google Search GO -->
        <item>com.google.android.projection.gearhead</item> <!-- Android Auto -->
        <item>com.mediatek.camera</item> <!-- MTK Camera -->
        <item>com.google.android.apps.nbu.files</item> <!-- Google Files -->
    </string-array>
</resources>

配置移除应用:
system/vendor/partner_gms/overlay/GmsConfigOverlayCommon/res/values/vendor_required_apps_managed_device.xml (Android 13)

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- A list of apps to be removed from the managed device by a particular vendor. -->
    <string-array translatable="false" name="vendor_disallowed_apps_managed_device">
        <item>com.android.stk</item>  <!-- STK -->
    </string-array>
</resources>
等待和犹豫才是这个世界上最无情的杀手。

你可能感兴趣的:(GMS,android)