+ treble = tools.helpers.props.host_get(args, "ro.treble.enabled")
+ if treble != "true":
+ camera = find_hal("camera")
+ if camera != "":
+ props.append("ro.hardware.camera=" + camera)
+ else:
+ if args.vendor_type == "MAINLINE":
+ props.append("ro.hardware.camera=v4l2")
+