{"id":24057773,"url":"https://github.com/esno/xperia-xz1-compact","last_synced_at":"2026-05-15T04:31:26.767Z","repository":{"id":142321247,"uuid":"106031455","full_name":"esno/xperia-xz1-compact","owner":"esno","description":"sony xperia xz1 compact (yoshino)","archived":false,"fork":false,"pushed_at":"2021-01-03T19:31:51.000Z","size":12618,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T12:46:10.623Z","etag":null,"topics":["android","aosp","buildroot","lilac","sony","toolchain","xperia","xperia-xz1-compact","yoshino"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/esno.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-10-06T17:21:55.000Z","updated_at":"2024-10-05T02:44:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"7fb6353c-07c4-4c7a-9e9b-3d62d7f64346","html_url":"https://github.com/esno/xperia-xz1-compact","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/esno/xperia-xz1-compact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esno%2Fxperia-xz1-compact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esno%2Fxperia-xz1-compact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esno%2Fxperia-xz1-compact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esno%2Fxperia-xz1-compact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esno","download_url":"https://codeload.github.com/esno/xperia-xz1-compact/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esno%2Fxperia-xz1-compact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33053683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"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":["android","aosp","buildroot","lilac","sony","toolchain","xperia","xperia-xz1-compact","yoshino"],"created_at":"2025-01-09T05:50:53.411Z","updated_at":"2026-05-15T04:31:26.748Z","avatar_url":"https://github.com/esno.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![android](https://c1.staticflickr.com/7/6021/5979551591_e61f575354_m_d.jpg \"android\")\n\nBuild instructions to compile AOSP for Sony Xperia XZ1 Compact device.\nThe Xperia XZ1 compact is based on the `yoshino` platform and also known as `lilac`.\n\n# development environment\n\n## system requirements\n\n    | component | minimum     |\n    | --------- | ----------- |\n    | OS        | 64bit/linux |\n    | HDD       | 250GB       |\n    | RAM/Swap  | 16GB        |\n\n## setup the toolchain\n\n    lxc-create -n aosp -t download -- -d ubuntu -r bionic -a amd64\n    lxc-start -n aosp\n    lxc-attach -n aosp --clear-env -- /bin/su -l root\n\n## install dependencies\n\n    dpkg --add-architecture i386\n    apt-get update\n    apt-get install openjdk-11-jdk bison g++-multilib git gperf libxml2-utils make zlib1g-dev:i386 zip liblz4-tool libncurses5 libssl-dev bc flex curl python gnupg2 rsync git build-essential repo\n\n## prepare aosp tree\n\n    git config --global user.name \"aosp\"\n    git config --global user.email \"aosp@localhost\"\n\n    mkdir aosp; cd aosp\n    repo init repo init -u https://android.googlesource.com/platform/manifest -b android-11.0.0_r18\n    cd .repo\n    git clone -b android-11.0.0_r18 https://github.com/sonyxperiadev/local_manifests\n    repo sync -d -q -c -j8\n\n    ./repo_update.sh\n\n### customize the builds\n\n    git clone https://github.com/esno/xperia-xz1-compact.git vendor/xperia-xz1-compact\n    source build/envsetup.sh\n    ./vendor/xperia-xz1/compact/repo_update.sh\n\n# handling\n\n## build aosp\n\nThe right combos for `lilac` are `aosp_g8441-userdebug` and `aosp_g8441-eng`\n\n    $ lunch aosp_g8441-userdebug\n    $ make -j$(nproc)\n\n## build vendor kernel from source\n\n### prepare toolchain\n\n    # gcc\n    git clone -b android-11.0.0_r18 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 ~/aosp-gcc-aarch64\n    git clone -b android-11.0.0_r18 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 ~/aosp-gcc-arm\n\n    # clang\n    wget https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+archive/refs/tags/android-11.0.0_r18/clang-r370808.tar.gz\n    mkdir ~/aosp-clang\n    tar xzf clang-r370808.tar.gt -C ~/aosp-clang\n\n### compile kernel\n\n    export PATH=\"~/aosp-gcc-aarch64/bin:~/aosp-gcc-arm/bin:~/aosp-clang/bin:${PATH}\"\n\n    git clone -b aosp/LA.UM.7.1.r1 https://github.com/sonyxperiadev/kernel.git ~/kernel-sony\n    cd ~/kernel-sony\n\n    make ARCH=arm64 SUBARCH=arm64 \\\n      CC=clang CLANG_TRIPLE=aarch64-linux-gnu \\\n      CROSS_COMPILE=aarch64-linux-android- \\\n      CROSS_COMPILE_ARM32=arm-linux-androideabi- \\\n      aosp_yoshino_lilac_defconfig\n\n    make ARCH=arm64 SUBARCH=arm64 \\\n      CC=clang CLANG_TRIPLE=aarch64-linux-gnu \\\n      CROSS_COMPILE=aarch64-linux-android- \\\n      CROSS_COMPILE_ARM32=arm-linux-androideabi- \\\n      -j$(nproc)\n\n    cp arch/arm64/boot/Image.gz-dtb ~/aosp/kernel/sony/msm-4.14/common-kernel/kernel-dtb-lilac\n\n### create boot.img\n\n    $ source build/envsetup.sh \u0026\u0026 lunch\n    including vendor/qcom/opensource/core-utils/vendorsetup.sh\n    \n    You're building on Linux\n    \n    Lunch menu... pick a combo:\n         1. aosp_arm-eng\n         2. aosp_arm64-eng\n         3. aosp_blueline_car-userdebug\n         4. aosp_bonito_car-userdebug\n         5. aosp_bramble-userdebug\n         6. aosp_coral_car-userdebug\n         7. aosp_crosshatch_car-userdebug\n         8. aosp_flame_car-userdebug\n         9. aosp_g8141-eng\n         10. aosp_g8141-userdebug\n         11. aosp_g8142-eng\n         12. aosp_g8142-userdebug\n         13. aosp_g8341-eng\n         14. aosp_g8341-userdebug\n         15. aosp_g8342-eng\n         16. aosp_g8342-userdebug\n         17. aosp_g8441-eng\n         18. aosp_g8441-userdebug\n         [...]\n\n    Which would you like? [aosp_arm-eng] 17\n\n    $ make -j$(nproc) bootimage\n\n### boot kernel temporarily\n\n    $ fastboot boot \u003ckernel\u003e [\u003cramdisk\u003e [\u003cseconds\u003e]]\n\n## flash OEM binaries\n\ndownload [zip archive][aospoem] from sony servers.\n\n    $ fastboot flash oem SW_binaries_for_Xperia_AOSP_\u003cversion\u003e_yoshino.img\n\n## flash aosp\n\nTurn off your device, hold down the **volume up** and connect the device to your computer.\nThe notification light should shine **blue** to confirm it's in fastboot mode.\n\n    fastboot flash boot out/target/product/lilac/boot.img\n    fastboot flash recovery out/target/product/lilac/recovery.img\n    fastboot flash system out/target/product/lilac/system.img\n    fastboot flash vendor out/target/product/lilac/vendor.img\n    fastboot flash userdata out/target/product/lilac/userdata.img\n\n## cleanup\n\n    $ fastboot erase cache\n\n## reboot\n\n    $ fastboot reboot\n\n[aospoem]: https://developer.sony.com/develop/open-devices/downloads/software-binaries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesno%2Fxperia-xz1-compact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesno%2Fxperia-xz1-compact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesno%2Fxperia-xz1-compact/lists"}