Update for android port.

This PR is for android port.