@mentra/bluetooth-sdk 3.5.0-dev.1406 → 3.5.0-dev.1411
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 +5 -5
- 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 +5 -5
- 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 +5 -5
- 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 +5 -5
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()
|
|
@@ -4,6 +4,7 @@ package com.mentra.bluetoothsdk
|
|
|
4
4
|
internal val GENERATED_RELEASE_CHANGELOGS: List<ReleaseChangelog> =
|
|
5
5
|
listOf(
|
|
6
6
|
ReleaseChangelog(version = "3.5.0", markdown = "This release is under active development. User-facing changes will be documented as they land."),
|
|
7
|
+
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."),
|
|
7
8
|
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."),
|
|
8
9
|
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."),
|
|
9
10
|
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."),
|
|
@@ -3,9 +3,9 @@ package com.mentra.bluetoothsdk
|
|
|
3
3
|
/** Generated by release CI. Do not edit in a release checkout. */
|
|
4
4
|
internal object GeneratedReleaseMetadata {
|
|
5
5
|
const val FAMILY_BASE_VERSION: String = "3.5.0"
|
|
6
|
-
const val RELEASE_IDENTITY: String = "3.5.0-dev.
|
|
7
|
-
const val RELEASE_SET_ID: String = "mentra-3.5.0-dev.
|
|
8
|
-
const val SOURCE_COMMIT: String = "
|
|
9
|
-
const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.
|
|
10
|
-
const val OTA_MANIFEST_SHA256: String = "
|
|
6
|
+
const val RELEASE_IDENTITY: String = "3.5.0-dev.1411"
|
|
7
|
+
const val RELEASE_SET_ID: String = "mentra-3.5.0-dev.1411"
|
|
8
|
+
const val SOURCE_COMMIT: String = "190907ec7e6e8ef97ca2535d8f7f7db34ebf591c"
|
|
9
|
+
const val OTA_MANIFEST_URL: String = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1411.json"
|
|
10
|
+
const val OTA_MANIFEST_SHA256: String = "6e7db8893b27d849df90e21a66477702efbd8d9cb6584831a63258e1b216f75b"
|
|
11
11
|
}
|
|
@@ -371,11 +371,16 @@ class MentraLive : SGCManager() {
|
|
|
371
371
|
* Drop A2DP/HFP + removeBond for every bonded Mentra Live unit. Safe when no SGC
|
|
372
372
|
* instance exists — [DeviceManager.forget] often runs after disconnect() nulled sgc
|
|
373
373
|
* (abandonAttempt), which previously skipped MentraLive.forget() entirely and left
|
|
374
|
-
* Classic ACL up so glasses never re-advertised.
|
|
374
|
+
* Classic ACL up so glasses never re-advertised. With [removeBonds] false the bonds stay:
|
|
375
|
+
* glasses that keep former owners' keys (pairing-spec V9) take this phone back with them.
|
|
375
376
|
*/
|
|
376
377
|
@JvmStatic
|
|
377
378
|
@JvmOverloads
|
|
378
|
-
fun unbondBondedMentraLiveDevices(
|
|
379
|
+
fun unbondBondedMentraLiveDevices(
|
|
380
|
+
context: Context?,
|
|
381
|
+
extraAddress: String? = null,
|
|
382
|
+
removeBonds: Boolean = true,
|
|
383
|
+
) {
|
|
379
384
|
if (context == null) {
|
|
380
385
|
Bridge.log("LIVE: CTKD: unbondBondedMentraLiveDevices — no context")
|
|
381
386
|
return
|
|
@@ -433,7 +438,11 @@ class MentraLive : SGCManager() {
|
|
|
433
438
|
BluetoothHeadset::class.java,
|
|
434
439
|
"HFP"
|
|
435
440
|
)
|
|
436
|
-
removeBondStandalone(device)
|
|
441
|
+
if (removeBonds) removeBondStandalone(device)
|
|
442
|
+
}
|
|
443
|
+
if (!removeBonds) {
|
|
444
|
+
Bridge.log("LIVE: CTKD: bonds kept, the glasses keep former owners' keys")
|
|
445
|
+
return
|
|
437
446
|
}
|
|
438
447
|
Handler(Looper.getMainLooper())
|
|
439
448
|
.postDelayed({ retryUnbondIfStillPaired(context, extraAddress) }, 700)
|
|
@@ -2179,9 +2188,13 @@ class MentraLive : SGCManager() {
|
|
|
2179
2188
|
if (isKilled) return
|
|
2180
2189
|
if (isExplicitPairingAttempt()) return
|
|
2181
2190
|
leaveGlassesLink()
|
|
2182
|
-
//
|
|
2183
|
-
//
|
|
2184
|
-
|
|
2191
|
+
// Glasses that keep former owners' keys (pairing-spec V9) take this phone back with the
|
|
2192
|
+
// bond it has, with no pairing request. Older ones deleted this phone's keys: a bond kept
|
|
2193
|
+
// there would make the first Pair Again connect with them, get refused and fail; removed
|
|
2194
|
+
// now, Pair Again bonds afresh.
|
|
2195
|
+
if (MentraLiveOwnerLossPolicy.removesBondWhenGlassesLetGo(savedGlassesKeepFormerOwnerKeys())) {
|
|
2196
|
+
forgetRejectedBond()
|
|
2197
|
+
}
|
|
2185
2198
|
}
|
|
2186
2199
|
|
|
2187
2200
|
private fun forgetRejectedBond() {
|
|
@@ -2347,6 +2360,16 @@ class MentraLive : SGCManager() {
|
|
|
2347
2360
|
private fun isSavedGlassesSecureFirmware(): Boolean =
|
|
2348
2361
|
DeviceStore.get("bluetooth", "mentra_live_secure_firmware") as? Boolean == true
|
|
2349
2362
|
|
|
2363
|
+
/** `pairing_info.former_owner_keys`: the saved glasses keep this phone's keys once it loses them. */
|
|
2364
|
+
private fun savedGlassesKeepFormerOwnerKeys(): Boolean =
|
|
2365
|
+
DeviceStore.get("bluetooth", "mentra_live_former_owner_keys") as? Boolean == true
|
|
2366
|
+
|
|
2367
|
+
private fun rememberFormerOwnerKeys(kept: Boolean) {
|
|
2368
|
+
if (savedGlassesKeepFormerOwnerKeys() == kept) return
|
|
2369
|
+
DeviceStore.apply("bluetooth", "mentra_live_former_owner_keys", kept)
|
|
2370
|
+
Bridge.saveSetting("mentra_live_former_owner_keys", kept)
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2350
2373
|
/** Remember what the connected glasses reported so later rejections can be read correctly. */
|
|
2351
2374
|
private fun rememberSecureFirmware(secure: Boolean) {
|
|
2352
2375
|
if (isSavedGlassesSecureFirmware() == secure) return
|
|
@@ -4590,6 +4613,7 @@ class MentraLive : SGCManager() {
|
|
|
4590
4613
|
// Legacy firmware that omits this field is not secure-capable.
|
|
4591
4614
|
val secureCapable = json.optBoolean("secure_pairing_capable", false)
|
|
4592
4615
|
rememberSecureFirmware(secureCapable)
|
|
4616
|
+
rememberFormerOwnerKeys(json.optBoolean("former_owner_keys", false))
|
|
4593
4617
|
cancelSecureFirmwareRefresh()
|
|
4594
4618
|
// Decides the capability of a pairing target the scan row did not know.
|
|
4595
4619
|
sessionPairingInfoSecure = secureCapable
|
|
@@ -7178,6 +7202,12 @@ class MentraLive : SGCManager() {
|
|
|
7178
7202
|
return device.bondState == BluetoothDevice.BOND_BONDING
|
|
7179
7203
|
}
|
|
7180
7204
|
|
|
7205
|
+
/**
|
|
7206
|
+
* Set by [DeviceManager.forget] before [forget]: the glasses keep former owners' keys
|
|
7207
|
+
* (`pairing_info.former_owner_keys`), so Unpair leaves this phone's bond for a later reclaim.
|
|
7208
|
+
*/
|
|
7209
|
+
var keepBondsOnForget = false
|
|
7210
|
+
|
|
7181
7211
|
override fun forget() {
|
|
7182
7212
|
if (postGattLifecycle { forget() }) return
|
|
7183
7213
|
Bridge.log("LIVE: Forgetting Mentra Live glasses")
|
|
@@ -7217,7 +7247,7 @@ class MentraLive : SGCManager() {
|
|
|
7217
7247
|
// Drop GATT first. removeBond while the BLE link is still encrypted often
|
|
7218
7248
|
// returns true on Samsung but the OS Bluetooth UI keeps the dual-mode pair.
|
|
7219
7249
|
disconnect()
|
|
7220
|
-
unbondBondedMentraLiveDevices(ctx, bondedAddress)
|
|
7250
|
+
unbondBondedMentraLiveDevices(ctx, bondedAddress, !keepBondsOnForget)
|
|
7221
7251
|
}
|
|
7222
7252
|
unpairFlushRunnable = flush
|
|
7223
7253
|
handler.postDelayed(flush, UNPAIR_FLUSH_MS)
|
|
@@ -165,6 +165,15 @@ internal object MentraLiveOwnerLossPolicy {
|
|
|
165
165
|
pairingDiscoverable: Boolean,
|
|
166
166
|
): Boolean = !savedGlasses && !reconnectScan && secureTrailer && !pairingDiscoverable
|
|
167
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Whether this phone removes its bond when it loses the glasses or unpairs them. Glasses that
|
|
170
|
+
* report `pairing_info.former_owner_keys` (pairing-spec V9) keep this phone's keys and take it
|
|
171
|
+
* back in pairing mode with the bond it has, with no pairing request; removing it would only
|
|
172
|
+
* throw that away. Older glasses deleted the keys, so the bond is stale and goes.
|
|
173
|
+
*/
|
|
174
|
+
fun removesBondWhenGlassesLetGo(glassesKeepFormerOwnerKeys: Boolean): Boolean =
|
|
175
|
+
!glassesKeepFormerOwnerKeys
|
|
176
|
+
|
|
168
177
|
/**
|
|
169
178
|
* `secure_pairing_capable` only means the firmware can do secure pairing. Ownership is the
|
|
170
179
|
* 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))
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
export declare const GENERATED_RELEASE_CHANGELOGS: readonly [{
|
|
3
3
|
readonly version: "3.5.0";
|
|
4
4
|
readonly markdown: "This release is under active development. User-facing changes will be documented as they land.";
|
|
5
|
+
}, {
|
|
6
|
+
readonly version: "3.4.1";
|
|
7
|
+
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
8
|
}, {
|
|
6
9
|
readonly version: "3.4.0";
|
|
7
10
|
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.";
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;EAmCxC,CAAA"}
|
|
@@ -4,6 +4,10 @@ export const GENERATED_RELEASE_CHANGELOGS = Object.freeze([
|
|
|
4
4
|
"version": "3.5.0",
|
|
5
5
|
"markdown": "This release is under active development. User-facing changes will be documented as they land."
|
|
6
6
|
},
|
|
7
|
+
{
|
|
8
|
+
"version": "3.4.1",
|
|
9
|
+
"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."
|
|
10
|
+
},
|
|
7
11
|
{
|
|
8
12
|
"version": "3.4.0",
|
|
9
13
|
"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,gGAAgG;KAC7G;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.5.0\",\n \"markdown\": \"This release is under active development. User-facing changes will be documented as they land.\"\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,gGAAgG;KAC7G;IACD;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.5.0\",\n \"markdown\": \"This release is under active development. User-facing changes will be documented as they land.\"\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
3
|
"familyBaseVersion": "3.5.0",
|
|
4
|
-
"releaseIdentity": "3.5.0-dev.
|
|
5
|
-
"releaseSetId": "mentra-3.5.0-dev.
|
|
6
|
-
"sourceCommit": "
|
|
7
|
-
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.
|
|
8
|
-
"otaManifestSha256": "
|
|
4
|
+
"releaseIdentity": "3.5.0-dev.1411",
|
|
5
|
+
"releaseSetId": "mentra-3.5.0-dev.1411",
|
|
6
|
+
"sourceCommit": "190907ec7e6e8ef97ca2535d8f7f7db34ebf591c",
|
|
7
|
+
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1411.json",
|
|
8
|
+
"otaManifestSha256": "6e7db8893b27d849df90e21a66477702efbd8d9cb6584831a63258e1b216f75b"
|
|
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,gBAAgB;IACnC,cAAc,EAAE,uBAAuB;IACvC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,kIAAkI;IACpJ,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.5.0\",\n \"releaseIdentity\": \"3.5.0-dev.
|
|
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,gBAAgB;IACnC,cAAc,EAAE,uBAAuB;IACvC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,kIAAkI;IACpJ,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.5.0\",\n \"releaseIdentity\": \"3.5.0-dev.1411\",\n \"releaseSetId\": \"mentra-3.5.0-dev.1411\",\n \"sourceCommit\": \"190907ec7e6e8ef97ca2535d8f7f7db34ebf591c\",\n \"otaManifestUrl\": \"https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1411.json\",\n \"otaManifestSha256\": \"6e7db8893b27d849df90e21a66477702efbd8d9cb6584831a63258e1b216f75b\"\n})\n"]}
|
|
@@ -17,7 +17,7 @@ enum BluetoothSdkDefaults {
|
|
|
17
17
|
/// persist.mentra.wear_detection_off=1.
|
|
18
18
|
static let autoPowerOffEnabled = true
|
|
19
19
|
private static let infoSdkVersionKey = "MentraBluetoothSdkVersion"
|
|
20
|
-
private static let swiftPackageSdkVersion = "3.5.0-dev.
|
|
20
|
+
private static let swiftPackageSdkVersion = "3.5.0-dev.1411"
|
|
21
21
|
private static let swiftPackageSdkVersionPlaceholder = "__MENTRA" + "_BLUETOOTH_SDK_VERSION__"
|
|
22
22
|
|
|
23
23
|
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) }
|
|
@@ -2116,6 +2124,7 @@ struct ViewState {
|
|
|
2116
2124
|
MentraLivePairingStateStore.shared.update("forget") { $0.onForget() }
|
|
2117
2125
|
clearOwnerLost()
|
|
2118
2126
|
clearSecureFirmware()
|
|
2127
|
+
clearFormerOwnerKeys()
|
|
2119
2128
|
// With no connection object, MentraLive.forget() can't run. Only clear Live's saved
|
|
2120
2129
|
// identity when Live is the target: forgetting G1/G2 must not touch a Live unit's.
|
|
2121
2130
|
if sgc == nil, defaultWearable.contains(DeviceTypes.LIVE) || pendingWearable.contains(DeviceTypes.LIVE) {
|
|
@@ -3,6 +3,7 @@ import Foundation
|
|
|
3
3
|
/// Generated from /changelogs. Do not edit directly.
|
|
4
4
|
let generatedReleaseChangelogs: [ReleaseChangelog] = [
|
|
5
5
|
ReleaseChangelog(version: "3.5.0", markdown: "This release is under active development. User-facing changes will be documented as they land."),
|
|
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."),
|
|
@@ -3,9 +3,9 @@ import Foundation
|
|
|
3
3
|
/// Generated by release CI. Do not edit in a release checkout.
|
|
4
4
|
enum GeneratedReleaseMetadata {
|
|
5
5
|
static let familyBaseVersion = "3.5.0"
|
|
6
|
-
static let releaseIdentity = "3.5.0-dev.
|
|
7
|
-
static let releaseSetId = "mentra-3.5.0-dev.
|
|
8
|
-
static let sourceCommit = "
|
|
9
|
-
static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.
|
|
10
|
-
static let otaManifestSha256 = "
|
|
6
|
+
static let releaseIdentity = "3.5.0-dev.1411"
|
|
7
|
+
static let releaseSetId = "mentra-3.5.0-dev.1411"
|
|
8
|
+
static let sourceCommit = "190907ec7e6e8ef97ca2535d8f7f7db34ebf591c"
|
|
9
|
+
static let otaManifestUrl = "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1411.json"
|
|
10
|
+
static let otaManifestSha256 = "6e7db8893b27d849df90e21a66477702efbd8d9cb6584831a63258e1b216f75b"
|
|
11
11
|
}
|
|
@@ -2331,6 +2331,17 @@ class MentraLive: NSObject, SGCManager {
|
|
|
2331
2331
|
Bridge.saveSetting("mentra_live_secure_firmware", secure)
|
|
2332
2332
|
}
|
|
2333
2333
|
|
|
2334
|
+
/// The glasses keep a former owner's keys for a reclaim in pairing mode (pairing-spec V9), so
|
|
2335
|
+
/// the app keeps this phone's pairing on Unpair instead of sending the person to Settings.
|
|
2336
|
+
private func rememberFormerOwnerKeys(_ kept: Bool) {
|
|
2337
|
+
guard (DeviceStore.shared.get("bluetooth", "mentra_live_former_owner_keys") as? Bool == true) != kept
|
|
2338
|
+
else { return }
|
|
2339
|
+
Task { @MainActor in
|
|
2340
|
+
DeviceStore.shared.apply("bluetooth", "mentra_live_former_owner_keys", kept)
|
|
2341
|
+
}
|
|
2342
|
+
Bridge.saveSetting("mentra_live_former_owner_keys", kept)
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2334
2345
|
/// One authentication-type failure. The state machine decides whether it settles a takeover
|
|
2335
2346
|
/// (the one verification after `OWNER_CHANGED`) or completes the 3-strike streak.
|
|
2336
2347
|
/// - Returns: true when this phone is now `pairing_rejected`.
|
|
@@ -3751,6 +3762,7 @@ class MentraLive: NSObject, SGCManager {
|
|
|
3751
3762
|
// Read before any readiness below: the audio wait of a pairing depends on it.
|
|
3752
3763
|
pairingInfoAutoAudio = json["auto_audio"] as? Bool ?? false
|
|
3753
3764
|
rememberSecureFirmware(securePairingCapable)
|
|
3765
|
+
rememberFormerOwnerKeys(json["former_owner_keys"] as? Bool ?? false)
|
|
3754
3766
|
if securePairingCapable {
|
|
3755
3767
|
pairingInfoSeenThisSession = true
|
|
3756
3768
|
cancelSecureFirmwareRefresh()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mentra/bluetooth-sdk",
|
|
3
|
-
"version": "3.5.0-dev.
|
|
3
|
+
"version": "3.5.0-dev.1411",
|
|
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.5.0-dev.
|
|
118
|
+
"@mentra/cloud-protocol": "3.5.0-dev.1411"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@types/node": "^25.9.3",
|
|
@@ -5,6 +5,10 @@ export const GENERATED_RELEASE_CHANGELOGS = Object.freeze(
|
|
|
5
5
|
"version": "3.5.0",
|
|
6
6
|
"markdown": "This release is under active development. User-facing changes will be documented as they land."
|
|
7
7
|
},
|
|
8
|
+
{
|
|
9
|
+
"version": "3.4.1",
|
|
10
|
+
"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."
|
|
11
|
+
},
|
|
8
12
|
{
|
|
9
13
|
"version": "3.4.0",
|
|
10
14
|
"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."
|
|
@@ -12,9 +12,9 @@ export interface BluetoothSdkReleaseMetadata {
|
|
|
12
12
|
export const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({
|
|
13
13
|
"schemaVersion": 1,
|
|
14
14
|
"familyBaseVersion": "3.5.0",
|
|
15
|
-
"releaseIdentity": "3.5.0-dev.
|
|
16
|
-
"releaseSetId": "mentra-3.5.0-dev.
|
|
17
|
-
"sourceCommit": "
|
|
18
|
-
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.
|
|
19
|
-
"otaManifestSha256": "
|
|
15
|
+
"releaseIdentity": "3.5.0-dev.1411",
|
|
16
|
+
"releaseSetId": "mentra-3.5.0-dev.1411",
|
|
17
|
+
"sourceCommit": "190907ec7e6e8ef97ca2535d8f7f7db34ebf591c",
|
|
18
|
+
"otaManifestUrl": "https://artifactscdn.mentraglass.com/Mentra-Community/MentraOS/releases/mentra-builds-v3.5.0/mentra-live-ota-3.5.0-dev.1411.json",
|
|
19
|
+
"otaManifestSha256": "6e7db8893b27d849df90e21a66477702efbd8d9cb6584831a63258e1b216f75b"
|
|
20
20
|
})
|