Commit 2d2b000c authored by liuyang's avatar liuyang

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

#BYLSERVER-1693
parent d50b473d
......@@ -281,6 +281,8 @@ class Task : IAppBaseCallback {
val host = it.substring(start)
val url = "http://$host$partUrl"
Log.i(TAG, "capture url: $url")
var add = true
// 如果筛选url不为空,这里需要进行过滤
if (!this.apkInfo.filterUrl.isEmpty()) {
......
......@@ -211,7 +211,7 @@ object AdbUtil {
val keyEvents = ArrayList<EmulateKey>()
val keys = keyPath.split(Constants.SLASH)
for (stepKey in keys) {
var delay = "1"
var delay = "0"
var key = stepKey
if (Constants.VERTICAL_BAR in stepKey) {
val params = stepKey.split(Constants.VERTICAL_BAR)
......@@ -240,6 +240,7 @@ object AdbUtil {
Log.i(TAG, "send key: $keyEvent")
val cmdKey = "input keyevent ${Constants.KEY_MAP[keyEvent.key]}"
commands.add(cmdKey)
if (keyEvent.key.toInt() > 0)
commands.add("sleep ${keyEvent.delay}")
}
......
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