1. Are you ready for the Galaxy S20? Here is everything we know so far!

Catch and save full catlog for boot.

Discussion in 'Android Help' started by cdysthe, Dec 16, 2015.

  1. cdysthe

    cdysthe Member
    Thread Starter

    Hi,

    I am trying to figure out exactly what goes on when I reboot. I was told to do the following:

    "Provide a full logcat from a boot. But don't do it on the device or after booting is complete. Use adb logcat started right after rebooting.

    I see my phone when I do 'adb devices' and I'm able to start logcat on a running phone, but I'm not sure how to catch and save a full log during boot. What excatly do I have to do to catch the whole boot to a file I can share? I'm on Ubuntu with all the Android stuff installed and working.

    //C

     


  2. Best Answer:
    Post #3 by scary alien, Dec 16, 2015 (1 points)

    1. Download the Forums for Android™ app!


      Download

       
  3. iowabowtech

    iowabowtech root@android:/ #

    Just go ahead and enter the adb logcat command into terminal, then press enter while the phone is rebooting. It will then say "waiting for device" and somewhere near the splash screen, the log will take off and run. That's the best you can get and should be what they are asking for.
     
    scary alien likes this.
  4. scary alien

    scary alien not really so scary
    VIP Member

    ^^^ +1 to @iowabowtech's answer :).

    Also, if you do invoke the adb logcat command shortly after the reboot, you will / should be able to see all of the messages logged since the reboot (you'll be able to tell from the first messages logged).

    Note that there is a ton of other stuff that actually happens that the kernel logs separately, but you likely cannot see or retrieve those messages unless you are rooted.

    Chainfire has a really cool, root-only app called LiveBoot that can display kernel and/or logcat messages to your device's screen while it's booting-up. This is mainly useful as a cool boot animation (in fact it replaces your normal boot animation) but can be useful in some debugging circumstances.

    Cheers!
     
  5. BustaLime

    BustaLime Member

    Liveboot worked for me. It show's at boot time but has a setting to write a log file.
     
    scary alien likes this.
  6. cdysthe

    cdysthe Member
    Thread Starter

    Thanks! Installed the app and I see the message scroll by when I boot and I figured out how save it. So the log saved by LiveBoot is the same I would get from LogCat?
     
    scary alien likes this.
  7. scary alien

    scary alien not really so scary
    VIP Member

    Since the logcat is the source, I would imagine that would be the case.

    The entire contents of the actual system log are still available to you as long as you don't wait too long to snag it after rebooting. You can do this two ways:

    1. From an adb shell:

    adb logcat > c:\temp\my-saved-logcat.txt

    2. From your device using something like Android Terminal Emulator:

    logcat > /sdcard/my-saved-logcat.txt

    You'll have to control-c out of the above command after a minute or two since the logcat command will continue to add to the file as long as you have the command running.

    :)
     
    BustaLime and cdysthe like this.
Loading...
Similar Threads - Catch save full
  1. TomHar
    Replies:
    3
    Views:
    415
  2. zBernie
    Replies:
    5
    Views:
    393
  3. LUCKY LIME
    Replies:
    4
    Views:
    623
  4. Waxfruit
    Replies:
    0
    Views:
    412
  5. OnGoGS7A
    Replies:
    1
    Views:
    686
  6. Bas2356
    Replies:
    2
    Views:
    1,637
  7. App Update
    Replies:
    0
    Views:
    397
  8. App Update
    Replies:
    0
    Views:
    255
  9. iTP
    Replies:
    1
    Views:
    253
  10. App Update
    Replies:
    0
    Views:
    272

Share This Page

Loading...