adb shell 電話の解像度を取得する

adb を使用して画面のピクセル密度を変更します (このコマンドは Allwinner 開発ボード用です)
adb shell am display-density 120

{次のコマンドは Qualcomm の開発ボード用です}
Android デバイスの画面解像度を取得します:

adb shell wm size
Android デバイスの画面密度を取得します:
adb shell wmdensity画面の
ピクセル密度を変更します
adb shell wm resize 1920*1080
adb shell wm size 540×960
Reset Screen size
adb shell wm size reset
set screen dpi (一般的に使用される dpi は 160mdpi, 240hdpi, 320xhdpi, 480xxhdpi)
adb shell wmdensity 320
reset 利用可能な dpi は次のように command
adb shell wmdensity reset

==================

解決:

adb シェル wm サイズ

dpi:adb sehll wm密度

==================

#### 1. 一般的な方法:
    
adb shell dumpsys ウィンドウに |head -n 3 次のような出力情報が表示されます       : WINDOW MANAGER DISPLAY CONTENTS (dumpsys ウィンドウが
    
表示   さ
    
れます) rng= 1080x1025-1920x1865 1080x1920 は画面解像度です。#### 2. Qualcomm platform adb shell wm size output: Physical size: 1080x192


    





おすすめ

転載: blog.csdn.net/liujun3512159/article/details/126497052