Exploit databaseDownload repository ZIP
GH-d594cde2f478e64351828eaedd774084
trinadh465/frameworks_base_aosp10_r33_cve-2023-20911
Sources for CVE-2023-20911
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files39
trinadh465/frameworks_base_aosp10_r33_cve-2023-20911Revision 63dffabe2f72
- ↑..Parent directory
- ActivityCompat.java
- ActivityManagerWrapper.java
- ActivityOptionsCompat.java
- AssistDataReceiver.java
- BackgroundExecutor.java
- ChoreographerCompat.java
- ContextCompat.java
- DevicePolicyManagerWrapper.java
- DockedStackListenerCompat.java
- InputChannelCompat.java
- InputConsumerController.java
- InputMonitorCompat.java
- KeyguardManagerCompat.java
- LatencyTrackerCompat.java
- LauncherEventUtil.java
- MetricsLoggerCompat.java
- PackageManagerWrapper.java
- PinnedStackListenerForwarder.java
- QuickStepContract.java
- RecentsAnimationControllerCompat.java
- RecentsAnimationListener.java
- RemoteAnimationAdapterCompat.java
- RemoteAnimationDefinitionCompat.java
- RemoteAnimationRunnerCompat.java
- RemoteAnimationTargetCompat.java
- RotationWatcher.java
- StatsLogCompat.java
- SurfaceControlCompat.java
- SyncRtSurfaceTransactionApplierCompat.java
- SystemGestureExclusionListenerCompat.java
- TaskDescriptionCompat.java
- TaskInfoCompat.java
- TaskStackChangeListener.java
- TaskStackChangeListeners.java
- ThreadedRendererCompat.java
- TonalCompat.java
- TransactionCompat.java
- WindowCallbacksCompat.java
- WindowManagerWrapper.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
packages/SystemUI/shared/src/com/android/systemui/shared/system/PackageManagerWrapper.java
Java · 2,988 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 com.android.systemui.shared.system;
import android.app.AppGlobals;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.IPackageManager;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.ResolveInfoFlags;
import android.content.pm.ResolveInfo;
import android.os.RemoteException;
import android.os.UserHandle;
import java.util.List;
public class PackageManagerWrapper {
private static final PackageManagerWrapper sInstance = new PackageManagerWrapper();
private static final IPackageManager mIPackageManager = AppGlobals.getPackageManager();
public static final String ACTION_PREFERRED_ACTIVITY_CHANGED =
Intent.ACTION_PREFERRED_ACTIVITY_CHANGED;
public static PackageManagerWrapper getInstance() {
return sInstance;
}
private PackageManagerWrapper() {}
/**
* @return the activity info for a given {@param componentName} and {@param userId}.
*/
public ActivityInfo getActivityInfo(ComponentName componentName, int userId) {
try {
return mIPackageManager.getActivityInfo(componentName, PackageManager.GET_META_DATA,
userId);
} catch (RemoteException e) {
e.printStackTrace();
return null;
}
}
/**
* Report the set of 'Home' activity candidates, plus (if any) which of them
* is the current "always use this one" setting.
*/
public ComponentName getHomeActivities(List<ResolveInfo> allHomeCandidates) {
try {
return mIPackageManager.getHomeActivities(allHomeCandidates);
} catch (RemoteException e) {
e.printStackTrace();
return null;
}
}
/**
* Determine the best Activity to perform for a given Intent.
*/
public ResolveInfo resolveActivity(Intent intent, @ResolveInfoFlags int flags) {
final String resolvedType =
intent.resolveTypeIfNeeded(AppGlobals.getInitialApplication().getContentResolver());
try {
return mIPackageManager.resolveIntent(
intent, resolvedType, flags, UserHandle.getCallingUserId());
} catch (RemoteException e) {
e.printStackTrace();
return null;
}
}
}