Comments (16)
你装的是不是 32 位的应用
from kernelsu.
貌似是system挂载只读导致的,可是刷了读写模块还不行
from kernelsu.
你装的是不是 32 位的应用
你指的是ksu的APP32位吗,貌似只有64一个版本
其他终端类都是64的
from kernelsu.
你装的是不是 32 位的应用
我专门看了一下,就算模块已经挂载读写,/system/bin/里面也没有su
from kernelsu.
su 文件本来就不存在。你直接运行 /system/bin/su 是什么结果?
from kernelsu.
su 文件本来就不存在。你直接运行 /system/bin/su 是什么结果?
not found
from kernelsu.
换了几个APP,都一样的结果
from kernelsu.
from kernelsu.
如果你是使用termux的google play版本,请换回f-droid版本。实测google play版本在termux环境内无法识别kernelsu的su命令(failsafe环境可使用su)。
from kernelsu.
如果你是使用termux的google play版本,请换回f-droid版本。实测google play版本在termux环境内无法识别kernelsu的su命令(failsafe环境可使用su)。
可是我得用nethunter的终端,不行,现在换回magisk了,先将就着
from kernelsu.
如果还想在用 ksu 的情况下正常使用 play 版 termux ,可以把你的 su 脚本 ($PREFIX/bin/su
) 换成下面的代码
if [ -n "$LD_PRELOAD" ]; then
unset LD_PRELOAD LD_LIBRARY_PATH
exec /system/bin/sh $0 "$@"
fi
exec /system/bin/su "$@"
from kernelsu.
我遇到的问题 设置shell root以后,linux(5.15.0-107-generic)下打开终端 adb shell 输入su 提示/system/bin/su: 没有那个文件或目录
用的0.9.5版本,手机内核4.4 自己编译,其他app root正常。之前使用的是0.7.6版本 功能正常,升级0.9.5以后遇到这个问题,代码申请su一切正常
from kernelsu.
如果还想在用 ksu 的情况下正常使用 play 版 termux ,可以把你的 su 脚本 (
$PREFIX/bin/su
) 换成下面的代码if [ -n "$LD_PRELOAD" ]; then unset LD_PRELOAD LD_LIBRARY_PATH exec /system/bin/sh $0 "$@" fi exec /system/bin/su "$@"
termux-play-store/termux-tools@9187cfa
from kernelsu.
我也遇见了同样的问题,经过我的测试,内核ksu版本大于等于9.4就会出现这个问题,目前尚未解决
from kernelsu.
ssh-iSowUqgFMj6LkxsGWZ7iCA==/lib/arm64/libcom_sonelli_bash.so -c su --help 2>&1 | grep su <
execve("/data/app/~~1_FVbQm4Aqq2x6NeV25AuQ==/com.sonelli.juicessh-iSowUqgFMj6LkxsGWZ7iCA==/lib/arm64/libcom_sonelli_bash.so", ["/data/app/~~1_FVbQm4Aqq2x6NeV25A"..., "-c", "su", "--help"], 0x7feebc97c8 /* 26 vars */strace: [ Process PID=19422 runs in 32 bit mode. ]
strace: WARNING: Proper structure decoding for this personality is not supported, please consider building strace with mpers support enabled.
fstatat64(AT_FDCWD, "/system/etc/ld.config.arm.txt", 0xfff2cad8, 0) = -1 ENOENT (No such file or directory)
read(3, "oid.hardware.confirmationui-supp"..., 4096) = 4096
faccessat(AT_FDCWD, "/data/nativetest/odm", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/nativetest64/odm", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/benchmarktest/odm", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/benchmarktest64/odm", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/nativetest/vendor", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/nativetest64/vendor", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/benchmarktest/vendor", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/benchmarktest64/vendor", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/nativetest/unrestricted", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/nativetest64/unrestricted", R_OK) = -1 ENOENT (No such file or directory)
faccessat(AT_FDCWD, "/data/local/tmp/isolated", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/product/lib/vndk-sp", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/product/lib/vndk-sp", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/odm/lib/vndk-sp", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/odm/lib/vndk-sp", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/vendor/lib/vndk-sp", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/vendor/lib/vndk-sp", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/apex/com.android.resolv/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.resolv/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/apex/com.android.appsearch/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.appsearch/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/apex/com.android.uwb/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.uwb/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/apex/com.android.adservices/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.adservices/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/apex/com.android.virt/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.virt/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/apex/com.android.extservices/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.extservices/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/product/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.runtime/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/apex/com.android.art/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/system_ext/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/system/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/system/xbin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/odm/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/vendor/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
fstatat64(AT_FDCWD, "/vendor/xbin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory)
write(2, "--help: su: command not found\n", 30--help: su: command not found
JuiceSSH(com.sonelli.juicessh) version 3.2.2(Google Play Store) 看上去不会直接execve
edit: commit 815f4d0 可能漏hook了fstatat64?
edit2: hook点newfstatat 换成vfs_fstat(at)看上去会更好?这两个函数都在linux/fs.h里面且不是static。
https://elixir.bootlin.com/linux/v5.10.210/source/include/linux/fs.h#L3180
https://elixir.bootlin.com/linux/v5.15.157/source/include/linux/fs.h#L3377
https://elixir.bootlin.com/linux/v6.1.87/source/include/linux/fs.h#L3360
https://elixir.bootlin.com/linux/v6.6.35/source/include/linux/fs.h#L3097
from kernelsu.
ssh-iSowUqgFMj6LkxsGWZ7iCA==/lib/arm64/libcom_sonelli_bash.so -c su --help 2>&1 | grep su < execve("/data/app/~~1_FVbQm4Aqq2x6NeV25AuQ==/com.sonelli.juicessh-iSowUqgFMj6LkxsGWZ7iCA==/lib/arm64/libcom_sonelli_bash.so", ["/data/app/~~1_FVbQm4Aqq2x6NeV25A"..., "-c", "su", "--help"], 0x7feebc97c8 /* 26 vars */strace: [ Process PID=19422 runs in 32 bit mode. ] strace: WARNING: Proper structure decoding for this personality is not supported, please consider building strace with mpers support enabled. fstatat64(AT_FDCWD, "/system/etc/ld.config.arm.txt", 0xfff2cad8, 0) = -1 ENOENT (No such file or directory) read(3, "oid.hardware.confirmationui-supp"..., 4096) = 4096 faccessat(AT_FDCWD, "/data/nativetest/odm", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/nativetest64/odm", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/benchmarktest/odm", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/benchmarktest64/odm", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/nativetest/vendor", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/nativetest64/vendor", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/benchmarktest/vendor", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/benchmarktest64/vendor", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/nativetest/unrestricted", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/nativetest64/unrestricted", R_OK) = -1 ENOENT (No such file or directory) faccessat(AT_FDCWD, "/data/local/tmp/isolated", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/product/lib/vndk-sp", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/product/lib/vndk-sp", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/odm/lib/vndk-sp", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/odm/lib/vndk-sp", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/vendor/lib/vndk-sp", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/vendor/lib/vndk-sp", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/apex/com.android.resolv/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.resolv/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/apex/com.android.appsearch/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.appsearch/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/apex/com.android.uwb/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.uwb/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/apex/com.android.adservices/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.adservices/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/apex/com.android.virt/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.virt/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/apex/com.android.extservices/lib", O_RDONLY|O_LARGEFILE|O_CLOEXEC|O_PATH) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.extservices/lib", 0xfff2a820, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/product/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.runtime/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/apex/com.android.art/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/system_ext/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/system/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/system/xbin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/odm/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/vendor/bin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) fstatat64(AT_FDCWD, "/vendor/xbin/su", 0xfff2eac8, 0) = -1 ENOENT (No such file or directory) write(2, "--help: su: command not found\n", 30--help: su: command not found
JuiceSSH(com.sonelli.juicessh) version 3.2.2(Google Play Store) 看上去不会直接execve edit: commit 815f4d0 可能漏hook了fstatat64? edit2: hook点newfstatat 换成vfs_fstat(at)看上去会更好?这两个函数都在linux/fs.h里面且不是static。 https://elixir.bootlin.com/linux/v5.10.210/source/include/linux/fs.h#L3180 https://elixir.bootlin.com/linux/v5.15.157/source/include/linux/fs.h#L3377 https://elixir.bootlin.com/linux/v6.1.87/source/include/linux/fs.h#L3360 https://elixir.bootlin.com/linux/v6.6.35/source/include/linux/fs.h#L3097
你才是真大佬
from kernelsu.
Related Issues (20)
- [Feature] Import/Export Settings HOT 1
- [Feature] Add option to randomize ksu manager package name HOT 1
- EACCES HOT 1
- Scrolling lists not propperly interpretted by screen reading services
- moto g54 android12-5.10.198_2024-01-boot-gz.img.gz可以运行 kernelsu 但是lkm方式就打开kernelsu显示未安装
- KernelSU does not ask to allow su access to certain apps with root capabilities HOT 6
- Is it possible to have KSU LKM with locked bootloader? HOT 1
- [2个小疑问]如何比较方便的从GKI模式切换到LKM? HOT 1
- Compilation error in clang-17 plz help sir HOT 1
- Install Error: create temp dir failed HOT 3
- qgki support
- 发送日志中的 “保存日志保存日志” HOT 1
- 魅族20Pro LKM模式 无法运行在0.9.5以及1.0.0版本下,0.9.4版本正常工作 HOT 6
- [Custom] 未能在官网指向页面找到ksud二进制下载链接 HOT 4
- 在ROOT权限下无法直接加载kernelsu.ko HOT 1
- 请教一下编译出来的内核刷入后正常运行但是不支持kernelsu会是什么原因呢? HOT 2
- Manager app not working after kernel flash HOT 2
- umount debug ramdisk failed HOT 1
- 非GKI设备在kernelsu管理面板中无法安装模块 HOT 2
- 红米Note13 5G HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kernelsu.