aa2893785
V2EX  ›  Android

想问下关于 services.googleapis.cn 的问题

  •  
  •   aa2893785 · May 13, 2023 · 13879 views
    This topic created in 1101 days ago, the information mentioned may be changed or developed.

    老哥们,请问下 Gapps 解析到 services.googleapis.cn 是本机 google 框架的问题吗 如果是的话,如何查看本机 google 框架所对应的地区呢

    感谢!

    6 replies    2023-05-15 17:19:21 +08:00
    a632079
        1
    a632079  
       May 13, 2023
    不是,老问题了,国行 ROM 的 API 地址被修改到了 cn 。换成非国行的 ROM ,或者三方 ROM 可以彻底解决整个问题。
    目前打开代理的情况下,cn 域名也会解析到国际版的解析服务(忘记是通过 301 ,还是直接分区域解析的了)
    ysc3839
        2
    ysc3839  
       May 14, 2023 via Android
    是 /.../etc/permissions 里面的 xml 文件控制的,文件名不确定,一般是 cn.google.services.xml ,最好是全部遍历一遍。
    路径中的 ... 意思是不止一个地方,可能是 /product /system /vendor
    在我自己的机子上试了下,上述三处都是可以免 root 权限遍历及读取的
    ysc3839
        3
    ysc3839  
       May 14, 2023 via Android   ❤️ 1
    我机子上这个文件的完整路径是 /product/etc/permissions/cn.google.services.xml
    文件内容是
    <?xml version="1.0" encoding="utf-8"?>
    <!-- This is the standard set of features for devices that support the CN GMSCore. -->
    <permissions>
    <feature name="cn.google.services" />
    <feature name="com.google.android.feature.services_updater" />
    </permissions>
    loukky
        4
    loukky  
       May 14, 2023 via Android
    国行与非国行 gcm 的区分就是跟剧楼上说的文件来区分的,有这个文件的,你下载 app 才会给你分配到国内的机房。
    aa2893785
        5
    aa2893785  
    OP
       May 15, 2023
    @a632079 很奇怪,我是国行的机子,看 log 有时候他发的是 googleapis.com 有时候是.cn
    aa2893785
        6
    aa2893785  
    OP
       May 15, 2023
    @ysc3839 one plus color os 不在这几个常规的地方。。在需要 root 才能访问的 folder orz
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5485 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 01:46 · PVG 09:46 · LAX 18:46 · JFK 21:46
    ♥ Do have faith in what you're doing.