-
Notifications
You must be signed in to change notification settings - Fork 457
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
Add permission WRITE_SECURE_SETTINGS and READ_LOGS #211
Comments
Closing since adding additional permissions that requires running adb won't really benefit the average user. The users that want the extra permissions can build the app themselves 👍 |
Yes but it wouldn't hurt anybody. Zero. Nobody. |
Bloated code is not accepted here. Termux is standalone application shouldn't rely on adb. |
It in no way "rely/depends" on adb. Normal users would never know the difference.
But yes, to make it optionally 10 times more powerful, it does indeed
take that one time boost from adb. And a little one line cooperation
from you.
One cannot just edit your manifest, even with adb.
|
Take matlog for instance.
It can only read its own logcat entries.
...Until the user uses pm grant once.
|
From oza6ut0ne: "Note that these permissions doesn't work by just adding to AndroidManifest.xml. We also need to grant them using adb only once. adb shell pm grant com.termux.api android.permission.WRITE_SECURE_SETTINGS adb shell pm grant com.termux.api android.permission.READ_LOGS "
So this was added recently. I'm using Termux 0.103 and Termux:API 0.46 from F-Droid, granted the appropriate permissions through ADB and tried |
You are missing the fact that |
Makes sense, I'm on Android 10. But I just used an app (https://github.com/zacharee/Tweaker) that could change those same settings just by granting the WRITE_SECURE_SETTINGS permission through ADB. |
@crisalis2 Because it uses Android API for changing settings. Not the utility |
I see, thanks for explaining. |
They are needed to use
settings
command andlogcat
command in Termux, respectively.With
settings
command, we can change many settings without root.For example, turn on location service by
settings put secure location_providers_allowed +network,gps
and turn it off by
settings put secure location_providers_allowed -network,gps
And it would be nice if we can read logcat in Termux.
Note that these permissions doesn't work by just adding to AndroidManifest.xml.
We also need to grant them using adb only once.
Then we will be able to use
settings
andlogcat
in Termux.The text was updated successfully, but these errors were encountered: