Hw_module_t const * module;
Alloc_device_t * grDev;
If (hw_get_module (GRALLOC_HARDWARE_MODULE_ID, & amp; The module)==0) {
Int err;
Err=gralloc_open (module, & amp; GrDev);
ALOGE_IF (err, "couldn 't open gralloc HAL (% s)", the strerror (err));
}
Reference example to do a test function, found that couldn 't open gralloc HAL (Invalid argument) the error, bosses can under the guidance of reason, thank you,