Android 如何在将appbundle上传到Google Play控制台后检测测试设备

Android 如何在将appbundle上传到Google Play控制台后检测测试设备,android,google-play-console,Android,Google Play Console,我的应用程序允许匿名用户单击调用我的API的按钮。我想筛选出应用程序爬网的测试设备。它们似乎不是Firebase测试实验室的一部分。步骤: 在Google Play控制台中启动新的应用程序发布 在“要添加的Android应用程序包和APK”部分上载应用程序包 等大约五分钟。请勿继续执行步骤2“审查和推出” 检查我的服务器日志 在多个IP上有来自android MTC20F(由dart:io报告)的呼叫,例如。 64.233.172.32 66.249.88.64 74.125.210.33

我的应用程序允许匿名用户单击调用我的API的按钮。我想筛选出应用程序爬网的测试设备。它们似乎不是Firebase测试实验室的一部分。步骤:

  • 在Google Play控制台中启动新的应用程序发布
  • 在“要添加的Android应用程序包和APK”部分上载应用程序包
  • 等大约五分钟。请勿继续执行步骤2“审查和推出”
  • 检查我的服务器日志
  • 在多个IP上有来自android MTC20F(由dart:io报告)的呼叫,例如。
    • 64.233.172.32
    • 66.249.88.64
    • 74.125.210.33
  • 该值为空

  • 如果有帮助的话,当在Google Play的测试服务器上审查/运行应用程序时,我注意到一个奇怪的副作用,那就是我无法访问Android上列出的缓存目录:

    FileSystemException: Directory listing failed, path = '/data/user/0/my.package.name/cache/random_folder/' (OS Error: Invalid argument, errno = 22)
    
    导致此错误的代码是:

    Future<List<File>> getFilesInDirectory(String directoryPath) async {
      // `directoryPath` is fetched on Android side with `context.cacheDir`
      final cacheDir = Directory(directoryPath);
    
      final files = <File>[];
      // This call succeeds, .. I still don't get why :D
      if (!cacheDir.existsSync()) return files; 
    
      final completer = Completer();
      // Tries to list all files in the folder
      cacheDir.list(followLinks: false).listen(
        (file) {
          if (file is! File) {
            return;
          }
    
          files.add(file as File);
        },
        onDone: () => completer.complete(),
        onError: (err) {
          log(err) // <---- This is where I get the error
        }
      );
      await completer.future;
      return files;
    }
    
    Future getFilesInDirectory(字符串directoryPath)异步{
    //'directoryPath'在Android端通过'context.cacheDir'获取`
    final cacheDir=目录(directoryPath);
    最终文件=[];
    //这个电话成功了,…我还是不明白为什么:D
    如果(!cacheDir.existsSync())返回文件;
    最终完成者=完成者();
    //尝试列出文件夹中的所有文件
    cacheDir.list(followLinks:false)。侦听(
    (档案){
    if(文件为!文件){
    返回;
    }
    文件。添加(文件为文件);
    },
    onDone:()=>completer.complete(),
    onError:(错误){
    日志(错误)//