[Android] Copy the right Device Capabilities API

It was copying the one for other platforms than Android.