how to remove audio service form android.

1,702 views
Skip to first unread message

mythfish chang

unread,
Jan 7, 2011, 4:22:36 AM1/7/11
to android-porting
Because haven't audio hardware support in my board, but i don't know
how to remove the audio service in android, then the android can't
boot,any one can tell me how to do? Thanks.

logcat:
///////////////////////////////////////////////
W/AudioSystem( 1767): AudioPolicyService not published, waiting...
I/ServiceManager( 1767): Waiting for sevice media.audio_policy.
///////////////////////////////////////////////

Rick

unread,
Jan 12, 2011, 2:30:33 AM1/12/11
to android-porting
Hi mythfish,

Have you resolve this problem? If you still blocked with this issue, i
may suggest you can create a dummy audio driver(or just modify
original audio driver to avoid hardware detect fail) to bypass this
check. FYR.

Rick

Sambhav

unread,
Jan 13, 2011, 12:09:49 AM1/13/11
to android-porting

AudiopolicyService is started in frameworks\base\media\mediaserver\main_mediaserver.cpp
 
int main(int argc, char** argv)
{
    sp<ProcessState> proc(ProcessState::self());
    sp<IServiceManager> sm = defaultServiceManager();
    LOGI("ServiceManager: %p", sm.get());
    AudioFlinger::instantiate();
    MediaPlayerService::instantiate();
    CameraService::instantiate();
    AudioPolicyService::instantiate();
    ProcessState::self()->startThreadPool();
    IPCThreadState::self()->joinThreadPool();
}
Disable the AudioPolicyService and check.

 

mythfish chang

unread,
Jan 13, 2011, 2:24:31 AM1/13/11
to android-porting
Thanks, Rick. I have resolved this problem by way of creating a dummy
audio driver as you said.
Reply all
Reply to author
Forward
0 new messages