{"id":18835486,"url":"https://github.com/web1n/android_device_xiaomi_elish-kernel-prebuilt","last_synced_at":"2026-03-01T05:34:54.299Z","repository":{"id":181426698,"uuid":"666726143","full_name":"web1n/android_device_xiaomi_elish-kernel-prebuilt","owner":"web1n","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-10T08:47:53.000Z","size":57730,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"OS1.0.2.0.TKYCNXM","last_synced_at":"2025-05-29T18:59:52.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web1n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-15T11:22:35.000Z","updated_at":"2025-04-10T08:47:57.000Z","dependencies_parsed_at":"2025-05-22T18:20:07.549Z","dependency_job_id":null,"html_url":"https://github.com/web1n/android_device_xiaomi_elish-kernel-prebuilt","commit_stats":null,"previous_names":["web1n/android_device_xiaomi_elish-kernel-prebuilt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/web1n/android_device_xiaomi_elish-kernel-prebuilt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web1n","download_url":"https://codeload.github.com/web1n/android_device_xiaomi_elish-kernel-prebuilt/tar.gz/refs/heads/OS1.0.2.0.TKYCNXM","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29960438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T01:47:18.291Z","status":"online","status_checked_at":"2026-03-01T02:00:07.437Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T02:16:22.978Z","updated_at":"2026-03-01T05:34:54.256Z","avatar_url":"https://github.com/web1n.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# android_device_xiaomi_elish-kernel-prebuilt\n\nfrom OS1.0.2.0.TKYCNXM\n\n```\nLinux 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\n```\n\nextract dtb.img by `unpack_bootimg --boot_img vendor_boot.img --out \u003cpath\u003e`\nextract Image and dtbo-orig.img by `unpack_bootimg --boot_img boot.img --out \u003cpath\u003e`\n\n## Patch dtbo.img to fix physical panel dimensions\n\n### Patch\n\nuse patch.sh\n\n### Result\n\n```shell\nelish:/ $ dumpsys display | grep density                                                       \n  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}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb1n%2Fandroid_device_xiaomi_elish-kernel-prebuilt/lists"}