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

the OS.execute () function on the Android platform #77639

Closed
Atem1995 opened this issue May 30, 2023 · 1 comment · Fixed by #87983
Closed

the OS.execute () function on the Android platform #77639

Atem1995 opened this issue May 30, 2023 · 1 comment · Fixed by #87983

Comments

@Atem1995
Copy link

Atem1995 commented May 30, 2023

Godot version

4.0.1 stable

System information

HUAWEI Nova 5 Pro

Issue description

When I want to run the OS.execute () function on the Android platform, [OS. execute ("dumpsys", ["location"], output)], it is clear that I have already opened the positioning authority of the application. But the result is [permission denial: can't dump location manager service from PID = 27381, uid = 10192 due to missing Android. permission.dump permission].

How can I execute “adb shell dumpsys location”?

Steps to reproduce

0
1

Minimal reproduction project

@Calinou
Copy link
Member

Calinou commented Feb 5, 2024

I'm fairly sure you can't call this command on a non-rooted device, as mentioned in one of the comments of https://stackoverflow.com/questions/11201659/whats-the-android-adb-shell-dumpsys-tool-and-what-are-its-benefits:

unfortunately it requires root or system level permission to use in java program.

@AThousandShips AThousandShips added this to the 4.3 milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants