Closed nawbc closed 4 years ago
This log is either cut or captured with too low verbosity, try capturing with -v 9
or PROOT_VERBOSE=9
(also, does same problem occur withing Termux app?)
@michalbednarski hi i have added PROOT_VERBOSE=9
to env that is all the log and termux runs well, i have tried android 10 devices but all failed, stderr: function not implemented, nokia x6(android 9) and honor v10(android 8) success
code
Future<ProcessResult> testProot(List<String> cmds,
{Map<String, String> env}) async {
bool seccomp = await Store.getBool(SANDBOX_NO_SECCOMP) ?? true;
return Process.run(
'$filesPath/proot',
getTestArguments(cmds),
workingDirectory: '/',
environment: {
'PROOT_NO_SECCOMP': seccomp ? '1' : '0',
'PROOT_TMP_DIR': '$filesPath/tmp',
'PROOT_VERBOSE': '9',
...?env
},
includeParentEnvironment: true,
);
}
Future<ProcessResult> installNodeJs() async {
return runProot(['apk', 'add', '--allow-untrusted', '/root/nodejs.apk']);
}
the proot binay i compiled https://github.com/sewerganger/lan_express_desktop_bug_report the alpine env
code
'PROOT_NO_SECCOMP': seccomp ? '1' : '0',
proot checks presence of PROOT_NO_SECCOMP
variable, so PROOT_NO_SECCOMP=0
is same as PROOT_NO_SECCOMP=1
(and setting this variable can cause problems as it prevents detection of syscall order which might be needed for handling of blocked syscalls). Try removing this variable.
proot info: ptrace acceleration (seccomp mode 2, new syscall order) enabled
"new" syscall order means running on kernel that includes following commit https://github.com/torvalds/linux/commit/a5cd110cb8369d6b37ef5ccfe56b3fa1338c9615
If removing that env variable didn't help this log still looks cut to me, try running that command through shell and using >& file.txt
redirect instead of capturing results from app.
@michalbednarski thank you very much, i remove the PROOT_NO_SECCOMP
, everything goes well
I compile the binary for aarch64 and armv7, and create a right alpine env. proot tested successfully using nokia x6 and honor v10, but all xiaomi devices fail to run redmi k20 (miui12 android10) , xiaomi 8 (miui12 android10) xiaomi 7 (miui 11 android 9)
log