Perhaps surprising, no. Missile Warning Systems (which detect the missile, not radar emissions related to it) have existed for years but are harder to adapt to high speed a/c. so while some fast jets are now equipped with them, most aren’t. For IRCM, they’ll simply dispense decoy flares when they are within the envelope of shoulder launched IR SAM’s, which they generally avoid. MWS are pretty widely fitted to attack helicopters which can hardly avoid ‘MANPADS’ envelopes and perform their missions, and often to transport helo’s and fixed wing transports. But even for the latter types it’s a matter of cost/benefit, even for military a/c. Eventually though such systems will become universal, it’s likely.
The systems proposed for airliners would use MWS in conjunction with laser based IRCM. The sensors and ball mounted IR laser actually track the missile, the laser play on the seeker aperture, and feeds the seeker confusing IR signals to make it break lock. Smarter IR missiles are able to ignore classic IR decoy flares dispensed in a line behind the a/c. More advanced flare systems launch a lot of flares at once (you sometime see dramatic publicity photo’s of that for various helo or transport planes, those large launches would be triggered by MWS) and the flares are more sophisticated. But laser is now the preferred way to deal with smarter IR missiles. The Israeli C-Music system proposed for airliners would work this way, and laser IRCM systems have been successfully used v real missile launches on US helo’s in Afghanistan.
So, practical, reliable hands-off IRCM system for airliners is technically feasible. It’s a question of cost (buying, maintaining, knock on effect of weight and drag, etc). Also a given system wouldn’t be guaranteed to defeat all missiles, IR seeker/processor designers can always improve the counter-IRCM capability of the missile. But against non-state actors not likely to have the latest missiles, it would work against most. It might or might not be cost effective.
However, airliner ECM defense against radar guided missiles is not feasible. The types of missile and guidance systems vary too widely for a single relatively simple automated system to counter even a significant % of the different types. Just dispensing some chaff is not going to defeat all missiles and their radar systems. The Germans had at least somewhat effective ECCM (for their radars) v chaff even by 1944, within a year of its first widespread use in 1943. Even to the extent chaff is still somewhat useful, it has to be tailored to the frequency the enemy is using, again too many different types in the world of radar SAM’s. Also missile warning is harder at high altitude. The MWS used against ground launched IR missiles, IR and/or UV sensors (a combination cuts down false alarm rate) can take advantage of seeing the missile’s launch plume. For an a/c at high altitude the missile might first be seen popping through cloud and after its booster burns out.
Anyway all around, and of course including how much easier it is to avoid areas of hostile radar guided heavy SAM’s (the big threat with IR MANPADS is somebody smuggling them into a non-conflict area), radar ECM on airliners makes no sense at all.