anchor.diff:  
       // Skip uninstalling process when no device is available or no application exists.
       if (result == 'No device found.' || result == 'CFBundleIdentifier, CFBundleVersion, CFBundleDisplayName') {
  +      stdout.write("No device was found or no application to uninstall exists.");
         return true;
       }
       final List<String> results = result.trim().split('\n');
  
positive.code:       stderr.write('uninstall applications fails: $error');
        return false;
      }
      return true;
    }
  }
  
negative.code:       stderr.write('device restart fails: $error');
        return false;
      }
      stdout.write("Restart device complete.");
      return true;
    }
  
    /// Uninstall applications from a device.
    ///
    /// This is to prevent application installation failure caused by using different signing
    /// certificate from previous installed application.
    /// Issue: https://github.com/flutter/flutter/issues/76896
    @visibleForTesting
  