commit | f3b9734464a850a10c6ee8cdc66773ac1aed951a | [log] [tgz] |
---|---|---|
author | yuemingw <yuemingw@google.com> | Wed Mar 28 15:35:40 2018 +0100 |
committer | Yueming Wang <yuemingw@google.com> | Wed Mar 28 18:57:33 2018 +0000 |
tree | 473a2e383d09ee99b057ae7ab3325c955eccb2f9 | |
parent | 8dfb334264e53e4419103e298cb78dbd77dc619a [diff] [blame] |
Intent.ACTION_AIRPLANE_MODE_CHANGED should have a boolean extra. Bug: 76468718 Test: run cts --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.DeviceOwnerTest#testAirplaneModeRestriction Change-Id: Iec208f744b80e48e29f5a38ee88613e19f0d01b3
diff --git a/services/core/java/com/android/server/pm/UserRestrictionsUtils.java b/services/core/java/com/android/server/pm/UserRestrictionsUtils.java index c362274..9ca02ba 100644 --- a/services/core/java/com/android/server/pm/UserRestrictionsUtils.java +++ b/services/core/java/com/android/server/pm/UserRestrictionsUtils.java
@@ -559,7 +559,7 @@ android.provider.Settings.Global.AIRPLANE_MODE_ON, 0); // Post the intent. Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); - intent.putExtra("state", 0); + intent.putExtra("state", false); context.sendBroadcastAsUser(intent, UserHandle.ALL); } }