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.


Change-Id: I52137fe181b84fca6d49fb6b1b363527f0fd323c
diff --git a/ b/
index d46c7f3..5a53086 100644
--- a/
+++ b/
@@ -31,6 +31,8 @@
 LOCAL_PACKAGE_NAME := PackageInstaller
 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=""
-          package="">
+          package="" coreApp="true">
     <original-package android:name="" />