如何处理在VirtualBox上的android-x86中强制屏幕方向的应用程序? [英] How to deal with apps that force screen orientation in android-x86 on VirtualBox?
问题描述
如果您使用的是Android设备,则您会意识到有些应用程序会强制显示器显示为纵向,而忽略该设备的方向传感器.在真实的设备上,这不是问题,因为您可以用手旋转设备以使用该应用程序.
If you've used an Android device, you're aware that there are some apps that force the display to portrait and ignore the device's orientation sensor. On a real device, this is not a problem, as you can physically rotate the device in your hands to use the app.
但是,我试图在Linux Mint PC上的Oracle VirtualBox中的android-x86上使用这样的应用程序,并且无法实际旋转显示器.我已经尝试过使用f9-f12键将旋转事件发送到应用程序,但是由于方向是固定的,因此无效.
However, I am trying to use such an app on android-x86 in Oracle's VirtualBox on a Linux Mint PC, and cannot physically rotate my monitor. I have tried the f9-f12 keys that send a rotation event to the app, but since the orientation is fixed, this has no effect.
让脖子歪成90°的短暂时间,我该如何配置android-x86,VirtualBox和/或Linux以使应用程序正面朝上显示?需要明确的是,我无权访问该应用程序的源代码.
Short of keeping my neck cricked at a 90° angle, how might I configure android-x86, VirtualBox, and/or Linux to display the app right side up? To be clear, I don't have access to the source code of the app.
推荐答案
现在肯定无法回答,无论如何,我发现我可以即时旋转回vd重置屏幕分辨率.如果我的设备是1200x800(横向),并且通过应用向左旋转,则可以通过shell comcomnd将其垂直放置:(adb shell)wm尺寸800x1200
For sure now is too late to reply, anyway I discovered that I can rotate back my vd resetting resolution of screen on the fly. If my device is 1200x800 (landscape) and it is rotated left by an app I can get it vertical by shell comamnd: (adb shell) wm size 800x1200
这篇关于如何处理在VirtualBox上的android-x86中强制屏幕方向的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!