Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94ca1148 authored by Eric Laurent's avatar Eric Laurent
Browse files

audioflinger: fix wait for media.log service

commit e2cf8295 disabled media.log service but did not skip binding
to this service when audioflinger starts which caused a systematic
timeout and a 5 second delay in audioflinger start sequence.

Bug: 165702394
Bug: 169105682
Test: SuccessiveBootTest
Change-Id: I892c2120f290ef52b34d320b281ab8faf2b5b0ea
parent f8701c40
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -197,7 +197,12 @@ AudioFlinger::AudioFlinger()
        mNextUniqueIds[use] = AUDIO_UNIQUE_ID_USE_MAX;
    }

#if 1
    // FIXME See bug 165702394 and bug 168511485
    const bool doLog = false;
#else
    const bool doLog = property_get_bool("ro.test_harness", false);
#endif
    if (doLog) {
        mLogMemoryDealer = new MemoryDealer(kLogMemorySize, "LogWriters",
                MemoryHeapBase::READ_ONLY);