Exploit databaseDownload repository ZIP
GH-9bef12607fbc6142c2d2e0da5832840c
nanopathi/framework_base_aosp10_r33_cve-2021-0339
Sources for CVE-2021-0339
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files95
nanopathi/framework_base_aosp10_r33_cve-2021-0339Revision 14c4f070663c
- ↑..Parent directory
- aidl/
- compat/
- feature/
- stub/
- ImsCallForwardInfo.aidl
- ImsCallForwardInfo.java
- ImsCallProfile.aidl
- ImsCallProfile.java
- ImsCallSession.java
- ImsCallSessionListener.java
- ImsConferenceState.aidl
- ImsConferenceState.java
- ImsException.java
- ImsExternalCallState.aidl
- ImsExternalCallState.java
- ImsMmTelManager.java
- ImsReasonInfo.aidl
- ImsReasonInfo.java
- ImsService.java
- ImsSsData.aidl
- ImsSsData.java
- ImsSsInfo.aidl
- ImsSsInfo.java
- ImsStreamMediaProfile.aidl
- ImsStreamMediaProfile.java
- ImsSuppServiceNotification.aidl
- ImsSuppServiceNotification.java
- ImsUtListener.java
- ImsVideoCallProvider.java
- ProvisioningManager.java
- Rcs1To1Thread.java
- RcsControllerCall.java
- RcsEvent.java
- RcsEventDescriptor.aidl
- RcsEventDescriptor.java
- RcsEventQueryParams.aidl
- RcsEventQueryParams.java
- RcsEventQueryResult.java
- RcsEventQueryResultDescriptor.aidl
- RcsEventQueryResultDescriptor.java
- RcsFileTransferCreationParams.aidl
- RcsFileTransferCreationParams.java
- RcsFileTransferPart.java
- RcsGroupThread.java
- RcsGroupThreadEvent.java
- RcsGroupThreadEventDescriptor.aidl
- RcsGroupThreadEventDescriptor.java
- RcsGroupThreadIconChangedEvent.java
- RcsGroupThreadIconChangedEventDescriptor.aidl
- RcsGroupThreadIconChangedEventDescriptor.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
telephony/java/android/telephony/ims/ImsException.java
Java · 4,252 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.telephony.ims;
import android.annotation.IntDef;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.content.pm.PackageManager;
import android.text.TextUtils;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* This class defines an IMS-related exception that has been thrown while interacting with a
* device or carrier provided ImsService implementation.
* @hide
*/
@SystemApi
public final class ImsException extends Exception {
/**
* The operation has failed due to an unknown or unspecified error.
*/
public static final int CODE_ERROR_UNSPECIFIED = 0;
/**
* The operation has failed because there is no {@link ImsService} available to service it. This
* may be due to an {@link ImsService} crash or other illegal state.
* <p>
* This is a temporary error and the operation may be retried until the connection to the
* {@link ImsService} is restored.
*/
public static final int CODE_ERROR_SERVICE_UNAVAILABLE = 1;
/**
* This device or carrier configuration does not support IMS for this subscription.
* <p>
* This is a permanent configuration error and there should be no retry. Usually this is
* because {@link PackageManager#FEATURE_TELEPHONY_IMS} is not available
* or the device has no ImsService implementation to service this request.
*/
public static final int CODE_ERROR_UNSUPPORTED_OPERATION = 2;
/**@hide*/
@Retention(RetentionPolicy.SOURCE)
@IntDef(prefix = "CODE_ERROR_", value = {
CODE_ERROR_UNSPECIFIED,
CODE_ERROR_SERVICE_UNAVAILABLE,
CODE_ERROR_UNSUPPORTED_OPERATION
})
public @interface ImsErrorCode {}
private int mCode = CODE_ERROR_UNSPECIFIED;
/**
* A new {@link ImsException} with an unspecified {@link ImsErrorCode} code.
* @param message an optional message to detail the error condition more specifically.
*/
public ImsException(@Nullable String message) {
super(getMessage(message, CODE_ERROR_UNSPECIFIED));
}
/**
* A new {@link ImsException} that includes an {@link ImsErrorCode} error code.
* @param message an optional message to detail the error condition more specifically.
*/
public ImsException(@Nullable String message, @ImsErrorCode int code) {
super(getMessage(message, code));
mCode = code;
}
/**
* A new {@link ImsException} that includes an {@link ImsErrorCode} error code and a
* {@link Throwable} that contains the original error that was thrown to lead to this Exception.
* @param message an optional message to detail the error condition more specifically.
* @param cause the {@link Throwable} that caused this {@link ImsException} to be created.
*/
public ImsException(@Nullable String message, @ImsErrorCode int code,
@Nullable Throwable cause) {
super(getMessage(message, code), cause);
mCode = code;
}
/**
* @return the IMS Error code that is associated with this {@link ImsException}.
*/
public @ImsErrorCode int getCode() {
return mCode;
}
private static String getMessage(String message, int code) {
StringBuilder builder;
if (!TextUtils.isEmpty(message)) {
builder = new StringBuilder(message);
builder.append(" (code: ");
builder.append(code);
builder.append(")");
return builder.toString();
} else {
return "code: " + code;
}
}
}