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

Please add READ_LOGS to list of requested permissions #873

Closed
jidanni opened this issue Oct 15, 2018 · 6 comments
Closed

Please add READ_LOGS to list of requested permissions #873

jidanni opened this issue Oct 15, 2018 · 6 comments

Comments

@jidanni
Copy link

jidanni commented Oct 15, 2018

Please add android.permission.READ_LOGS to app's list of requested permissions.

That way (non-root) users could do (just once after getting their phone)
$ adb shell pm grant com.turmux android.permission.READ_LOGS

Enabling then in the app doing e.g.,
$ logcat -d -b radio | grep OPERATOR
etc. things that were formerly impossible.

One could now run shell scripts that could precisely pluck data from
logcat and post-process it, much more pinpoint than any bulky logcat
app... Or GPS app... or cell tower id app... !

@ghost
Copy link

ghost commented Oct 23, 2018

No, this may not be added. See https://stackoverflow.com/a/45270606.

If permission can be added with adb, it doesn't mean that AndroidManifest can do the same. Adb has much greater privileges than regular Android application.

@jidanni
Copy link
Author

jidanni commented Oct 25, 2018

All I know is for https://github.com/plusCubed/matlog
here in Android 8.0 non-root, all I need to do is the same
adb shell pm grant permission I mentioned above, and it works fine.

@jidanni
Copy link
Author

jidanni commented Oct 25, 2018

I am saying you first need to put it in the manifest.
Only then can I come along and do
adb shell pm grant permission.

@jidanni
Copy link
Author

jidanni commented Oct 25, 2018

If it is not already in the manifest, then
adb shell pm grant permission
won't work.

@ghost
Copy link

ghost commented Oct 25, 2018

I am saying you first need to put it in the manifest.
Only then can I come along and do
adb shell pm grant permission.

Now it will definitely not be added.

Update (2020.11.07) - Permission is going to be available in Termux v0.103 since application receives updates only on F-Droid now.

@Grimler91
Copy link
Member

See also termux/termux-api#211.

ghost pushed a commit that referenced this issue Nov 17, 2020
@ghost ghost locked and limited conversation to collaborators Oct 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants