[Nexus 5 Q&A, Help & Troubleshooting] Deanding2015:
Hi dude,

I build AOSP source code(AOSP 5.1.1 r7) follow the guide : Android official guide[Running Builds on hammerhead] over my nexus5. But it's not work. The phone always show black screen after boot.

I have no idea on the problems, I've tried to build CM13 and other branchs, same error met.

Any one can help me please or give me a workable guide? Thanks very very much:D!!

?:??: W/?(?): --------- beginning of main
01-01 00:00:00.490: W/auditd(160): type=2000 audit(0.0:1): initialized
02-09 00:08:40.530: W/auditd(160): type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
02-09 00:09:42.252: E/sdcard(0): missing packages.list; retrying
02-09 00:09:42.441: A/libEGL(165): couldn't find an OpenGL ES implementation
02-09 00:09:42.441: A/libEGL(165): --------- beginning of crash
02-09 00:09:42.441: A/libc(165): Fatal signal 6 (SIGABRT), code -6 in tid 165 (surfaceflinger)
02-09 00:09:45.252: E/sdcard(179): missing packages.list; retrying
02-09 00:09:47.712: A/libEGL(266): couldn't find an OpenGL ES implementation
02-09 00:10:24.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:24.429: W/dex2oat(395): Compilation of void android.os.BatteryStats.dumpLocked(android.content.Context, java.io.PrintWriter, java.lang.String, int, int, boolean) took 109.271ms
02-09 00:10:26.631: E/dex2oat(353): Failed to open writable oat file /data/dalvik-cache/arm/system@framework@boot.oat for /data/dalvik-cache/arm/system@framework@boot.oat: File size of 0 bytes not large enough to contain ELF header of 52 bytes: '/data/dalvik-cache/arm/system@framework@boot.oat'
02-09 00:10:26.631: E/dex2oat(353): File /data/dalvik-cache/arm/system@framework@boot.oat wasn't explicitly flushed before destruction.
02-09 00:10:26.631: E/dex2oat(353): File /data/dalvik-cache/arm/system@framework@boot.oat wasn't explicitly closed before destruction.
02-09 00:10:26.631: A/dex2oat(353): art/runtime/base/unix_file/fd_file.cc:50] Check failed: guard_state_ >= GuardState::kClosed (guard_state_=Base, GuardState::kClosed=Closed)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] Runtime aborting...
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] Aborting thread:
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] "main" prio=5 tid=1 Native (still starting up)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | group="" sCount=0 dsCount=0 obj=0x0 self=0xb60fd400
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | sysTid=353 nice=0 cgrp=default sched=0/0 handle=0xb6fcebec
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | state=R schedstat=( 13359870477 18228527240 5576 ) utm=1233 stm=102 core=1 HZ=100
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | stack=0xbe492000-0xbe494000 stackSize=8MB
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | held mutexes= "abort lock" "mutator lock"(shared held)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #00 pc 00004e64 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #01 pc 00003665 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #02 pc 00256429 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #03 pc 00238fe7 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+158)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #04 pc 0022881d /system/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*)+32)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #05 pc 00228abf /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+410)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #06 pc 00228c7f /system/lib/libart.so (art::Runtime::Abort()+82)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #07 pc 000a7371 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #08 pc 000aee55 /system/lib/libart.so (unix_file::FdFile::~FdFile()+488)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #09 pc 000aeebd /system/lib/libart.so (unix_file::FdFile::~FdFile()+8)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #10 pc 001dace1 /system/lib/libart-compiler.so (art::ImageWriter::Write(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)+1676)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #11 pc 000091a3 /system/bin/dex2oat (???)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #12 pc 0000d8fb /system/bin/dex2oat (???)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #13 pc 00012df5 /system/lib/libc.so (__libc_init+44)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #14 pc 0000470c /system/bin/dex2oat (???)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] (no managed stack frames)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] Dumping all threads without appropriate locks held: thread list lock mutator lock
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] All threads:
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] DALVIK THREADS (1):
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] "main" prio=5 tid=1 Native (still starting up)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | group="" sCount=0 dsCount=0 obj=0x0 self=0xb60fd400
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | sysTid=353 nice=0 cgrp=default sched=0/0 handle=0xb6fcebec
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | state=R schedstat=( 13363472094 18231612291 5581 ) utm=1233 stm=103 core=1 HZ=100
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | stack=0xbe492000-0xbe494000 stackSize=8MB
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] | held mutexes= "abort lock"
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #00 pc 00004e64 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #01 pc 00003665 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #02 pc 00256429 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+84)
02-09 00:10:26.678: A/dex2oat(353): art/runtime/runtime.cc:289] native: #03 pc 00238fe7 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+158)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #04 pc 00242695 /system/lib/libart.so (art::ThreadList::DumpLocked(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+120)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #05 pc 00228a35 /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+272)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #06 pc 00228c7f /system/lib/libart.so (art::Runtime::Abort()+82)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #07 pc 000a7371 /system/lib/libart.so (art::LogMessage::~LogMessage()+1360)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #08 pc 000aee55 /system/lib/libart.so (unix_file::FdFile::~FdFile()+488)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #09 pc 000aeebd /system/lib/libart.so (unix_file::FdFile::~FdFile()+8)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #10 pc 001dace1 /system/lib/libart-compiler.so (art::ImageWriter::Write(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)+1676)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #11 pc 000091a3 /system/bin/dex2oat (???)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #12 pc 0000d8fb /system/bin/dex2oat (???)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #13 pc 00012df5 /system/lib/libc.so (__libc_init+44)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] native: #14 pc 0000470c /system/bin/dex2oat (???)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289] (no managed stack frames)
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289]
02-09 00:10:26.679: A/dex2oat(353): art/runtime/runtime.cc:289]
02-09 00:10:26.679: A/libc(353): Fatal signal 6 (SIGABRT), code -6 in tid 353 (main)
02-09 00:10:27.017: W/dex2oat(395): Compilation of android.view.View android.widget.ListView.moveSelection(android.view.View, android.view.View, int, int, int) took 100.472ms
02-09 00:10:27.217: A/libEGL(551): couldn't find an OpenGL ES implementation
02-09 00:10:27.217: A/libc(551): Fatal signal 6 (SIGABRT), code -6 in tid 551 (surfaceflinger)
02-09 00:10:27.247: W/dex2oat(395): Compilation of boolean android.widget.ExpandableListView.isRtlCompatibilityMode() took 100.178ms
02-09 00:10:27.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:29.583: W/art(578): Could not create image space with image file '/system/framework/boot.art'. Attempting to fall back to imageless running. Error was: Only the zygote can create the global boot image.
02-09 00:10:30.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:32.007: W/dex2oat(395): Compilation of void com.android.internal.statusbar.IStatusBar$Stub$Proxy.cancelPreloadRecentApps() took 100.255ms
02-09 00:10:32.167: A/libEGL(581): couldn't find an OpenGL ES implementation
02-09 00:10:32.167: A/libc(581): Fatal signal 6 (SIGABRT), code -6 in tid 581 (surfaceflinger)
02-09 00:10:32.347: W/dex2oat(395): Compilation of void com.android.internal.os.BatteryStatsImpl.setNumSpeedSteps(int) took 110.165ms
02-09 00:10:32.357: W/dex2oat(395): Compilation of void com.android.internal.telephony.IPhoneStateListener$Stub$Proxy.onPreciseCallStateChanged(android.telephony.PreciseCallState) took 100.639ms
02-09 00:10:32.607: W/dex2oat(395): Compilation of void com.android.internal.telephony.ITelephonyRegistry$Stub$Proxy.notifyCallState(int, java.lang.String) took 140.250ms
02-09 00:10:32.627: W/dex2oat(395): Compilation of boolean com.android.internal.telephony.ITelephony$Stub.onTransact(int, android.os.Parcel, android.os.Parcel, int) took 172.113ms
02-09 00:10:32.757: W/dex2oat(395): Compilation of boolean com.android.internal.telephony.ITelephony$Stub$Proxy.setLine1NumberForDisplayForSubscriber(int, java.lang.String, java.lang.String) took 100.474ms
02-09 00:10:33.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:36.203: W/dex2oat(395): Compilation of void com.android.internal.telephony.uicc.SIMRecords.handleMessage(android.os.Message) took 195.891ms
02-09 00:10:36.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:37.114: W/art(578): Verification of void com.android.internal.R$styleable.<clinit>() took 133.623ms
02-09 00:10:37.182: A/libEGL(617): couldn't find an OpenGL ES implementation
02-09 00:10:37.182: A/libc(617): Fatal signal 6 (SIGABRT), code -6 in tid 617 (surfaceflinger)
02-09 00:10:37.347: W/dex2oat(395): Compilation of java.lang.String org.apache.xalan.res.XSLTErrorResources.getResourceSuffix(java.util.Locale) took 100.383ms
02-09 00:10:37.497: W/dex2oat(395): Compilation of void org.apache.xalan.templates.ElemChoose.execute(org.apache.xalan.transformer.TransformerImpl) took 100.484ms
02-09 00:10:37.507: W/dex2oat(395): Compilation of java.util.List org.apache.xalan.templates.ElemLiteralResult.access$000(org.apache.xalan.templates.ElemLiteralResult) took 100.410ms
02-09 00:10:39.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:41.172: W/art(658): Could not create image space with image file '/system/framework/boot.art'. Attempting to fall back to imageless running. Error was: Only the zygote can create the global boot image.
02-09 00:10:41.971: A/libEGL(663): couldn't find an OpenGL ES implementation
02-09 00:10:41.971: A/libc(663): Fatal signal 6 (SIGABRT), code -6 in tid 663 (surfaceflinger)
02-09 00:10:42.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:45.254: E/sdcard(179): missing packages.list; retrying
02-09 00:10:47.118: A/libEGL(728): couldn't find an OpenGL ES implementation
02-09 00:10:47.118: A/libc(728): Fatal signal 6 (SIGABRT), code -6 in tid 728 (surfaceflinger)
02-09 00:10:48.255: E/sdcard(179): missing packages.list; retrying
02-09 00:10:51.255: E/sdcard(179): missing packages.list; retrying
02-09 00:10:52.376: A/libEGL(779): couldn't find an OpenGL ES implementation
02-09 00:10:52.376: A/libc(779): Fatal signal 6 (SIGABRT), code -6 in tid 779 (surfaceflinger)
02-09 00:10:52.502: W/art(781): Incomplete boot detected. Pruning dalvik cache
02-09 00:10:52.558: W/art(781): Invalid image header in '/data/dalvik-cache/arm/system@framework@boot.art'
02-09 00:10:54.255: E/sdcard(179): missing packages.list; retrying
02-09 00:10:57.255: E/sdcard(179): missing packages.list; retrying
02-09 00:10:57.627: A/libEGL(827): couldn't find an OpenGL ES implementation
02-09 00:10:57.627: A/libc(827): Fatal signal 6 (SIGABRT), code -6 in tid 827 (surfaceflinger)
02-09 00:11:00.255: E/sdcard(179): missing packages.list; retrying
02-09 00:11:02.057: A/libEGL(859): couldn't find an OpenGL ES implementation
02-09 00:11:02.057: A/libc(859): Fatal signal 6 (SIGABRT), code -6 in tid 859 (surfaceflinger)
02-09 00:11:02.418: W/dex2oat(816): Compilation of com.android.org.bouncycastle.crypto.AsymmetricCipherKeyPair com.android.org.bouncycastle.crypto.generators.RSAKeyPairGenerator.generateKeyPair() took 131.274ms
02-09 00:11:03.255: E/sdcard(179): missing packages.list; retrying
02-09 00:11:05.356: W/dex2oat(816): Compilation of boolean android.app.ActivityManagerNative.onTransact(int, android.os.Parcel, android.os.Parcel, int) took 167.282ms
02-09 00:11:06.255: E/sdcard(179): missing packages.list; retrying
02-09 00:11:06.987: A/libEGL(886): couldn't find an OpenGL ES implementation
02-09 00:11:06.987: A/libc(886): Fatal signal 6 (SIGABRT), code -6 in tid 886 (surfaceflinger)