Android modify phone system resolution

tags: Android

Directory device/mediatek/common/aapt_config.mk

# Setting aapt config by lcm height and width if it is not defined
ifeq (,$(strip $($eval $(PRODUCT_AAPT_PREF_CONFIG))))
  ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),320_240)
    PRODUCT_AAPT_PREF_CONFIG := ldpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),400_240)
    PRODUCT_AAPT_PREF_CONFIG := ldpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),432_240)
    PRODUCT_AAPT_PREF_CONFIG := ldpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),480_320)
    PRODUCT_AAPT_PREF_CONFIG := mdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),640_480)
    PRODUCT_AAPT_PREF_CONFIG := mdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),800_480)
    PRODUCT_AAPT_PREF_CONFIG := hdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),854_480)
    PRODUCT_AAPT_PREF_CONFIG := hdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),960_540)
    PRODUCT_AAPT_PREF_CONFIG := hdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1024_600)
    PRODUCT_AAPT_PREF_CONFIG := hdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1280_640)
    PRODUCT_AAPT_PREF_CONFIG := xhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1498_720)
    PRODUCT_AAPT_PREF_CONFIG := xhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1280_720)
    PRODUCT_AAPT_PREF_CONFIG := xhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1280_768)
    PRODUCT_AAPT_PREF_CONFIG := xhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1280_800)
    PRODUCT_AAPT_PREF_CONFIG := xhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1920_1080)
    PRODUCT_AAPT_PREF_CONFIG := xxhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),1920_1200)
    PRODUCT_AAPT_PREF_CONFIG := xxhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),2560_1440)
    PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
  else ifeq ($(LCM_HEIGHT)_$(LCM_WIDTH),2560_1600)
    PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
  endif
endif

# Slim rom use sw599dp for rom optimization
ifeq (yes,$(strip $(MTK_GMO_ROM_OPTIMIZE)))
  PRODUCT_AAPT_CONFIG += sw599dp
endif

Intelligent Recommendation

Android modify the Enter button properties of the phone system input method

Android modify the Enter button properties of the phone system input method Three attributes must be added together android:imeOptions=“actionNext” android:inputType=“text” and...

Android 9.0 Phone object resolution

The Android communication framework can be divided into four parts from top to bottom: Modem This is the hardware foundation of the whole communication. It requires a Modem chip. Different modes requi...

android get phone screen resolution

Test phone: Huawei Honor 10, resolution: 2340 * 1080 method one Method Two Method Three Method 4 Method 5 Methods one, two and three display: 1080 * 2259, methods four and five display 1080 * 2340, wh...

Android judges the phone screen and resolution

The project requirement is that some dynamic pictures are not displayed on the small screen mobile phone. How to judge whether it is a small screen? Because the mainstream mobile phones nowadays are 1...

Android 8.0 Phone object resolution

Phone traceability In Android, we can check the background process and find that there is a resident phone process. The process name is generally the package name of the app, search for package=&rdquo...

More Recommendation

Get the screen resolution of an Android phone

There are two situations for obtaining the phone screen resolution: 1. Obtained from Activity: What is obtained at this time is the actual screen size of the Activity 2. Context acquisition: What is o...

Android get mobile phone resolution

Objects created by Displaymetrics to obtain screen resolution....

Three ways to modify the system resolution

1.adb modification method adb shell wm size 800x480   2. Modify the frameworks layer code File path: \frameworks\base\services\java\com\android\server\SystemServer.java   3. By modifying the...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top