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

Commit fd2e55d8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "frameworks/base : testNoManagedUsersIfLowRamDevice failure"

parents 7dc0e392 39a927f0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -281,6 +281,8 @@ public class SystemConfig {
                    if (fname == null) {
                        Slog.w(TAG, "<feature> without name at "
                                + parser.getPositionDescription());
                    } else if (isLowRamDevice() && "android.software.managed_users".equals(fname)) {
                        Slog.w(TAG, "Feature not supported on low memory device "+fname);
                    } else {
                        //Log.i(TAG, "Got feature " + fname);
                        FeatureInfo fi = new FeatureInfo();
@@ -360,4 +362,8 @@ public class SystemConfig {
            XmlUtils.skipCurrentTag(parser);
        }
    }

    boolean isLowRamDevice() {
        return "true".equals(SystemProperties.get("ro.config.low_ram", "false"));
    }
}