system.img for ranchu emulator

350 views
Skip to first unread message

Ye Roger

unread,
Mar 27, 2016, 10:10:09 AM3/27/16
to Android emulator development
I built a system.img using android-6.0.1_r22 to test ranchu emulator. I got the following error message. It seems gralloc is not built. Do you know why? what is the right tag that I should use to build a system.img for ranchu? I attached the error log file.

03-27 13:44:55.840  1186  1186 I SurfaceFlinger: SurfaceFlinger is starting
03-27 13:44:55.841  1186  1186 I SurfaceFlinger: SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
03-27 13:44:55.847  1186  1186 D libEGL  : loaded /system/lib/egl/libEGL_emulation.so
03-27 13:44:55.849  1186  1186 D libEGL  : loaded /system/lib/egl/libGLESv1_CM_emulation.so
03-27 13:44:55.850  1196  1196 W mediaserver: type=1400 audit(0.0:5): avc: denied { read } for name="audio.primary.goldfish.so" dev="vda" ino=40962 scontext=u:r:mediaserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0
03-27 13:44:55.850  1196  1196 W mediaserver: type=1400 audit(0.0:6): avc: denied { read } for name="audio.primary.default.so" dev="vda" ino=40961 scontext=u:r:mediaserver:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0
03-27 13:44:55.858  1196  1196 I mediaserver: ServiceManager: 0xb610c680
03-27 13:44:55.858  1196  1196 I AudioFlinger: Using default 3000 mSec as standby time.
03-27 13:44:55.859  1196  1196 E         : batterystats service unavailable!
03-27 13:44:55.859  1196  1196 E         : batterystats service unavailable!
03-27 13:44:55.860  1196  1196 I CameraService: CameraService started (pid=1196)
03-27 13:44:55.860  1196  1196 I CameraService: CameraService process starting
03-27 13:44:55.860  1196  1196 E         : batterystats service unavailable!
03-27 13:44:55.860  1196  1196 E         : batterystats service unavailable!
03-27 13:44:55.860  1196  1196 E CameraService: Could not load camera HAL module: -2 (No such file or directory)
03-27 13:44:55.862  1196  1196 I AudioPolicyService: AudioPolicyService CSTOR in new mode
03-27 13:44:55.863  1196  1196 E APM::AudioPolicyManager: could not load audio policy configuration file, setting defaults
03-27 13:44:55.863  1196  1196 E AudioFlinger: int android::load_audio_interface(const char*, audio_hw_device_t**) couldn't load audio hw module audio.primary (No such file or directory)
03-27 13:44:55.863  1196  1196 I AudioFlinger: loadHwModule() error -2 loading module primary
03-27 13:44:55.863  1196  1196 W APM::AudioPolicyManager: could not open HW module primary
03-27 13:44:55.863  1196  1196 W APM::AudioPolicyManager: Input device 00000002 unreachable
03-27 13:44:55.863  1196  1196 W APM::AudioPolicyManager: Input device 80000004 unreachable
03-27 13:44:55.863  1196  1196 E APM::AudioPolicyManager: Default device 00000002 is unreachable
03-27 13:44:55.863  1196  1196 E APM::AudioPolicyManager: Failed to open primary output
03-27 13:44:55.863  1196  1196 E APM::AudioPolicyEngine: getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
03-27 13:44:55.863  1196  1196 E APM::AudioPolicyEngine: getDeviceForStrategy() speaker device not found for STRATEGY_SONIFICATION
03-27 13:44:55.863  1196  1196 E APM::AudioPolicyEngine: getDeviceForStrategy() no device found for STRATEGY_TRANSMITTED_THROUGH_SPEAKER
03-27 13:44:55.864  1196  1196 E SoundTriggerHwService: couldn't load sound trigger module sound_trigger.primary (No such file or directory)
03-27 13:44:55.864  1196  1196 I RadioService: RadioService
03-27 13:44:55.864  1196  1196 I RadioService: onFirstRef
03-27 13:44:55.864  1196  1196 E RadioService: couldn't load radio module radio.primary (No such file or directory)
03-27 13:44:55.870  1186  1186 W surfaceflinger: type=1400 audit(0.0:7): avc: denied { read } for name="gralloc.default.so" dev="vda" ino=40970 scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:unlabeled:s0 tclass=file permissive=0
03-27 13:44:55.870  1186  1186 D libEGL  : loaded /system/lib/egl/libGLESv2_emulation.so
03-27 13:44:55.878  1186  1186 D         : HostConnection::get() New Host Connection established 0xb70121a0, tid 1186
03-27 13:44:55.884  1186  1186 E SurfaceFlinger: gralloc module not found
03-27 13:44:55.884  1186  1186 E SurfaceFlinger: hwcomposer module not found
03-27 13:44:55.884  1186  1186 E SurfaceFlinger: ERROR: failed to open framebuffer (No such file or directory), aborting
--------- beginning of crash
03-27 13:44:55.884  1186  1186 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 1186 (surfaceflinger)



error_log.txt

Ye Roger

unread,
Mar 28, 2016, 7:47:36 PM3/28/16
to Android emulator development
I fixed this issue after I changed the following files:

$ git status
# Not currently on any branch.
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#    modified:   audio/Android.mk
#    modified:   camera/Android.mk
#    modified:   gps/Android.mk
#    modified:   lights/Android.mk
#    modified:   opengl/system/gralloc/Android.mk
#    modified:   power/Android.mk
#    modified:   vibrator/Android.mk
#


$ git status
# Not currently on any branch.
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#    modified:   target/board/generic_x86/device.mk
#    modified:   target/product/emulator.mk
#


It seems android-6.0.1_r22 is not ready to support ranchu. Is this a bug ? It seems nobody build AOSP images for ranchu, even though ranchu kernels are included in the latest SDK.

Reply all
Reply to author
Forward
0 new messages