V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ddwrt
V2EX  ›  Android

解压一个 apk 以后,怎么找到 app 某个界面和 res/layout 下相对应的 xml 文件?

  •  
  •   ddwrt · Dec 4, 2019 · 12810 views
    This topic created in 2342 days ago, the information mentioned may be changed or developed.

    如题。我想去掉某些界面上的广告,但是不知道如何找到相应的 xml 文件。初步想法是 height 和 width 改成 0.0dip。

    或者有更好的办法吗?

    谢谢。

    1 replies    2019-12-09 17:30:35 +08:00
    m30102
        1
    m30102  
       Dec 9, 2019   ❤️ 1
    用 uiautomatorviewer 找到 view 信息,比如 view 的 id 或者根据文字查找等,然后搜索 xml, 属性改为 gone 或者 invisible
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2132 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:45 · PVG 08:45 · LAX 17:45 · JFK 20:45
    ♥ Do have faith in what you're doing.