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

Need help with using 'settings' command #1671

Closed
tinboyko opened this issue Jul 24, 2020 · 1 comment
Closed

Need help with using 'settings' command #1671

tinboyko opened this issue Jul 24, 2020 · 1 comment

Comments

@tinboyko
Copy link

Hi, I want to build web interface for mobile for my personal use as router. For this purpose I using web servers on termux. So I need read and write sytem settings. e,g settings get global airplane_mode_radios. Main goal that Node could exec this command. I can get results by using su -c "...." in termux terminal. But I getting error when I trying to exec it via node. Then when I using directly command settings get I getting error about missing permission android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY. I'm newbie in android dev and I wonder how I could add this permissions in custom build? I tried with <uses-permission android:name="android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY" /> but when I granting this permission via pm grant getting error is not a changeable permission type

any help would be appreciated, thanks

@twaik
Copy link
Member

twaik commented Dec 23, 2023

android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY is a system permission. It can not be granted to regular apps. So you can use settings command only with su/tsu/sudo.

@twaik twaik closed this as completed Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants