Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
O
openclaw-android-node
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lisa
openclaw-android-node
Commits
dd734735
Commit
dd734735
authored
Mar 11, 2026
by
Lisa (AI Assistant)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Remove duplicate method, keep proper v3 signature handshake
parent
ba4fd938
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
60 deletions
+0
-60
NodeClient.kt
...n/java/com/nexlab/openclaw/node/data/remote/NodeClient.kt
+0
-60
No files found.
app/src/main/java/com/nexlab/openclaw/node/data/remote/NodeClient.kt
View file @
dd734735
...
@@ -333,66 +333,6 @@ class NodeClient() {
...
@@ -333,66 +333,6 @@ class NodeClient() {
})
})
}
}
// Modified connect request without device auth
private
fun
sendConnectRequestWithChallenge
(
nodeId
:
String
,
token
:
String
,
capabilities
:
NodeCapabilities
)
{
pendingRequestId
=
"connect-${System.currentTimeMillis()}"
// Simplified connect request without device auth - just use the global token
val
connectParams
=
JSONObject
().
apply
{
put
(
"minProtocol"
,
3
)
put
(
"maxProtocol"
,
3
)
put
(
"client"
,
JSONObject
().
apply
{
put
(
"id"
,
"cli"
)
// Use "cli" client ID - only one that works with gateway
put
(
"displayName"
,
nodeId
.
ifBlank
{
"Android Node"
})
put
(
"version"
,
"1.0.0"
)
put
(
"platform"
,
"android"
)
put
(
"mode"
,
"node"
)
})
put
(
"role"
,
"node"
)
put
(
"scopes"
,
JSONArray
())
put
(
"caps"
,
JSONArray
().
apply
{
if
(
capabilities
.
screenshot
)
put
(
"screenshot"
)
if
(
capabilities
.
touch
)
put
(
"touch"
)
if
(
capabilities
.
shell
)
put
(
"shell"
)
if
(
capabilities
.
notifications
)
put
(
"notifications"
)
if
(
capabilities
.
appControl
)
put
(
"appControl"
)
if
(
capabilities
.
sensors
)
put
(
"sensors"
)
})
put
(
"commands"
,
JSONArray
().
apply
{
put
(
"screenshot"
)
put
(
"touch.*"
)
put
(
"shell"
)
put
(
"notifications"
)
put
(
"app.launch"
)
put
(
"device.info"
)
put
(
"apps.list"
)
})
put
(
"permissions"
,
JSONObject
())
put
(
"auth"
,
JSONObject
().
apply
{
put
(
"token"
,
token
)
})
put
(
"device"
,
JSONObject
().
apply
{
put
(
"id"
,
"android-node"
)
// Use fixed device ID
put
(
"publicKey"
,
""
)
// No public key
put
(
"signature"
,
""
)
// No signature
})
put
(
"locale"
,
"en-US"
)
put
(
"userAgent"
,
"openclaw-android/1.0.0"
)
}
val
connectRequest
=
JSONObject
().
apply
{
put
(
"type"
,
"req"
)
put
(
"id"
,
pendingRequestId
)
put
(
"method"
,
"connect"
)
put
(
"params"
,
connectParams
)
}
Log
.
d
(
TAG
,
"Sending connect request without device auth"
)
sendJson
(
connectRequest
)
// Don't send pairing request here - wait for connect response first
}
private
fun
sendConnectRequest
(
nodeId
:
String
,
token
:
String
,
capabilities
:
NodeCapabilities
)
{
private
fun
sendConnectRequest
(
nodeId
:
String
,
token
:
String
,
capabilities
:
NodeCapabilities
)
{
pendingRequestId
=
"connect-${System.currentTimeMillis()}"
pendingRequestId
=
"connect-${System.currentTimeMillis()}"
...
...
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