fix: filter tracing to INFO for wzp crates, WARN for jni crate
The jni crate emits VERBOSE logs for every JNI method lookup (~10 lines per call, 100+ calls/sec on audio threads). This floods logcat, consumes CPU, and triggers system kills. Filter to only show INFO+ for our crates and WARN+ for everything else. Also fix build script: clean full Rust target to ensure libc++_shared.so is always copied by cargo-ndk. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -196,6 +196,12 @@ do_upload() {
|
||||
do_build() {
|
||||
log "Building Rust native library (arm64-v8a, release)..."
|
||||
|
||||
# Clean Rust release target to force full rebuild.
|
||||
# cargo-ndk only copies libc++_shared.so when it actually links — a partial
|
||||
# clean that skips relinking leaves libc++_shared.so missing from jniLibs.
|
||||
ssh_cmd "rm -rf /root/wzp-build/target/aarch64-linux-android/release \
|
||||
/root/wzp-build/android/app/src/main/jniLibs/arm64-v8a"
|
||||
|
||||
# ANDROID_NDK must be set (not just ANDROID_NDK_HOME) — cmake checks it
|
||||
ssh_cmd "source \$HOME/.cargo/env && \
|
||||
export ANDROID_HOME=\$HOME/android-sdk && \
|
||||
|
||||
Reference in New Issue
Block a user