diff --git a/lib/private/app.php b/lib/private/app.php
index 2abc015a91f6056406e88b078779a838b20951b7..3df3a0e5bac1216a745fa5ab33cd992baf8ceffe 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -564,7 +564,7 @@ class OC_App {
 	}
 
 	/**
-	 * get the last version of the app, either from appinfo/version or from appinfo/info.xml
+	 * get the last version of the app from appinfo/info.xml
 	 *
 	 * @param string $appId
 	 * @return string
@@ -584,14 +584,9 @@ class OC_App {
 	 * @return string
 	 */
 	public static function getAppVersionByPath($path) {
-		$versionFile = $path . '/appinfo/version';
 		$infoFile = $path . '/appinfo/info.xml';
-		if (is_file($versionFile)) {
-			return trim(file_get_contents($versionFile));
-		} else {
-			$appData = self::getAppInfo($infoFile, true);
-			return isset($appData['version']) ? $appData['version'] : '';
-		}
+		$appData = self::getAppInfo($infoFile, true);
+		return isset($appData['version']) ? $appData['version'] : '';
 	}
 
 
diff --git a/lib/private/app/appmanager.php b/lib/private/app/appmanager.php
index eeb2216d5a8d64d5724ad5127986dd118139a5e5..4855f6f0185a5fe9306ac7068c10c0c17f3791a0 100644
--- a/lib/private/app/appmanager.php
+++ b/lib/private/app/appmanager.php
@@ -297,9 +297,6 @@ class AppManager implements IAppManager {
 	/**
 	 * Returns the app information from "appinfo/info.xml".
 	 *
-	 * If no version was present in "appinfo/info.xml", reads it
-	 * from the external "appinfo/version" file instead.
-	 *
 	 * @param string $appId app id
 	 *
 	 * @return array app iinfo
diff --git a/lib/private/installer.php b/lib/private/installer.php
index f30db9ca659f2db1d8b26dfe9e7c88d5ffffb2e5..1e4bb968929c4522d1d772bc6c53936f5dff4101 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -390,16 +390,11 @@ class OC_Installer{
 		}
 
 		// check if the ocs version is the same as the version in info.xml/version
-		$versionFile= $extractDir.'/appinfo/version';
-		if(is_file($versionFile)) {
-			$version = trim(file_get_contents($versionFile));
-		}else{
-			$version = trim($info['version']);
-		}
+		$version = trim($info['version']);
 
 		if(isset($data['appdata']['version']) && $version<>trim($data['appdata']['version'])) {
 			OC_Helper::rmdirr($extractDir);
-			throw new \Exception($l->t("App can't be installed because the version in info.xml/version is not the same as the version reported from the app store"));
+			throw new \Exception($l->t("App can't be installed because the version in info.xml is not the same as the version reported from the app store"));
 		}
 
 		return $info;
diff --git a/lib/public/app.php b/lib/public/app.php
index e25f025d12dfeed946a06b368a2ccba0ec577e81..032116eb43f2b2da19a7b131812bd70d0d9be23c 100644
--- a/lib/public/app.php
+++ b/lib/public/app.php
@@ -142,7 +142,7 @@ class App {
 	}
 
 	/**
-	 * Get the last version of the app, either from appinfo/version or from appinfo/info.xml
+	 * Get the last version of the app from appinfo/info.xml
 	 * @param string $app
 	 * @return string
 	 * @since 4.0.0
diff --git a/tests/data/testapp.zip b/tests/data/testapp.zip
index e76c0d187248193e90ad487fbd172af065695aa3..c828572827f4ca1016cd5a859196586ee7f90287 100644
Binary files a/tests/data/testapp.zip and b/tests/data/testapp.zip differ
diff --git a/tests/data/testapp2.zip b/tests/data/testapp2.zip
index f46832f7a757b2199f293ab05d16c368f55b3e8e..1953cc896f84dd3ddc6f1b837c08a9bdba15314e 100644
Binary files a/tests/data/testapp2.zip and b/tests/data/testapp2.zip differ