Exploit databaseDownload repository ZIP
GH-13794a28e99af8452ce8e4224a1bc216
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138
Sources for CVE-2022-20138
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files14
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138Revision 144017c26d03
- ↑..Parent directory
- AppPredictionContext.aidl
- AppPredictionContext.java
- AppPredictionManager.java
- AppPredictionSessionId.aidl
- AppPredictionSessionId.java
- AppPredictor.java
- AppTarget.aidl
- AppTarget.java
- AppTargetEvent.aidl
- AppTargetEvent.java
- AppTargetId.aidl
- AppTargetId.java
- IPredictionCallback.aidl
- IPredictionManager.aidl
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/java/android/app/prediction/AppPredictionSessionId.java
Java · 2,356 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.app.prediction;
import android.annotation.NonNull;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.os.Parcel;
import android.os.Parcelable;
/**
* The id for an app prediction session. See {@link AppPredictor}.
*
* @hide
*/
@SystemApi
@TestApi
public final class AppPredictionSessionId implements Parcelable {
private final String mId;
/**
* Creates a new id for a prediction session.
*
* @hide
*/
public AppPredictionSessionId(@NonNull String id) {
mId = id;
}
private AppPredictionSessionId(Parcel p) {
mId = p.readString();
}
@Override
public boolean equals(Object o) {
if (!getClass().equals(o != null ? o.getClass() : null)) return false;
AppPredictionSessionId other = (AppPredictionSessionId) o;
return mId.equals(other.mId);
}
@Override
public @NonNull String toString() {
return mId;
}
@Override
public int hashCode() {
return mId.hashCode();
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeString(mId);
}
public static final @android.annotation.NonNull Parcelable.Creator<AppPredictionSessionId> CREATOR =
new Parcelable.Creator<AppPredictionSessionId>() {
public AppPredictionSessionId createFromParcel(Parcel parcel) {
return new AppPredictionSessionId(parcel);
}
public AppPredictionSessionId[] newArray(int size) {
return new AppPredictionSessionId[size];
}
};
}