fix(android): 修复投屏崩溃与 16 KB 页兼容
- 采集会话迁移到 MediaProjectionService 前台服务 - 修正 libopus JNI 符号名,加载失败时回退 MediaCodec - .so 按 16 KB 页对齐,兼容 Android 15+ 设备 - 签名配置外置到 config.gradle(已忽略,不再入库) - 心跳与传输改到后台线程,补充 Gradle wrapper
This commit is contained in:
1 parent
d7a65b976a
commit
b89a65993c
13 files changed
+680
-98
No files matched your search
@@ -6,6 +6,14 @@ add_library(ttstd_opus SHARED opus_jni.cpp)
|
||||
find_library(log-lib log)
|
||||
target_link_libraries(ttstd_opus ${log-lib})
|
||||
|
||||
# Android 15+ 的 16 KB 页设备要求 .so 的 LOAD 段按 16 KB 对齐。
|
||||
# NDK r27 默认仍是 4 KB,NDK r28+ 才默认 16 KB,因此这里显式指定,
|
||||
# 避免安装时报 "not compatible with 16 KB devices"。
|
||||
target_link_options(ttstd_opus PRIVATE
|
||||
-Wl,-z,max-page-size=16384
|
||||
-Wl,-z,common-page-size=16384
|
||||
)
|
||||
|
||||
# TODO(libopus): 将 opus 源码加入后,取消下面注释并启用 native 编码:
|
||||
# add_subdirectory(opus)
|
||||
# target_link_libraries(ttstd_opus opus)
|
||||
|
||||
Reference in new issue
Block a user