Can I safely block Dalvik browser agent requests?

后端 未结 2 1210
既然无缘
既然无缘 2021-02-08 15:06

I\'ve noticed that when users on Android-OS devices visit my site, there\'s constantly two requests happening on each page. The first is the normal browser, and the second is fr

相关标签:
2条回答
  • 2021-02-08 16:03

    This happens whenever a browser/WebView cannot render a particular server response (maybe it's a PDF, or a streaming server, or whatever) and then triggers an intent to the operating system to open another application. The VM (Dalvik) is what handles this routing, and in the process, may download the file to the device so that the other application can access it (normally, applications cannot access one another's files, but the other application needs the file to render it).

    Crucially, it downloads the file before launching the intent, and the file ends up downloaded twice: once by the browser to figure out it doesn't know how to handle it, and once by Dalvik so it can pass a file:// URL to an application you might or might not launch.

    0 讨论(0)
  • 2021-02-08 16:05

    This is the Linux shell for Samsung phones. My OS is listed as "Linux 3.4.0-7500527 (Dalvik 2.1.0)" and it's a Samsung Galaxy S5. Could you set up a duplicate of your site (even minimal) with the gets receiving a 501, perhaps? With that, it should be easy to find out.

    0 讨论(0)
提交回复
热议问题