https://github.com/web1n/android_device_xiaomi_elish-kernel-prebuilt
https://github.com/web1n/android_device_xiaomi_elish-kernel-prebuilt
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/web1n/android_device_xiaomi_elish-kernel-prebuilt
- Owner: web1n
- Created: 2023-07-15T11:22:35.000Z (almost 3 years ago)
- Default Branch: OS1.0.2.0.TKYCNXM
- Last Pushed: 2025-04-10T08:47:53.000Z (about 1 year ago)
- Last Synced: 2025-05-29T18:59:52.498Z (about 1 year ago)
- Language: Shell
- Size: 55.1 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# android_device_xiaomi_elish-kernel-prebuilt
from OS1.0.2.0.TKYCNXM
```
Linux version 4.19.157-perf-gf8cf95f4dc15 (builder@pangu-build-component-vendor-270518-njpgf-9wpr1-t1mg4) (clang version 10.0.7 for Android NDK, GNU ld (binutils-2.27-bd24d23f) 2.27.0.20170315) #1 SMP PREEMPT Tue May 7 07:59:22 UTC 2024
```
extract dtb.img by `unpack_bootimg --boot_img vendor_boot.img --out `
extract Image and dtbo-orig.img by `unpack_bootimg --boot_img boot.img --out `
## Patch dtbo.img to fix physical panel dimensions
### Patch
use patch.sh
### Result
```shell
elish:/ $ dumpsys display | grep density
DisplayDeviceInfo{"内置屏幕": uniqueId="local:4630946545580055169", 1600 x 2560, modeId 2, defaultModeId 1, supportedModes [{id=1, width=1600, height=2560, fps=120.00001, alternativeRefreshRates=[30.000002, 60.000004]}, {id=2, width=1600, height=2560, fps=60.000004, alternativeRefreshRates=[30.000002, 120.00001]}, {id=3, width=1600, height=2560, fps=30.000002, alternativeRefreshRates=[60.000004, 120.00001]}], colorMode 0, supportedColorModes [0], hdrCapabilities HdrCapabilities{mSupportedHdrTypes=[2, 3, 4], mMaxLuminance=420.0, mMaxAverageLuminance=210.1615, mMinLuminance=0.323}, allmSupported false, gameContentTypeSupported false, density 275, 276.462 x 275.525 dpi, appVsyncOff 1000000, presDeadline 16666666, touch INTERNAL, rotation 0, type INTERNAL, address {port=129, model=0x40446d58ef1f1a}, deviceProductInfo DeviceProductInfo{name=, manufacturerPnpId=QCM, productId=1, modelYear=null, manufactureDate=ManufactureDate{week=27, year=2006}, connectionToSinkType=0}, state OFF, committedState OFF, frameRateOverride , brightnessMinimum 0.0, brightnessMaximum 1.0, brightnessDefault 0.2627451, FLAG_ALLOWED_TO_BE_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, installOrientation 0}
```