Skip to content

Instantly share code, notes, and snippets.

@navhaxs
Last active March 11, 2018 05:38
Show Gist options
  • Save navhaxs/7eceb12add3891e9d07d08e7161703c7 to your computer and use it in GitHub Desktop.
Save navhaxs/7eceb12add3891e9d07d08e7161703c7 to your computer and use it in GitHub Desktop.
TWRP/Android building from source

Notes

  • Using prebuilt kernels are the norm - look at the device repos that twrp hosts. Safe to ignore deprecated warning.

Setup

Using the minimal manifest takes < 3hrs to repo sync.

Use git init <manifestrepouri> -b <android-6.0> --depth=1 and git sync -j5 -c

Makefiles for dayz

"/bin/bash: line 0: test: -ge: unary operator expected"

  • I don't actually know how to debug this yet.

Building twrp for device X, Y and Z

  • X, Y and Z each need a device folder in device/<manufacturer>/<codename>
  • Device folder path may need to be same as whatever is hardcoded in makefiles within that device folder
  • Add to .repo/local_manifests/ xml file if using an existing repo, otherwise manually create the directory.
  • Ignore roomservice errors. Presumably only a warning message.

Suggested setup process

  1. First build an emulator image / Build for device with known working config. Test it works.
  2. Try porting LOL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment