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

android resolution adb #368

Closed
wants to merge 2 commits into from
Closed

android resolution adb #368

wants to merge 2 commits into from

Conversation

zahwen
Copy link

@zahwen zahwen commented Mar 8, 2021

hello, can someone fix this, i'm getting headache fix this
Exception occurred while executing 'size':
java.lang.SecurityException: Must hold permission android.permission.WRITE_SECURE_SETTINGS
at com.android.server.wm.WindowManagerService.clearForcedDisplaySize(WindowManagerService.java:5757)
at com.android.server.wm.WindowManagerShellCommand.runDisplaySize(WindowManagerShellCommand.java:167)
at com.android.server.wm.WindowManagerShellCommand.onCommand(WindowManagerShellCommand.java:71)
at android.os.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:98)
at android.os.ShellCommand.exec(ShellCommand.java:44)
at com.android.server.wm.WindowManagerService.onShellCommand(WindowManagerService.java:1260)
at android.os.Binder.shellCommand(Binder.java:936)
at android.os.Binder.onTransact(Binder.java:820)
at android.view.IWindowManager$Stub.onTransact(IWindowManager.java:2872)
at com.android.server.wm.WindowManagerService.onTransact(WindowManagerService.java:1511)
at com.android.server.wm.OppoWindowManagerService.onTransact(OppoWindowManagerService.java:175)
at android.os.Binder.execTransactInternal(Binder.java:1166)
at android.os.Binder.execTransact(Binder.java:1130)

In the Java version, a datagram was incorrectly rejected if its size was
exactly the remaining buffer size (this was harmless).

In the Rust version, the datagram buffer considered it had enough space
if a packet was 1 byte too big (causing packet overwriting).

Refs #345 <#345>
@rom1v
Copy link
Collaborator

rom1v commented Mar 8, 2021

#5

@rom1v rom1v closed this Mar 8, 2021
@zahwen
Copy link
Author

zahwen commented Mar 8, 2021

still not understand sir and my english bad too

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

Successfully merging this pull request may close these issues.

None yet

2 participants