I flashed my Samsung Galaxy S i9000 with the RemICS-JB 3.0 ROM, and now long-press on my headset is hard-coded to start Google Voice Search, which doesn't interest me. I'd much rather have long-press be available to other apps (I used it as "rewind" in my podcast player). Is it possible to disable this hard-coded headset control, or disable Voice Search entirely? There isn't a separate app for it, and I can't seem to disable the Google Search app.
You can use one of the "headset button controls" available on the playstore, e.g. JAYS Headset Control or Philips Headset. Both allow you to define an app started automatically when your headset attaches, and as well to assign actions on short/long/combined headset button presses.
To make that better understandable, let's take the morse code:
and more, up to triple combinations. With most of these apps, actions can be freely configured.