diff options
author | longyu.huang <longyu.huang2014@gmail.com> | 2015-04-09 00:09:43 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-26 21:55:35 -0700 |
commit | b4ef501a41aa24e1423ba7938747deefba604ad6 (patch) | |
tree | f1ac54f6977b6629b3de325466d1981b75aa8488 /policy/src | |
parent | f5e73fe7a69cea6ccc6afc72f0a285fda8b5550a (diff) | |
download | frameworks_base-b4ef501a41aa24e1423ba7938747deefba604ad6.zip frameworks_base-b4ef501a41aa24e1423ba7938747deefba604ad6.tar.gz frameworks_base-b4ef501a41aa24e1423ba7938747deefba604ad6.tar.bz2 |
The DUT can't screen shot in guest mode
Change-Id: I90c95432cba8364ca5a74b6a7b219435291f0769
(cherry picked from commit e64f75193b22167ec95af3980ab6de0d62c4ba51)
Diffstat (limited to 'policy/src')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/GlobalActions.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/policy/src/com/android/internal/policy/impl/GlobalActions.java b/policy/src/com/android/internal/policy/impl/GlobalActions.java index b481d63..142abe5 100755 --- a/policy/src/com/android/internal/policy/impl/GlobalActions.java +++ b/policy/src/com/android/internal/policy/impl/GlobalActions.java @@ -800,7 +800,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac @Override public void onServiceDisconnected(ComponentName name) {} }; - if (mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE)) { + if (mContext.bindServiceAsUser( + intent, conn, Context.BIND_AUTO_CREATE, UserHandle.CURRENT)) { mScreenshotConnection = conn; mHandler.postDelayed(mScreenshotTimeout, 10000); } |