Use adb shell wm size to read Android’s reported width and height in pixels, and adb shell wm density to read logical density. Start with adb devices to confirm the device is connected:
adb devices
adb shell wm size
adb shell wm density
These values describe Android’s current logical display configuration, not necessarily the panel’s physical diagonal in inches. Use adb shell dumpsys display for additional display-service details, and record any override, rotation, display ID, and multi-window state when you need reproducible results.
What the ADB commands actually measure
Android exposes several different ideas of “screen size.” Keeping them separate prevents incorrect device inventories and bad layout tests.
- Reported resolution: the width-by-height pixel configuration returned by
wm size. - Logical density: the scaling value returned by
wm density, used when Android maps density-independent pixels to physical pixels. - Display-service state: records such as display IDs, modes, overrides, and other diagnostics available from
dumpsys display. - Physical diagonal: the panel’s real measurement in inches. ADB’s resolution and density output does not uniquely determine this value.
Android can adjust the reported display area for system decorations, scaling, display partitions, and window-manager emulation. Therefore, a value printed by ADB is a configuration value, not automatically a measurement of the glass panel.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstall#1 Best Overall
- POWER YOUR STUDY, FUEL YOUR PLAY – Discover smarter learning with the Lenovo Idea Tab. Stay campus-ready with all-day battery life, AI-powered apps to enhance your work, and sharp graphics for tv marathons with friends.
- SMOOTH, POWERFUL, IMMERSIVE – The MediaTek Dimensity 6300 processor is more powerful than ever, with the AI-enhanced multitasking you need to stay ahead.
- CIRCLE IT, SEARCH IT – Use your Lenovo Tab Pen or fingertip to circle items for instant search results or to translate other languages without switching apps. Circle to Search with Google ensures answers are only a circle away.
- SHARP VIEW, CLEAR SOUND – Experience sharp visuals and immersive sound for study sessions and streaming breaks. With 72% NTSC and quad Dolby Atmos-tuned speakers you can enjoy your study breaks with vivid videos and crystal-clear sound.
- LEVEL UP YOUR STUDY – Write, organize, sketch, and calculate with four learning apps built to match your flow. Lenovo AI Note, Squid, Nebo, and MyScript Calculator help you stay clear, focused, and ready for every study session.
Prepare the device and verify the connection
- Install Android’s ADB command-line tools (the SDK Platform-Tools package) on your computer.
- On the phone or tablet, enable Developer options and USB debugging. If you are using wireless debugging, pair or connect it through the Android settings first.
- Connect the device with a data-capable cable when using wired ADB. A charge-only cable will not provide an ADB connection.
- Run
adb devices. Approve the RSA debugging prompt on an unlocked device if Android displays one.
adb devices
A device listed with the state device is ready. An unauthorized state means the authorization prompt has not been accepted; an empty list means ADB has not established a connection.
Read the reported resolution
adb shell wm size
A typical response can contain a physical or native value and an override, for example:
Physical size: 1080x2400
Override size: 720x1600
The active logical size in this example is the override, 720x1600. If no override line appears, the physical/native value is normally the active reported size. Width and height follow the current display orientation; rotating the device can swap their order.
Why an override matters
The window-manager size can be changed for testing, compatibility, or emulation. Android documents that a display size returned through its APIs can differ from the display’s native resolution, and that an emulated size can match a value set with adb shell wm size. Always preserve both lines of output rather than recording only the first number.
The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Rank #2
- COMPACT SIZE, COMPACT FUN – The Lenovo Tab One is compact, efficient, and provides non-stop entertainment everywhere you go. It’s lightweight and has a long-lasting battery life so the fun never stops.
- SIMPLICITY IN HAND - Add a touch of style with a modern design that’s tailor-made to fit in your hand. It weighs less than a pound and has an 8.7” display that’s easy to tuck in a purse or backpack.
- NON-STOPPABLE FUN – Freedom never felt so sweet with all-day battery life and up to 12.5 hours of unplugged YouTube streaming. It’s designed to charge 15W faster than previous models so you can spend less time tethered to a power cable.
- PORTABLE MEDIA CENTER - Enjoy vibrant visuals, immersive sound, and endless entertainment anywhere you go. The HD display has 480 nits of brightness for realistic graphics and dual Dolby Atmos speakers that provide impressive sound depth.
- ELEVATED EFFICIENCY - Experience the MediaTek Helio G85 processor and 60Hz refresh rate that ensure fluid browsing, responsive gaming, and lag-free streaming.
Read logical density (often called DPI)
adb shell wm density
The result is usually a density value such as Physical density: 420 and, when changed, an Override density line. The override is the active logical scaling value. Density controls how Android converts density-independent pixels (dp) into pixels; it is not a trustworthy measurement of the panel’s diagonal or a guaranteed laboratory DPI value.
For UI work, treat density as an Android scaling configuration. For hardware inventory, keep it alongside the model, Android version, and resolution, but do not label it as the screen’s physical pixels-per-inch unless you have an independent manufacturer specification.
Inspect broader display details with dumpsys
adb shell dumpsys display
This command asks Android’s display service for a much larger diagnostic record. It can expose multiple displays, display IDs, modes, logical and physical dimensions, rotation, and other state that explains why a simple wm result looks unexpected.
Because unrestricted dumpsys output is verbose, target the service you need and save the result with the capture date. On a device with several displays, identify the display ID associated with the panel or window you are investigating instead of assuming display 0 is always the relevant one.
Free tools Windows power users keep installed
One-click scans. No signup required.
Rank #3
- 【Dual-Function 2-in-1 Tablet】URAO Android 16 Tablet is a game-changer with 2-in-1 professional work mode. The tablet is compatible with a Bluetooth keyboard, mouse, stylus, headset, and a convenient foldable case. The setup and connection process is straight forward, enabling you to effortlessly transform your tablet into either a laptop or a computer mode. Friendly Tips: Mouse does not come with batteries.
- 【Android 16 & Octa-Core Processor】URAO Android tablet features the latest operating system Android 16 and an 1.8 GHz octa-core processor ensure of excellent performance, seamless multitasking, getting rid of annoying ads, emphasizing privacy and security by designing enhanced app permissions, providing you complete management control.
- 【36GB (6+30GB) RAM 128GB ROM 】Our 11 inch tablet comes with 36GB (6+30GB) RAM 128GB ROM and maximun 1TB TF card ( not included )expandable ensures you of a fast APP launch and smooth gaming experience. URAO tablet also come with pre-installed Google Play Store, you can easily download any needed Apps such as Facebook, Twitter, Youtube, etc.
- 【7800mAh Battery with Fast Charge】The built-in large capacity and low consumption CPU enable our URAO 11 inch tablet to stand by for up to 3 days and allows you to enjoy up to 8 hours of mixed reading, watching TV shows, playing games, surfing the web. URAO tablet adopts fast-charging technology ,easily charge via the USB Type-C port and rest assured the battery will last. It is a good companion for you to play and study!
- 【Wi-Fi 6+Bluetooth5.4】URAO 11 inch android tablet adopts the lastest sixth generation WiFi technology and the upgraded bluetooth 5.4. Dual band integrated chips make the 5g WiFi and 2.4g WiFi more stable and the lastest bluetooth 5.4 connection supports all your favorite accessories, highly increased the speed of data transfer, improved network capacity and reduced network delays.
Resolution, window size, and physical size are different
Resolution is not the application window
wm size describes a display configuration. An app may receive a smaller usable window when system bars, split-screen mode, freeform windows, or a display partition consume part of the area. Android recommends current window metrics for application-layout decisions rather than assuming a global display value. If your goal is to test an app’s layout, collect the app’s window metrics in the same state in which the bug occurs.
Resolution and density cannot reveal inches exactly
Two panels can share the same pixel dimensions and logical density while having different physical diagonals. Conversely, the same panel can report a different logical size after an override. To obtain the diagonal, consult the manufacturer’s specifications for the exact model or measure the visible panel yourself. Do not calculate a supposedly exact inch value from wm size and wm density alone.
Reset size or density overrides
If a test override is causing confusing output, remove it and read the values again:
adb shell wm size reset
adb shell wm density reset
adb shell wm size
adb shell wm density
The reset commands remove the corresponding window-manager overrides. They do not change the panel’s native hardware. Rerun both read commands after resetting and record the new output.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsRank #4
- 【Android 16 OS & High-Performance CPU】 Evermyth GMS-certified tablet runs on the Android 16 operating system, allowing direct downloads of popular apps from the Play Store. Powered by a robust 5-core processor that hits speeds up to 1.8GHz, the android tablet is engineered to boost multitasking performance. Whether you’re working, watching videos, or gaming, this 5-core tablet pc operates seamlessly, delivering a fast, professional-grade experience.
- 【24GB RAM + 64GB ROM + 1TB Expandable Storage】 Our 10 inch electronics tablets comes with 24GB RAM (3GB physical + 21GB virtual), 64GB ROM, and supports up to 1TB of expandable storage via a TF card (not included). This ensures quick app launches and smooth gameplay.
- 【10 inch HD IPS In-Cell Display】 This tablet PC boasts a 1280×800 high-resolution IPS screen that delivers vibrant, true-to-life colors. Enjoy sharper, brighter visuals for a more immersive viewing experience. The 5MP front and 8MP rear camera can handle video calls and photo recording with ease. LCD touchscreen uses low-blue-light tech to cut down on eye strain from screen flicker and harsh blue light. Slim and lightweight, this 10-inch tablet amps up immersion for all your favorite activities.
- 【6000mAh Rechargeable Battery】 Electronics tablets Packed with a 6000mAh battery and a low-power-consuming CPU, Evermyth 10 inch tablet offers up to 3 days of standby time and up to 8 hours of mixed usage—perfect for reading, streaming, or web browsing. Charging is a breeze via the USB-C port, making the tablet an ideal companion for both entertainment and work!
- 【Wi-Fi 6 & Bluetooth 5.4】 Evermyth Android 16 tablet features the latest Wi-Fi 6 and upgraded Bluetooth 5.4. It supports dual-band (5GHz/2.4GHz) Wi-Fi connectivity for stable, high-speed transfers. Bluetooth 5.4 ensures seamless compatibility with all your favorite accessories.
A reproducible screen-size inventory
For a device lab, bug report, or CI run, capture enough context that another person can interpret the numbers later:
- Record the exact output of
adb devices, without publishing sensitive device identifiers unnecessarily. - Record the manufacturer and model, Android release, and API level.
- Record
adb shell wm sizeandadb shell wm density, including both physical and override lines. - Record the orientation at capture time and whether the device is in split-screen, freeform, or another partitioned mode.
- When several displays are present, record the display ID and the relevant sections of
adb shell dumpsys display. - Keep the command output with a timestamp and test name. If you reset an override, preserve the before and after outputs.
A small shell capture can make the process repeatable:
#!/bin/sh
set -eu
printf '%sn' '== adb devices =='
adb devices
printf '%sn' '== wm size =='
adb shell wm size
printf '%sn' '== wm density =='
adb shell wm density
printf '%sn' '== display service =='
adb shell dumpsys display
Run it while the device is in the state you want to document and redirect the output to a dated text file.
Troubleshooting common ADB screen-size problems
| Symptom | Likely cause | Fix |
|---|---|---|
adb devices is empty |
USB debugging is off, the cable or port is charge-only, or the ADB server has not connected. | Unlock the device, enable USB debugging, try a data cable and another port, then reconnect and run adb devices again. |
Device shows unauthorized |
The RSA authorization dialog is waiting on the phone. | Unlock the phone, accept the computer’s key, and rerun adb devices. If necessary, revoke USB-debugging authorizations in Developer options and reconnect. |
wm size shows an unexpected smaller value |
An override, display partition, or emulated configuration is active. | Look for an Override size line, inspect adb shell dumpsys display, and use adb shell wm size reset only if removing the test override is appropriate. |
| Width and height appear reversed | The device is rotated. | Record orientation. Compare values only after placing devices in the same orientation. |
| Density differs from the manufacturer specification | wm density reports logical scaling and may include an override. |
Record the physical and override density lines separately. Use the manufacturer’s specification for physical PPI. |
| Dump output is too large to review | dumpsys display intentionally returns broad service diagnostics. |
Save it to a file, search for the display ID or mode you need, and avoid treating unrelated displays as the target panel. |
An app still lays out differently despite matching wm size |
The app window is reduced by system decorations, split-screen, or another windowing mode. | Capture the app’s current window metrics in that exact state instead of relying on the global display value. |
Performance, reliability, and safety notes
The wm queries are lightweight and normally return immediately. dumpsys display is more expensive to read and parse because it returns a broad diagnostic snapshot; use it when you need context, not for every high-frequency poll.
Recommended Free Tools
Best Value
- Do what you love, uninterrupted — 25% faster performance than the previous generation and is ideal for seamless streaming, reading, and gaming.
- High-def entertainment — A 10.1" 1080p Full HD display brings brilliant color to all your shows and games. Binge watch longer with 13-hour battery, 3 or 4 GB RAM, 32 or 64 GB of storage, and up to 1 TB expandable storage with micro-SD card (sold separately).
- Thin, light, durable — Tap into entertainment from anywhere with a lightweight, durable design and strengthened glass made from aluminosilicate glass. As measured in a tumble test, Fire HD 10 is 2.7 times as durable as the Samsung Galaxy Tab A8 (2022).
- Stay up to speed — Use the 5 MP front-facing camera to Zoom with family and friends, or create content for social apps like Instagram and TikTok.
- Ready when inspiration strikes — With 4,096 levels of pressure sensitivity, the Made for Amazon Stylus Pen (sold separately) offers a natural writing experience that responds to your handwriting. Use it to write, sketch in apps like OneNote, and more.
Results are state-dependent. Rotation, external displays, multi-window mode, display partitions, and temporary overrides can all change what an app or the window manager reports. For reliable comparisons, hold those conditions constant and retain the raw command output. Do not infer hardware quality, panel size, or color characteristics from these commands.
Or skip the browser setup
ADB is the right method for inspecting an Android device. If what you actually need is an automated screenshot of a website at a chosen viewport, ScreenshotNeo provides a one-request API instead of requiring you to install and control a browser. It is not a replacement for wm size; it is a separate way to capture web pages.
Use the documented endpoint and options at ScreenshotNeo’s API documentation:
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Python:
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
r.raise_for_status()
open("shot.webp", "wb").write(r.content)
Node.js:
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const fs = await import('node:fs/promises');
await fs.writeFile('shot.webp', Buffer.from(await res.arrayBuffer()));
- Cookie and consent banners, newsletter popups, and chat widgets are accepted or removed before capture; each cleanup step can be turned off.
- Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed. The response identifies the result with
X-Page-VerdictandX-Billedheaders. - An MCP server provides
take_screenshot,get_page_info, andcapture_pdftools for Claude, Cursor, and other MCP clients. - The free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 screenshots; every feature is available on every plan.
Create a free ScreenshotNeo account to get the 1,000 monthly screenshots without adding a card.
Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Repair Windows errors before they cause bigger problemsFix Now →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Frequently Asked Questions
Can I identify the correct physical display when a device has more than one?
Yes, but you must correlate the display ID and records in adb shell dumpsys display with the panel or window under test. Do not assume that the first display listed is the one your app uses.
Should I use wm size values to choose an Android layout breakpoint?
Not by themselves. Global display values can differ from the app’s usable window in split-screen, partitioned, or decorated windows. Use the app’s current window metrics for layout decisions.
What should I archive for a bug report involving screen dimensions?
Archive the raw wm size, wm density, and relevant dumpsys display output together with model, Android/API version, orientation, display ID, and any active override.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




