cd $YOUR_WORKSPACE
git clone git@github.com:tensorflow/tensorflow.git
cd tensorflow/tensorflow
git clone git@github.com:xarion/masters.git
cd ../
./configure # configure tensorflow
Get android ndk and sdk, configure the WORKSPACE accordingly at $YOUR_WORKSPACE/tensorflow/WORKSPACE
.