Exploit databaseDownload repository ZIP
GH-12737d57f49df9711fa1c097c9e9ec1d
nanopathi/framework_base_aosp10_r33_cve-2021-0472
Sources for CVE-2021-0472
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files56
nanopathi/framework_base_aosp10_r33_cve-2021-0472Revision 14f1ba804544
- ↑..Parent directory
- procstats/
- AbstractResolverComparator.java
- AccessibilityButtonChooserActivity.java
- AlertActivity.java
- AlertController.java
- AppPredictionServiceResolverComparator.java
- AssistUtils.java
- ChooserActivity.java
- ConfirmUserCreationActivity.java
- DisableCarModeActivity.java
- DumpHeapActivity.java
- EventLogTags.logtags
- HarmfulAppWarningActivity.java
- HeavyWeightSwitcherActivity.java
- IAppOpsActiveCallback.aidl
- IAppOpsCallback.aidl
- IAppOpsNotedCallback.aidl
- IAppOpsService.aidl
- IBatteryStats.aidl
- IMediaContainerService.aidl
- ISoundTriggerService.aidl
- IVoiceActionCheckCallback.aidl
- IVoiceInteractionManagerService.aidl
- IVoiceInteractionSessionListener.aidl
- IVoiceInteractionSessionShowCallback.aidl
- IVoiceInteractor.aidl
- IVoiceInteractorCallback.aidl
- IVoiceInteractorRequest.aidl
- IntentForwarderActivity.java
- LocaleHelper.java
- LocalePicker.java
- LocalePickerWithRegion.java
- LocaleStore.java
- MediaRouteChooserDialog.java
- MediaRouteChooserDialogFragment.java
- MediaRouteControllerDialog.java
- MediaRouteControllerDialogFragment.java
- MediaRouteDialogPresenter.java
- MicroAlertController.java
- NavItemSelectedListener.java
- NetInitiatedActivity.java
- PlatLogoActivity.java
- ProcessMap.java
- ResolverActivity.java
- ResolverListController.java
- ResolverRankerServiceResolverComparator.java
- ResolverTargetActionsDialogFragment.java
- ShutdownActivity.java
- SimpleIconFactory.java
- SuggestedLocaleAdapter.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
core/java/com/android/internal/app/ResolverTargetActionsDialogFragment.java
Java · 3,647 bytes/*
* Copyright (C) 2016 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.internal.app;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.ComponentName;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import com.android.internal.R;
/**
* Shows a dialog with actions to take on a chooser target
*/
public class ResolverTargetActionsDialogFragment extends DialogFragment
implements DialogInterface.OnClickListener {
private static final String NAME_KEY = "componentName";
private static final String TITLE_KEY = "title";
private static final String PINNED_KEY = "pinned";
// Sync with R.array.resolver_target_actions_* resources
private static final int TOGGLE_PIN_INDEX = 0;
private static final int APP_INFO_INDEX = 1;
public ResolverTargetActionsDialogFragment() {
}
public ResolverTargetActionsDialogFragment(CharSequence title, ComponentName name,
boolean pinned) {
Bundle args = new Bundle();
args.putCharSequence(TITLE_KEY, title);
args.putParcelable(NAME_KEY, name);
args.putBoolean(PINNED_KEY, pinned);
setArguments(args);
}
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
final Bundle args = getArguments();
final int itemRes = args.getBoolean(PINNED_KEY, false)
? R.array.resolver_target_actions_unpin
: R.array.resolver_target_actions_pin;
return new Builder(getContext())
.setCancelable(true)
.setItems(itemRes, this)
.setTitle(args.getCharSequence(TITLE_KEY))
.create();
}
@Override
public void onClick(DialogInterface dialog, int which) {
final Bundle args = getArguments();
ComponentName name = args.getParcelable(NAME_KEY);
switch (which) {
case TOGGLE_PIN_INDEX:
SharedPreferences sp = ChooserActivity.getPinnedSharedPrefs(getContext());
final String key = name.flattenToString();
boolean currentVal = sp.getBoolean(name.flattenToString(), false);
if (currentVal) {
sp.edit().remove(key).apply();
} else {
sp.edit().putBoolean(key, true).apply();
}
// Force the chooser to requery and resort things
((ChooserActivity) getActivity()).handlePackagesChanged();
break;
case APP_INFO_INDEX:
Intent in = new Intent().setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)
.setData(Uri.fromParts("package", name.getPackageName(), null))
.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT);
startActivity(in);
break;
}
dismiss();
}
}