Skip to content

wojtekojtek/builddroid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forthebadge forthebadge forthebadge forthebadge

BuildDroid

An opensource tool to build Android ROMs on Crave. If you have better name for this script, let me know!

Warning

Some features might be unstable or subject to change in the future.

How to start

Clone this repo: git clone https://github.com/wojtekojtek/builddroid and enter that directory.
Create an empty file with name config.ini, then put #!/bin/bash at start of the file. After that, add some variables.
Example config.ini file: click here
When you'll be ready, simply run chmod +x builddroid.sh && ./builddroid.sh

Variables

There are 30 variables, only 3 are required to build custom ROM.

Required variables

  • codename - your device's codename
  • lunch - type of android build: user, userdebug or eng
  • manifest - link to your manifest with trees, fill this or trees
  • trees - all your device-related repositories, fill this or manifest

Signing

  • sign - set to true or false
  • keys - directory with keys

Uploading

  • server - SourceForge, BashUpload, PixelDrain. Only these are supported.
  • sfproject - project name if you're using SourceForge
  • sfdir - directory to upload to, if you're using SourceForge
  • sfuser - SourceForge username
  • ssh - auth file name if you're using SourceForge, read more here. don't use passphrase!

OTA

For now, only GitHub is supported.

  • ota - set to true or false
  • githubota - repo with OTA jsons, in format: "username/repo"
  • url - url to raw json OTA file
  • jsonversion - version of the rom
  • jsonromtype - type of build
  • downloadurl - custom url to download, leave empty if you're using server
  • gitemail - public github email
  • gituser - github username
  • gitbranch - ota repo branch, leave "main" if you aren't using different branch

Status

  • telegram - send info to telegram, set to true or false
  • chat_id - telegram chat id
  • private_chat_id - to send BashUpload download link (because the file can be downloaded only once). you can use chat_id
  • console - if true, will show messages printed by this script
  • quiet - if true, hide repo tool, github, and other's output, it doesn't hide script output and build logs

Secrets

  • githubtoken - for uploading ota jsons
  • telegramtoken - required if you want to send info about building to telegram
  • pixeldraintoken - if you are uploading to pixeldrain, fill this too!

Unsupported ROMs (only for crave)

  • unsupported - put repo init command here to sync unsupported by crave rom

About

Build ROMs on Crave with ease!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages