Exploit databaseDownload repository ZIP
GH-12737d57f49df9711fa1c097c9e9ec1d
nanopathi/framework_base_aosp10_r33_cve-2021-0472
Sources for CVE-2021-0472
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files28
nanopathi/framework_base_aosp10_r33_cve-2021-0472Revision 14f1ba804544
- ↑..Parent directory
- AttachCallback.java
- Characteristics.aidl
- Characteristics.java
- ConfigRequest.aidl
- ConfigRequest.java
- DiscoverySession.java
- DiscoverySessionCallback.java
- IWifiAwareDiscoverySessionCallback.aidl
- IWifiAwareEventCallback.aidl
- IWifiAwareMacAddressProvider.aidl
- IWifiAwareManager.aidl
- IdentityChangedListener.java
- ParcelablePeerHandle.java
- PeerHandle.java
- PublishConfig.aidl
- PublishConfig.java
- PublishDiscoverySession.java
- SubscribeConfig.aidl
- SubscribeConfig.java
- SubscribeDiscoverySession.java
- TlvBufferUtils.java
- WifiAwareAgentNetworkSpecifier.java
- WifiAwareManager.java
- WifiAwareNetworkInfo.java
- WifiAwareNetworkSpecifier.java
- WifiAwareSession.java
- WifiAwareUtils.java
- package.html
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
wifi/java/android/net/wifi/aware/ParcelablePeerHandle.java
Java · 2,024 bytes/*
* Copyright (C) 2019 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 android.net.wifi.aware;
import android.annotation.NonNull;
import android.os.Parcel;
import android.os.Parcelable;
/**
* A Parcelable {@link PeerHandle}. Can be constructed from a {@code PeerHandle} and then passed
* to any of the APIs which take a {@code PeerHandle} as inputs.
*/
public final class ParcelablePeerHandle extends PeerHandle implements Parcelable {
/**
* Construct a parcelable version of {@link PeerHandle}.
*
* @param peerHandle The {@link PeerHandle} to be made parcelable.
*/
public ParcelablePeerHandle(@NonNull PeerHandle peerHandle) {
super(peerHandle.peerId);
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(peerId);
}
public static final @android.annotation.NonNull Creator<ParcelablePeerHandle> CREATOR =
new Creator<ParcelablePeerHandle>() {
@Override
public ParcelablePeerHandle[] newArray(int size) {
return new ParcelablePeerHandle[size];
}
@Override
public ParcelablePeerHandle createFromParcel(Parcel in) {
int peerHandle = in.readInt();
return new ParcelablePeerHandle(new PeerHandle(peerHandle));
}
};
}