Commit 2d2b000c authored by liuyang's avatar liuyang

APK抓包>从频道1开始依次抓取

#BYLSERVER-1693
parent d50b473d
...@@ -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()) {
......
...@@ -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,7 +240,8 @@ object AdbUtil { ...@@ -240,7 +240,8 @@ 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)
commands.add("sleep ${keyEvent.delay}") if (keyEvent.key.toInt() > 0)
commands.add("sleep ${keyEvent.delay}")
} }
exeCmdEcho(commands, true) exeCmdEcho(commands, true)
......
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