RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / user-235910

Umy's questions

Martin Hope
Umy
Asked: 2020-05-11 23:10:03 +0000 UTC

在安卓上拦截流量

  • 1

我需要拦截来自移动应用程序的请求才能使用其内部 api。应用程序有聊天,我需要接收服务器定期发送给应用程序的信息。为此,我使用 Xposed + 一个模块安装了 Genymotion,以绕过 SSLPinning 和 Fiddler 作为代理(我也尝试过 Charles)。之后,我看到了来自应用程序的一些流量(长轮询请求),但我需要的事件没有显示,尽管应用程序仍然接收并显示它们。

是否有可能以某种方式完全拦截来自应用程序的所有流量,为此需要做什么?提前致谢)

android
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-10-15 00:42:38 +0000 UTC

是什么导致异常?

  • 0
E: FATAL EXCEPTION: main
   Process: *, PID: 22482
   java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@24e46ab
       at android.graphics.Canvas.throwIfCannotDraw(Canvas.java:1280)
       at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:257)
       at android.graphics.Canvas.drawBitmap(Canvas.java:1424)
       at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:528)
       at android.widget.ImageView.onDraw(ImageView.java:1316)
       at android.view.View.draw(View.java:17293)
       at android.view.View.updateDisplayListIfDirty(View.java:16275)
       at android.view.View.draw(View.java:17059)
       at android.view.ViewGroup.drawChild(ViewGroup.java:3731)
       at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3517)
       at android.view.View.updateDisplayListIfDirty(View.java:16270)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3715)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3695)
       at android.view.View.updateDisplayListIfDirty(View.java:16238)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3715)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3695)
       at android.view.View.updateDisplayListIfDirty(View.java:16238)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3715)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3695)
       at android.view.View.updateDisplayListIfDirty(View.java:16238)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3715)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3695)
       at android.view.View.updateDisplayListIfDirty(View.java:16238)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3715)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3695)
       at android.view.View.updateDisplayListIfDirty(View.java:16238)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3715)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3695)
       at android.view.View.updateDisplayListIfDirty(View.java:16238)
       at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3715)
       at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3695)
       at android.view.View.updateDisplayListIfDirty(View.java:16238)
       at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:652)
       at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:658)
       at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:766)
       at android.view.ViewRootImpl.draw(ViewRootImpl.java:2834)
       at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2642)
       at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2249)
       at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1280)
       at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6432)
       at android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)
       at android.view.Choreographer.doCallbacks(Choreographer.java:686)
       at android.view.Choreographer.doFrame(Choreographer.java:621)
       at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)
       at android.os.Handler.handleCallback(Handler.java:751)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6374)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
D: App Event: crash

应用程序崩溃,但如何理解导致它崩溃的原因和位置?我用调试器查看,但那里的一切都大致相同,我的应用程序没有单一方法 - 只有标准方法。

java
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-07-21 20:33:48 +0000 UTC

将未标记的文本注入 JSoup 标记

  • 0

假设我们有这段 html 代码:

<div><h3>Тут заголовок</h3><br>
Тут какой-то текст, который надо обернуть в p, например.<br>
<p>В этом же диве есть и другие элементы</p>
</div>

如何使用 Jsoup 在元素中包装一段没有标签的文本?

java
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-07-05 21:43:11 +0000 UTC

ElasticSearch 中的异步请求

  • 0

尝试同时运行两个弹性请求时,一个请求因版本控制错误而被拒绝

{"error":{"reason":"[operation][wtWubh3DHE2TFpNsL]: version conflict, current version [5] is different than the one provided [4]","index_uuid":"jsbbwKwJSeSCJcgUBX-FeQ","index":"operations","shard":"3","type":"version_conflict_engine_exception","root_cause":[{"reason":"[operation][wtWubh3DHE2TFpNsL]: version conflict, current version [5] is different than the one provided [4]","index_uuid":"jsbbwKwJSeSCJcgUBX-FeQ","index":"operations","shard":"3","type":"version_conflict_engine_exception"}]},"status":409}

第二个进展顺利:

{"result":"updated","_shards":{"total":2,"failed":0,"successful":1},"_index":"operations","_type":"operation","_id":"wtWubh3DHE2TFpNsL","_version":5}

尝试在请求末尾添加 ?refresh,但这也无济于事。编码:

