Modern smartphones Android equipped with displays with a wide variety of aspect ratios, from classic 16:9 to elongated 20:9 and even folding formats. Users are often faced with the need to change the standard aspect ratio to remove black bars when watching a movie or run a game that is not optimized for your screen. This is especially true for owners of devices with notches, camera cutouts, or dynamic islands.
Changing display settings may be necessary not only for multimedia, but also to increase productivity when working with multiple windows. Aspect Ratio directly affects how content fills the available matrix area. In this article we will analyze the standard system tools, hidden engineering menus and advanced methods via ADB.
It is worth noting right away that interfering with the system resolution settings requires caution. Incorrectly set values DPI or resolution can make the interface unreadable. It is critically important to remember the initial values of the parameters before making any changes to the developer settings. We will look at safe ways to adapt the image to your needs.
Standard screen settings and scaling
Most smartphone manufacturers build in basic tools to control the display of content. Usually they are hidden in the general system settings and do not require rights root. First of all, you should check the "Screen" or "Display" menu in the settings of your device.
The "Screen Size" or "Scaling" function is often found here. It does not change the physical resolution of the matrix, but it adjusts the pixel density (DPI). This allows you to make interface elements larger or smaller, which indirectly affects the perceived aspect ratio in applications. Some skins, such as Samsung's or Xiaomi's, have separate switches for cameras and applications. You can find a Camera and Apps option that forces the image to be cropped to 16:9 to remove the black bars on the sides on wide screens.
Some shells like One UI from Samsung or MIUI from Xiaomi, have separate switches for cameras and applications. You can find a Camera and Apps option that forces the image to be cropped to 16:9 to remove the black bars on the sides on wide screens.
โ ๏ธ Warning: Enabling the image stretch function in the settings may distort the proportions of objects. Circles can become ovals, and people can become disproportionately wide or narrow.
To activate these functions, you usually just need to do the following:
- ๐ฑ Open
Settingsand go toDisplay. - ๐ Find the item
Screen size and textorAspect ratio. - โ๏ธ Select the desired value from the proposed list or move slider.
Using developer mode to change resolution
If the standard settings are not enough, developer mode comes to the rescue. This is a hidden section of the system designed for debugging applications, but containing powerful display management tools. To get there, you need to click on the build number several times in the "About phone" section.
In the menu for developers, we are interested in the parameters Minimum width (Smallest width) and, in some cases, forced resolution changes. Changing the minimum width effectively changes DPI, causing the system to redraw the interface.
Be careful: setting the DPI too high will make the font microscopic, and you may not be able to change the settings back. If this happens, resetting the settings via recovery or entering a command through a computer will help.
What to do if the interface disappears after changing DPI?
If you cannot click on interface elements, try connecting a USB mouse or keyboard via OTG. This will allow you to get to the settings and return the original value. The adb shell wm size reset command also helps.
The change process is as follows:
- ๐ ๏ธ Activate developer mode by clicking 7 times on
Build number. - ๐ In the developer menu, find the item
Minimum width. - ๐ Write down the original value and enter a new one (experiment in increments of 20-30 units).
Changing the minimum width is the safest software way to influence pixel density without losing image quality, since the physical resolution of the matrix does not change.
Forcing resolution changes via ADB
The most flexible method available to advanced users involves the use of USB debugging and the tool ADB (Android Debug Bridge). This method allows you to set the exact resolution in pixels, ignoring the restrictions imposed by the manufacturer in the interface.
To work, you will need a computer with ADB drivers installed and a smartphone connected via USB. USB debugging must be enabled on your phone. This method does not require superuser rights, but requires caution when entering commands.
Using the command wm size you can temporarily change the screen resolution. It is important to understand that after rebooting the device, the settings will be reset to factory settings, which is a kind of insurance against critical errors.
adb shell wm size 1080x2340
In addition to the size, you can change the pixel density with the command wm density. The combination of these two options gives you complete control over how the system renders the image. This is especially useful for emulators or older games.
โ ๏ธ Warning: ADB commands are instant. If you set a resolution that is not physically supported by the display or driver, the screen may go blank. In this case, only rebooting the device will help, which will reset the temporary settings.
โ๏ธ Preparing to work with ADB
Setting the aspect ratio for games and applications
Many games and applications were created for 16:9 screens. On modern elongated displays, they either stretch, distorting the picture, or show black bars. Modern Android shells can control this behavior for each application separately.
In the screen settings there is often a โFull screen modeโ or โApplicationsโ section. Here you can force stretching for a specific game. This will fill the entire screen, but will cut off some of the image at the top and bottom.
An alternative option is to run it in windowed mode or with black margins. This preserves the developer's original aspect ratio, which is critical for rhythm games or projects where it is important to see the side interface elements (HUD).
It is recommended to test different modes for each game individually:
- ๐ฎ For first-person shooters, it is better to use the full screen for maximum visibility.
- โ๏ธ For strategies and card games, it is more important to maintain proportions so that the controls do not overlap.
- ๐ฅ For video, use the settings of a specific player, not the system.
Comparison of methods for changing display parameters
The choice of method depends on your goals: whether you need a temporary change for one game or a permanent modification of the system. Below is a table comparing the main methods for setting aspect ratio and resolution.
| Method | Difficulty | Risks | Save after reboot |
|---|---|---|---|
| Screen settings (Scale) | Low | Minimum | Yes |
| Developer mode (DPI) | Medium | Medium (unreadable text) | Yes |
| ADB (wm size) | High | High (black screen) | No (reset) |
| Root modules (Build.prop) | Very high | Critical (bootloop) | Yes |
As can be seen from the table, using ADB gives flexibility, but does not save settings. For permanent changes, you either need to enter commands every time, or use special applications that require root access.
Possible problems and their solutions
When experimenting with resolution, you may encounter image artifacts. These include blurry fonts, cluttered application layouts, or non-functional touchpads in certain areas. This is often solved by returning to factory settings.
Another common problem is screenshots not working correctly. The system can take a picture in the native resolution of the matrix, and not in the one you set programmatically. As a result, black bars or a cropped image will be visible on the screenshot.
If touch input at the bottom of the screen (where the navigation bar is located) stops working after the changes, try switching to gesture controls. This will free up useful space and can eliminate zone conflicts.
โ ๏ธ Attention: Android shell interfaces (MIUI, OneUI, ColorOS) are constantly updated. The location of menu items may differ from that described. If you do not find a specific setting, use the search in your phone settings.
Before changing the resolution for the game, take a screenshot of the original interface. This will help you understand which important buttons may disappear when the image is stretched.
Is it safe to change DPI through developer mode?
Yes, it is safe if you remember the original value. In the worst case, the interface will become unreadable, but the system will not be damaged. You can always reset the settings through your computer or recovery mode.
Why did the icons on the desktop disappear after changing the resolution?
The system recalculated the desktop grid. Due to changes in pixel density, icons may have moved outside the visible area or changed size. Try adding a widget or changing the scale again.
Does changing the aspect ratio affect performance?
Lowering the resolution (rendering fewer pixels) can slightly increase FPS in games and reduce GPU load. However, increasing the DPI, on the contrary, requires more resources to render the interface.
Is it possible to return all default settings with one command?
Yes, to reset the resolution and density via ADB, use the commands adb shell wm size reset and adb shell wm density reset. This will return the display to factory settings.