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

[功能建议] 兼容定制ROM的Root方式 #47

Open
ChnMig opened this issue Oct 30, 2023 · 2 comments
Open

[功能建议] 兼容定制ROM的Root方式 #47

ChnMig opened this issue Oct 30, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ChnMig
Copy link
Collaborator

ChnMig commented Oct 30, 2023

Appscan 版本

请填写目前使用的AppScan的精确版本号
2.1.1

系统版本

电脑:

例如 win10
win11

手机:

例如 红米K40
红米K40

安卓版本:

例如 安卓11
安卓12

功能建议

请充分描述需求背景和功能描述

接多位微信用户反馈, 检测机构与手机厂商的ROM是定制化的, 具体表现为, adb中直接自带root权限, 并且没有 su 命令, 导致appScan报错 找不到root权限

@ChnMig ChnMig added the enhancement New feature or request label Oct 30, 2023
@ChnMig
Copy link
Collaborator Author

ChnMig commented Oct 30, 2023

目前调研直接修改运行的adb命令去除 su 可以正常运行, 但是为了兼容, 需要在前端高级设置中增加一个选项让用户选择不带 su 还是带 su 的方式

@ChnMig
Copy link
Collaborator Author

ChnMig commented Jan 9, 2024

修改检测root命令为 adb root
通过 adb shell whoami 判断用户名是否是root, 如果是root则不需要带 su

@ChnMig ChnMig self-assigned this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant