- szPCName sent as "model/groupName" format matching Linux client - CMD_SET_GROUP handler updates g_SETTINGS.szGroupName in memory - Group name persisted to filesDir/yama_group; survives process restart - LoadGroupName() at startup overrides build-time patch value if file exists Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
712 B
Kotlin
28 lines
712 B
Kotlin
package com.yama.client
|
|
|
|
object YamaBridge {
|
|
init {
|
|
System.loadLibrary("yama")
|
|
}
|
|
|
|
external fun nativeInit(
|
|
serverIp: String,
|
|
serverPort: Int,
|
|
androidId: String,
|
|
deviceModel: String,
|
|
androidVersion: String,
|
|
screenRes: String,
|
|
username: String,
|
|
apkPath: String,
|
|
filesDir: String
|
|
): Int
|
|
|
|
external fun nativeStop()
|
|
|
|
/** MediaCodec 配置完成后调用,告知 C++ 实际捕获分辨率 */
|
|
external fun nativeSetScreenSize(width: Int, height: Int)
|
|
|
|
/** MediaCodec 每输出一帧 H.264 NALU 时调用 */
|
|
external fun nativeOnH264Frame(data: ByteArray, offset: Int, size: Int, isKeyframe: Boolean)
|
|
}
|