Code Monkey home page Code Monkey logo

Comments (1)

mzlogin avatar mzlogin commented on June 1, 2024

非常感谢!

你补充的查找当前 Activity 的方法因为还需要明确指定当前运行程序的包名,实际操作起来会比较复杂,实用性不强,使用原文中提供的命令已经足够简单,如果是因为 grep 命令在有的 Windows 机器上没有,那可以使用 findstr 命令来代替。

其实两种方法原理是一样的,我理解 dumpsys 命令实际不带参数的话会输出完整的 dump 信息,然后在它后面指定参数是表示想查看哪一类信息,只是过滤规则不一样,两种方法里 mFocusedActivity 的相关输出都是同一行,一样的内容。

不过 dumpsys activity package <packagename> 这种写法可以用于查看某一特定应用的相关信息,可以用作其它用途。

新增的获取 ip 地址的命令挺实用的,赞!

我稍后会将相关内容整理补充进文档,再次感谢!

from awesome-adb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.