As far as I know, Camera2api is enabled only in Phones which come with Pie (Android 9.0) out of the box.