Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adb shell使用su命令提示 /system/bin/su: No such file or directory #439

Open
5 tasks done
jecelyin opened this issue May 9, 2024 · 4 comments
Open
5 tasks done
Labels
bug Something isn't working

Comments

@jecelyin
Copy link

jecelyin commented May 9, 2024

Please check before submitting an issue/在提交 issue 前请检查

  • I have searched the issues and haven't found anything relevant/我已经搜索了 issues 列表,没有发现于本问题相关内容
  • If patch failed, root failed, or device unable to boot after flashing the new boot.img. Please goto KernelPatch/修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
  • I will upload bugreport file in APatch Manager - Settings - Report log/我会上传 bureport 文件从 APatch 管理器 - 设置 - 发送日志
  • I know how to reproduce the issue which may not be specific to my device/我知道如何重新复现这个问题

Version requirement/版本要求

  • I am using latest CI version of APatch/我正在使用最新 CI 版本

Describe the bug/描述 bug

adb shell 之后,死活拿不到root,其他应用可以正常root

lime:/ $ su
/system/bin/sh: /system/bin/su: No such file or directory

Reproduce method/复现方法

已经试过unchecked com.android.shell 重启系统后再checked,然后adb shell 还是不行

Expected behavior/预期行为

如何做可以正常su,ls查看 /system/bin/su 是存在的

Actual behaviour /实际行为

/system/bin/sh: /system/bin/su: No such file or directory

Screenshots/截图

No response

Logs/日志

No response

Device Name/设备名称

Redmi Note 9 4G

OS Version/系统版本

12

APatch Version/APatch 版本

10763

Kernel Version/内核版本

4.19.157

KernelPatch Version/KernelPatch 版本

0.10.7

Additional context/其他信息

boot.img是通过Manager应用右上角Patch得到新的boot.img然后fastboot flash boot上去

@jecelyin jecelyin added the bug Something isn't working label May 9, 2024
@jecelyin
Copy link
Author

jecelyin commented May 9, 2024

@jecelyin
Copy link
Author

jecelyin commented May 9, 2024

我把 termux 的自带的 usr 目录copy到 /data/local/tmp/下面,然后使用termux的bash命令,再调用 su 就可以了
看了一下,miui系统没有 bash命令

@rayshabh
Copy link

boot.img是通过Manager应用右上角Patch得到新的boot.img然后fastboot flash boot上去

I'm facing the same issue. Below are the screenshots while performing su command on both Windows Terminal and Termux Terminal.
Note: com.android.shell is given superuser privileges via APatch!

On Windows:
Screenshot (4)

On Termux:
Screenshot_20240512-230513_Termux

What I know about APatch is that it uses good features of both KernelSU and Magisk. I also know that KernelSU tricks the shell into thinking that /system/bin/su exists on the device when it is not. KernelSU does allow su to work in adb shell, but APatch cannot.

APatch Version:
Screenshot_20240510-234840_APatch
Screenshot_20240510-234852_APatch

@Ai686Leo
Copy link

可以使用爱玩机之类的软件让这类软件强制被自己调用root几次就好了Screenshot_2024-05-22-00-00-26-29_a5c17d2e2fb3cc7223d3ad8bda19a0b6.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants