Make package installer a privileged core app

Package installer should be a core app, so it is available when we boot
in a core app only mode for the user to enter a pattern to decrypt.

Package installer is now a privileged app as it needs provileged
permissions in the additions to the ones we explicitly grant it.
This is to ensure it will get these permissions when its cert changes.

bug:22341030

Change-Id: I52137fe181b84fca6d49fb6b1b363527f0fd323c
diff --git a/Android.mk b/Android.mk
index d46c7f3..5a53086 100644
--- a/Android.mk
+++ b/Android.mk
@@ -31,6 +31,8 @@
 LOCAL_PACKAGE_NAME := PackageInstaller
 LOCAL_CERTIFICATE := platform
 
+LOCAL_PRIVILEGED_MODULE := true
+
 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
 
 include $(BUILD_PACKAGE)
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index bcf5925..d0c106c 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
-          package="com.android.packageinstaller">
+          package="com.android.packageinstaller" coreApp="true">
 
     <original-package android:name="com.android.packageinstaller" />