Loading core/java/android/content/Context.java +6 −0 Original line number Diff line number Diff line Loading @@ -3643,6 +3643,12 @@ public abstract class Context { */ public static final String SYSTEM_HEALTH_SERVICE = "systemhealth"; /** * Gatekeeper Service. * @hide */ public static final String GATEKEEPER_SERVICE = "android.service.gatekeeper.IGateKeeperService"; /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. Loading core/java/android/os/Environment.java +16 −0 Original line number Diff line number Diff line Loading @@ -240,6 +240,22 @@ public class Environment { return new File(getDataDirectory(), "system"); } /** * Returns the base directory for per-user system directory, device encrypted. * {@hide} */ public static File getDataSystemDeDirectory() { return buildPath(getDataDirectory(), "system_de"); } /** * Returns the base directory for per-user system directory, credential encrypted. * {@hide} */ public static File getDataSystemCeDirectory() { return buildPath(getDataDirectory(), "system_ce"); } /** {@hide} */ public static File getDataSystemCeDirectory(int userId) { return buildPath(getDataDirectory(), "system_ce", String.valueOf(userId)); Loading core/java/android/os/UserManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -1508,7 +1508,9 @@ public class UserManager { } /** * Returns information for all users on this device. * Returns information for all users on this device, including ones marked for deletion. * To retrieve only users that are alive, use {@link #getUsers(boolean)}. * <p> * Requires {@link android.Manifest.permission#MANAGE_USERS} permission. * @return the list of users that exist on the device. * @hide Loading keystore/java/android/security/GateKeeper.java +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.security; import android.content.Context; import android.os.RemoteException; import android.os.ServiceManager; import android.os.UserHandle; Loading @@ -32,7 +33,7 @@ public abstract class GateKeeper { public static IGateKeeperService getService() { IGateKeeperService service = IGateKeeperService.Stub.asInterface( ServiceManager.getService("android.service.gatekeeper.IGateKeeperService")); ServiceManager.getService(Context.GATEKEEPER_SERVICE)); if (service == null) { throw new IllegalStateException("Gatekeeper service not available"); } Loading services/core/java/com/android/server/LockSettingsService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1588,7 +1588,7 @@ public class LockSettingsService extends ILockSettings.Stub { } final IBinder service = ServiceManager.getService("android.service.gatekeeper.IGateKeeperService"); ServiceManager.getService(Context.GATEKEEPER_SERVICE); if (service != null) { service.linkToDeath(new GateKeeperDiedRecipient(), 0); mGateKeeperService = IGateKeeperService.Stub.asInterface(service); Loading Loading
core/java/android/content/Context.java +6 −0 Original line number Diff line number Diff line Loading @@ -3643,6 +3643,12 @@ public abstract class Context { */ public static final String SYSTEM_HEALTH_SERVICE = "systemhealth"; /** * Gatekeeper Service. * @hide */ public static final String GATEKEEPER_SERVICE = "android.service.gatekeeper.IGateKeeperService"; /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. Loading
core/java/android/os/Environment.java +16 −0 Original line number Diff line number Diff line Loading @@ -240,6 +240,22 @@ public class Environment { return new File(getDataDirectory(), "system"); } /** * Returns the base directory for per-user system directory, device encrypted. * {@hide} */ public static File getDataSystemDeDirectory() { return buildPath(getDataDirectory(), "system_de"); } /** * Returns the base directory for per-user system directory, credential encrypted. * {@hide} */ public static File getDataSystemCeDirectory() { return buildPath(getDataDirectory(), "system_ce"); } /** {@hide} */ public static File getDataSystemCeDirectory(int userId) { return buildPath(getDataDirectory(), "system_ce", String.valueOf(userId)); Loading
core/java/android/os/UserManager.java +3 −1 Original line number Diff line number Diff line Loading @@ -1508,7 +1508,9 @@ public class UserManager { } /** * Returns information for all users on this device. * Returns information for all users on this device, including ones marked for deletion. * To retrieve only users that are alive, use {@link #getUsers(boolean)}. * <p> * Requires {@link android.Manifest.permission#MANAGE_USERS} permission. * @return the list of users that exist on the device. * @hide Loading
keystore/java/android/security/GateKeeper.java +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.security; import android.content.Context; import android.os.RemoteException; import android.os.ServiceManager; import android.os.UserHandle; Loading @@ -32,7 +33,7 @@ public abstract class GateKeeper { public static IGateKeeperService getService() { IGateKeeperService service = IGateKeeperService.Stub.asInterface( ServiceManager.getService("android.service.gatekeeper.IGateKeeperService")); ServiceManager.getService(Context.GATEKEEPER_SERVICE)); if (service == null) { throw new IllegalStateException("Gatekeeper service not available"); } Loading
services/core/java/com/android/server/LockSettingsService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1588,7 +1588,7 @@ public class LockSettingsService extends ILockSettings.Stub { } final IBinder service = ServiceManager.getService("android.service.gatekeeper.IGateKeeperService"); ServiceManager.getService(Context.GATEKEEPER_SERVICE); if (service != null) { service.linkToDeath(new GateKeeperDiedRecipient(), 0); mGateKeeperService = IGateKeeperService.Stub.asInterface(service); Loading