Skip to content

Develop an app to trigger ANR in the Android system.

License

Notifications You must be signed in to change notification settings

minixiaoxin/ANR-APP

Repository files navigation

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

About

Develop an app to trigger ANR in the Android system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages