Я следовал в этом посте о том, как вращать эмулятор с помощью adb.
Я делаю adb devices
и получаю
emulator-5554 device
emulator-5556 device
emulator-5558 device
emulator-5560 device
И затем я набираюдве команды (согласно посту) с добавлением -s emulator-5554
для поворота emulator-5554
к ландшафту
adb -s emulator-5554 shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
adb -s emulator-5554 shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
, но нет видимого поворота emulator-5554
edit
Эта команда не работает, потому что, если я изменю auto-rotate on
, то при запуске этой команды режим изменения будет portrait
adb -s emulator-5554 shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
, и эта команда, очевидно, изменит portrait mode
назадна auto-rotate mode
adb -s emulator-5554 shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:1
но я не могу войти в ландшафтный режим