Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BYLAppRobot
Project
Project
Details
Activity
Releases
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
liuyang
BYLAppRobot
Commits
2d2b000c
Commit
2d2b000c
authored
Nov 05, 2018
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
APK抓包>从频道1开始依次抓取
#BYLSERVER-1693
parent
d50b473d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Task.kt
app/src/main/java/com/duolebo/blyrobot/data/Task.kt
+2
-0
AdbUtil.kt
app/src/main/java/com/duolebo/blyrobot/util/AdbUtil.kt
+3
-2
No files found.
app/src/main/java/com/duolebo/blyrobot/data/Task.kt
View file @
2d2b000c
...
@@ -281,6 +281,8 @@ class Task : IAppBaseCallback {
...
@@ -281,6 +281,8 @@ class Task : IAppBaseCallback {
val
host
=
it
.
substring
(
start
)
val
host
=
it
.
substring
(
start
)
val
url
=
"http://$host$partUrl"
val
url
=
"http://$host$partUrl"
Log
.
i
(
TAG
,
"capture url: $url"
)
var
add
=
true
var
add
=
true
// 如果筛选url不为空,这里需要进行过滤
// 如果筛选url不为空,这里需要进行过滤
if
(!
this
.
apkInfo
.
filterUrl
.
isEmpty
())
{
if
(!
this
.
apkInfo
.
filterUrl
.
isEmpty
())
{
...
...
app/src/main/java/com/duolebo/blyrobot/util/AdbUtil.kt
View file @
2d2b000c
...
@@ -211,7 +211,7 @@ object AdbUtil {
...
@@ -211,7 +211,7 @@ object AdbUtil {
val
keyEvents
=
ArrayList
<
EmulateKey
>()
val
keyEvents
=
ArrayList
<
EmulateKey
>()
val
keys
=
keyPath
.
split
(
Constants
.
SLASH
)
val
keys
=
keyPath
.
split
(
Constants
.
SLASH
)
for
(
stepKey
in
keys
)
{
for
(
stepKey
in
keys
)
{
var
delay
=
"
1
"
var
delay
=
"
0
"
var
key
=
stepKey
var
key
=
stepKey
if
(
Constants
.
VERTICAL_BAR
in
stepKey
)
{
if
(
Constants
.
VERTICAL_BAR
in
stepKey
)
{
val
params
=
stepKey
.
split
(
Constants
.
VERTICAL_BAR
)
val
params
=
stepKey
.
split
(
Constants
.
VERTICAL_BAR
)
...
@@ -240,6 +240,7 @@ object AdbUtil {
...
@@ -240,6 +240,7 @@ object AdbUtil {
Log
.
i
(
TAG
,
"send key: $keyEvent"
)
Log
.
i
(
TAG
,
"send key: $keyEvent"
)
val
cmdKey
=
"input keyevent ${Constants.KEY_MAP[keyEvent.key]}"
val
cmdKey
=
"input keyevent ${Constants.KEY_MAP[keyEvent.key]}"
commands
.
add
(
cmdKey
)
commands
.
add
(
cmdKey
)
if
(
keyEvent
.
key
.
toInt
()
>
0
)
commands
.
add
(
"sleep ${keyEvent.delay}"
)
commands
.
add
(
"sleep ${keyEvent.delay}"
)
}
}
...
...
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