Exploit databaseDownload repository ZIP
GH-50afc00e93ad474caf20584d2a24a90f
trinadh465/frameworks_base_aosp_10_r33_cve-2022-20338
Sources for CVE-2022-20338
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files136
trinadh465/frameworks_base_aosp_10_r33_cve-2022-20338Revision 72b9ea7e203c
- ↑..Parent directory
- cdma/
- data/
- emergency/
- euicc/
- gsm/
- ims/
- mbms/
- AccessNetworkConstants.java
- AccessNetworkUtils.java
- AnomalyReporter.java
- AvailableNetworkInfo.aidl
- AvailableNetworkInfo.java
- CallAttributes.aidl
- CallAttributes.java
- CallQuality.aidl
- CallQuality.java
- CarrierConfigManager.java
- CarrierRestrictionRules.aidl
- CarrierRestrictionRules.java
- CellConfigLte.java
- CellIdentity.aidl
- CellIdentity.java
- CellIdentityCdma.aidl
- CellIdentityCdma.java
- CellIdentityGsm.aidl
- CellIdentityGsm.java
- CellIdentityLte.aidl
- CellIdentityLte.java
- CellIdentityNr.java
- CellIdentityTdscdma.aidl
- CellIdentityTdscdma.java
- CellIdentityWcdma.aidl
- CellIdentityWcdma.java
- CellInfo.aidl
- CellInfo.java
- CellInfoCdma.java
- CellInfoGsm.java
- CellInfoLte.java
- CellInfoNr.java
- CellInfoTdscdma.java
- CellInfoWcdma.java
- CellLocation.java
- CellSignalStrength.java
- CellSignalStrengthCdma.java
- CellSignalStrengthGsm.java
- CellSignalStrengthLte.java
- CellSignalStrengthNr.java
- CellSignalStrengthTdscdma.java
- CellSignalStrengthWcdma.java
- ClientRequestStats.aidl
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
telephony/java/android/telephony/CellInfoNr.java
Java · 3,619 bytes/*
* Copyright (C) 2018 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.telephony;
import android.annotation.NonNull;
import android.os.Parcel;
import java.util.Objects;
/**
* A {@link CellInfo} representing an 5G NR cell that provides identity and measurement info.
*/
public final class CellInfoNr extends CellInfo {
private static final String TAG = "CellInfoNr";
private final CellIdentityNr mCellIdentity;
private final CellSignalStrengthNr mCellSignalStrength;
private CellInfoNr(Parcel in) {
super(in);
mCellIdentity = CellIdentityNr.CREATOR.createFromParcel(in);
mCellSignalStrength = CellSignalStrengthNr.CREATOR.createFromParcel(in);
}
private CellInfoNr(CellInfoNr other, boolean sanitizeLocationInfo) {
super(other);
mCellIdentity = sanitizeLocationInfo ? other.mCellIdentity.sanitizeLocationInfo()
: other.mCellIdentity;
mCellSignalStrength = other.mCellSignalStrength;
}
/**
* @return a {@link CellIdentityNr} instance.
*/
@Override
@NonNull
public CellIdentity getCellIdentity() {
return mCellIdentity;
}
/**
* @return a {@link CellSignalStrengthNr} instance.
*/
@Override
@NonNull
public CellSignalStrength getCellSignalStrength() {
return mCellSignalStrength;
}
/** @hide */
@Override
public CellInfo sanitizeLocationInfo() {
return new CellInfoNr(this, true);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), mCellIdentity, mCellSignalStrength);
}
@Override
public boolean equals(Object other) {
if (!(other instanceof CellInfoNr)) {
return false;
}
CellInfoNr o = (CellInfoNr) other;
return super.equals(o) && mCellIdentity.equals(o.mCellIdentity)
&& mCellSignalStrength.equals(o.mCellSignalStrength);
}
@Override
public String toString() {
return new StringBuilder()
.append(TAG + ":{")
.append(" " + super.toString())
.append(" " + mCellIdentity)
.append(" " + mCellSignalStrength)
.append(" }")
.toString();
}
@Override
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags, TYPE_NR);
mCellIdentity.writeToParcel(dest, flags);
mCellSignalStrength.writeToParcel(dest, flags);
}
public static final @android.annotation.NonNull Creator<CellInfoNr> CREATOR = new Creator<CellInfoNr>() {
@Override
public CellInfoNr createFromParcel(Parcel in) {
// Skip the type info.
in.readInt();
return new CellInfoNr(in);
}
@Override
public CellInfoNr[] newArray(int size) {
return new CellInfoNr[size];
}
};
/** @hide */
protected static CellInfoNr createFromParcelBody(Parcel in) {
return new CellInfoNr(in);
}
}