Logs are an important tool used by manufacturers to ensure the smooth functioning of any device; they also provide a way to troubleshoot any issue that occurs on the device. Android, Fire OS includes an inbuilt log that helps manufacturer and developer debug issues. A log provides a window to device manufacturer or app developer to estimate as to what was happening to the device at a particular point of time. Most times a log clearly pinpoints the issue thereby helping to troubleshoot any issue.

In this post we will detail the steps to be followed in order to Save logs from Firestick, Android TV, Phone, Tablet:

Any reference to the following terms can be used interchangeably to represent any device running android or android based OS's: Android, Fire OS, Windows Subsystem for android etc.

  1. Please refer the following video for more details on how to setup your PC to send adb commands from terminal on linux to a Firestick or target android device. 
  2. Once the setup is complete after typing exit from adb shell. In the terminal window execute 
    ./adb shell logcat > logs_to_send.txt
  3. Running the command will start saving the logs from the moment you execute the command into the folder you are currently in (probably the location you extracted the platform tools to).
  4. In order to stop saving the logs just press Ctrl+C on your keyboard.
  5. If you are unaware of where the file is saved execute the following command in your terminal window:
    pwd
  6. The file logs_to_send.txt should contain the logs you saved previously.
  7. You may share its contents of the file on the github project as an issue if the logs were taken to help a developer debug an issue with an app, or report an issue to device manufacturer.
Tips on how to log the error: first run the command mentioned in step 2 and then emulate the steps that lead to the issue you are trying to debug then follow step 4.

That's all for now!
Find out more about the authors here. Check out our previous posts here.
Find the full list of social media accounts, bots and channels here.