Skip to content

Fix android test app build and startup crash - #48

Merged
igagis merged 1 commit into
mainfrom
fix/android-app-build-and-internet-permission
Dec 5, 2026
Merged

igagis merged 1 commit into
mainfrom
fix/android-app-build-and-internet-permission

Conversation

@igagis-bot

Copy link
Copy Markdown
Contributor

Two fixes for the android test app (Gradle build in build/android):

  1. Missing setka dependency in the app module — ruisapp/build.gradle declares io.github.cppfw:setka as implementation, so it does not propagate to the :app module. The native-aar bundle for the app therefore lacked setka's headers and libsetka.a, and src/ruisapp/probe_server.cpp failed to compile (fatal error: 'setka/init_guard.hpp' file not found). Added implementation 'io.github.cppfw:setka:+' to app/build.gradle.

  2. Missing INTERNET permission — the test app's main.cpp starts the TCP probe server on port 12555. Without android.permission.INTERNET in the manifest, Android denies socket() with Operation not permitted, and the app crashes at startup with an uncaught std::system_error in ANativeActivity_onCreate. Added the permission to app/src/main/AndroidManifest.xml.

Verified: ./gradlew :app:assembleDebug builds for all ABIs; installed and launched on a Fairphone 5 (Android 15) — app runs, no crash.

- add setka dependency to the app module: it is an implementation
  dependency of the ruisapp library module, so its headers and static
  lib were missing from the app's native bundle and probe_server.cpp
  failed to compile
- add INTERNET permission to the app manifest: the test app starts a
  TCP probe server on port 12555, and without the permission Android
  denies socket() creation, crashing the app at startup
@igagis-bot
igagis-bot requested a review from igagis December 5, 2026 13:06
@igagis
igagis merged commit beb9718 into main Dec 5, 2026
19 of 24 checks passed
@igagis
igagis deleted the fix/android-app-build-and-internet-permission branch December 5, 2026 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants