@mentra/bluetooth-sdk 3.4.0 → 3.4.1-beta.1409
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/src/main/java/com/mentra/bluetoothsdk/DeviceManager.kt +17 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/GeneratedChangelogCatalog.kt +1 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/GeneratedReleaseMetadata.kt +6 -6
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraLive.kt +37 -7
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraLiveOwnerLossPolicy.kt +9 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/sgcs/MentraLiveOwnerLossPolicyTest.kt +6 -0
- package/build/generated/changelogCatalog.d.ts +3 -0
- package/build/generated/changelogCatalog.d.ts.map +1 -1
- package/build/generated/changelogCatalog.js +4 -0
- package/build/generated/changelogCatalog.js.map +1 -1
- package/build/generated/releaseMetadata.js +6 -6
- package/build/generated/releaseMetadata.js.map +1 -1
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/DeviceManager.swift +9 -0
- package/ios/Source/GeneratedChangelogCatalog.swift +1 -0
- package/ios/Source/GeneratedReleaseMetadata.swift +6 -6
- package/ios/Source/sgcs/MentraLive.swift +12 -0
- package/package.json +2 -2
- package/src/generated/changelogCatalog.ts +4 -0
- package/src/generated/releaseMetadata.ts +6 -6
package/README.md
CHANGED
|
@@ -476,7 +476,7 @@ BluetoothSdk.addListener("pair_failure", (event) => {
|
|
|
476
476
|
})
|
|
477
477
|
```
|
|
478
478
|
|
|
479
|
-
`entering_pairing_mode` includes `window_id`. `pairing_info` includes `auto_audio` and no longer includes `awaiting_confirm` or `retained_owner_link`. Do not use the word "owner" in user-facing sample copy.
|
|
479
|
+
`entering_pairing_mode` includes `window_id`. `pairing_info` includes `auto_audio` and no longer includes `awaiting_confirm` or `retained_owner_link`. With `former_owner_keys: true` the glasses keep this phone's keys after another phone takes them over or this phone unpairs, and take it back in pairing mode with the pairing it has: the SDK keeps the phone's Bluetooth pairing on Android, and an iOS app need not send the person to forget the glasses in Settings after Unpair. Do not use the word "owner" in user-facing sample copy.
|
|
480
480
|
|
|
481
481
|
## Glasses audio setup
|
|
482
482
|
|
|
@@ -23,6 +23,7 @@ import com.mentra.bluetoothsdk.sgcs.SceneElement
|
|
|
23
23
|
import com.mentra.bluetoothsdk.sgcs.SceneFrame
|
|
24
24
|
import com.mentra.bluetoothsdk.sgcs.Mach1
|
|
25
25
|
import com.mentra.bluetoothsdk.sgcs.MentraLive
|
|
26
|
+
import com.mentra.bluetoothsdk.sgcs.MentraLiveOwnerLossPolicy
|
|
26
27
|
import com.mentra.bluetoothsdk.sgcs.MentraLivePairingStateStore
|
|
27
28
|
import com.mentra.bluetoothsdk.sgcs.MentraNex
|
|
28
29
|
import com.mentra.bluetoothsdk.sgcs.Nimo
|
|
@@ -2388,6 +2389,13 @@ class DeviceManager internal constructor(initializeHardware: Boolean) {
|
|
|
2388
2389
|
Bridge.saveSetting("mentra_live_secure_firmware", false)
|
|
2389
2390
|
}
|
|
2390
2391
|
|
|
2392
|
+
/** Whether the forgotten glasses keep former owners' keys is learned again from the next glasses. */
|
|
2393
|
+
private fun clearFormerOwnerKeys() {
|
|
2394
|
+
if (DeviceStore.store.get("bluetooth", "mentra_live_former_owner_keys") as? Boolean != true) return
|
|
2395
|
+
DeviceStore.apply("bluetooth", "mentra_live_former_owner_keys", false)
|
|
2396
|
+
Bridge.saveSetting("mentra_live_former_owner_keys", false)
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2391
2399
|
fun connectDefault() {
|
|
2392
2400
|
if (defaultWearable.isEmpty()) {
|
|
2393
2401
|
Bridge.log("MAN: No default wearable, returning")
|
|
@@ -2605,11 +2613,19 @@ class DeviceManager internal constructor(initializeHardware: Boolean) {
|
|
|
2605
2613
|
connectionRecovery.clear()
|
|
2606
2614
|
}
|
|
2607
2615
|
Bridge.log("MAN: Forgetting smart glasses")
|
|
2616
|
+
// Read before it is cleared: glasses that keep former owners' keys (pairing-spec V9)
|
|
2617
|
+
// take this phone back later with the bond it has, so Unpair keeps it.
|
|
2618
|
+
val keepLiveBonds =
|
|
2619
|
+
!MentraLiveOwnerLossPolicy.removesBondWhenGlassesLetGo(
|
|
2620
|
+
DeviceStore.store.get("bluetooth", "mentra_live_former_owner_keys") as? Boolean == true
|
|
2621
|
+
)
|
|
2608
2622
|
clearPairingStateOnForget()
|
|
2609
2623
|
clearSecureFirmware()
|
|
2624
|
+
clearFormerOwnerKeys()
|
|
2610
2625
|
|
|
2611
2626
|
val live = sgc as? MentraLive
|
|
2612
2627
|
if (live != null) {
|
|
2628
|
+
live.keepBondsOnForget = keepLiveBonds
|
|
2613
2629
|
// MentraLive.forget() disconnects GATT then removeBond. Do not refuse
|
|
2614
2630
|
// during CTKD bonding — Unpair is an explicit user request to drop the pair.
|
|
2615
2631
|
live.forget()
|
|
@@ -2660,6 +2676,7 @@ class DeviceManager internal constructor(initializeHardware: Boolean) {
|
|
|
2660
2676
|
MentraLive.unbondBondedMentraLiveDevices(
|
|
2661
2677
|
Bridge.getContext(),
|
|
2662
2678
|
extraAddress,
|
|
2679
|
+
!keepLiveBonds,
|
|
2663
2680
|
)
|
|
2664
2681
|
}
|
|
2665
2682
|
sgc?.forget()
|
|
@@ -3,6 +3,7 @@ package com.mentra.bluetoothsdk
|
|
|
3
3
|
/** Generated from /changelogs. Do not edit directly. */
|
|
4
4
|
internal val GENERATED_RELEASE_CHANGELOGS: List<ReleaseChangelog> =
|
|
5
5
|
listOf(
|
|
6
|
+
ReleaseChangelog(version = "3.4.1", markdown = "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you. Glasses paired before this update keep working with your current phone.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."),
|
|
6
7
|
ReleaseChangelog(version = "3.4.0", markdown = "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Better speaker sound on Mentra Live, and music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."),
|
|
7
8
|
ReleaseChangelog(version = "3.3.0", markdown = "- **Mentra Call:** Now available on iPhone, with a redesigned call screen and photo sharing during calls.\n- **Microphone:** Improved glasses microphone reliability, including after phone calls.\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\n- **Glasses updates:** More reliable glasses updates, with clearer progress.\n- **Miniapps:** Miniapps now update automatically. Fixed miniapps getting stuck on loading screens.\n- **Mentra AI:** Reliability improvements and bug fixes.\n- **Notes:** Take photos with the glasses camera button, and add meeting and location details to your notes.\n- **Pairing and connections:** Improved glasses audio reconnection on Android.\n- **G1 and NIMO:** Improved text display, including accented letters.\n- **Android tablets:** The Mentra App now rotates to landscape."),
|
|
8
9
|
ReleaseChangelog(version = "3.2.1", markdown = "- **Livestreamer:** \"Stream Here\" now works without a Wi-Fi network. Improved stream startup and connection reliability.\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\n- **Mentra AI:** Reliability improvements and bug fixes.\n- **Miniapps:** Smoother transitions, with back buttons and gestures that take you to the previous screen inside a miniapp.\n- **Pairing and connections:** Improved G1 pairing and G2 background reconnection.\n- **Glasses updates:** Fixed repeated update checks and improved recovery after interrupted updates.\n- **Mentra Maps:** Bug fixes.\n- **NIMO:** Improved text and map layouts.\n- **Self-hosting:** Connect the Mentra App to your own self-hosted Mentra backend."),
|
|
@@ -2,10 +2,10 @@ package com.mentra.bluetoothsdk
|
|
|
2
2
|
|
|
3
3
|
/** Generated by release CI. Do not edit in a release checkout. */
|
|
4
4
|
internal object GeneratedReleaseMetadata {
|
|
5
|
-
const val FAMILY_BASE_VERSION: String = "3.4.
|
|
6
|
-
const val RELEASE_IDENTITY: String = "3.4.
|
|
7
|
-
const val RELEASE_SET_ID: String = "mentra-3.4.
|
|
8
|
-
const val SOURCE_COMMIT: String = "
|
|
9
|
-
const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.
|
|
10
|
-
const val OTA_MANIFEST_SHA256: String = "
|
|
5
|
+
const val FAMILY_BASE_VERSION: String = "3.4.1"
|
|
6
|
+
const val RELEASE_IDENTITY: String = "3.4.1-beta.1409"
|
|
7
|
+
const val RELEASE_SET_ID: String = "mentra-3.4.1-beta.1409"
|
|
8
|
+
const val SOURCE_COMMIT: String = "0ac9bbe8869f3e269f43ca87f37382076eca8301"
|
|
9
|
+
const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1409.json"
|
|
10
|
+
const val OTA_MANIFEST_SHA256: String = "c31a58bc0159c019e95a450eda8d546484210ca4ee39f1220951d2e3b2c5abaf"
|
|
11
11
|
}
|
|
@@ -357,11 +357,16 @@ class MentraLive : SGCManager() {
|
|
|
357
357
|
* Drop A2DP/HFP + removeBond for every bonded Mentra Live unit. Safe when no SGC
|
|
358
358
|
* instance exists — [DeviceManager.forget] often runs after disconnect() nulled sgc
|
|
359
359
|
* (abandonAttempt), which previously skipped MentraLive.forget() entirely and left
|
|
360
|
-
* Classic ACL up so glasses never re-advertised.
|
|
360
|
+
* Classic ACL up so glasses never re-advertised. With [removeBonds] false the bonds stay:
|
|
361
|
+
* glasses that keep former owners' keys (pairing-spec V9) take this phone back with them.
|
|
361
362
|
*/
|
|
362
363
|
@JvmStatic
|
|
363
364
|
@JvmOverloads
|
|
364
|
-
fun unbondBondedMentraLiveDevices(
|
|
365
|
+
fun unbondBondedMentraLiveDevices(
|
|
366
|
+
context: Context?,
|
|
367
|
+
extraAddress: String? = null,
|
|
368
|
+
removeBonds: Boolean = true,
|
|
369
|
+
) {
|
|
365
370
|
if (context == null) {
|
|
366
371
|
Bridge.log("LIVE: CTKD: unbondBondedMentraLiveDevices — no context")
|
|
367
372
|
return
|
|
@@ -419,7 +424,11 @@ class MentraLive : SGCManager() {
|
|
|
419
424
|
BluetoothHeadset::class.java,
|
|
420
425
|
"HFP"
|
|
421
426
|
)
|
|
422
|
-
removeBondStandalone(device)
|
|
427
|
+
if (removeBonds) removeBondStandalone(device)
|
|
428
|
+
}
|
|
429
|
+
if (!removeBonds) {
|
|
430
|
+
Bridge.log("LIVE: CTKD: bonds kept, the glasses keep former owners' keys")
|
|
431
|
+
return
|
|
423
432
|
}
|
|
424
433
|
Handler(Looper.getMainLooper())
|
|
425
434
|
.postDelayed({ retryUnbondIfStillPaired(context, extraAddress) }, 700)
|
|
@@ -2135,9 +2144,13 @@ class MentraLive : SGCManager() {
|
|
|
2135
2144
|
if (isKilled) return
|
|
2136
2145
|
if (isExplicitPairingAttempt()) return
|
|
2137
2146
|
leaveGlassesLink()
|
|
2138
|
-
//
|
|
2139
|
-
//
|
|
2140
|
-
|
|
2147
|
+
// Glasses that keep former owners' keys (pairing-spec V9) take this phone back with the
|
|
2148
|
+
// bond it has, with no pairing request. Older ones deleted this phone's keys: a bond kept
|
|
2149
|
+
// there would make the first Pair Again connect with them, get refused and fail; removed
|
|
2150
|
+
// now, Pair Again bonds afresh.
|
|
2151
|
+
if (MentraLiveOwnerLossPolicy.removesBondWhenGlassesLetGo(savedGlassesKeepFormerOwnerKeys())) {
|
|
2152
|
+
forgetRejectedBond()
|
|
2153
|
+
}
|
|
2141
2154
|
}
|
|
2142
2155
|
|
|
2143
2156
|
private fun forgetRejectedBond() {
|
|
@@ -2303,6 +2316,16 @@ class MentraLive : SGCManager() {
|
|
|
2303
2316
|
private fun isSavedGlassesSecureFirmware(): Boolean =
|
|
2304
2317
|
DeviceStore.get("bluetooth", "mentra_live_secure_firmware") as? Boolean == true
|
|
2305
2318
|
|
|
2319
|
+
/** `pairing_info.former_owner_keys`: the saved glasses keep this phone's keys once it loses them. */
|
|
2320
|
+
private fun savedGlassesKeepFormerOwnerKeys(): Boolean =
|
|
2321
|
+
DeviceStore.get("bluetooth", "mentra_live_former_owner_keys") as? Boolean == true
|
|
2322
|
+
|
|
2323
|
+
private fun rememberFormerOwnerKeys(kept: Boolean) {
|
|
2324
|
+
if (savedGlassesKeepFormerOwnerKeys() == kept) return
|
|
2325
|
+
DeviceStore.apply("bluetooth", "mentra_live_former_owner_keys", kept)
|
|
2326
|
+
Bridge.saveSetting("mentra_live_former_owner_keys", kept)
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2306
2329
|
/** Remember what the connected glasses reported so later rejections can be read correctly. */
|
|
2307
2330
|
private fun rememberSecureFirmware(secure: Boolean) {
|
|
2308
2331
|
if (isSavedGlassesSecureFirmware() == secure) return
|
|
@@ -4537,6 +4560,7 @@ class MentraLive : SGCManager() {
|
|
|
4537
4560
|
// Legacy firmware that omits this field is not secure-capable.
|
|
4538
4561
|
val secureCapable = json.optBoolean("secure_pairing_capable", false)
|
|
4539
4562
|
rememberSecureFirmware(secureCapable)
|
|
4563
|
+
rememberFormerOwnerKeys(json.optBoolean("former_owner_keys", false))
|
|
4540
4564
|
cancelSecureFirmwareRefresh()
|
|
4541
4565
|
// Decides the capability of a pairing target the scan row did not know.
|
|
4542
4566
|
sessionPairingInfoSecure = secureCapable
|
|
@@ -7116,6 +7140,12 @@ class MentraLive : SGCManager() {
|
|
|
7116
7140
|
return device.bondState == BluetoothDevice.BOND_BONDING
|
|
7117
7141
|
}
|
|
7118
7142
|
|
|
7143
|
+
/**
|
|
7144
|
+
* Set by [DeviceManager.forget] before [forget]: the glasses keep former owners' keys
|
|
7145
|
+
* (`pairing_info.former_owner_keys`), so Unpair leaves this phone's bond for a later reclaim.
|
|
7146
|
+
*/
|
|
7147
|
+
var keepBondsOnForget = false
|
|
7148
|
+
|
|
7119
7149
|
override fun forget() {
|
|
7120
7150
|
if (postGattLifecycle { forget() }) return
|
|
7121
7151
|
Bridge.log("LIVE: Forgetting Mentra Live glasses")
|
|
@@ -7155,7 +7185,7 @@ class MentraLive : SGCManager() {
|
|
|
7155
7185
|
// Drop GATT first. removeBond while the BLE link is still encrypted often
|
|
7156
7186
|
// returns true on Samsung but the OS Bluetooth UI keeps the dual-mode pair.
|
|
7157
7187
|
disconnect()
|
|
7158
|
-
unbondBondedMentraLiveDevices(ctx, bondedAddress)
|
|
7188
|
+
unbondBondedMentraLiveDevices(ctx, bondedAddress, !keepBondsOnForget)
|
|
7159
7189
|
}
|
|
7160
7190
|
unpairFlushRunnable = flush
|
|
7161
7191
|
handler.postDelayed(flush, UNPAIR_FLUSH_MS)
|
|
@@ -154,6 +154,15 @@ internal object MentraLiveOwnerLossPolicy {
|
|
|
154
154
|
pairingDiscoverable: Boolean,
|
|
155
155
|
): Boolean = !savedGlasses && !reconnectScan && secureTrailer && !pairingDiscoverable
|
|
156
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Whether this phone removes its bond when it loses the glasses or unpairs them. Glasses that
|
|
159
|
+
* report `pairing_info.former_owner_keys` (pairing-spec V9) keep this phone's keys and take it
|
|
160
|
+
* back in pairing mode with the bond it has, with no pairing request; removing it would only
|
|
161
|
+
* throw that away. Older glasses deleted the keys, so the bond is stale and goes.
|
|
162
|
+
*/
|
|
163
|
+
fun removesBondWhenGlassesLetGo(glassesKeepFormerOwnerKeys: Boolean): Boolean =
|
|
164
|
+
!glassesKeepFormerOwnerKeys
|
|
165
|
+
|
|
157
166
|
/**
|
|
158
167
|
* `secure_pairing_capable` only means the firmware can do secure pairing. Ownership is the
|
|
159
168
|
* separate `owner_committed` bit the glasses set after the BLE bond. Mirrors iOS
|
|
@@ -7,6 +7,12 @@ import org.junit.Assert.assertTrue
|
|
|
7
7
|
import org.junit.Test
|
|
8
8
|
|
|
9
9
|
class MentraLiveOwnerLossPolicyTest {
|
|
10
|
+
@Test
|
|
11
|
+
fun bondIsKeptWhenTheGlassesKeepFormerOwnersKeys() {
|
|
12
|
+
assertFalse(MentraLiveOwnerLossPolicy.removesBondWhenGlassesLetGo(true))
|
|
13
|
+
assertTrue(MentraLiveOwnerLossPolicy.removesBondWhenGlassesLetGo(false))
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
@Test
|
|
11
17
|
fun connectTimeRejectionIsAHintOnlyOutsideExplicitPairingOnSecureFirmware() {
|
|
12
18
|
assertTrue(gattRejection(5))
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/** Generated from /changelogs. Do not edit directly. */
|
|
2
2
|
export declare const GENERATED_RELEASE_CHANGELOGS: readonly [{
|
|
3
|
+
readonly version: "3.4.1";
|
|
4
|
+
readonly markdown: "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you. Glasses paired before this update keep working with your current phone.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects.";
|
|
5
|
+
}, {
|
|
3
6
|
readonly version: "3.4.0";
|
|
4
7
|
readonly markdown: "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Better speaker sound on Mentra Live, and music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects.";
|
|
5
8
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelogCatalog.d.ts","sourceRoot":"","sources":["../../src/generated/changelogCatalog.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"changelogCatalog.d.ts","sourceRoot":"","sources":["../../src/generated/changelogCatalog.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EA+BxC,CAAA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/** Generated from /changelogs. Do not edit directly. */
|
|
2
2
|
export const GENERATED_RELEASE_CHANGELOGS = Object.freeze([
|
|
3
|
+
{
|
|
4
|
+
"version": "3.4.1",
|
|
5
|
+
"markdown": "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you. Glasses paired before this update keep working with your current phone.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."
|
|
6
|
+
},
|
|
3
7
|
{
|
|
4
8
|
"version": "3.4.0",
|
|
5
9
|
"markdown": "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Better speaker sound on Mentra Live, and music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelogCatalog.js","sourceRoot":"","sources":["../../src/generated/changelogCatalog.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CACzD;IACE;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,8rBAA8rB;KAC3sB;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,m0BAAm0B;KACh1B;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,wtBAAwtB;KACruB;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,qXAAqX;KAClY;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,wFAAwF;KACrG;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,mrCAAmrC;KAChsC;CACO,CACT,CAAA","sourcesContent":["/** Generated from /changelogs. Do not edit directly. */\nexport const GENERATED_RELEASE_CHANGELOGS = Object.freeze(\n[\n {\n \"version\": \"3.4.0\",\n \"markdown\": \"- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you.\\n- **Mentra Call:** Simpler call controls and a free first month.\\n- **Miniapps:** Add miniapps from a link or QR code.\\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\\n- **Livestreaming:** Smoother livestreams.\\n- **Sound:** Better speaker sound on Mentra Live, and music no longer stays off after a call.\\n- **Notes:** Short conversations now get notes too.\\n- **Reliability:** Fewer glasses crashes and disconnects.\"\n },\n {\n \"version\": \"3.3.0\",\n \"markdown\": \"- **Mentra Call:** Now available on iPhone, with a redesigned call screen and photo sharing during calls.\\n- **Microphone:** Improved glasses microphone reliability, including after phone calls.\\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\\n- **Glasses updates:** More reliable glasses updates, with clearer progress.\\n- **Miniapps:** Miniapps now update automatically. Fixed miniapps getting stuck on loading screens.\\n- **Mentra AI:** Reliability improvements and bug fixes.\\n- **Notes:** Take photos with the glasses camera button, and add meeting and location details to your notes.\\n- **Pairing and connections:** Improved glasses audio reconnection on Android.\\n- **G1 and NIMO:** Improved text display, including accented letters.\\n- **Android tablets:** The Mentra App now rotates to landscape.\"\n },\n {\n \"version\": \"3.2.1\",\n \"markdown\": \"- **Livestreamer:** \\\"Stream Here\\\" now works without a Wi-Fi network. Improved stream startup and connection reliability.\\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\\n- **Mentra AI:** Reliability improvements and bug fixes.\\n- **Miniapps:** Smoother transitions, with back buttons and gestures that take you to the previous screen inside a miniapp.\\n- **Pairing and connections:** Improved G1 pairing and G2 background reconnection.\\n- **Glasses updates:** Fixed repeated update checks and improved recovery after interrupted updates.\\n- **Mentra Maps:** Bug fixes.\\n- **NIMO:** Improved text and map layouts.\\n- **Self-hosting:** Connect the Mentra App to your own self-hosted Mentra backend.\"\n },\n {\n \"version\": \"3.2.0\",\n \"markdown\": \"- Improved glasses connectivity and Wi-Fi setup.\\n\\n- Breaking Bluetooth SDK change: `forgetWifiNetwork(ssid)` now returns `WifiForgetResult` instead of `WifiStatusChangeEvent`. Migrate status-only consumers to the semantic `outcome`; the requested network remains `ssid`, while optional post-command connectivity is reported by `connected`, `currentSsid`, and `localIp`.\"\n },\n {\n \"version\": \"3.1.1\",\n \"markdown\": \"- Improved Google login on iOS.\\n- Pairing no longer requires phone microphone access.\"\n },\n {\n \"version\": \"3.1.0\",\n \"markdown\": \"**Mentra App and glasses**\\n\\n- Improved glasses pairing and reconnection, including on iPad.\\n- Improved Android background reliability for captions and miniapps.\\n- Added Xingyi AR99 support.\\n- More reliable photo and video capture, with improved shutter sounds and privacy-light timing. Taking photos no longer interrupts your running miniapp.\\n- Added video thumbnails and smoother gallery browsing.\\n- Easier Mentra Live updates through your phone, with clearer progress and better recovery from interruptions.\\n\\n**Miniapp updates**\\n\\n- **Mentra AI:** Control whether photos are included with questions. Improved visual answers and connected-app follow-ups.\\n- **Captions:** Added offline transcription settings and top/bottom positioning on supported displays.\\n- **Translation:** Restored all 60 languages.\\n- **Mentra Maps:** Clearer directions on G1/G2, less display flickering, and improved Android offline routing.\\n- **Livestreamer:** More video-quality controls and custom streaming options, plus improved startup and sharing.\\n- **Merge:** Tap to expand an insight; swipe down or back to dismiss it.\\n- **Mentra Notes:** Smoother back navigation.\\n- **Recorder:** Fixed audio sharing.\"\n }\n] as const,\n)\n"]}
|
|
1
|
+
{"version":3,"file":"changelogCatalog.js","sourceRoot":"","sources":["../../src/generated/changelogCatalog.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,MAAM,CACzD;IACE;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,6tBAA6tB;KAC1uB;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,8rBAA8rB;KAC3sB;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,m0BAAm0B;KACh1B;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,wtBAAwtB;KACruB;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,qXAAqX;KAClY;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,wFAAwF;KACrG;IACD;QACE,SAAS,EAAE,OAAO;QAClB,UAAU,EAAE,mrCAAmrC;KAChsC;CACO,CACT,CAAA","sourcesContent":["/** Generated from /changelogs. Do not edit directly. */\nexport const GENERATED_RELEASE_CHANGELOGS = Object.freeze(\n[\n {\n \"version\": \"3.4.1\",\n \"markdown\": \"- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you. Glasses paired before this update keep working with your current phone.\\n- **Mentra Call:** Simpler call controls and a free first month.\\n- **Miniapps:** Add miniapps from a link or QR code.\\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\\n- **Livestreaming:** Smoother livestreams.\\n- **Sound:** Music no longer stays off after a call.\\n- **Notes:** Short conversations now get notes too.\\n- **Reliability:** Fewer glasses crashes and disconnects.\"\n },\n {\n \"version\": \"3.4.0\",\n \"markdown\": \"- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you.\\n- **Mentra Call:** Simpler call controls and a free first month.\\n- **Miniapps:** Add miniapps from a link or QR code.\\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\\n- **Livestreaming:** Smoother livestreams.\\n- **Sound:** Better speaker sound on Mentra Live, and music no longer stays off after a call.\\n- **Notes:** Short conversations now get notes too.\\n- **Reliability:** Fewer glasses crashes and disconnects.\"\n },\n {\n \"version\": \"3.3.0\",\n \"markdown\": \"- **Mentra Call:** Now available on iPhone, with a redesigned call screen and photo sharing during calls.\\n- **Microphone:** Improved glasses microphone reliability, including after phone calls.\\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\\n- **Glasses updates:** More reliable glasses updates, with clearer progress.\\n- **Miniapps:** Miniapps now update automatically. Fixed miniapps getting stuck on loading screens.\\n- **Mentra AI:** Reliability improvements and bug fixes.\\n- **Notes:** Take photos with the glasses camera button, and add meeting and location details to your notes.\\n- **Pairing and connections:** Improved glasses audio reconnection on Android.\\n- **G1 and NIMO:** Improved text display, including accented letters.\\n- **Android tablets:** The Mentra App now rotates to landscape.\"\n },\n {\n \"version\": \"3.2.1\",\n \"markdown\": \"- **Livestreamer:** \\\"Stream Here\\\" now works without a Wi-Fi network. Improved stream startup and connection reliability.\\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\\n- **Mentra AI:** Reliability improvements and bug fixes.\\n- **Miniapps:** Smoother transitions, with back buttons and gestures that take you to the previous screen inside a miniapp.\\n- **Pairing and connections:** Improved G1 pairing and G2 background reconnection.\\n- **Glasses updates:** Fixed repeated update checks and improved recovery after interrupted updates.\\n- **Mentra Maps:** Bug fixes.\\n- **NIMO:** Improved text and map layouts.\\n- **Self-hosting:** Connect the Mentra App to your own self-hosted Mentra backend.\"\n },\n {\n \"version\": \"3.2.0\",\n \"markdown\": \"- Improved glasses connectivity and Wi-Fi setup.\\n\\n- Breaking Bluetooth SDK change: `forgetWifiNetwork(ssid)` now returns `WifiForgetResult` instead of `WifiStatusChangeEvent`. Migrate status-only consumers to the semantic `outcome`; the requested network remains `ssid`, while optional post-command connectivity is reported by `connected`, `currentSsid`, and `localIp`.\"\n },\n {\n \"version\": \"3.1.1\",\n \"markdown\": \"- Improved Google login on iOS.\\n- Pairing no longer requires phone microphone access.\"\n },\n {\n \"version\": \"3.1.0\",\n \"markdown\": \"**Mentra App and glasses**\\n\\n- Improved glasses pairing and reconnection, including on iPad.\\n- Improved Android background reliability for captions and miniapps.\\n- Added Xingyi AR99 support.\\n- More reliable photo and video capture, with improved shutter sounds and privacy-light timing. Taking photos no longer interrupts your running miniapp.\\n- Added video thumbnails and smoother gallery browsing.\\n- Easier Mentra Live updates through your phone, with clearer progress and better recovery from interruptions.\\n\\n**Miniapp updates**\\n\\n- **Mentra AI:** Control whether photos are included with questions. Improved visual answers and connected-app follow-ups.\\n- **Captions:** Added offline transcription settings and top/bottom positioning on supported displays.\\n- **Translation:** Restored all 60 languages.\\n- **Mentra Maps:** Clearer directions on G1/G2, less display flickering, and improved Android offline routing.\\n- **Livestreamer:** More video-quality controls and custom streaming options, plus improved startup and sharing.\\n- **Merge:** Tap to expand an insight; swipe down or back to dismiss it.\\n- **Mentra Notes:** Smoother back navigation.\\n- **Recorder:** Fixed audio sharing.\"\n }\n] as const,\n)\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export const BLUETOOTH_SDK_RELEASE_METADATA = Object.freeze({
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"familyBaseVersion": "3.4.
|
|
4
|
-
"releaseIdentity": "3.4.
|
|
5
|
-
"releaseSetId": "mentra-3.4.
|
|
6
|
-
"sourceCommit": "
|
|
7
|
-
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.
|
|
8
|
-
"otaManifestSha256": "
|
|
3
|
+
"familyBaseVersion": "3.4.1",
|
|
4
|
+
"releaseIdentity": "3.4.1-beta.1409",
|
|
5
|
+
"releaseSetId": "mentra-3.4.1-beta.1409",
|
|
6
|
+
"sourceCommit": "0ac9bbe8869f3e269f43ca87f37382076eca8301",
|
|
7
|
+
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1409.json",
|
|
8
|
+
"otaManifestSha256": "c31a58bc0159c019e95a450eda8d546484210ca4ee39f1220951d2e3b2c5abaf"
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=releaseMetadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,iBAAiB;IACpC,cAAc,EAAE,wBAAwB;IACxC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,mIAAmI;IACrJ,mBAAmB,EAAE,kEAAkE;CACxF,CAAC,CAAA","sourcesContent":["/** Generated by release CI. Do not edit in a release checkout. */\nexport interface BluetoothSdkReleaseMetadata {\n schemaVersion: 1\n familyBaseVersion: string | null\n releaseIdentity: string | null\n releaseSetId: string | null\n sourceCommit: string | null\n otaManifestUrl: string | null\n otaManifestSha256: string | null\n}\n\nexport const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({\n \"schemaVersion\": 1,\n \"familyBaseVersion\": \"3.4.1\",\n \"releaseIdentity\": \"3.4.1-beta.1409\",\n \"releaseSetId\": \"mentra-3.4.1-beta.1409\",\n \"sourceCommit\": \"0ac9bbe8869f3e269f43ca87f37382076eca8301\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1409.json\",\n \"otaManifestSha256\": \"c31a58bc0159c019e95a450eda8d546484210ca4ee39f1220951d2e3b2c5abaf\"\n})\n"]}
|
|
@@ -16,7 +16,7 @@ enum BluetoothSdkDefaults {
|
|
|
16
16
|
/// 20-minute unworn power-off on every pair the app touches.
|
|
17
17
|
static let autoPowerOffEnabled = false
|
|
18
18
|
private static let infoSdkVersionKey = "MentraBluetoothSdkVersion"
|
|
19
|
-
private static let swiftPackageSdkVersion = "3.4.
|
|
19
|
+
private static let swiftPackageSdkVersion = "3.4.1-beta.1409"
|
|
20
20
|
private static let swiftPackageSdkVersionPlaceholder = "__MENTRA" + "_BLUETOOTH_SDK_VERSION__"
|
|
21
21
|
|
|
22
22
|
private static func normalizedSdkVersion(_ value: String?) -> String? {
|
|
@@ -152,6 +152,14 @@ struct ViewState {
|
|
|
152
152
|
Bridge.saveSetting("mentra_live_secure_firmware", false)
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
/// Whether the forgotten glasses keep former owners' keys is learned again from the next
|
|
156
|
+
/// glasses' `pairing_info`.
|
|
157
|
+
private func clearFormerOwnerKeys() {
|
|
158
|
+
guard DeviceStore.shared.get("bluetooth", "mentra_live_former_owner_keys") as? Bool == true else { return }
|
|
159
|
+
DeviceStore.shared.apply("bluetooth", "mentra_live_former_owner_keys", false)
|
|
160
|
+
Bridge.saveSetting("mentra_live_former_owner_keys", false)
|
|
161
|
+
}
|
|
162
|
+
|
|
155
163
|
private var pendingWearable: String {
|
|
156
164
|
get { DeviceStore.shared.get("bluetooth", "pending_wearable") as? String ?? "" }
|
|
157
165
|
set { DeviceStore.shared.apply("bluetooth", "pending_wearable", newValue) }
|
|
@@ -2138,6 +2146,7 @@ struct ViewState {
|
|
|
2138
2146
|
MentraLivePairingStateStore.shared.update("forget") { $0.onForget() }
|
|
2139
2147
|
clearOwnerLost()
|
|
2140
2148
|
clearSecureFirmware()
|
|
2149
|
+
clearFormerOwnerKeys()
|
|
2141
2150
|
// With no connection object, MentraLive.forget() can't run. Only clear Live's saved
|
|
2142
2151
|
// identity when Live is the target: forgetting G1/G2 must not touch a Live unit's.
|
|
2143
2152
|
if sgc == nil, defaultWearable.contains(DeviceTypes.LIVE) || pendingWearable.contains(DeviceTypes.LIVE) {
|
|
@@ -2,6 +2,7 @@ import Foundation
|
|
|
2
2
|
|
|
3
3
|
/// Generated from /changelogs. Do not edit directly.
|
|
4
4
|
let generatedReleaseChangelogs: [ReleaseChangelog] = [
|
|
5
|
+
ReleaseChangelog(version: "3.4.1", markdown: "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you. Glasses paired before this update keep working with your current phone.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."),
|
|
5
6
|
ReleaseChangelog(version: "3.4.0", markdown: "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Better speaker sound on Mentra Live, and music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."),
|
|
6
7
|
ReleaseChangelog(version: "3.3.0", markdown: "- **Mentra Call:** Now available on iPhone, with a redesigned call screen and photo sharing during calls.\n- **Microphone:** Improved glasses microphone reliability, including after phone calls.\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\n- **Glasses updates:** More reliable glasses updates, with clearer progress.\n- **Miniapps:** Miniapps now update automatically. Fixed miniapps getting stuck on loading screens.\n- **Mentra AI:** Reliability improvements and bug fixes.\n- **Notes:** Take photos with the glasses camera button, and add meeting and location details to your notes.\n- **Pairing and connections:** Improved glasses audio reconnection on Android.\n- **G1 and NIMO:** Improved text display, including accented letters.\n- **Android tablets:** The Mentra App now rotates to landscape."),
|
|
7
8
|
ReleaseChangelog(version: "3.2.1", markdown: "- **Livestreamer:** \"Stream Here\" now works without a Wi-Fi network. Improved stream startup and connection reliability.\n- **Photos and gallery:** More reliable photo capture and gallery syncing.\n- **Mentra AI:** Reliability improvements and bug fixes.\n- **Miniapps:** Smoother transitions, with back buttons and gestures that take you to the previous screen inside a miniapp.\n- **Pairing and connections:** Improved G1 pairing and G2 background reconnection.\n- **Glasses updates:** Fixed repeated update checks and improved recovery after interrupted updates.\n- **Mentra Maps:** Bug fixes.\n- **NIMO:** Improved text and map layouts.\n- **Self-hosting:** Connect the Mentra App to your own self-hosted Mentra backend."),
|
|
@@ -2,10 +2,10 @@ import Foundation
|
|
|
2
2
|
|
|
3
3
|
/// Generated by release CI. Do not edit in a release checkout.
|
|
4
4
|
enum GeneratedReleaseMetadata {
|
|
5
|
-
static let familyBaseVersion = "3.4.
|
|
6
|
-
static let releaseIdentity = "3.4.
|
|
7
|
-
static let releaseSetId = "mentra-3.4.
|
|
8
|
-
static let sourceCommit = "
|
|
9
|
-
static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.
|
|
10
|
-
static let otaManifestSha256 = "
|
|
5
|
+
static let familyBaseVersion = "3.4.1"
|
|
6
|
+
static let releaseIdentity = "3.4.1-beta.1409"
|
|
7
|
+
static let releaseSetId = "mentra-3.4.1-beta.1409"
|
|
8
|
+
static let sourceCommit = "0ac9bbe8869f3e269f43ca87f37382076eca8301"
|
|
9
|
+
static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1409.json"
|
|
10
|
+
static let otaManifestSha256 = "c31a58bc0159c019e95a450eda8d546484210ca4ee39f1220951d2e3b2c5abaf"
|
|
11
11
|
}
|
|
@@ -2259,6 +2259,17 @@ class MentraLive: NSObject, SGCManager {
|
|
|
2259
2259
|
Bridge.saveSetting("mentra_live_secure_firmware", secure)
|
|
2260
2260
|
}
|
|
2261
2261
|
|
|
2262
|
+
/// The glasses keep a former owner's keys for a reclaim in pairing mode (pairing-spec V9), so
|
|
2263
|
+
/// the app keeps this phone's pairing on Unpair instead of sending the person to Settings.
|
|
2264
|
+
private func rememberFormerOwnerKeys(_ kept: Bool) {
|
|
2265
|
+
guard (DeviceStore.shared.get("bluetooth", "mentra_live_former_owner_keys") as? Bool == true) != kept
|
|
2266
|
+
else { return }
|
|
2267
|
+
Task { @MainActor in
|
|
2268
|
+
DeviceStore.shared.apply("bluetooth", "mentra_live_former_owner_keys", kept)
|
|
2269
|
+
}
|
|
2270
|
+
Bridge.saveSetting("mentra_live_former_owner_keys", kept)
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2262
2273
|
/// One authentication-type failure. The state machine decides whether it settles a takeover
|
|
2263
2274
|
/// (the one verification after `OWNER_CHANGED`) or completes the 3-strike streak.
|
|
2264
2275
|
/// - Returns: true when this phone is now `pairing_rejected`.
|
|
@@ -3668,6 +3679,7 @@ class MentraLive: NSObject, SGCManager {
|
|
|
3668
3679
|
// Read before any readiness below: the audio wait of a pairing depends on it.
|
|
3669
3680
|
pairingInfoAutoAudio = json["auto_audio"] as? Bool ?? false
|
|
3670
3681
|
rememberSecureFirmware(securePairingCapable)
|
|
3682
|
+
rememberFormerOwnerKeys(json["former_owner_keys"] as? Bool ?? false)
|
|
3671
3683
|
if securePairingCapable {
|
|
3672
3684
|
pairingInfoSeenThisSession = true
|
|
3673
3685
|
cancelSecureFirmwareRefresh()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mentra/bluetooth-sdk",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1-beta.1409",
|
|
4
4
|
"description": "SDK for communicating with smart glasses",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"registry": "https://registry.npmjs.org/"
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@mentra/cloud-protocol": "3.4.
|
|
118
|
+
"@mentra/cloud-protocol": "3.4.1-beta.1409"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@types/node": "^25.9.3",
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/** Generated from /changelogs. Do not edit directly. */
|
|
2
2
|
export const GENERATED_RELEASE_CHANGELOGS = Object.freeze(
|
|
3
3
|
[
|
|
4
|
+
{
|
|
5
|
+
"version": "3.4.1",
|
|
6
|
+
"markdown": "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you. Glasses paired before this update keep working with your current phone.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."
|
|
7
|
+
},
|
|
4
8
|
{
|
|
5
9
|
"version": "3.4.0",
|
|
6
10
|
"markdown": "- **Pairing:** Pairing your glasses is simpler, with new voice prompts to guide you.\n- **Mentra Call:** Simpler call controls and a free first month.\n- **Miniapps:** Add miniapps from a link or QR code.\n- **Glasses updates:** Updates keep going when your phone switches networks, with clearer messages if something goes wrong.\n- **Photos and gallery:** More reliable photo syncing on iPhone. Your glasses now tell you when their storage is full.\n- **Livestreaming:** Smoother livestreams.\n- **Sound:** Better speaker sound on Mentra Live, and music no longer stays off after a call.\n- **Notes:** Short conversations now get notes too.\n- **Reliability:** Fewer glasses crashes and disconnects."
|
|
@@ -11,10 +11,10 @@ export interface BluetoothSdkReleaseMetadata {
|
|
|
11
11
|
|
|
12
12
|
export const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({
|
|
13
13
|
"schemaVersion": 1,
|
|
14
|
-
"familyBaseVersion": "3.4.
|
|
15
|
-
"releaseIdentity": "3.4.
|
|
16
|
-
"releaseSetId": "mentra-3.4.
|
|
17
|
-
"sourceCommit": "
|
|
18
|
-
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.
|
|
19
|
-
"otaManifestSha256": "
|
|
14
|
+
"familyBaseVersion": "3.4.1",
|
|
15
|
+
"releaseIdentity": "3.4.1-beta.1409",
|
|
16
|
+
"releaseSetId": "mentra-3.4.1-beta.1409",
|
|
17
|
+
"sourceCommit": "0ac9bbe8869f3e269f43ca87f37382076eca8301",
|
|
18
|
+
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.4.1/mentra-live-ota-3.4.1-beta.1409.json",
|
|
19
|
+
"otaManifestSha256": "c31a58bc0159c019e95a450eda8d546484210ca4ee39f1220951d2e3b2c5abaf"
|
|
20
20
|
})
|