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

Commit 1358ebe4 authored by Magnus Eriksson's avatar Magnus Eriksson
Browse files

Fix off-by-one error when filtering application UIDs



A filtering check in writeLPr() mistakenly includes the first application UID
(10000) with the result that the package with UID 10000 is missing from
packages.list. This patch fix the error.

Change-Id: I3651beb346290db8e09317391b95a77aed1946b6
Signed-off-by: default avatarMagnus Eriksson <eriksson.mag@gmail.com>
parent 1f9e7499
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -971,7 +971,7 @@ final class Settings {

                    // Avoid any application that has a space in its path
                    // or that is handled by the system.
                    if (dataPath.indexOf(" ") >= 0 || ai.uid <= Process.FIRST_APPLICATION_UID)
                    if (dataPath.indexOf(" ") >= 0 || ai.uid < Process.FIRST_APPLICATION_UID)
                        continue;

                    // we store on each line the following information for now: