Exploit databaseDownload repository ZIP
GH-cd474985a1d611a2a689e02bc95daae0
satheesh575555/frameworks_base_aosp10_r33_cve-2022-20142
Sources for CVE-2022-20142
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files48
satheesh575555/frameworks_base_aosp10_r33_cve-2022-20142Revision 0b10dce4665c
- ↑..Parent directory
- ActivityChangedEvent.aidl
- ActivityChangedEvent.java
- ActivityRecognitionEvent.java
- ActivityRecognitionHardware.java
- ContextHubClient.java
- ContextHubClientCallback.java
- ContextHubInfo.aidl
- ContextHubInfo.java
- ContextHubIntentEvent.java
- ContextHubManager.java
- ContextHubMessage.aidl
- ContextHubMessage.java
- ContextHubTransaction.java
- GeofenceHardware.java
- GeofenceHardwareCallback.java
- GeofenceHardwareImpl.java
- GeofenceHardwareMonitorCallback.java
- GeofenceHardwareMonitorEvent.aidl
- GeofenceHardwareMonitorEvent.java
- GeofenceHardwareRequest.java
- GeofenceHardwareRequestParcelable.aidl
- GeofenceHardwareRequestParcelable.java
- GeofenceHardwareService.java
- IActivityRecognitionHardware.aidl
- IActivityRecognitionHardwareClient.aidl
- IActivityRecognitionHardwareSink.aidl
- IActivityRecognitionHardwareWatcher.aidl
- IContextHubCallback.aidl
- IContextHubClient.aidl
- IContextHubClientCallback.aidl
- IContextHubService.aidl
- IContextHubTransactionCallback.aidl
- IGeofenceHardware.aidl
- IGeofenceHardwareCallback.aidl
- IGeofenceHardwareMonitorCallback.aidl
- MemoryRegion.java
- NanoApp.aidl
- NanoApp.java
- NanoAppBinary.aidl
- NanoAppBinary.java
- NanoAppFilter.aidl
- NanoAppFilter.java
- NanoAppInstanceInfo.aidl
- NanoAppInstanceInfo.java
- NanoAppMessage.aidl
- NanoAppMessage.java
- NanoAppState.aidl
- NanoAppState.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/java/android/hardware/location/GeofenceHardwareRequestParcelable.java
Java · 5,745 bytes/*
* Copyright (C) 2013 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.hardware.location;
import android.os.BadParcelableException;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Geofence Hardware Request used for internal location services communication.
*
* @hide
*/
public final class GeofenceHardwareRequestParcelable implements Parcelable {
private GeofenceHardwareRequest mRequest;
private int mId;
public GeofenceHardwareRequestParcelable(int id, GeofenceHardwareRequest request) {
mId = id;
mRequest = request;
}
/**
* Returns the id of this request.
*/
public int getId() {
return mId;
}
/**
* Returns the latitude of this geofence.
*/
public double getLatitude() {
return mRequest.getLatitude();
}
/**
* Returns the longitude of this geofence.
*/
public double getLongitude() {
return mRequest.getLongitude();
}
/**
* Returns the radius of this geofence.
*/
public double getRadius() {
return mRequest.getRadius();
}
/**
* Returns transitions monitored for this geofence.
*/
public int getMonitorTransitions() {
return mRequest.getMonitorTransitions();
}
/**
* Returns the unknownTimer of this geofence.
*/
public int getUnknownTimer() {
return mRequest.getUnknownTimer();
}
/**
* Returns the notification responsiveness of this geofence.
*/
public int getNotificationResponsiveness() {
return mRequest.getNotificationResponsiveness();
}
/**
* Returns the last transition of this geofence.
*/
public int getLastTransition() {
return mRequest.getLastTransition();
}
/**
* Returns the type of the geofence for the current request.
*/
int getType() {
return mRequest.getType();
}
/**
* Returns the source technologies to track this geofence.
*/
int getSourceTechnologies() {
return mRequest.getSourceTechnologies();
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("id=");
builder.append(mId);
builder.append(", type=");
builder.append(mRequest.getType());
builder.append(", latitude=");
builder.append(mRequest.getLatitude());
builder.append(", longitude=");
builder.append(mRequest.getLongitude());
builder.append(", radius=");
builder.append(mRequest.getRadius());
builder.append(", lastTransition=");
builder.append(mRequest.getLastTransition());
builder.append(", unknownTimer=");
builder.append(mRequest.getUnknownTimer());
builder.append(", monitorTransitions=");
builder.append(mRequest.getMonitorTransitions());
builder.append(", notificationResponsiveness=");
builder.append(mRequest.getNotificationResponsiveness());
builder.append(", sourceTechnologies=");
builder.append(mRequest.getSourceTechnologies());
return builder.toString();
}
/**
* Method definitions to support Parcelable operations.
*/
public static final @android.annotation.NonNull Parcelable.Creator<GeofenceHardwareRequestParcelable> CREATOR =
new Parcelable.Creator<GeofenceHardwareRequestParcelable>() {
@Override
public GeofenceHardwareRequestParcelable createFromParcel(Parcel parcel) {
int geofenceType = parcel.readInt();
if (geofenceType != GeofenceHardwareRequest.GEOFENCE_TYPE_CIRCLE) {
throw new BadParcelableException("Invalid Geofence type: " + geofenceType);
}
GeofenceHardwareRequest request = GeofenceHardwareRequest.createCircularGeofence(
parcel.readDouble(),
parcel.readDouble(),
parcel.readDouble());
request.setLastTransition(parcel.readInt());
request.setMonitorTransitions(parcel.readInt());
request.setUnknownTimer(parcel.readInt());
request.setNotificationResponsiveness(parcel.readInt());
request.setSourceTechnologies(parcel.readInt());
int id = parcel.readInt();
return new GeofenceHardwareRequestParcelable(id, request);
}
@Override
public GeofenceHardwareRequestParcelable[] newArray(int size) {
return new GeofenceHardwareRequestParcelable[size];
}
};
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel parcel, int flags) {
parcel.writeInt(getType());
parcel.writeDouble(getLatitude());
parcel.writeDouble(getLongitude());
parcel.writeDouble(getRadius());
parcel.writeInt(getLastTransition());
parcel.writeInt(getMonitorTransitions());
parcel.writeInt(getUnknownTimer());
parcel.writeInt(getNotificationResponsiveness());
parcel.writeInt(getSourceTechnologies());
parcel.writeInt(getId());
}
}