anchor.diff:      fi
   
       # Launch the emulator
  -    ${androidsdkComposition}/libexec/android-sdk/emulator/emulator -avd device -no-boot-anim -port $port $NIX_ANDROID_EMULATOR_FLAGS &
  +    ${sdk}/libexec/android-sdk/emulator/emulator -avd device -no-boot-anim -port $port $NIX_ANDROID_EMULATOR_FLAGS &
   
       # Wait until the device has completely booted
       echo "Waiting until the emulator has booted the device and the package manager is ready..." >&2
   
  -    ${androidsdkComposition}/libexec/android-sdk/platform-tools/adb -s emulator-$port wait-for-device
  +    ${sdk}/libexec/android-sdk/platform-tools/adb -s emulator-$port wait-for-device
   
       echo "Device state has been reached" >&2
   
  -    while [ -z "$(${androidsdkComposition}/libexec/android-sdk/platform-tools/adb -s emulator-$port shell getprop dev.bootcomplete | grep 1)" ]
  +    while [ -z "$(${sdk}/libexec/android-sdk/platform-tools/adb -s emulator-$port shell getprop dev.bootcomplete | grep 1)" ]
       do
           sleep 5
       done
   
       echo "dev.bootcomplete property is 1" >&2
   
  -    #while [ -z "$(${androidsdkComposition}/libexec/android-sdk/platform-tools/adb -s emulator-$port shell getprop sys.boot_completed | grep 1)" ]
  +    #while [ -z "$(${sdk}/libexec/android-sdk/platform-tools/adb -s emulator-$port shell getprop sys.boot_completed | grep 1)" ]
       #do
           #sleep 5
       #done
  
positive.code:     ${stdenv.lib.optionalString (app != null) ''
        # Install the App through the debugger, if it has not been installed yet
  
        if [ -z "${package}" ] || [ "$(${androidsdkComposition}/libexec/android-sdk/platform-tools/adb -s emulator-$port shell pm list packages | grep package:${package})" = "" ]
        then
            if [ -d "${app}" ]
            then
  
negative.code:     abiVersions = [ abiVersion ];
    } // sdkExtraArgs;
  
    sdk = (composeAndroidPackages sdkArgs).androidsdk;
  in
  stdenv.mkDerivation {
    inherit name;
  