add android_external_ir and fix error path

Change-Id: I5368933b3ab8832dce3f894fea7c3b8d9e578bcc
fix

Change-Id: I91d7c680b3e87e783f20af74a76a89e47fd8d9e3