Installing the latest version of DidFail

Git repositories for newest versions:



The most recent branches are the the Static Fields branch and the Services and BroadcastReceivers branch, which are both based off the Improved DEX Conversion branch (Nov 2014). In the future, these two branches will be merged, with an option to turn static field analysis (which is computationally intensive) on and off.

A table of releases with specific commit numbers for releases is available.

To build DidFail in Ubuntu 12.04:

  1. Set up a fresh virtual machine with Ubuntu 12.04 (64-bit desktop version). At least 3 GB of RAM is recommended to be given to the virtual machine.
  2. Build FlowDroid.
  3. Open a Bash shell (Ctrl+Alt+T).
  4. Set environment variable didfail to where you want to install DidFail, and create and enter that directory:
    • export didfail=~/didfail
    • mkdir $didfail
    • cd $didfail
  5. Install some 32-bit libraries needed by Dare:
    • sudo apt-get install gcc-4.6-multilib lib32stdc++6 zlib1g-dev:i386
  6. Download Epicc, Dare, Android platform JARs, and toy apps:
    • wget -nc #mirror at
    • wget -nc
    • wget -nc
    • wget -nc
    • wget -nc
  7. Unpack downloaded files:
    • mkdir epicc
    • tar xzf epicc-0.1.tgz -C epicc
    • tar xzf dare-1.1.0-linux.tgz
    • unzip
    • unzip
    • unzip -q
  8. Clone the DidFail CERT repo (containing the APK Transformer, second-phase analyzer, and various scripts):
    • git clone cert
  9. Switch to the desired branch or specific commit. Available branches are: service-additions, static-field-support, master. (Note: master is an older version without support for either static field support or services.) For example:
    • cd cert
    • git checkout service-additions # if you want the latest version of this branch
    • git checkout 2781780c9971f0ec5c998956b14af81196a9879f # if you want the release snapshot
    • cd ..
  10. Create local config file:
    • cp cert/ cert/
  11. Modify
    • Change the "export didfail=" line to point to the directory where you chose to install DidFail.
    • Change the "export wkspc=" line to point to the directory that contains the soot, heros, jasmin, and soot-infoflow* directories (as child directories).
  12. Compile the APK Transformer:
    • cd $didfail/cert
    • source
      # It is normal to get a message like "ls: cannot access .../transformApk/bin: No such file or directory" when you source the first time; in a later step, you will use the make process to create this directory.
    • cd transformApk
    • make
    • cd $didfail
  13. Run the analyzer on the toy apps:
    • $didfail/cert/ $didfail/toyapps/out/ $didfail/toyapps/*.apk
    Note: These are the original toy apps from the SOAP 2014 version of DidFail. Toy apps to test the new functionality (added in the Dec 2014 releases) are available: test-apps-dec2014/.
    Note: You may need to adjust max_mem and/or jvm_flags in If you get an error message "Could not create the Java virtual machine", either increase max_mem (which is supplied to ulimit) or decrease the "-Xmx" option in jvm_flags.
  14. Get the full set of Android SDK libraries (several gigabytes) if you want to test real-world apps:
    • Download the Android SDK
    • Run the sdk/tools/android program to grab the android.jar files for other API versions.
    • Edit $didfail/cert/ so that sdk_platforms refers to the appropriate directory (e.g., ~/adt-bundle-linux-x86_64-20130729/sdk/platforms/).