Skip to content

Commit 6b22d81

Browse files
author
Dan Morrill
committed
As Donut (API=4) devices and earlier do not have a Bluetooth API, .apk files
that have minSdkLevel (or targetSdkLevel) set to 4 or lower should not be presumed to require Bluetooth just because they take the permission. Change-Id: Ia629e9ef0425a577e4e14f9b348f5aa2b39c1e74
1 parent cdeae43 commit 6b22d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/aapt/Command.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ int doDump(Bundle* bundle)
10001000
}
10011001

10021002
// Bluetooth-related compatibility logic
1003-
if (!specBluetoothFeature && hasBluetoothPermission) {
1003+
if (!specBluetoothFeature && hasBluetoothPermission && (targetSdk > 4)) {
10041004
// if app takes a Bluetooth permission but does not request the Bluetooth
10051005
// feature, we infer that it meant to
10061006
printf("uses-feature:'android.hardware.bluetooth'\n");

0 commit comments

Comments
 (0)