Add new legacy compatible to support legacy targets. Change-Id: Ic28db8f9550f5b96adf6772b3574bde533bbca71