summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorrpcraig <rpcraig@tycho.ncsc.mil>2012-11-09 13:23:56 -0500
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-18 20:56:46 +0100
commit88aeb650afb72aeff6335ebfc9bfee59ed5751c8 (patch)
treeec2d71a99010b8b826cbbd1029d2d8c78d6e0e56 /services
parente87ce9fea6c742c09618f7da9004c642c740017a (diff)
downloadframeworks_base-88aeb650afb72aeff6335ebfc9bfee59ed5751c8.zip
frameworks_base-88aeb650afb72aeff6335ebfc9bfee59ed5751c8.tar.gz
frameworks_base-88aeb650afb72aeff6335ebfc9bfee59ed5751c8.tar.bz2
Save off the seinfo value with packages.list.
Patch adds the seinfo label per package to the file. Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8475e
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/pm/Settings.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/java/com/android/server/pm/Settings.java b/services/java/com/android/server/pm/Settings.java
index 4b716ed..96533b0 100644
--- a/services/java/com/android/server/pm/Settings.java
+++ b/services/java/com/android/server/pm/Settings.java
@@ -1375,6 +1375,7 @@ final class Settings {
// userId - application-specific user id
// debugFlag - 0 or 1 if the package is debuggable.
// dataPath - path to package's data path
+ // seinfo - seinfo label for the app (assigned at install time)
//
// NOTE: We prefer not to expose all ApplicationInfo flags for now.
//
@@ -1388,6 +1389,8 @@ final class Settings {
sb.append((int)ai.uid);
sb.append(isDebug ? " 1 " : " 0 ");
sb.append(dataPath);
+ sb.append(" ");
+ sb.append(ai.seinfo);
sb.append("\n");
str.write(sb.toString().getBytes());
}