Warning
LeaseOS is a research prototype and is provided on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. In no event shall the creators of LeaseOS or any of its contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages.
Build
Building LeaseOS is same as building Android source tree. You can follow the offical instructions of building AOSP to build the LeaseOS for your specific device target.
Install
After the custom image is built, you can follow this document about how to flash the ROM into your device.