Access gallery on Android using Codecption

I am writing auto-test using Codeception-framework to test register new on my website on Android device(Galaxy note 2) (I am using test object for testing on device which connection with codeception).

I am facing situation, where I need to upload photo from device gallery or take photo using Camera.

Please Any one know how to access the device gallery or the camera device using Codeception-php

I tried like below but with no success:

$I->attachFile(‘input[id=‘upload-file-1_1’]’, ‘//android.widget.GridView//android.widget.ImageView[1]’);