-
Notifications
You must be signed in to change notification settings - Fork 480
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
Can't executing grant permission command #66
Comments
|
Same. Have you got the solution? |
LADB auto jump to shell, try sending "pm grant com.arumcomm.crashlogviewer android.permission.PACKAGE_USAGE_STATS" |
No
| |
sdgaopeilei
|
|
***@***.***
|
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2022年04月13日 04:14 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.******@***.***> |
| 主题 | Re: [tytydraco/LADB] Can't executing grant permission command (Issue #66) |
Same. Have you got the solution?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Tried it before, but it didn't work.
| |
sdgaopeilei
|
|
***@***.***
|
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2022年04月14日 19:19 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.******@***.***> |
| 主题 | Re: [tytydraco/LADB] Can't executing grant permission command (Issue #66) |
LADB auto jump to shell, try sending "pm grant com.arumcomm.crashlogviewer android.permission.PACKAGE_USAGE_STATS"
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
The "adb shell" part is already assumed by LADB. |
And type everything manually, that error indicates wrong permission name, if you are copy pasting it from somewhere you might have caught a space with it. |
Spaces shouldn't cause any issue in a cli.. and copy pasting is usually more robust to errors. |
In a nomal desktop OS yes, and if someone pastes the wrong type of quote or hyphen or nonenglish encoding the shell says so....but android adb throws weird and not understandable errors like this, so it is worth trying. Just my experience, it happened to me. Maybe i am wrong. |
I reckon unicode handling may be odd yes, especially if you are going from a CP 850 cmd.exe to the native unix shell. |
I have a feeling that either the permission name you're entering is wrong (android.permission.PACKAGE_USAGE_STATS) or maybe, which OEM do you have? If it's like Xiaomi or something it might be removed in the OS. |
I have a Xiaomi and I have this problem, what I can do? |
When i submit command
adb shell pm grant com.arumcomm.crashlogviewer android.permission.PACKAGE_USAGE_STATS
,the result is :The text was updated successfully, but these errors were encountered: