adb命令查看報名和查看手機解析度

來源:互聯網
上載者:User

標籤:contain   fas   命令   ase   應用   start   frame   mha   shel   

開啟所要查看的應用程式套件名:

$ adb shell dumpsys activity top | head -n 10TASK com.ss.android.article.news id=5  ACTIVITY com.ss.android.article.news/com.ss.android.article.base.activity.DetailActivity 4407b468 pid=2714    Local FragmentActivity 42df3028 State:      mCreated=truemResumed=true mStopped=false mReallyStopped=false      mLoadersStarted=true    FragmentManager misc state:      [email protected]df3028      [email protected]      mCurState=5 mStateSaved=false mDestroyed=false    View Hierarchy:
這裡拿今日頭條做範例能夠看到它的包是com.ss.android.article.news,就無需反編譯去看manifast.xml來找到其相應的包名了。


查看解析度:

$adb shell dumpsys window | grep "ShownFrame" | head -n 1mHasSurface=true mShowFrame=[0.0,0.0] [720.0,1280.0]

能夠看到這裡顯示的解析度為720x1280,這裡也能夠通過程式來擷取。

adb命令查看報名和查看手機解析度

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.