Search code examples
androidadblogcat

Retrieve adb logcat files from a client's device


I'm making an app for a client, and they are experiencing bugs that no one else can reproduce. They are not close to us, so I can't physically go to them and hook their device up to my laptop.

Is there a way that they can get hold of their logcat files without having to install adb on a machine first, i.e. can they email them straight from their device? I'm not sure how tech-savvy they are, and ideally I don't want to spend too much time telling them how to install adb if I can get the files some other way.

Obviously I'm looking to do it with their permission (and I'm expecting that installing adb is going to be the only way).

Edit: I should add that I'm using Corona SDK, so will not be able to access the logs from directly inside the app. Also, all devices are 4.1+ so the various log collector apps have not worked.


Solution

  • You can redirect the logcat to a file and send it by email using your app.

    Check here how to save the logcat into a file.