My android phone randomly reboots, any way to retroactively read the logs?

Discussion in 'Mobile Devices and SoCs' started by orangpelupa, Mar 25, 2016.

Tags:
  1. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    In Windows I can use event viewer, and BAM! found the reboot cause.

    How to do that in Android?
     
  2. tongue_of_colicab

    Veteran

    Joined:
    Oct 7, 2004
    Messages:
    3,773
    Likes Received:
    960
    Location:
    Japan
    Take a look a LogCat.
     
  3. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    Log cat need to be preemptively recording :(

    And full of useless stuff
     
  4. tongue_of_colicab

    Veteran

    Joined:
    Oct 7, 2004
    Messages:
    3,773
    Likes Received:
    960
    Location:
    Japan
    Well isn't that the nature of log files? The logger can't know upfront what you'll be looking for ;)

    I'm sure the logs are time stamped so can't you just turn it on, wait for your phone to reboot and check the log entries around that time?
     
  5. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    It sucks battery like mad :(

    In Windows the log is always there as part of the system. No additional overhead. No need to manually record.
     
  6. tongue_of_colicab

    Veteran

    Joined:
    Oct 7, 2004
    Messages:
    3,773
    Likes Received:
    960
    Location:
    Japan
    I don't think logcat should take up that much resources though. You can run it from ADB so if its draining your battery too fast you can charge while taking logs that way.
     
  7. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    It's not that it eats battery but it makes my cpu stays at high clock :(

    The reboot randomly happens, I can't just left my phone there red.
     
  8. Grall

    Grall Invisible Member
    Legend

    Joined:
    Apr 14, 2002
    Messages:
    10,801
    Likes Received:
    2,176
    Location:
    La-la land
    Open it up and check for spiders... That's what I'd do.
     
    orangpelupa likes this.
  9. Rurouni

    Veteran

    Joined:
    Sep 30, 2008
    Messages:
    1,101
    Likes Received:
    432
    It's the cat!
    Anyway, use logcat to know what your cat had been doing.
     
    BRiT, Grall and orangpelupa like this.
  10. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    dang, it has not restarted since i put logcat record :/

    so... maybe the bug is too low cpu frequency or too deep sleep resulting in restart? because with logcat running, it seems fine.
     
  11. Rurouni

    Veteran

    Joined:
    Sep 30, 2008
    Messages:
    1,101
    Likes Received:
    432
    If your phone is stock, I don't think it is because of the CPU running too low or anything related to the DVFS or phone state. Of course something might be corrupted thus make the phone unstable. My phone once overheat so bad that it probably corrupted something in the system file that made my phone unable to read FAT formated storage. I thought it was a hardware problem caused by the overheat until I tried to format my SD card to NTFS and it managed to recognize it! But NTFS support is poor on my phone, thus I use ext4 for my SD card.
    Btw, the overheat was really bad as in it was actually made the phone shutdown itself with the overheat warning. It was so hot that I actually felt the need to actively cool it down.

    Anyway, I still think it was the cat.
     
  12. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    It is stock Android but this phone is full of bugs and LG abandon it faster than the exodus.

    One of the most ridiculous bug

    LG g pro 2 advertised as 4G LTE, complete with ugly LTE label on its back cover.

    But surprise! Lte mode is not available hahahahahah

    You need to manually turn it on from service menu. Even worse, it will be disabled again every restart.

    The solution? Root it and delete LG LTE setting apk in system partition.

    Ridiculous right?

    Edit:

    When this phone is broken, I'll only buy phones from Sony or Xiaomi.

    Guaranteed upgrade for YEARS
     
    Grall likes this.
  13. tongue_of_colicab

    Veteran

    Joined:
    Oct 7, 2004
    Messages:
    3,773
    Likes Received:
    960
    Location:
    Japan
    Unless they sign a contract with you for those updates I wouldn't say those updates are guaranteed.

    Anyway updates are one thing but quality of software is something else. One of the reasons I'm reluctant to go with Chinese manufacturers is because it seems in a lot of cases the software is half done, requiring a lot of updates.

    I've always owned HTC phones and though they are pretty poor on the update front, whatever is released does work as it should.

    And really, for 99,9% of the users it doesn't matter whether they use android 4, 5 or 6.
     
    BRiT likes this.
  14. Grall

    Grall Invisible Member
    Legend

    Joined:
    Apr 14, 2002
    Messages:
    10,801
    Likes Received:
    2,176
    Location:
    La-la land
    Old unpatched android phones are vulnerable to many malwares, security exploits and other hax. I wouldn't want to be stuck using one.
     
    orangpelupa likes this.
  15. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    Don't care about contracts. Sony and Xiaomi has proven that they are awesome at giving updates.

    Sure Sony is as slow as turtle and almost always buggy at launch, but they do update for years.

    On the other hand, this Chinese brand called Xiaomi is superb

    Fast update (weekly! For flagship devices)
    Relatively bugless compared to LG and Sony
    If there is a crucial bug, usually fixed in a day if you use DEV ROM. A week if stable ROM.

    NO other Japan, Korean, American, Chinese company give update as many and as fast as xiaomi.

    Edit:

    What I mean by update is not only about major Android version.

    But also bug fixes :)

    Sony is slow as snail in updating major Android version, but they are quick to acknowledge bugs (usually in a week) and publish update (about a month).
     
  16. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    Isn't it's the majority of Android phone in the market is hackable? There is a major bug in stsgefright that works for like all phones up to lollipop.

    There's also newer bug that works for more phones but not as easily doable remotely as the stagefright exploit.

    Basically, sticks to play store to be safe. Rogue apk with that exploit surely can infect majority of Android phone without hassle.
     
  17. rekator

    Regular

    Joined:
    Dec 21, 2006
    Messages:
    793
    Likes Received:
    30
    Location:
    France
    Have you got a SD Card? If yes, the problem can possibly come from here…The SD card after time got some little loose (or other thing like vibration, dust, etc… can interfered) and so made you phone restart. Test with a new Sd card or without SD card if you can.
     
  18. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    Yeah it got a SD card. Thanks, I'll replug it. I can't use the phone without it though, almost all my software is installed there.
     
  19. orangpelupa

    orangpelupa Elite Bug Hunter
    Legend

    Joined:
    Oct 14, 2008
    Messages:
    10,466
    Likes Received:
    3,186
    It hasn't rebooted since I replug the SD card! Thank you!
     
  20. tongue_of_colicab

    Veteran

    Joined:
    Oct 7, 2004
    Messages:
    3,773
    Likes Received:
    960
    Location:
    Japan
    People don't want to update their rom every day or every week and if these manufactures were so great they'd make sure the software they release isn't full of bugs requiring weekly updates. That is why I said I rather have few but high quality updates then frequent buggy updates.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...