Skip to content

Commit

Permalink
Athena: Remove A2DP offload props
Browse files Browse the repository at this point in the history
Change-Id: I3c5228329221ac000644078134c8d3a60ce0775a
  • Loading branch information
SebaUbuntu committed Jul 31, 2023
1 parent 502bb41 commit b07e9cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import dev.sebaubuntu.athena.R
import dev.sebaubuntu.athena.utils.DeviceInfo

object BluetoothSection : Section() {
override val name = R.string.section_bluetooth_name
Expand Down Expand Up @@ -44,11 +43,6 @@ object BluetoothSection : Section() {
}
}

this["A2DP"] = mapOf(
"Hardware offload supported" to "${DeviceInfo.a2dpOffloadSupported}",
"Hardware offload disabled" to "${DeviceInfo.a2dpOffloadDisabled}"
)

this["LE"] = mapOf(
"Supported" to "${
context.packageManager.hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/java/dev/sebaubuntu/athena/utils/DeviceInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ object DeviceInfo {
FBE,
}

// Bluetooth
val a2dpOffloadDisabled =
SystemProperties.getProp<Boolean?>("persist.bluetooth.a2dp_offload.disabled")
val a2dpOffloadSupported =
SystemProperties.getProp<Boolean?>("ro.bluetooth.a2dp_offload.supported")

// Build
val buildCharacteristics = SystemProperties.getProp<String>("ro.build.characteristics")
val buildFlavor = SystemProperties.getProp<String>("ro.build.flavor")
Expand Down

0 comments on commit b07e9cc

Please sign in to comment.