Exploit databaseDownload repository ZIP
GH-51374c4970287cfc6dca6abc44f73866
satheesh575555/system_bt_aosp10-r33_cve-2021-0397
Sources for CVE-2021-0397
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files12
satheesh575555/system_bt_aosp10-r33_cve-2021-0397Revision 0e5f2721b71b
- ↑..Parent directory
- Android.bp
- [email protected]
- async_fd_watcher.cc
- async_fd_watcher.h
- bluetooth_hci.cc
- bluetooth_hci.h
- h4_protocol.cc
- h4_protocol.h
- hci_internals.h
- hci_packetizer.cc
- hci_packetizer.h
- service.cc
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
vendor_libs/linux/interface/service.cc
Text · 1,403 bytes//
// Copyright 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.
//
#define LOG_TAG "[email protected]"
#include <android/hardware/bluetooth/1.0/IBluetoothHci.h>
#include <hidl/HidlSupport.h>
#include <hidl/HidlTransportSupport.h>
#include <utils/Log.h>
#include "bluetooth_hci.h"
using ::android::hardware::configureRpcThreadpool;
using ::android::hardware::bluetooth::V1_0::IBluetoothHci;
using ::android::hardware::bluetooth::V1_0::btlinux::BluetoothHci;
using ::android::hardware::joinRpcThreadpool;
using ::android::sp;
int main(int /* argc */, char** /* argv */) {
sp<IBluetoothHci> bluetooth = new BluetoothHci;
configureRpcThreadpool(1, true);
android::status_t status = bluetooth->registerAsService();
if (status == android::OK)
joinRpcThreadpool();
else
ALOGE("Could not register as a service!");
}