From a1d36f68924ae47760648767003bb9bf868c457b Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 24 Feb 2017 11:23:14 -0800 Subject: [PATCH] Revert "Read package ID and activity name from .apk for Gradle-based builds." (#8400) --- packages/flutter_tools/lib/src/application_package.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/lib/src/application_package.dart b/packages/flutter_tools/lib/src/application_package.dart index 0ee8d15524..b5dc498c8a 100644 --- a/packages/flutter_tools/lib/src/application_package.dart +++ b/packages/flutter_tools/lib/src/application_package.dart @@ -82,9 +82,8 @@ class AndroidApk extends ApplicationPackage { String apkPath; if (isProjectUsingGradle()) { - // Grab information from the .apk. The gradle build script might alter the - // application Id, so we need to look at what was actually built. - return new AndroidApk.fromApk(gradleAppOut); + manifestPath = gradleManifestPath; + apkPath = gradleAppOut; } else { manifestPath = fs.path.join('android', 'AndroidManifest.xml'); apkPath = fs.path.join(getAndroidBuildDirectory(), 'app.apk');