GloDroid / glodroid_manifest

Android port that aims to bring both user- and developer-friendly experience in using AOSP with a set of single-board computers (SBC), phones and other devices.
472 stars 66 forks source link

modify the default 1024x768 resolution #225

Closed ghost closed 2 years ago

ghost commented 2 years ago

Discussed in https://github.com/GloDroid/glodroid_manifest/discussions/224

Originally posted by **minsvc** September 19, 2022 I 'm runing glodroid on rpi4.i want to use vnc to connect to the android with custom resolution like 1260*931。the question is how to compile glodroid with custom resolution? please help me,thanks a lot.
rsglobal commented 2 years ago

In case you meant headless mode resolution, it can be changed here: https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer/-/blob/7ee6a9ea6b6873742b7716517f1be18ce39a7524/hwc2_device/HwcDisplayConfigs.cpp#L28

Located at external/drm_hwcomposer directory

rsglobal commented 2 years ago

adb shell wm size 1260x931 should work as well.

ghost commented 2 years ago

it works!.thanks.