ab11
ab11

Reputation: 20100

Android: How to obtain data/anr/traces.txt from Samsung Galaxy Tab?

My application gives an anr while debugging on my Samsung Galaxy Tab. The device is viewable in DDMS in Eclipse, and I can browse the sdcard with the DDMS file explorer. But I cannot browse into the data directory (when I click the drop down arrow next to this directory, it appears the directory is open). Any tips how I can obtain the file?

Upvotes: 25

Views: 23903

Answers (4)

kangear
kangear

Reputation: 2613

for Android Pie+

adb bugreport ./bugreport.zip

and you will get then in zip file

bugreport/FS/data/anr/*
bugreport/FS/data/tombstones/*

Upvotes: 37

nomi13ok
nomi13ok

Reputation: 1

Try this command. it is hassle free. adb shell "cat /data/anr/traces.txt" | less

Upvotes: 0

ubuntudroid
ubuntudroid

Reputation: 4009

On some devices the traces file is called traces.txt.bugreport for whatever reason. See the other answers for pulling the file to your device.

Upvotes: 1

Francisco Jordano
Francisco Jordano

Reputation: 885

You can fetch the file using the following command:

adb pull /data/anr/traces.txt

Hope this helps, Francisco.

Upvotes: 42

Related Questions