Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch后采集几秒钟数据就断开了 #14

Closed
jefferson0228 opened this issue Jun 7, 2021 · 6 comments
Closed

launch后采集几秒钟数据就断开了 #14

jefferson0228 opened this issue Jun 7, 2021 · 6 comments

Comments

@jefferson0228
Copy link

每次launch成功后几秒钟就断连接了,日志如下:
Starting application ...
Application Started!
Connecting to application server ...
Connection lost ...
Kill your app or re-plug USB cable and try again.
Error occurred when capturing screenshot ...
下面是我的配置
image

@sindney
Copy link
Collaborator

sindney commented Jun 7, 2021

  1. 确认你是armv7架构
  2. 黑名单模式需要排除所有gcc编译的so库,否则会有crash问题(除非你很了解原理,否则不建议直接使用黑名单模式,黑名单模式是给no_stack模式用的)
  3. 需要看手机上的log,adb logcat -s Loli
  4. 断开就是手机上的server没有拉起,仍然会是配置错误的问题
  5. 建议从hook单个库开始使用

@jefferson0228
Copy link
Author

多谢,确定是armv7,我再试试白名单

@jefferson0228
Copy link
Author

jefferson0228 commented Jun 7, 2021

这次用白名单依然不行,log如下
C:\Users>adb logcat -s Loli
--------- beginning of system
--------- beginning of main
06-07 17:50:52.180 17048 17048 I Loli : JNI_OnLoad
06-07 17:50:52.180 17048 17048 I Loli : mode: 1, build: default, minRecSize: 1024, blacklist: 0, hookLibs: libgnustl_shared,
06-07 17:50:52.180 17048 17048 I Loli : start.bind -1
06-07 17:50:52.180 17048 17048 I Loli : loli start status -1
06-07 17:50:52.189 17048 17159 I Loli : libgnustl_shared (/data/app/com.gala.video-1/lib/arm/libgnustl_shared.so) is loaded
06-07 17:50:52.201 17048 17159 I Loli : /data/app/com.gala.video-1/lib/arm/libgnustl_shared.so loaded in Android at 0x90689000
06-07 17:50:52.217 17048 17159 I Loli : All desired libraries are loaded.
配置如下:
image

只有几秒钟的数据
image

@sindney
Copy link
Collaborator

sindney commented Jun 7, 2021

06-07 17:50:52.180 17048 17048 I Loli : start.bind -1
06-07 17:50:52.180 17048 17048 I Loli : loli start status -1
socket没有拉起,你的app没法open socket -1
是不是没开internet权限

@sindney
Copy link
Collaborator

sindney commented Jun 7, 2021

ps 你的app设置的是用llvm/clang编译的
但是你去hook一个gcc的libgnu_stl库,你用clang去hook gcc 我刚说了 会崩的,libunwind相关 abi不兼容
libgnu_stl也应该是ndkr20不支持的库,最好通过maps或者解压apk看看你真正能hook的库

@jefferson0228
Copy link
Author

好的,我再试试看,谢了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants