summaryrefslogtreecommitdiffstats
path: root/core/java/android/os/UserId.java
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2012-08-13 17:36:14 -0700
committerChristopher Tate <ctate@google.com>2012-08-13 17:36:14 -0700
commitaac71ff465399251fa8e830407f2917b986988d9 (patch)
tree12178251368dfef76d9d23ed8a493358e7ab514c /core/java/android/os/UserId.java
parent38cc2a5a3ad076fbbb0824a91f49730a4297549b (diff)
downloadframeworks_base-aac71ff465399251fa8e830407f2917b986988d9.zip
frameworks_base-aac71ff465399251fa8e830407f2917b986988d9.tar.gz
frameworks_base-aac71ff465399251fa8e830407f2917b986988d9.tar.bz2
Don't back up / restore non-primary users' data
For now only the device owner "user" gets cloud backups. Also, only the device owner account has access to local backup/restore. Bug 6956438 Change-Id: I87d7ba5969e606c23f4214469f9bf2fd47a6c61b
Diffstat (limited to 'core/java/android/os/UserId.java')
-rw-r--r--core/java/android/os/UserId.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/os/UserId.java b/core/java/android/os/UserId.java
index 7e611df..18a3062 100644
--- a/core/java/android/os/UserId.java
+++ b/core/java/android/os/UserId.java
@@ -33,6 +33,8 @@ public final class UserId {
/** A user id to indicate the currently active user */
public static final int USER_CURRENT = -2;
+ /** A user id constant to indicate the "owner" user of the device */
+ public static final int USER_OWNER = 0;
/**
* Enable multi-user related side effects. Set this to false if there are problems with single