String getHandlePackageResult(final AndroidDevice aDevice, SubType subType,
			String fileName) {

		switch (subType) {
		case INSTALL:
			try {
				aDevice.getDevice().installPackage(fileName, true);
			} catch (InstallException e) {
				e.printStackTrace();

				return "Install failed:" + e.getLocalizedMessage();
			}
		case UNINSTALL:
			try {
				aDevice.getDevice().uninstallPackage(fileName);
			} catch (InstallException e) {
				e.printStackTrace();

				return "Uninstall failed:" + e.getLocalizedMessage();
			}
		default:
			break;
		}

		return "Command success";
	}