Skip to content

Commit df9f443

Browse files
committed
android: add basic multidevice capabilities
use at your own risk, may or may not work
1 parent d1bf540 commit df9f443

File tree

10 files changed

+2308
-1466
lines changed

10 files changed

+2308
-1466
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
<uses-permission android:name="android.permission.INTERNET" />
3131
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
3232
tools:ignore="ScopedStorage" />
33-
3433
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
3534
android:maxSdkVersion="30" />
35+
<uses-permission android:name="android.permission.LOCAL_MAC_ADDRESS"
36+
tools:ignore="ProtectedPermissions" />
3637

3738
<protected-broadcast android:name="batterywidget.impl.action.update_bluetooth_data" />
3839

android/app/src/main/java/me/kavishdevar/librepods/screens/AirPodsSettingsScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,6 @@ fun AirPodsSettingsScreen(dev: BluetoothDevice?, service: AirPodsService,
387387
default = false,
388388
controlCommandIdentifier = AACPManager.Companion.ControlCommandIdentifiers.ALLOW_OFF_OPTION
389389
)
390-
391-
Spacer(modifier = Modifier.height(16.dp))
392-
AccessibilitySettings()
393390
}
394391

395392
Spacer(modifier = Modifier.height(16.dp))
@@ -403,6 +400,9 @@ fun AirPodsSettingsScreen(dev: BluetoothDevice?, service: AirPodsService,
403400

404401
// Only show debug when not in BLE-only mode
405402
if (!bleOnlyMode) {
403+
Spacer(modifier = Modifier.height(16.dp))
404+
AccessibilitySettings()
405+
406406
Spacer(modifier = Modifier.height(16.dp))
407407
NavigationButton("debug", "Debug", navController)
408408
}

android/app/src/main/java/me/kavishdevar/librepods/services/AirPodsService.kt

Lines changed: 1557 additions & 1386 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)