Development of double rear camera

Now I have such a problem. The function that I need to develop is the development of the dual rear camera of the Android phone. How can I distinguish it?
The mobile phone that I am using is HUAWEI P5.
I hope to get advice and help here, thanks.