Code Monkey home page Code Monkey logo

anr-app's Introduction

ANR-APP

此工具用作在Android中主动触发ANR异常。

1、编译方法

在IDEA中使用Gradle进行编译

  • Gradle编译APK

IDEA触发编译APK文件,编译时build.gradle编译文件中版本配置为compileSdk 34,要求大于等于34版本。

image-20231221163100185

编译完成后会在apk/debug/路径下生成apk文件:

image-20231221163127589

  • 验证APK

在root权限下adb install -r app.apk安装进Android设备,打开应用,3-7s内会触发ANR:

image-20231221163345394

image-20231221163420611

注: 在非root权限下安装,不会生效。

2、APK应用路径

ANR-APP\app\build\outputs\apk\debug

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.