docs: Updating Android for Work N Preview page for DP2.
am: 7037a86
* commit '7037a86e36ddfe23833c80acba258abf9f0c1d62':
docs: Updating Android for Work N Preview page for DP2.
Change-Id: I3b3bc1c7ad096e1c92b64dc764ba571748eb6cc6
This commit is contained in:
@@ -142,13 +142,15 @@ Android N.</p>
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
Device owners and profile owners can temporarily suspend access to packages
|
Device owners and profile owners can temporarily suspend access to packages
|
||||||
by calling the new <code>DevicePolicyManager.getPackagesSuspended()</code>
|
by calling the new <code>DevicePolicyManager.setPackagesSuspended()</code>
|
||||||
method.Owners can use the same method to re-enable those packages.
|
method. Owners can use the same method to re-enable those packages.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
While a package is suspended, it cannot start activities, and notifications
|
While a package is suspended, it cannot start activities, notifications to
|
||||||
to the package are suppressed. Suspended packages do not show in the <a href=
|
the package are suppressed, and the app's entry in the <a
|
||||||
|
href="{@docRoot}guide/components/recents.html">overview screen</a> is hidden.
|
||||||
|
Suspended packages do not show in the <a href=
|
||||||
"{@docRoot}guide/components/recents.html">overview screen</a>, and they
|
"{@docRoot}guide/components/recents.html">overview screen</a>, and they
|
||||||
cannot show dialogs (including toasts and snackbars). They also cannot play
|
cannot show dialogs (including toasts and snackbars). They also cannot play
|
||||||
audio or vibrate the device.
|
audio or vibrate the device.
|
||||||
@@ -157,19 +159,22 @@ Android N.</p>
|
|||||||
<p>
|
<p>
|
||||||
Launchers should apply a distinctive UI to suspended apps to show that the
|
Launchers should apply a distinctive UI to suspended apps to show that the
|
||||||
apps aren't currently available; for example, they might render the app icon
|
apps aren't currently available; for example, they might render the app icon
|
||||||
in gray. Launchers can find out which apps are suspended by calling the new
|
in gray. Launchers can find out if an app is suspended by calling the new
|
||||||
<code>DevicePolicyManager.getPackagesSuspended()</code> method.
|
<code>DevicePolicyManager.getPackageSuspended()</code> method.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h2 id="toggle-work">Toggle Work Mode</h2>
|
<h2 id="toggle-work">Toggle Work Mode</h2>
|
||||||
|
|
||||||
<p>On dual-profile devices, users can toggle work mode on and off. While work
|
<p>
|
||||||
mode is turned off, the managed profile is temporarily shut down. Work profile apps, background sync, and notifications are all disabled, including the profile
|
On dual-profile devices, users can toggle work mode on and off. While work
|
||||||
owner app. While the work profile is disabled, the system displays a persistent status icon to remind users that they can't launch work apps. The system launcher
|
mode is turned off, the managed profile is temporarily shut down. Work
|
||||||
indicates that work apps and widgets are not accessible.
|
profile apps, background sync, and notifications are all disabled, including
|
||||||
|
the profile owner app. While the work profile is disabled, the system
|
||||||
|
displays a persistent status icon to remind users that they can't launch work
|
||||||
|
apps. The system launcher indicates that work apps and widgets are not
|
||||||
|
accessible.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<h2 id="always-on-vpn">Always-On VPN</h2>
|
<h2 id="always-on-vpn">Always-On VPN</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -270,29 +275,36 @@ Android N.</p>
|
|||||||
Device owners can identify suspicious activity by remotely tracking device
|
Device owners can identify suspicious activity by remotely tracking device
|
||||||
activity, including app launches, adb activity, and screen unlocks. Process
|
activity, including app launches, adb activity, and screen unlocks. Process
|
||||||
logs don’t require user consent. To retrieve logs, device owners enable
|
logs don’t require user consent. To retrieve logs, device owners enable
|
||||||
device logging using <code>setDeviceLoggingEnabled()</code>.
|
device logging using <code>DevicePolicyManager.setSecurityLoggingEnabled()</code>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The new <code>android.auditing.SecurityLog</code> class includes these
|
API changes include:
|
||||||
methods:
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<code>void DevicePolicyManager.setDeviceLoggingEnabled()</code>
|
The new class <code>android.app.admin.SecurityLog</code> and its
|
||||||
|
methods
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<code>boolean DevicePolicyManager.getDeviceLoggingEnabled()</code>
|
<code>void DevicePolicyManager.setSecurityLoggingEnabled()</code>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<code>List DevicePolicyManager.retrieveDeviceLogs()</code>
|
<code>boolean DevicePolicyManager.isSecurityLoggingEnabled()</code>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<code>List DevicePolicyManager.retrievePreviousDeviceLogs()</code>
|
<code>List<SecurityEvent>
|
||||||
|
DevicePolicyManager.retrieveSecurityLogs()</code>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<code>List<SecurityEvent>
|
||||||
|
DevicePolicyManager.retrievePreRebootSecurityLogs()</code>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
@@ -475,7 +487,7 @@ Android N.</p>
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
Device owners can provide owner information to be shownon the lockscreen.
|
Device owners can provide owner information to be shownon the lockscreen.
|
||||||
This information takes precedence the user lock screen message (if one is
|
This information takes precedence over the user lock screen message (if one is
|
||||||
set). New {@link android.app.admin.DevicePolicyManager} methods are:
|
set). New {@link android.app.admin.DevicePolicyManager} methods are:
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user