Exploit databaseDownload repository ZIP
GH-5f8101aebf9f68f19f227a3c3c95b21b
satheesh575555/packages_apps_settings_aosp10_r33_cve-2020-0416
Sources for CVE-2020-0416
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files166
satheesh575555/packages_apps_settings_aosp10_r33_cve-2020-0416Revision 0719ec2b4b1c
- ↑..Parent directory
- AbstractZenCustomRulePreferenceController.java
- AbstractZenModeAutomaticRulePreferenceController.java
- AbstractZenModePreferenceController.java
- AdjustVolumeRestrictedPreferenceController.java
- AlarmRingtonePreferenceController.java
- AlarmVolumePreferenceController.java
- AllowSoundPreferenceController.java
- AppBubbleNotificationSettings.java
- AppLinkPreferenceController.java
- AppNotificationSettings.java
- AssistantCapabilityPreferenceController.java
- AudioHelper.java
- BadgePreferenceController.java
- BadgingNotificationPreferenceController.java
- BlockPreferenceController.java
- BootSoundPreferenceController.java
- BubblePreferenceController.java
- BubbleSummaryPreferenceController.java
- BubbleWarningDialogFragment.java
- CallVolumePreferenceController.java
- CastPreferenceController.java
- ChannelListPreferenceController.java
- ChannelNotificationSettings.java
- ChargingSoundPreferenceController.java
- ConfigureNotificationSettings.java
- DefaultNotificationTonePreference.java
- DeletedChannelsPreferenceController.java
- DescriptionPreferenceController.java
- DialPadTonePreferenceController.java
- DndPreferenceController.java
- DockAudioMediaPreferenceController.java
- DockingSoundPreferenceController.java
- EmergencyBroadcastPreferenceController.java
- EmergencyTonePreferenceController.java
- GentleNotificationsPreferenceController.java
- GlobalBubblePermissionObserverMixin.java
- HeaderPreferenceController.java
- HighImportancePreferenceController.java
- ImportancePreference.java
- ImportancePreferenceController.java
- LightsPreferenceController.java
- LockScreenNotificationPreferenceController.java
- MediaVolumePreferenceController.java
- MinImportancePreferenceController.java
- NotificationAccessConfirmationActivity.java
- NotificationAccessSettings.java
- NotificationAppPreference.java
- NotificationAssistantPicker.java
- NotificationAssistantPreferenceController.java
- NotificationBackend.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/com/android/settings/notification/ChannelNotificationSettings.java
Java · 4,976 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.settings.notification;
import static com.android.settings.notification.ChannelListPreferenceController.ARG_FROM_SETTINGS;
import android.app.settings.SettingsEnums;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Log;
import androidx.preference.PreferenceScreen;
import com.android.internal.widget.LockPatternUtils;
import com.android.settings.R;
import com.android.settingslib.core.AbstractPreferenceController;
import java.util.ArrayList;
import java.util.List;
public class ChannelNotificationSettings extends NotificationSettingsBase {
private static final String TAG = "ChannelSettings";
@Override
public int getMetricsCategory() {
return SettingsEnums.NOTIFICATION_TOPIC_NOTIFICATION;
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
final PreferenceScreen screen = getPreferenceScreen();
Bundle args = getArguments();
// If linking to this screen from an external app, expand settings
if (screen != null && args != null) {
if (!args.getBoolean(ARG_FROM_SETTINGS, false)) {
screen.setInitialExpandedChildrenCount(Integer.MAX_VALUE);
}
}
}
@Override
public void onResume() {
super.onResume();
if (mUid < 0 || TextUtils.isEmpty(mPkg) || mPkgInfo == null || mChannel == null) {
Log.w(TAG, "Missing package or uid or packageinfo or channel");
finish();
return;
}
for (NotificationPreferenceController controller : mControllers) {
controller.onResume(mAppRow, mChannel, mChannelGroup, mSuspendedAppsAdmin);
controller.displayPreference(getPreferenceScreen());
}
updatePreferenceStates();
}
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
for (NotificationPreferenceController controller : mControllers) {
if (controller instanceof PreferenceManager.OnActivityResultListener) {
((PreferenceManager.OnActivityResultListener) controller)
.onActivityResult(requestCode, resultCode, data);
}
}
}
@Override
protected String getLogTag() {
return TAG;
}
@Override
protected int getPreferenceScreenResId() {
return R.xml.channel_notification_settings;
}
@Override
protected List<AbstractPreferenceController> createPreferenceControllers(Context context) {
mControllers = new ArrayList<>();
mControllers.add(new HeaderPreferenceController(context, this));
mControllers.add(new BlockPreferenceController(context, mImportanceListener, mBackend));
mControllers.add(new ImportancePreferenceController(
context, mImportanceListener, mBackend));
mControllers.add(new MinImportancePreferenceController(
context, mImportanceListener, mBackend));
mControllers.add(new HighImportancePreferenceController(
context, mImportanceListener, mBackend));
mControllers.add(new AllowSoundPreferenceController(
context, mImportanceListener, mBackend));
mControllers.add(new SoundPreferenceController(context, this,
mImportanceListener, mBackend));
mControllers.add(new VibrationPreferenceController(context, mBackend));
mControllers.add(new AppLinkPreferenceController(context));
mControllers.add(new DescriptionPreferenceController(context));
mControllers.add(new VisibilityPreferenceController(context, new LockPatternUtils(context),
mBackend));
mControllers.add(new LightsPreferenceController(context, mBackend));
mControllers.add(new BadgePreferenceController(context, mBackend));
mControllers.add(new DndPreferenceController(context, mBackend));
mControllers.add(new NotificationsOffPreferenceController(context));
mControllers.add(new BubblePreferenceController(context, getChildFragmentManager(),
mBackend, false /* isAppPage */));
return new ArrayList<>(mControllers);
}
}