Merge "Add permission to protect data when sending broadcast" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dacfb93762
@@ -18,6 +18,7 @@ package com.android.settings.bluetooth;
|
|||||||
|
|
||||||
import static android.os.UserManager.DISALLOW_CONFIG_BLUETOOTH;
|
import static android.os.UserManager.DISALLOW_CONFIG_BLUETOOTH;
|
||||||
|
|
||||||
|
import android.Manifest;
|
||||||
import android.app.settings.SettingsEnums;
|
import android.app.settings.SettingsEnums;
|
||||||
import android.bluetooth.BluetoothAdapter;
|
import android.bluetooth.BluetoothAdapter;
|
||||||
import android.bluetooth.BluetoothDevice;
|
import android.bluetooth.BluetoothDevice;
|
||||||
@@ -192,6 +193,6 @@ public final class DevicePickerFragment extends DeviceListPreferenceFragment {
|
|||||||
if (mLaunchPackage != null && mLaunchClass != null) {
|
if (mLaunchPackage != null && mLaunchClass != null) {
|
||||||
intent.setClassName(mLaunchPackage, mLaunchClass);
|
intent.setClassName(mLaunchPackage, mLaunchClass);
|
||||||
}
|
}
|
||||||
getActivity().sendBroadcast(intent);
|
getActivity().sendBroadcast(intent, Manifest.permission.BLUETOOTH_ADMIN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user