Exploit databaseDownload repository ZIP
GH-9bef12607fbc6142c2d2e0da5832840c
nanopathi/framework_base_aosp10_r33_cve-2021-0339
Sources for CVE-2021-0339
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files155
nanopathi/framework_base_aosp10_r33_cve-2021-0339Revision 14c4f070663c
- ↑..Parent directory
- accounts/
- adb/
- am/
- appbinding/
- appop/
- attention/
- audio/
- backup/
- biometrics/
- broadcastradio/
- camera/
- clipboard/
- connectivity/
- content/
- contentcapture/
- deviceidle/
- display/
- dreams/
- emergency/
- firewall/
- gpu/
- hdmi/
- incident/
- infra/
- input/
- inputmethod/
- job/
- lights/
- location/
- locksettings/
- media/
- net/
- notification/
- oemlock/
- om/
- os/
- pm/
- policy/
- power/
- role/
- rollback/
- search/
- security/
- signedconfig/
- slice/
- stats/
- statusbar/
- storage/
- telecom/
- testharness/
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
services/core/java/com/android/server/BluetoothService.java
Java · 2,084 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.server;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import com.android.internal.os.RoSystemProperties;
class BluetoothService extends SystemService {
private BluetoothManagerService mBluetoothManagerService;
private boolean mInitialized = false;
public BluetoothService(Context context) {
super(context);
mBluetoothManagerService = new BluetoothManagerService(context);
}
private void initialize() {
if (!mInitialized) {
mBluetoothManagerService.handleOnBootPhase();
mInitialized = true;
}
}
@Override
public void onStart() {
}
@Override
public void onBootPhase(int phase) {
if (phase == SystemService.PHASE_SYSTEM_SERVICES_READY) {
publishBinderService(BluetoothAdapter.BLUETOOTH_MANAGER_SERVICE,
mBluetoothManagerService);
} else if (phase == SystemService.PHASE_ACTIVITY_MANAGER_READY &&
!RoSystemProperties.MULTIUSER_HEADLESS_SYSTEM_USER) {
initialize();
}
}
@Override
public void onSwitchUser(int userHandle) {
if (!mInitialized) {
initialize();
} else {
mBluetoothManagerService.handleOnSwitchUser(userHandle);
}
}
@Override
public void onUnlockUser(int userHandle) {
mBluetoothManagerService.handleOnUnlockUser(userHandle);
}
}