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 files24
trinadh465/frameworks_base_aosp10_r33_cve-2022-20138Revision 144017c26d03
- ↑..Parent directory
- AppStandbyInfo.java
- CacheQuotaHint.aidl
- CacheQuotaHint.java
- CacheQuotaService.java
- ConfigurationStats.java
- EventList.java
- EventStats.java
- ExternalStorageStats.aidl
- ExternalStorageStats.java
- ICacheQuotaService.aidl
- IStorageStatsManager.aidl
- IUsageStatsManager.aidl
- NetworkStats.java
- NetworkStatsManager.java
- PackageUsageStats.aidl
- StorageStats.aidl
- StorageStats.java
- StorageStatsManager.java
- TimeSparseArray.java
- UsageEvents.aidl
- UsageEvents.java
- UsageStats.java
- UsageStatsManager.java
- UsageStatsManagerInternal.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/java/android/app/usage/ExternalStorageStats.java
Java · 4,567 bytes/*
* Copyright (C) 2017 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.usage;
import android.annotation.BytesLong;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.UserHandle;
/**
* Shared/external storage statistics for a {@link UserHandle} on a single
* storage volume.
*
* @see StorageStatsManager
*/
public final class ExternalStorageStats implements Parcelable {
/** {@hide} */ public long totalBytes;
/** {@hide} */ public long audioBytes;
/** {@hide} */ public long videoBytes;
/** {@hide} */ public long imageBytes;
/** {@hide} */ public long appBytes;
/** {@hide} */ public long obbBytes;
/**
* Return the total bytes used by all files in the shared/external storage
* hosted on this volume.
* <p>
* This value only includes data which is isolated for each user on a
* multiuser device. Any OBB data shared between users is not accounted in
* this value.
*/
public @BytesLong long getTotalBytes() {
return totalBytes;
}
/**
* Return the total bytes used by all audio files in the shared/external
* storage hosted on this volume.
* <p>
* This value only includes data which is isolated for each user on a
* multiuser device. This value does not include any app files which are all
* accounted under {@link #getAppBytes()}.
*/
public @BytesLong long getAudioBytes() {
return audioBytes;
}
/**
* Return the total bytes used by all video files in the shared/external
* storage hosted on this volume.
* <p>
* This value only includes data which is isolated for each user on a
* multiuser device. This value does not include any app files which are all
* accounted under {@link #getAppBytes()}.
*/
public @BytesLong long getVideoBytes() {
return videoBytes;
}
/**
* Return the total bytes used by all image files in the shared/external
* storage hosted on this volume.
* <p>
* This value only includes data which is isolated for each user on a
* multiuser device. This value does not include any app files which are all
* accounted under {@link #getAppBytes()}.
*/
public @BytesLong long getImageBytes() {
return imageBytes;
}
/**
* Return the total bytes used by app files in the shared/external storage
* hosted on this volume.
* <p>
* This data is already accounted against individual apps as returned
* through {@link StorageStats}.
* <p>
* This value only includes data which is isolated for each user on a
* multiuser device.
*/
public @BytesLong long getAppBytes() {
return appBytes;
}
/** {@hide} */
public @BytesLong long getObbBytes() {
return obbBytes;
}
/** {@hide} */
public ExternalStorageStats() {
}
/** {@hide} */
public ExternalStorageStats(Parcel in) {
this.totalBytes = in.readLong();
this.audioBytes = in.readLong();
this.videoBytes = in.readLong();
this.imageBytes = in.readLong();
this.appBytes = in.readLong();
this.obbBytes = in.readLong();
}
@Override
public int describeContents() {
return 0;
}
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeLong(totalBytes);
dest.writeLong(audioBytes);
dest.writeLong(videoBytes);
dest.writeLong(imageBytes);
dest.writeLong(appBytes);
dest.writeLong(obbBytes);
}
public static final @android.annotation.NonNull Creator<ExternalStorageStats> CREATOR = new Creator<ExternalStorageStats>() {
@Override
public ExternalStorageStats createFromParcel(Parcel in) {
return new ExternalStorageStats(in);
}
@Override
public ExternalStorageStats[] newArray(int size) {
return new ExternalStorageStats[size];
}
};
}