Commit 8d5907a7 authored by p x's avatar p x
Browse files

1

parent 6ba1ff6b
...@@ -4,6 +4,14 @@ ...@@ -4,6 +4,14 @@
<selectionStates> <selectionStates>
<SelectionState runConfigName="app"> <SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" /> <option name="selectionMode" value="DROPDOWN" />
<DropdownSelection timestamp="2025-06-11T06:55:43.863682Z">
<Target type="DEFAULT_BOOT">
<handle>
<DeviceId pluginId="PhysicalDevice" identifier="serial=1198d45e9f92b317" />
</handle>
</Target>
</DropdownSelection>
<DialogSelection />
</SelectionState> </SelectionState>
</selectionStates> </selectionStates>
</component> </component>
......
...@@ -2,3 +2,6 @@ ...@@ -2,3 +2,6 @@
吉利自动驾驶HMI安卓后台 - 吉利自动驾驶HMI安卓后台 -
不需与webview交互 不需与webview交互
国汽智联的项目,你那有个登录页面
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -33,7 +33,7 @@ class MainActivity : AppCompatActivity() { ...@@ -33,7 +33,7 @@ class MainActivity : AppCompatActivity() {
// DWebView.setWebContentsDebuggingEnabled(true) // DWebView.setWebContentsDebuggingEnabled(true)
binding.dwebview.settings.run { binding.dwebview.settings.run {
userAgentString="Mozilla/5.0 (Linux; Android 10; Mobile) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Mobile Safari/537.36" // userAgentString="Mozilla/5.0 (Linux; Android 10; Mobile) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.72 Mobile Safari/537.36"
javaScriptEnabled = true javaScriptEnabled = true
javaScriptCanOpenWindowsAutomatically = true javaScriptCanOpenWindowsAutomatically = true
...@@ -48,7 +48,7 @@ class MainActivity : AppCompatActivity() { ...@@ -48,7 +48,7 @@ class MainActivity : AppCompatActivity() {
setAllowUniversalAccessFromFileURLs(true) setAllowUniversalAccessFromFileURLs(true)
} }
val url = "file:///android_asset/dist/index.html" val url = "file:///android_asset/dist/index.html"
// val url = "www.baidu.com" // val url = "http://192.168.60.134:8081/#/index.html"
// val url = "http://82.156.182.48:8088/3dmap/" // val url = "http://82.156.182.48:8088/3dmap/"
// val url = "https://10.149.230.104:19443/shudao-navigation3d-app/index" // val url = "https://10.149.230.104:19443/shudao-navigation3d-app/index"
// val url = "https://172.29.128.38:13443/shudao-navigation3d-app/index" // val url = "https://172.29.128.38:13443/shudao-navigation3d-app/index"
...@@ -59,8 +59,8 @@ class MainActivity : AppCompatActivity() { ...@@ -59,8 +59,8 @@ class MainActivity : AppCompatActivity() {
view: WebView?, view: WebView?,
request: WebResourceRequest request: WebResourceRequest
): WebResourceResponse? { ): WebResourceResponse? {
var headers=request.requestHeaders // var headers=request.requestHeaders
headers.put("Referer", "https://www.tianditu.gov.cn/") // headers.put("Referer", "https://www.tianditu.gov.cn/")
// headers.put("sec-ch-ua-platform", "") // headers.put("sec-ch-ua-platform", "")
// headers.put("","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0") // headers.put("","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:139.0) Gecko/20100101 Firefox/139.0")
return super.shouldInterceptRequest(view, request) return super.shouldInterceptRequest(view, request)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment