android adb shell:执行'size'时发生异常:

rdrgkggo  于 12个月前  发布在  Android
关注(0)|答案(1)|浏览(210)

我运行了以下命令:

adb shell wm size 480x480

字符串
并得到以下结果:

Exception occurred while executing 'size':
java.lang.UnsupportedOperationException: not implemented: display=480x480 cutout=DisplayCutout{insets=Rect(0, 45 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(152, 0 - 328, 45), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]}}
    at com.android.server.wm.utils.WmDisplayCutout.computeSafeInsets(WmDisplayCutout.java:120)
    at com.android.server.wm.utils.WmDisplayCutout.computeSafeInsets(WmDisplayCutout.java:55)
    at com.android.server.wm.DisplayContent.calculateDisplayCutoutForRotationUncached(DisplayContent.java:2249)
    at com.android.server.wm.DisplayContent.lambda$fiC19lMy-d_-rvza7hhOSw6bOM8(Unknown Source:0)
    at com.android.server.wm.-$$Lambda$DisplayContent$fiC19lMy-d_-rvza7hhOSw6bOM8.compute(Unknown Source:4)
    at com.android.server.wm.utils.RotationCache.getOrCompute(RotationCache.java:57)
    at com.android.server.wm.DisplayContent.calculateDisplayCutoutForRotation(DisplayContent.java:2233)
    at com.android.server.wm.DisplayContent.configureDisplayPolicy(DisplayContent.java:2105)
    at com.android.server.wm.DisplayContent.reconfigureDisplayLocked(DisplayContent.java:1512)
    at com.android.server.wm.DisplayContent.setForcedSize(DisplayContent.java:3146)
    at com.android.server.wm.WindowManagerService.setForcedDisplaySize(WindowManagerService.java:5900)
    at com.android.server.wm.WindowManagerShellCommand.runDisplaySize(WindowManagerShellCommand.java:230)
    at com.android.server.wm.WindowManagerShellCommand.onCommand(WindowManagerShellCommand.java:77)
    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:1280)
    at android.os.Binder.shellCommand(Binder.java:965)
    at android.os.Binder.onTransact(Binder.java:839)
    at android.view.IWindowManager$Stub.onTransact(IWindowManager.java:3711)
    at com.android.server.wm.WindowManagerService.onTransact(WindowManagerService.java:1542)
    at android.os.Binder.execTransactInternal(Binder.java:1195)
    at android.os.Binder.execTransact(Binder.java:1159)


所有其他尺寸都正常工作。此命令第一次也在设备上执行重置。但此后错误继续显示,但没有重置。

gzjq41n4

gzjq41n41#

在android开发者选项中尝试打开“禁用权限监控”设置。

相关问题