diff options
author | Mitchell Wills <mwills@google.com> | 2016-02-11 17:53:52 +0000 |
---|---|---|
committer | Mitchell Wills <mwills@google.com> | 2016-02-11 17:53:52 +0000 |
commit | 9f8586ea6d640e86560efd9a2d9c1909b08a3ef4 (patch) | |
tree | f79a09f583a46b153f90fe3f8a993aadcd92b844 /tests/wifitests/src/com/android/server/wifi/BinderUtil.java | |
parent | bbb3149f3bc301e81c202438b77c45574a90a851 (diff) | |
download | android_frameworks_opt_net_wifi-9f8586ea6d640e86560efd9a2d9c1909b08a3ef4.tar.gz android_frameworks_opt_net_wifi-9f8586ea6d640e86560efd9a2d9c1909b08a3ef4.tar.bz2 android_frameworks_opt_net_wifi-9f8586ea6d640e86560efd9a2d9c1909b08a3ef4.zip |
Revert "Allow managed profile to modify networks"
This reverts commit bbb3149f3bc301e81c202438b77c45574a90a851.
Bug: 27145628
Change-Id: I05ac9c714373b98fa73e0dba21ec4d815200af75
Diffstat (limited to 'tests/wifitests/src/com/android/server/wifi/BinderUtil.java')
-rw-r--r-- | tests/wifitests/src/com/android/server/wifi/BinderUtil.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/wifitests/src/com/android/server/wifi/BinderUtil.java b/tests/wifitests/src/com/android/server/wifi/BinderUtil.java deleted file mode 100644 index 107de7c8d..000000000 --- a/tests/wifitests/src/com/android/server/wifi/BinderUtil.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2016 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.server.wifi; - -import android.os.Binder; - -/** - * Utilities for faking the calling uid in Binder. - */ -public class BinderUtil { - /** - * Fake the calling uid in Binder. - * @param uid the calling uid that Binder should return from now on - */ - public static void setUid(int uid) { - Binder.restoreCallingIdentity((((long) uid) << 32) | Binder.getCallingPid()); - } -} |