Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88aeb650 authored by rpcraig's avatar rpcraig Committed by Ricardo Cerqueira
Browse files

Save off the seinfo value with packages.list.

Patch adds the seinfo label per package to the file.

Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8475e
parent e87ce9fe
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1375,6 +1375,7 @@ final class Settings {
                    // userId     - application-specific user id
                    // userId     - application-specific user id
                    // debugFlag  - 0 or 1 if the package is debuggable.
                    // debugFlag  - 0 or 1 if the package is debuggable.
                    // dataPath   - path to package's data path
                    // 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.
                    // 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((int)ai.uid);
                    sb.append(isDebug ? " 1 " : " 0 ");
                    sb.append(isDebug ? " 1 " : " 0 ");
                    sb.append(dataPath);
                    sb.append(dataPath);
                    sb.append(" ");
                    sb.append(ai.seinfo);
                    sb.append("\n");
                    sb.append("\n");
                    str.write(sb.toString().getBytes());
                    str.write(sb.toString().getBytes());
                }
                }