MobileInsight2 is an Android app that implements in-phone version of MobileInsight. It supports the following functions at the point of writing:

# running a MobileInsight2 application as a background service,
# collecting Qualcomm proprietary log, just like what it does in the demo version

== Build ==

Since MobileInsight2 uses Python-for-android library, you need to set up building environments by following instructions in [[Python-for-android_setup]]. Then here we go:

# Install buildozer, a Python package for building Python-for-android. It is okay to use <code>pip</code> tool.
# Checkout the newest MobileInsight repository, and replace <code>APP_ANDROID_*</code> variables in the Makefile under demo_app/ directory.
# Edit buildozer.spec: replace the following lines
  android.ndk_path = YOUR_NDK_PATH
  android.sdk_path = YOUR_SDK_PATH
  android.p4a_dir = YOUR_P4A_PATH
# Copy the mobile_insight recipe to python-for-android:
  cp -fr recipes/mobile_insight YOUR_P4A_PATH/recipes/
# Run the following commands:
  cd demo_app
  make apk
  make install # (run this when you have a phone connected)

== Before running ==
# Refer to [[Android_ws_dissector_Setup]] page to install ws_dissector on Android.
# Put under the "/sdcard/diag_logs" directory a "Diag.cfg" file that suits your need.