Modern Apps git

← Modern-Apps.git

watch: 32-bit ABI opt-in for merged phone+watch apps

Commit
20695a0b7a9b3045e02c6426bf11c00daba63b43
Author
Vayun Mathur <[email protected]>
When
2026-12-04 19:27 UTC (1 day ago)
Parents
b52566f
The merged single-APK phone+watch apps were arm64-only, so the
Pixel Watch 5 (armeabi-v7a, 32-bit only) rejected them at install
with INSTALL_FAILED_NO_MATCHING_ABIS. They all ship native
libraries (SQLCipher via :library:room, RingRTC, Compose graphics,
DataStore, or Rust), so every one needs the opt-in; verified by
building each release APK before the change - even calendar and
contacts, which have no Room/Rust of their own, carry
lib/arm64-v8a/libandroidx.graphics.path.so and
libdatastore_shared_counter.so, so no module qualified for the
no-native-libraries skip.

Add nativeAbis { armv7 = true } after launcherIcon in clock,
notes, calendar, todo, maps, camera, findfamily, contacts,
weather, communicate and music, following the appstore/launcher
precedent with a comment naming the watch constraint. Launcher
already had the opt-in and is unchanged.

Camera also passes extraAbis armeabi-v7a to its camera_stitch
rustNativeLib (the appstore signify precedent) and that crate
cross-compiles cleanly, so libcamera_stitch.so now ships for
v7a. The maps (offlinerouter: 64-bit address-space assumption,
E0080 at state.rs DIR_SIZE) and weather (weather_om:
om-file-format-sys build script) Rust crates do not compile for
32-bit today, so they keep arm64-only Rust; their watch
experiences render phone-supplied snapshots and never load those
libraries, and the guarded wrappers report them unavailable.
Library Rust in :library:map/:library:ml is likewise still
arm64-only for the same reason.

watch-wear (:watch:wear, com.vayunmathur.watch) applies
common-conventions-wear, not common-conventions-app, so it has
no nativeAbis extension; the wear convention hardcodes
arm64-v8a in its release build type. Declare the equivalent
armeabi-v7a abiFilter in its defaultConfig and release build
type instead, with a comment explaining why.

No module AGENTS.md documents ABI facts, so none needed updating.

Verified: lint + lintVitalRelease green for all twelve touched
modules (batched); assembleRelease APKs now contain
lib/armeabi-v7a entries for every touched module, including
libsqlcipher.so (clock/notes/todo/findfamily/weather/music/
communicate), libcamera_stitch.so (camera), libe2ee_pqc.so
(findfamily), libringrtc.so (communicate) and
libandroidx.graphics.path.so (calendar/contacts/watch-wear).

Diff

