As a first step, clone the TensorFlow repo. You need Bazel to build the APK:
git clone https://github.com/tensorflow/tensorflow