add a notice that Work profiles are not compatible with Instant Run

Also includes the redirect for links from the Studio UI
bug: 31098748

Change-Id: Ief7296e512ccf387d738426026413dfe19785ff7
This commit is contained in:
smain@google.com
2016-08-26 16:25:24 -07:00
parent b2507eb7b7
commit 99e44c903c
2 changed files with 13 additions and 0 deletions

View File

@@ -1219,6 +1219,8 @@ redirects:
to: /studio/intro/index.html?utm_medium=android-studio
- from: /r/studio-ui/menu-start.html
to: /training/index.html?utm_medium=android-studio
- from: /r/studio-ui/run-with-work-profile.html
to: /studio/run/index.html#ir-work-profile?utm_medium=android-studio
# Redirects from (removed) N Preview documentation
- from: /preview/features/afw.html

View File

@@ -412,6 +412,17 @@ page.image=images/work/cards/android-studio_600px.png
</li>
</ol>
<p class="caution"><b>Caution</b>: When running your app with Instant Run in
Android Studio, attempting to open your app with a Work profile or secondary
profile will crash your app. To use your app with the Work profile, we
recommend you create a new <a href="/studio/run/rundebugconfig.html">run
configuration</a> that includes the <code>--user <var>user_id</var></code> flag,
specifying the Work profile user ID. You can find the user ID by executing
<code>adb shell pm list users</code> from command line. For more information,
see the <a href="/studio/run/index.html#ir-work-profile">Instant Run
documentation</a>.</p>
<h3>Provision a device owner</h3>
<p>