code: function adbInstallWithOptions(target, apk, opts) {
                  events.emit('verbose', 'Installing apk ' + apk + ' on ' + target + '...');
  
                  var command = 'adb -s ' + target + ' install -r "' + apk + '"';
                  return Q.promise(function (resolve, reject) {
                      child_process.exec(command, opts, function(err, stdout, stderr) {
                          if (err) reject(new CordovaError('Error executing "' + command + '": ' + stderr));
                          // adb does not return an error code even if installation fails. Instead it puts a specific
                          // message to stdout, so we have to use RegExp matching to detect installation failure.
                          else if (/Failure/.test(stdout)) reject(new CordovaError('Failed to install apk to emulator: ' + stdout));
                          else resolve(stdout);
                      });
                  });
              }
docs: A special function to call adb install in specific environment w/ specific options. Introduced as a part of fix for http://issues.apache.org/jira/browse/CB-9119 to workaround sporadic emulator hangs