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 files18
nanopathi/framework_base_aosp10_r33_cve-2021-0472Revision 14f1ba804544
- ↑..Parent directory
- ExportResult.java
- IKeyAttestationApplicationIdProvider.aidl
- KeyAttestationApplicationId.aidl
- KeyAttestationApplicationId.java
- KeyAttestationPackageInfo.aidl
- KeyAttestationPackageInfo.java
- KeyCharacteristics.java
- KeymasterArgument.java
- KeymasterArguments.java
- KeymasterBlob.java
- KeymasterBlobArgument.java
- KeymasterBooleanArgument.java
- KeymasterCertificateChain.java
- KeymasterDateArgument.java
- KeymasterDefs.java
- KeymasterIntArgument.java
- KeymasterLongArgument.java
- OperationResult.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/java/android/security/keymaster/KeymasterIntArgument.java
Java · 1,572 bytes/*
* Copyright (C) 2015 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.security.keymaster;
import android.annotation.UnsupportedAppUsage;
import android.os.Parcel;
/**
* @hide
*/
class KeymasterIntArgument extends KeymasterArgument {
@UnsupportedAppUsage
public final int value;
@UnsupportedAppUsage
public KeymasterIntArgument(int tag, int value) {
super(tag);
switch (KeymasterDefs.getTagType(tag)) {
case KeymasterDefs.KM_UINT:
case KeymasterDefs.KM_UINT_REP:
case KeymasterDefs.KM_ENUM:
case KeymasterDefs.KM_ENUM_REP:
break; // OK.
default:
throw new IllegalArgumentException("Bad int tag " + tag);
}
this.value = value;
}
@UnsupportedAppUsage
public KeymasterIntArgument(int tag, Parcel in) {
super(tag);
value = in.readInt();
}
@Override
public void writeValue(Parcel out) {
out.writeInt(value);
}
}