calendar/build.gradle.kts
diff --git a/calendar/build.gradle.kts b/calendar/build.gradle.ktsindex 2cfe22fc9e..f57926204e 100644--- a/calendar/build.gradle.kts+++ b/calendar/build.gradle.kts@@ -9,6 +9,11 @@ launcherIcon {     symbol = "calendar_month" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.calendar"
camera/build.gradle.kts
diff --git a/camera/build.gradle.kts b/camera/build.gradle.ktsindex c58bbd53d7..5ee83cdedf 100644--- a/camera/build.gradle.kts+++ b/camera/build.gradle.kts@@ -14,6 +14,11 @@ launcherIcon {     symbol = "photo_camera" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.camera"@@ -37,7 +42,8 @@ androidComponents { // Native panorama stitcher + night burst aligner (Rust). See camera/src/main/rust/. // camera_stitch also links vision_core (library/vision), and :library:ml's // modelrunner is in the graph too, so the host .so set is not just camera's own.-rustNativeLib("camera_stitch", "camera")+// extraAbis: the .so must also load on the 32-bit Pixel Watch 5 (see nativeAbis above).+rustNativeLib("camera_stitch", "camera", extraAbis = listOf("armeabi-v7a"))  // Only the classes below actually load a native library: they call // StitchNative directly (the two host-.so tests), execute a path that
clock/build.gradle.kts
diff --git a/clock/build.gradle.kts b/clock/build.gradle.ktsindex 5337f8e49d..2b07c069a8 100644--- a/clock/build.gradle.kts+++ b/clock/build.gradle.kts@@ -10,6 +10,11 @@ launcherIcon {     symbol = "schedule" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.clock"
communicate/build.gradle.kts
diff --git a/communicate/build.gradle.kts b/communicate/build.gradle.ktsindex 0ae074ebb2..e72ee2c516 100644--- a/communicate/build.gradle.kts+++ b/communicate/build.gradle.kts@@ -9,6 +9,11 @@ launcherIcon {     symbol = "call" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.communicate"
contacts/build.gradle.kts
diff --git a/contacts/build.gradle.kts b/contacts/build.gradle.ktsindex aa594734be..c1016d1563 100644--- a/contacts/build.gradle.kts+++ b/contacts/build.gradle.kts@@ -9,6 +9,11 @@ launcherIcon {     symbol = "person" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.contacts"
findfamily/build.gradle.kts
diff --git a/findfamily/build.gradle.kts b/findfamily/build.gradle.ktsindex 718f02b480..b327839b8a 100644--- a/findfamily/build.gradle.kts+++ b/findfamily/build.gradle.kts@@ -10,6 +10,11 @@ launcherIcon {     symbol = "moved_location" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.findfamily"
maps/build.gradle.kts
diff --git a/maps/build.gradle.kts b/maps/build.gradle.ktsindex 15130ae1c4..0798fceb91 100644--- a/maps/build.gradle.kts+++ b/maps/build.gradle.kts@@ -9,6 +9,11 @@ launcherIcon {     symbol = "location_on" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.maps"
music/build.gradle.kts
diff --git a/music/build.gradle.kts b/music/build.gradle.ktsindex 8306442f37..cdbc7e8593 100644--- a/music/build.gradle.kts+++ b/music/build.gradle.kts@@ -10,6 +10,11 @@ launcherIcon {     symbol = "music_note" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.music"
notes/build.gradle.kts
diff --git a/notes/build.gradle.kts b/notes/build.gradle.ktsindex 2a253c3660..2bb0be26a0 100644--- a/notes/build.gradle.kts+++ b/notes/build.gradle.kts@@ -10,6 +10,11 @@ launcherIcon {     symbol = "subject" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.notes"
todo/build.gradle.kts
diff --git a/todo/build.gradle.kts b/todo/build.gradle.ktsindex 1053e9fbfa..a0f12686ab 100644--- a/todo/build.gradle.kts+++ b/todo/build.gradle.kts@@ -10,6 +10,11 @@ launcherIcon {     symbol = "checklist" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.todo"
watch-wear/build.gradle.kts
diff --git a/watch-wear/build.gradle.kts b/watch-wear/build.gradle.ktsindex 73d98bc5cd..d0a28085ba 100644--- a/watch-wear/build.gradle.kts+++ b/watch-wear/build.gradle.kts@@ -14,6 +14,21 @@ android {     defaultConfig {         applicationId = "com.vayunmathur.watch"         minSdk = 31+        // Pixel Watch 5 is armeabi-v7a (32-bit) only: common-conventions-wear+        // hardcodes arm64-v8a in its release build type, so an arm64-only APK+        // is rejected at install. This module uses that convention (not+        // common-conventions-app), so there is no nativeAbis opt-in here —+        // declare the equivalent abiFilter directly.+        ndk {+            abiFilters.add("armeabi-v7a")+        }+    }+    buildTypes {+        release {+            ndk {+                abiFilters.add("armeabi-v7a")+            }+        }     } } 
weather/build.gradle.kts
diff --git a/weather/build.gradle.kts b/weather/build.gradle.ktsindex bf491e0c96..5144cc7ed8 100644--- a/weather/build.gradle.kts+++ b/weather/build.gradle.kts@@ -10,6 +10,11 @@ launcherIcon {     symbol = "partly_cloudy_day" } +// Pixel Watch 5 is armeabi-v7a (32-bit) only: an arm64-only APK is rejected at install.+nativeAbis {+    armv7 = true+}+ android {     defaultConfig {         applicationId = "com.vayunmathur.weather"