This commit is contained in:
LZX committed 2026-09-23 15:17:14 +08:00
1 parent a8b7bdf606
commit 3faf9a7ae5
82 files changed
+3041 -883

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ if ((Test-Path $patch) -and -not (Select-String -Path (Join-Path $SrcDir "shmem.
# --- app id(决定 _PATH_TMP:命名 shm key 的 symlink 存放位置)-------------
if (-not $AppId) {
$m = Select-String -Path "android\app\build.gradle.kts" -Pattern 'applicationId\s*=\s*"([^"]+)"' | Select-Object -First 1
$AppId = if ($m) { $m.Matches.Groups[1].Value } else { "com.example.code_editor" }
$AppId = if ($m) { $m.Matches.Groups[1].Value } else { "com.lzxnone.code_editor" }
}
$tmpDef = "-D_PATH_TMP=`"/data/data/$AppId/cache/`""
Write-Host "applicationId=$AppId _PATH_TMP=/data/data/$AppId/cache/" -ForegroundColor Cyan
+1 -1
View File
@@ -35,7 +35,7 @@ NDK=<ndk>/toolchains/llvm/prebuilt/<host>/bin
前提:app 为 **debug** 构建(`run-as` 需要),设备已连 adb。
```bash
PKG=com.example.code_editor
PKG=com.lzxnone.code_editor
BASE=/data/data/$PKG/files/distros/alpine
R=$BASE/rootfs
+1 -1
View File
@@ -3,7 +3,7 @@
# 注意:这条路径经 run-as 启动,**没有** Android 的 app seccomp 过滤器
#(容器里看到的 Seccomp:2 是 proot 自己的加速过滤器)。因此涉及
# poll/select 等平台策略的结论必须在 App 自己的会话里验证。
PKG=com.example.code_editor
PKG=com.lzxnone.code_editor
BASE=/data/data/$PKG/files/distros/alpine
ROOT=$BASE/rootfs
# 按设备 ABI 选择(arm64-v8a / x86_64),避免写死导致换架构失效