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

android13以上的获取到的数据都是0,请问有什么解决方法吗> > > dump SurfaceFlinger 方法我也用过,但是兼顾性没有solopi那么好,有的数据显示solopi能抓到我抓不到。所以很想知道他的现实。 #220

Open
wangyunling32 opened this issue Aug 21, 2024 · 0 comments

Comments

@wangyunling32
Copy link

          > > > dump SurfaceFlinger 方法我也用过,但是兼顾性没有solopi那么好,有的数据显示solopi能抓到我抓不到。所以很想知道他的现实。

反编译了提供的apk,位于com.alipay.hulu.shared.display.items下存在一个GameFpsTools,主要通过dumpsys SurfaceFlinger获取,自己想办法读吧

需要依赖dumpsys SurfaceFlinger输出的Display 0 HWC layers:下面这段信息,判断当前面activity上有多少个focus的SurfaceView,在用--latency就能拿到对应几个surface view的数据了企业微信20221223-210427@2x

我已经解决了,solopi找到app surface方式是这样的: dumpsys SurfaceFlinger --list依旧是用这个命令获得所有surface

  1. 获得所有的表面,最后一个表面就是顶层表面
  2. 获得所有带app包名的surface,最后一个surface就是app surface
  3. 如果app surface不是为空那么就用这个surface,否则用顶层surface,都为空就等找不到了。

solopi判定比粗暴……你的会比较准确。
哥们,能给个交流方式不,有些问题想请教下

Originally posted by @Nightwish555 in #190 (comment)

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

1 participant