Mike
Mike

Reputation: 559

How to use Leak Canary on Android TV

I have an Android TV app which is pre-Lollipop which I need to check for leaks. I have added Leak Canary to the application and am able to run the app and see the leak canary logo briefly when the application crashes so I know it has been pushed to the device. On the Leak Canary site I do not see any documentation on how to pull the dump files. Does anyone know where these files are stored on the device and how I can download and inspect the generated leak detection files?

Upvotes: 0

Views: 1238

Answers (1)

how8570
how8570

Reputation: 23

2024/5/8 update:

run this via your adb

adb shell am start -n "<Replace com.your.package.name>/leakcanary.internal.activity.LeakActivity"

here's the ref


note:

it has a bug on early version that toast getview() will cause crash.

2.9.1 work fine.

Upvotes: 1

Related Questions