Revert "Settings: Add package name to installed app details"

This reverts commit 6e85aab995920b049b1e04f9ddce15609313173d.

Change-Id: Iab7ee4be2be6b261881d4592cc456b3953be25a0
diff --git a/res/xml/app_info_settings.xml b/res/xml/app_info_settings.xml
index b5c7088..0782f67 100644
--- a/res/xml/app_info_settings.xml
+++ b/res/xml/app_info_settings.xml
@@ -215,16 +215,9 @@
     <Preference
         android:key="app_version"
         android:selectable="false"
-        android:order="9998"
+        android:order="9999"
         settings:controller="com.android.settings.applications.appinfo.AppVersionPreferenceController"
         settings:allowDividerAbove="true"
         settings:enableCopying="true"/>
 
-    <Preference
-        android:key="app_package_name"
-        android:selectable="false"
-        android:order="9999"
-        settings:controller="com.android.settings.applications.appinfo.AppPackageNamePreferenceController"
-        settings:enableCopying="true"/>
-
 </PreferenceScreen>
diff --git a/src/com/android/settings/applications/appinfo/AppInfoDashboardFragment.java b/src/com/android/settings/applications/appinfo/AppInfoDashboardFragment.java
index b28e371..82d55f3 100644
--- a/src/com/android/settings/applications/appinfo/AppInfoDashboardFragment.java
+++ b/src/com/android/settings/applications/appinfo/AppInfoDashboardFragment.java
@@ -178,7 +178,6 @@
         use(AppAllServicesPreferenceController.class).setPackageName(packageName);
         use(AppStoragePreferenceController.class).setParentFragment(this);
         use(AppVersionPreferenceController.class).setParentFragment(this);
-        use(AppPackageNamePreferenceController.class).setParentFragment(this);
         use(InstantAppDomainsPreferenceController.class).setParentFragment(this);
 
         final HibernationSwitchPreferenceController appHibernationSettings =
diff --git a/src/com/android/settings/applications/appinfo/AppPackageNamePreferenceController.java b/src/com/android/settings/applications/appinfo/AppPackageNamePreferenceController.java
deleted file mode 100644
index bd4f12f..0000000
--- a/src/com/android/settings/applications/appinfo/AppPackageNamePreferenceController.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 2018 The LineageOS Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.settings.applications.appinfo;
-
-import android.content.Context;
-
-public class AppPackageNamePreferenceController extends AppInfoPreferenceControllerBase {
-
-    public AppPackageNamePreferenceController(Context context, String key) {
-        super(context, key);
-    }
-
-    @Override
-    public CharSequence getSummary() {
-        return mParent.getPackageInfo().packageName;
-    }
-}