Giter Site home page Giter Site logo

frida-view-dump's Introduction

frida-view-dump

Dump view hierarchy for current activity

Description

This script is ported from this code and optimized to automatically get the current activity

Example

Connect to frontmost application and dump current activity

frida -UFl view_dump.js

Output:

└── ContentFrameLayout id=16908290 / content
    └── FrameLayout id=2131362658 / mainContentRoot
        ├── ComposeView id=2131363196 / ynV
        │   ├── AndroidComposeView id=-1
        │   │   ├── AndroidViewsHandler id=-1
        ├── ComposeView id=2131362990 / PVo
        │   ├── AndroidComposeView id=-1
        ├── ComposeView id=2131362006 / bottomBarCompose
        │   ├── AndroidComposeView id=-1
        │   │   ├── AndroidViewsHandler id=-1
        ├── View id=2131362007 / bottomBarShadow
        └── FrameLayout id=2131362660 / mainTabContainer
            ├── FragmentContainerView id=2131362478 / iV2
            │   ├── FrameLayout id=-1
            │   │   ├── LinearLayout id=-1
            │   │   │   ├── OfflineToastView id=2131362811 / Va1
            │   │   │   │   ├── MaterialCardView id=2131363043 / root
            │   │   │   │   │   ├── LinearLayout id=2131362646 / j8V
            │   │   │   │   │   │   ├── AppCompatImageView id=2131362541 / icon
            │   │   │   │   │   │   ├── MaterialTextView id=2131362720 / message
            │   │   │   ├── ComposeView id=2131362170 / AV9
            │   │   │   │   ├── AndroidComposeView id=-1
            │   │   │   │   │   ├── AndroidViewsHandler id=-1
            │   │   │   ├── WBFloatingActionButton id=2131362044 / buttonFloatingScrollUp
            │   │   ├── SimpleStatusView id=2131362659 / mainPageStatusView
            │   │   │   ├── ProgressBar id=2131362969 / PVW
            │   │   │   ├── ConstraintLayout id=2131362355 / VrS
            │   │   │   │   ├── MaterialButton id=2131362353 / Vr6
            │   │   │   │   ├── MaterialButton id=2131362358 / rVc
            │   │   │   │   ├── MaterialTextView id=2131362356 / Vrp
            │   │   │   │   ├── MaterialTextView id=2131362359 / rrV
            │   │   │   │   ├── AppCompatImageView id=2131362357 / NVr
            │   │   ├── SwipeRefreshLayoutFix id=2131363274 / swipeRefresh
            │   │   │   ├── FrameLayout id=-1
            │   │   │   │   ├── ComposeView id=2131362171 / composeToolbar
            │   │   │   │   │   ├── AndroidComposeView id=-1
            │   │   │   │   │   │   ├── AndroidViewsHandler id=-1
            │   │   │   │   ├── EpoxyRecyclerView id=2131362191 / contentRecycler
            │   │   │   │   │   ├── EpoxyProductItem id=-1
            │   │   │   │   │   │   ├── VideoSnippetFrameLayout id=2131362099 / V5A
            │   │   │   │   │   │   │   ├── ViewStub id=2131363171 / shimmerView
            │   │   │   │   │   │   │   ├── FrameLayout id=2131362925 / productCardView
            │   │   │   │   │   │   │   │   ├── ConstraintLayout id=2131361909 / VOR
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362513 / FbV
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362508 / bV5
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362512 / Vmb
            │   │   │   │   │   │   │   │   │   ├── MaterialButton id=2131362062 / buttonShow
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362476 / i8V
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363405 / BWV
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363121 / vVx
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362449 / iV5
            │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   ├── CardView id=2131362556 / kVb
            │   │   │   │   │   │   │   │   ├── ConstraintLayout id=2131361910 / dRV
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362513 / FbV
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362508 / bV5
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362512 / Vmb
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362427 / V0g
            │   │   │   │   │   │   │   │   │   ├── MaterialButton id=2131362062 / buttonShow
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362476 / i8V
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363405 / BWV
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363121 / vVx
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362449 / iV5
            │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   ├── CardView id=2131362556 / kVb
            │   │   │   │   │   │   │   │   ├── ConstraintLayout id=2131362603 / itemLayout
            │   │   │   │   │   │   │   │   │   ├── Group id=2131362794 / YaV
            │   │   │   │   │   │   │   │   │   ├── Group id=2131362814 / Via
            │   │   │   │   │   │   │   │   │   ├── AddToCartButton id=2131362067 / V1n
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363189 / sizesQuantityTv
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362206 / counterTv
            │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362892 / plusIcon
            │   │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362730 / minusIcon
            │   │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362265 / cwV
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362261 / deliveryTv
            │   │   │   │   │   │   │   │   │   │   ├── View id=2131361961 / background
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131363142 / VzX
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363143 / BVX
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363370 / DVt
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131362255 / cuV
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362788 / nearestDeliveryDate
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362542 / bVK
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363362 / textProductCount
            │   │   │   │   │   │   │   │   │   ├── MaterialButton id=2131362065 / buttonToCart
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131362795 / maV
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362424 / feedbackCount
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362995 / ratingDivider
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362999 / ratingValue
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362538 / icStar
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131362815 / PVa
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362424 / feedbackCount
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362995 / ratingDivider
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362999 / ratingValue
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362538 / icStar
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363363 / textProductName
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363361 / textProductBrand
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363530 / OVQ
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362292 / discountLabel
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363359 / textPreviousPrice
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363320 / textCurrentPrice
            │   │   │   │   │   │   │   │   │   ├── ScrollingPagerIndicator id=2131362560 / imageItemIndicator
            │   │   │   │   │   │   │   │   │   ├── MaterialCardView id=2131362577 / imagesPagerCard
            │   │   │   │   │   │   │   │   │   │   ├── LabelsView id=2131362622 / Vv8
            │   │   │   │   │   │   │   │   │   │   │   ├── TextView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362069 / buttonToFavoriteAnimate
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362068 / buttonToFavorite
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362043 / buttonFindSimilar
            │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=-1
            │   │   │   │   │   │   │   │   │   │   ├── ViewPager2 id=2131362576 / imagesPager
            │   │   │   │   │   │   │   │   │   │   │   ├── RecyclerViewImpl id=3
            │   │   │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362565 / bV9
            │   │   │   │   │   │   │   │   │   │   │   │   │   ├── WbShimmerFrameLayout id=2131362963 / progressShimmer
            │   │   │   │   │   │   │   │   │   │   │   │   │   │   ├── View id=-1
            │   │   │   │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362552 / image
            │   │   │   │   │   ├── EpoxyProductItem id=-1
            │   │   │   │   │   │   ├── VideoSnippetFrameLayout id=2131362099 / V5A
            │   │   │   │   │   │   │   ├── ViewStub id=2131363171 / shimmerView
            │   │   │   │   │   │   │   ├── FrameLayout id=2131362925 / productCardView
            │   │   │   │   │   │   │   │   ├── ConstraintLayout id=2131361909 / VOR
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362513 / FbV
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362508 / bV5
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362512 / Vmb
            │   │   │   │   │   │   │   │   │   ├── MaterialButton id=2131362062 / buttonShow
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362476 / i8V
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363405 / BWV
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363121 / vVx
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362449 / iV5
            │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   ├── CardView id=2131362556 / kVb
            │   │   │   │   │   │   │   │   ├── ConstraintLayout id=2131361910 / dRV
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362513 / FbV
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362508 / bV5
            │   │   │   │   │   │   │   │   │   ├── Guideline id=2131362512 / Vmb
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362427 / V0g
            │   │   │   │   │   │   │   │   │   ├── MaterialButton id=2131362062 / buttonShow
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362476 / i8V
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363405 / BWV
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131363121 / vVx
            │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362449 / iV5
            │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   ├── CardView id=2131362556 / kVb
            │   │   │   │   │   │   │   │   ├── ConstraintLayout id=2131362603 / itemLayout
            │   │   │   │   │   │   │   │   │   ├── Group id=2131362794 / YaV
            │   │   │   │   │   │   │   │   │   ├── Group id=2131362814 / Via
            │   │   │   │   │   │   │   │   │   ├── AddToCartButton id=2131362067 / V1n
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363189 / sizesQuantityTv
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362206 / counterTv
            │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362892 / plusIcon
            │   │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362730 / minusIcon
            │   │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362265 / cwV
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362261 / deliveryTv
            │   │   │   │   │   │   │   │   │   │   ├── View id=2131361961 / background
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131363142 / VzX
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363143 / BVX
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363370 / DVt
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131362255 / cuV
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362788 / nearestDeliveryDate
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362542 / bVK
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363362 / textProductCount
            │   │   │   │   │   │   │   │   │   ├── MaterialButton id=2131362065 / buttonToCart
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131362795 / maV
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362424 / feedbackCount
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362995 / ratingDivider
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362999 / ratingValue
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362538 / icStar
            │   │   │   │   │   │   │   │   │   ├── LinearLayout id=2131362815 / PVa
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362424 / feedbackCount
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362995 / ratingDivider
            │   │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362999 / ratingValue
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362538 / icStar
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363363 / textProductName
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363361 / textProductBrand
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363530 / OVQ
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131362292 / discountLabel
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363359 / textPreviousPrice
            │   │   │   │   │   │   │   │   │   ├── MaterialTextView id=2131363320 / textCurrentPrice
            │   │   │   │   │   │   │   │   │   ├── ScrollingPagerIndicator id=2131362560 / imageItemIndicator
            │   │   │   │   │   │   │   │   │   ├── MaterialCardView id=2131362577 / imagesPagerCard
            │   │   │   │   │   │   │   │   │   │   ├── LabelsView id=2131362622 / Vv8
            │   │   │   │   │   │   │   │   │   │   │   ├── TextView id=-1
            │   │   │   │   │   │   │   │   │   │   │   ├── TextView id=-1
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362069 / buttonToFavoriteAnimate
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362068 / buttonToFavorite
            │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362043 / buttonFindSimilar
            │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=-1
            │   │   │   │   │   │   │   │   │   │   ├── ViewPager2 id=2131362576 / imagesPager
            │   │   │   │   │   │   │   │   │   │   │   ├── RecyclerViewImpl id=2
            │   │   │   │   │   │   │   │   │   │   │   │   ├── FrameLayout id=2131362565 / bV9
            │   │   │   │   │   │   │   │   │   │   │   │   │   ├── WbShimmerFrameLayout id=2131362963 / progressShimmer
            │   │   │   │   │   │   │   │   │   │   │   │   │   │   ├── View id=-1
            │   │   │   │   │   │   │   │   │   │   │   │   │   ├── AppCompatImageView id=2131362552 / image
            │   │   │   │   │   ├── MainPageTabsView id=-1
            │   │   │   │   │   │   ├── HorizontalScrollView id=2131362123 / NAV
            │   │   │   │   │   │   │   ├── ChipGroup id=2131362122 / VqA
            │   │   │   │   │   │   │   │   ├── Chip id=1
            │   │   │   │   │   ├── MainPageEmptyProductItem id=-1
            │   │   │   │   │   │   ├── FrameLayout id=2131362099 / V5A
            │   │   │   ├── CircleImageView id=-1
            ├── FragmentContainerView id=2131362478 / iV2
            │   ├── ComposeView id=-1
            │   │   ├── AndroidComposeView id=-1
            ├── FragmentContainerView id=2131362478 / iV2
            │   ├── ComposeView id=-1
            │   │   ├── AndroidComposeView id=-1
            └── FragmentContainerView id=2131362478 / iV2
                └── ComposeView id=-1
                    └── AndroidComposeView id=-1

frida-view-dump's People

Contributors

kiber-io avatar

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.