Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
echo-adr-Deprecated
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
echo
echo-adr-Deprecated
Commits
9c7db5a6
Commit
9c7db5a6
authored
Jul 23, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装配远程命令模块
parent
4988b454
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
HttpProxyService.java
app/src/main/java/com/virjar/echo/adr/HttpProxyService.java
+10
-3
No files found.
app/src/main/java/com/virjar/echo/adr/HttpProxyService.java
View file @
9c7db5a6
...
@@ -10,12 +10,14 @@ import android.graphics.BitmapFactory;
...
@@ -10,12 +10,14 @@ import android.graphics.BitmapFactory;
import
android.graphics.Color
;
import
android.graphics.Color
;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.IBinder
;
import
android.os.IBinder
;
import
android.text.TextUtils
;
import
androidx.annotation.Nullable
;
import
androidx.annotation.Nullable
;
import
com.virjar.echo.adr.repo.EchoConfig
;
import
com.virjar.echo.adr.repo.EchoConfig
;
import
com.virjar.echo.adr.ui.MainActivity
;
import
com.virjar.echo.adr.ui.MainActivity
;
import
com.virjar.echo.nat.client.EchoClient
;
import
com.virjar.echo.nat.client.EchoClient
;
import
com.virjar.echo.nat.cmd.ShellCmdHandler
;
import
com.virjar.echo.nat.log.EchoLogger
;
import
com.virjar.echo.nat.log.EchoLogger
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.concurrent.atomic.AtomicBoolean
;
...
@@ -87,9 +89,14 @@ public class HttpProxyService extends Service {
...
@@ -87,9 +89,14 @@ public class HttpProxyService extends Service {
EchoLogger
.
getLogger
().
info
(
"start EchoProxy front service"
);
EchoLogger
.
getLogger
().
info
(
"start EchoProxy front service"
);
echoClient
=
new
EchoClient
(
echoClient
=
new
EchoClient
(
EchoConfig
.
getEchoServer
(),
EchoConfig
.
getEchoServer
(),
EchoConfig
.
getEchoServerPort
(),
EchoConfig
.
getEchoServerPort
(),
EchoConfig
.
getClientId
());
EchoConfig
.
getClientId
())
.
registerCmdHandler
(
new
ShellCmdHandler
());
String
username
=
EchoConfig
.
getUsername
();
if
(!
TextUtils
.
isEmpty
(
username
))
{
echoClient
.
setAdminAccount
(
username
);
}
new
Thread
()
{
new
Thread
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
...
...
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