thread {
    val json_a = JSONObject().put("script", "ctx._source.thread_in_work+=1")
    val a = Unirest.post("http://localhost:9200/operations/operation/wtWubh3DHE2TFpNsL/_update")
            .body(json_a.toString())
    println(a.asJson().body)
}
thread {
    val json_a = JSONObject().put("script", "ctx._source.thread_in_work+=1")
    val a = Unirest.post("http://localhost:9200/operations/operation/wtWubh3DHE2TFpNsL/_update")
            .body(json_a.toString())
    println(a.asJson().body)
}

我知道你可以在这里做+2,但是当一个请求到达服务器时你需要加1,同时有几个请求。因此,此代码允许您重新创建错误。

elasticsearch
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-06-10 00:50:08 +0000 UTC

ConstraintLayout 中的边距

  • 1

下午好!我正在尝试为 ConstraintLayout'e 中元素的移动设置动画。为此,我这样做:

TransitionManager.beginDelayedTransition(constraintLayout) applyConstraintSet.setMargin(R.id.bernoullis, ConstraintSet.TOP, 0) applyConstraintSet.applyTo(constraintLayout)

之后,元素就消失了。在 TransitionManager 上犯了罪。但是没有他也一样。该怎么办?

android
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-03-31 22:34:07 +0000 UTC

创建后端

  • 1

你好。

我阅读了很多关于这个主题的信息,但没有一个适合我。我是第一次这样做,所以不要发誓)

我用 java 编写了一个项目——任务是将它传输到 android 应用程序。您可以完全推动它,但创建一个该应用程序可以访问的服务器会更有趣。现在所需要做的就是向服务器发送图像和一些文本,并从中获取一些其他文本,例如 Json 格式的文本。

然而,我看到了某种带有控制器、图形等的黑暗森林。有什么简单的解决办法吗?

java
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-03-29 02:25:11 +0000 UTC

在保留分隔符的同时通过正则表达式获取子字符串

  • 1

你好。有一个正则表达式和一个包含几个匹配序列和一些字符直到下一次匹配的字符串。你需要得到这些线。图片的更多细节: 你需要得到什么

我们可以使用 split("\b((\p{L})|\d+){1,2}\p{P}+".toRegex()),但我们不会在字符串中得到我们划分的内容不适合。

请教)

java
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-03-21 12:52:37 +0000 UTC

绝对元素索引

  • 0

你好。使用Jsoup解析页面,遇到如下问题:页面上存在三个相同的元素。例如:

<span class="c21 c35">Вариант 1</span>

当我尝试这样做时:doc.allElements.indexOf(element),我只得到第一个元素的索引,不管我实际传递了哪个元素。我真的很想找到另一种方法来确定这个索引)

PS 我使用索引来获取附近的其他类。

java
  • 1 个回答
  • 10 Views
Martin Hope
Umy
Asked: 2020-02-06 21:56:32 +0000 UTC

模糊搜索字符串中的子串

  • 4

你好。有必要在 Java 中实现在字符串中搜索子字符串。那些。“出生人数与死亡人数的差额”这一行 应该在“一定时期内(例如一年)出生人数与死亡人数之间的差额称为人口自然增长”这一行中找到。

而“伊万诺夫”这一行应该在“伊万诺夫 - 这座城市最古老的居民”这一行中找到

只需要答案 - 该行中是否有类似的东西。建议一些东西,最好已经用 Java 实现了。

java
  • 1 个回答
  • 10 Views

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    我看不懂措辞

    • 1 个回答
  • Marko Smith

    请求的模块“del”不提供名为“default”的导出

    • 3 个回答
  • Marko Smith

    "!+tab" 在 HTML 的 vs 代码中不起作用

    • 5 个回答
  • Marko Smith

    我正在尝试解决“猜词”的问题。Python

    • 2 个回答
  • Marko Smith

    可以使用哪些命令将当前指针移动到指定的提交而不更改工作目录中的文件?

    • 1 个回答
  • Marko Smith

    Python解析野莓

    • 1 个回答
  • Marko Smith

    问题:“警告:检查最新版本的 pip 时出错。”

    • 2 个回答
  • Marko Smith

    帮助编写一个用值填充变量的循环。解决这个问题

    • 2 个回答
  • Marko Smith

    尽管依赖数组为空,但在渲染上调用了 2 次 useEffect

    • 2 个回答
  • Marko Smith

    数据不通过 Telegram.WebApp.sendData 发送

    • 1 个回答
  • Martin Hope
    Alexandr_TT 2020年新年大赛! 2020-12-20 18:20:21 +0000 UTC
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5