Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
GeelyHMIWeb
Commits
8d5907a7
Commit
8d5907a7
authored
Sep 23, 2025
by
p x
Browse files
1
parent
6ba1ff6b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
.idea/deploymentTargetSelector.xml
View file @
8d5907a7
...
@@ -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>
...
...
README.md
View file @
8d5907a7
# GeelyHMIWeb
# GeelyHMIWeb
吉利自动驾驶HMI安卓后台 -
吉利自动驾驶HMI安卓后台 -
不需与webview交互
不需与webview交互
\ No newline at end of file
国汽智联的项目,你那有个登录页面
\ No newline at end of file
app/src/main/assets/dist/index.html
View file @
8d5907a7
This diff is collapsed.
Click to expand it.
app/src/main/java/com/sd/geelyhmiweb/MainActivity.kt
View file @
8d5907a7
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment