diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml
index b95af26e7b1ba..ebbf8f298944d 100644
--- a/packages/SystemUI/res/values/strings.xml
+++ b/packages/SystemUI/res/values/strings.xml
@@ -1091,11 +1091,11 @@
Swipe up to try again
-
- This device is managed by your organization
+
+ This device belongs to your organization
-
- This device is managed by %s
+
+ This device belongs to %s
Swipe from icon for phone
@@ -1288,29 +1288,29 @@
Network may be monitored
-
- Your organization manages this device and may monitor network traffic
+
+ Your organization owns this device and may monitor network traffic
-
- %1$s manages this device and may monitor network traffic
+
+ %1$s owns this device and may monitor network traffic
-
- Device is managed by your organization and connected to %1$s
+
+ This device belongs to your organization and is connected to %1$s
-
- Device is managed by %1$s and connected to %2$s
+
+ This device belongs to %1$s and is connected to %2$s
-
- Device is managed by your organization
+
+ This device belongs to your organization
-
- Device is managed by %1$s
+
+ This device belongs to %1$s
-
- Device is managed by your organization and connected to VPNs
+
+ This device belongs to your organization and is connected to VPNs
-
- Device is managed by %1$s and connected to VPNs
+
+ This device belongs to %1$s and is connected to VPNs
Your organization may monitor network traffic in your work profile
@@ -1321,17 +1321,17 @@
Network may be monitored
-
- Device connected to VPNs
+
+ This device is connected to VPNs
-
- Work profile connected to %1$s
+
+ Your work profile is connected to %1$s
-
- Personal profile connected to %1$s
+
+ Your personal profile is connected to %1$s
-
- Device connected to %1$s
+
+ This device is connected to %1$s
Device management
@@ -1361,11 +1361,11 @@
View Policies
-
- Your device is managed by %1$s.\n\nYour admin can monitor and manage settings, corporate access, apps, data associated with your device, and your device\'s location information.\n\nFor more information, contact your admin.
+
+ This device belongs to %1$s.\n\nYour IT admin can monitor and manage settings, corporate access, apps, data associated with your device, and your device\'s location information.\n\nFor more information, contact your IT admin.
-
- Your device is managed by your organization.\n\nYour admin can monitor and manage settings, corporate access, apps, data associated with your device, and your device\'s location information.\n\nFor more information, contact your admin.
+
+ This device belongs to your organization.\n\nYour IT admin can monitor and manage settings, corporate access, apps, data associated with your device, and your device\'s location information.\n\nFor more information, contact your IT admin.
Your organization installed a certificate authority on this device. Your secure network traffic may be monitored or modified.
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java b/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java
index 7bcaa7263cc48..51eca67e02f94 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooter.java
@@ -148,14 +148,19 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
final String vpnName = mSecurityController.getPrimaryVpnName();
final String vpnNameWorkProfile = mSecurityController.getWorkProfileVpnName();
final CharSequence organizationName = mSecurityController.getDeviceOwnerOrganizationName();
- final CharSequence workProfileName = mSecurityController.getWorkProfileOrganizationName();
+ final CharSequence workProfileOrganizationName =
+ mSecurityController.getWorkProfileOrganizationName();
+ final boolean isProfileOwnerOfOrganizationOwnedDevice =
+ mSecurityController.isProfileOwnerOfOrganizationOwnedDevice();
// Update visibility of footer
- mIsVisible = (isDeviceManaged && !isDemoDevice) || hasCACerts || hasCACertsInWorkProfile ||
- vpnName != null || vpnNameWorkProfile != null;
+ mIsVisible = (isDeviceManaged && !isDemoDevice) || hasCACerts || hasCACertsInWorkProfile
+ || vpnName != null || vpnNameWorkProfile != null
+ || isProfileOwnerOfOrganizationOwnedDevice;
// Update the string
mFooterTextContent = getFooterText(isDeviceManaged, hasWorkProfile,
hasCACerts, hasCACertsInWorkProfile, isNetworkLoggingEnabled, vpnName,
- vpnNameWorkProfile, organizationName, workProfileName);
+ vpnNameWorkProfile, organizationName, workProfileOrganizationName,
+ isProfileOwnerOfOrganizationOwnedDevice);
// Update the icon
int footerIconId = R.drawable.ic_info_outline;
if (vpnName != null || vpnNameWorkProfile != null) {
@@ -175,7 +180,8 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
protected CharSequence getFooterText(boolean isDeviceManaged, boolean hasWorkProfile,
boolean hasCACerts, boolean hasCACertsInWorkProfile, boolean isNetworkLoggingEnabled,
String vpnName, String vpnNameWorkProfile, CharSequence organizationName,
- CharSequence workProfileName) {
+ CharSequence workProfileOrganizationName,
+ boolean isProfileOwnerOfOrganizationOwnedDevice) {
if (isDeviceManaged || DEBUG_FORCE_VISIBLE) {
if (hasCACerts || hasCACertsInWorkProfile || isNetworkLoggingEnabled) {
if (organizationName == null) {
@@ -211,13 +217,13 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
organizationName);
} // end if(isDeviceManaged)
if (hasCACertsInWorkProfile) {
- if (workProfileName == null) {
+ if (workProfileOrganizationName == null) {
return mContext.getString(
R.string.quick_settings_disclosure_managed_profile_monitoring);
}
return mContext.getString(
R.string.quick_settings_disclosure_named_managed_profile_monitoring,
- workProfileName);
+ workProfileOrganizationName);
}
if (hasCACerts) {
return mContext.getString(R.string.quick_settings_disclosure_monitoring);
@@ -238,6 +244,13 @@ public class QSSecurityFooter implements OnClickListener, DialogInterface.OnClic
return mContext.getString(R.string.quick_settings_disclosure_named_vpn,
vpnName);
}
+ if (isProfileOwnerOfOrganizationOwnedDevice) {
+ if (workProfileOrganizationName == null) {
+ return mContext.getString(R.string.quick_settings_disclosure_management);
+ }
+ return mContext.getString(R.string.quick_settings_disclosure_named_management,
+ workProfileOrganizationName);
+ }
return null;
}
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityController.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityController.java
index 1fb9b691d5253..79d264ca45776 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityController.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityController.java
@@ -24,6 +24,8 @@ public interface SecurityController extends CallbackController