Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
adjusting the concurrent quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
fuqiuluo committed Jun 27, 2023
1 parent 9d3a235 commit d05a81b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bash bin/unidbg-fetch-qsign --port=8080 --count=1 --library=txlib\8.9.63 --andr
> --library=`/home/your_dir`
- --port=你的端口
- --count=unidbg实例数量
- --count=unidbg实例数量 (建议等于核心数*2) 【数值越大并发能力越强,内存占用越大】
- --library=存放核心so文件的文件夹绝对路径

## Dokcer部署
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group = "moe.fuqiuluo"
version = "1.0.4"
version = "1.0.5"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var debug: Boolean = false // 调试模式

fun main(args: Array<String>) {
var port = 0 // API端口
var workerCount = 0 // UNIDBG实例数量
var workerCount = 5 // UNIDBG实例数量
var coreLibPath: File // 核心二进制文件路径
val reloadInterval: Long = 40 // 实例重载间隔(分钟)

Expand Down
8 changes: 3 additions & 5 deletions src/main/kotlin/moe/fuqiuluo/unidbg/env/FileResolver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,9 @@ class FileResolver(
))
}

if (path == "/proc/stat/cmdline") {
return FileResult.failed(UnixEmulator.ENOTDIR)
}

if (path == "/proc/${emulator.pid}/cmdline") {
if (path == "/proc/${emulator.pid}/cmdline"
|| path == "/proc/stat/cmdline" // an error case
) {
return FileResult.success(ByteArrayFileIO(oflags, path, "com.tencent.mobileqq:MSF".toByteArray()))
}

Expand Down

0 comments on commit d05a81b

Please sign in to comment.