{"id":18888428,"url":"https://github.com/alebcay/docker-android","last_synced_at":"2026-02-24T15:30:13.277Z","repository":{"id":152740023,"uuid":"142102842","full_name":"alebcay/docker-android","owner":"alebcay","description":"Docker environment for building Android ROMs","archived":false,"fork":false,"pushed_at":"2019-07-12T03:03:00.000Z","size":70,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T05:29:48.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/alebcay.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-07-24T04:09:20.000Z","updated_at":"2023-08-08T07:41:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"af267d24-93ff-4f91-8629-7a473e3a85c7","html_url":"https://github.com/alebcay/docker-android","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alebcay%2Fdocker-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alebcay%2Fdocker-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alebcay%2Fdocker-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alebcay%2Fdocker-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alebcay","download_url":"https://codeload.github.com/alebcay/docker-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859562,"owners_count":19708863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-08T07:44:02.129Z","updated_at":"2026-02-24T15:30:13.202Z","avatar_url":"https://github.com/alebcay.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"docker-android\n==================\n\nCreate a [Docker] based environment to build Android ROMs.\n\nThis Dockerfile will create a docker container which is based on Debian Stretch.\nIt will install the \"repo\" utility and any other build dependencies which are required to compile most Android ROMs. Some ROM distributions may have additional dependencies that need to be fulfilled.\n\nThe main working directory is a shared folder on the host system, so the Docker container can be removed at any time.\n\n**NOTE:** Remember that Android ROMs are huge projects. It will consume a large amount of disk space (~80 GB) and it can easily take hours to build.\n\n### How to run/build\n\n**NOTES:**\n* You will need to [install Docker][Docker_Installation] to proceed!\n* If an image does not exist, ```docker build``` is executed first\n\n```\ngit clone https://github.com/alebcay/docker-android.git\ncd docker-android\n./run.sh\n```\n\nThe `run.sh` script accepts the following switches:\n\n* -u|--enable-usb - runs the container in privileged mode (this way you can use adb right from the container)\n* -r|--rebuild - force rebuild the image from scratch\n* -ws|--with-su - Sets the WITH_SU environment variable to true (your builds will include the su binary)\n\nThe container uses \"tmux\" to run the shell. This means that you will be able to open additional shells using [tmux shortcuts](https://gist.github.com/andreyvit/2921703).\n\n### Credits\nBased on [Michael Stucki's](https://github.com/stucki/) [docker-lineageos](https://github.com/stucki/docker-lineageos). This project builds off of `docker-lineageos` in the following ways:\n- Configures `backports` and `sid` repositories\n- Upgrades `git` to `\u003e= 2.18` and configures it to take advantage of [Git protocol version 2](https://opensource.googleblog.com/2018/05/introducing-git-protocol-version-2.html)\n- Installs `libncursesw6`, needed by some newer Clang-based toolchains\n- Uses `tmux` instead of `screen`\n- Configures locales correctly to display Unicode characters so that custom ROM build scripts display properly\n\n[Docker]:                      https://www.docker.io/\n[LineageOS]:                   http://lineageos.org/\n[Docker_Installation]:         https://www.docker.io/gettingstarted/\n[Screen_Shortcuts]:            http://www.pixelbeat.org/lkdb/screen.html\n[CyanogenMod_Building_Basics]: https://web-beta.archive.org/web/20161224192643/http://wiki.cyanogenmod.org/w/Development\n[LineageOS_Build_Nexus5]:    https://wiki.lineageos.org/devices/hammerhead/build\n[Discussion thread @ XDA developers]: http://forum.xda-developers.com/showthread.php?t=2650345\n[dotcloud/docker#2224]:        https://github.com/dotcloud/docker/issues/2224\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falebcay%2Fdocker-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falebcay%2Fdocker-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falebcay%2Fdocker-android/lists"}