Merge "Fix off-by-one error when filtering application UIDs"

This commit is contained in:
Jean-Baptiste Queru
2012-05-01 06:42:35 -07:00
committed by android code review

View File

@@ -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:
@@ -2261,4 +2261,4 @@ final class Settings {
pw.println("Settings parse messages:");
pw.print(mReadMessages.toString());
}
}
}