Waiting for service media.audio_policy when loading android

I am developing cyanogenmod 11 for my samsung sm-g7102 garnd2 device but it does not load and gives bootloop on the cyanogenmod logo. the logarithm shows the following

#
W/AudioSystem( 684): AudioPolicyService not published, waiting... I/ServiceManager( 684): Waiting for service media.audio_policy... I/ServiceManager( 684): Waiting for service media.audio_policy... I/ServiceManager( 684): Waiting for service media.audio_policy... I/ServiceManager( 684): Waiting for service media.audio_policy... I/ServiceManager( 684): Waiting for service media.audio_policy... W/AudioSystem( 684): AudioPolicyService not published, waiting... I/ServiceManager( 684): Waiting for service media.audio_policy... I/ServiceManager( 684): Waiting for service media.audio_policy... 
#

it goes on and on ....

also if i remove libsecnativefeature.so from system / lib it loads fine but no sound, camera, ril.

+8
android
source share
1 answer

Samsung Galaxy J5 I recently had a similar problem (if not one) and got stuck in the bootlap. Performing a quick search on the Internet, it seems that this " bootloop caused by a sound error " is common in many Samsung models, but there is no information about it.

Errors that were loops (obtained from logcat ) included:

 I/ServiceManager( 248): service 'media.audio_flinger' died I/ServiceManager( 248): service 'media.player' died I/ServiceManager( 248): service 'media.camera' died I/ServiceManager( 513): Waiting for service media.audio_policy... E/SamsungPowerSound( 513): wait_for_audio_policy E/SamsungPowerSound( 513): media.audio_policy not published, waiting... 

I managed to solve the problem using the chmod file /system/lib/libaudioflinger.so up to 755 (rwx-rx-rx) . The default permissions were 644 (rw-rr) .

Since this solved the problem, my hunch is that the process with the low privileges required to execute the library file.

Note. I had to get a phone before I could change the file permissions. This voids the warranty. Also, for most Samsung models, make sure you turn on OEM Unlock , otherwise you risk erasing the phone with some flicker, such as Odin .

+1
source share

All Articles