This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow users to disable hardening for Bluetooth app
- Loading branch information
1 parent
3fd0aae
commit 5051d35
Showing
2 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package android.ext; | ||
|
||
import android.content.Context; | ||
import android.ext.settings.BoolSysProperty; | ||
|
||
import com.android.internal.R; | ||
|
||
/** @hide */ | ||
public class BluetoothUtils { | ||
private static volatile String bluetoothStackPackageName; | ||
|
||
public static String getBluetoothStackPackageName(Context ctx) { | ||
String cache = bluetoothStackPackageName; | ||
if (cache != null) { | ||
return cache; | ||
} | ||
String res = ctx.getString(R.string.config_systemBluetoothStack); | ||
bluetoothStackPackageName = res; | ||
return res; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters