How to use android phone sensors instead of pixhawk sensors

Hello . I want to use other sensors to connect to pixhawk . I want read android phone sensors with android application and send to pixhawk and pixhawk use this sensors instead of it self sensors . Any one can help ?