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

Commit ae3056f4 authored by Inseob Kim's avatar Inseob Kim
Browse files

Fix missing schematized Car system properties

Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Test: mma -j
Change-Id: Ib698d64d93a7bf4c1d9b7d8b883009b8de65ed09
parent f9194eba
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -25,9 +25,9 @@ import android.content.pm.UserInfo;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.SystemProperties;
import android.os.UserHandle;
import android.os.UserManager;
import android.sysprop.CarProperties;
import android.util.Log;

import com.android.internal.util.UserIcons;
@@ -43,7 +43,6 @@ import java.util.List;
@Deprecated
public final class UserManagerHelper {
    private static final String TAG = "UserManagerHelper";
    private static final String HEADLESS_SYSTEM_USER = "android.car.systemuser.headless";
    private final Context mContext;
    private final UserManager mUserManager;
    private final ActivityManager mActivityManager;
@@ -84,7 +83,7 @@ public final class UserManagerHelper {
     * @return {@boolean true} if headless system user.
     */
    public boolean isHeadlessSystemUser() {
        return SystemProperties.getBoolean(HEADLESS_SYSTEM_USER, false);
        return CarProperties.headless_system_user().orElse(false);
    }

    /**