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

Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -25,9 +25,9 @@ import android.content.pm.UserInfo; ...@@ -25,9 +25,9 @@ import android.content.pm.UserInfo;
import android.graphics.Bitmap; import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable; import android.graphics.drawable.Drawable;
import android.os.SystemProperties;
import android.os.UserHandle; import android.os.UserHandle;
import android.os.UserManager; import android.os.UserManager;
import android.sysprop.CarProperties;
import android.util.Log; import android.util.Log;
import com.android.internal.util.UserIcons; import com.android.internal.util.UserIcons;
...@@ -43,7 +43,6 @@ import java.util.List; ...@@ -43,7 +43,6 @@ import java.util.List;
@Deprecated @Deprecated
public final class UserManagerHelper { public final class UserManagerHelper {
private static final String TAG = "UserManagerHelper"; private static final String TAG = "UserManagerHelper";
private static final String HEADLESS_SYSTEM_USER = "android.car.systemuser.headless";
private final Context mContext; private final Context mContext;
private final UserManager mUserManager; private final UserManager mUserManager;
private final ActivityManager mActivityManager; private final ActivityManager mActivityManager;
...@@ -84,7 +83,7 @@ public final class UserManagerHelper { ...@@ -84,7 +83,7 @@ public final class UserManagerHelper {
* @return {@boolean true} if headless system user. * @return {@boolean true} if headless system user.
*/ */
public boolean isHeadlessSystemUser() { public boolean isHeadlessSystemUser() {
return SystemProperties.getBoolean(HEADLESS_SYSTEM_USER, false); return CarProperties.headless_system_user().orElse(false);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment