Android dump. So file crash log

Source: Internet
Author: User

As we all know, on the Android system, sometimes we encounter so file crash only can play log, but very often do not understand crash where, fortunately, after crash, generally can produce a. dmp file.

We are able to get a more specific STATCK trace based on this file.

The main use is some of the methods provided by Google, the command is too complex, very easy error, so I wrote a Python script, simplifying the steps.

Details can be https://code.google.com/p/google-breakpad/wiki/LinuxStarterGuide


#! /usr/bin/env pythonimport osimport sysif len (SYS.ARGV) < 3:    print ("Please check your parameter")    exit (-1) Sofile = Sys.argv[1]dmpfile = sys.argv[2]print Sofile,print dmpfilesymfile = Sofile + ". Sym" #dumple sym fileos.system ("./d Ump_syms "+ sofile  +" > "+ symfile) #get directory Informationret = Os.popen (" head-n1 "+ symfile). Read () Arry =  Ret.strip (). Split ("") DirName = Arry[3]sympath = "./symbols/" + sofile + "/" + dirname#create Directoryos.system ("Mkdir-p "+ SymPath) Os.system (" mv "+ Symfile +" "+ SymPath) #minidump to log Fileos.system ("./minidump_stackwalk "+ Dmpfile + "./symbols > Crashlog")


Android dump. So file crash log

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.