2018-04-06 07:15:30 -07:00
|
|
|
Getting Started
|
|
|
|
======
|
2013-10-18 04:36:32 -07:00
|
|
|
|
2018-10-10 06:49:24 -07:00
|
|
|
To get started with PitchBlack Recovery, you'll need to get
|
2016-05-30 22:45:27 -07:00
|
|
|
familiar with [Git and Repo](https://source.android.com/source/using-repo.html).
|
2013-10-18 04:36:32 -07:00
|
|
|
|
2018-10-10 06:49:24 -07:00
|
|
|
To initialize your local repository using the minimal-manifest-twrp trees to build PBRP, use a command like this:
|
2018-04-01 22:22:43 -07:00
|
|
|
```bash
|
2018-10-06 21:30:28 -07:00
|
|
|
repo init -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b PBRP
|
2018-04-01 22:22:43 -07:00
|
|
|
```
|
2018-07-25 03:41:00 -07:00
|
|
|
For Initial Low RAM Devices or older MTK Devices:
|
2018-04-01 22:22:43 -07:00
|
|
|
```bash
|
2018-10-06 21:30:28 -07:00
|
|
|
repo init -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b twrp-6.0
|
2018-04-01 22:22:43 -07:00
|
|
|
```
|
2017-12-19 05:14:48 -08:00
|
|
|
To initialize a shallow clone, which will save even more space, use a command like this:
|
2018-04-01 22:22:43 -07:00
|
|
|
```bash
|
2018-10-06 21:30:28 -07:00
|
|
|
repo init --depth=1 -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b PBRP
|
2018-04-01 22:22:43 -07:00
|
|
|
```
|
2018-04-01 22:20:29 -07:00
|
|
|
For Initial Low RAM Devices:
|
2018-04-01 22:22:43 -07:00
|
|
|
```bash
|
2018-10-06 21:30:28 -07:00
|
|
|
repo init --depth=1 -u git://github.com/PitchBlack-Recovery/manifest_pb.git -b twrp-6.0
|
2018-04-01 22:22:43 -07:00
|
|
|
```
|
2013-10-18 04:36:32 -07:00
|
|
|
Then to sync up:
|
2018-04-06 07:15:30 -07:00
|
|
|
```bash
|
|
|
|
repo sync
|
|
|
|
```
|
2013-10-18 04:36:32 -07:00
|
|
|
|
|
|
|
Then to build:
|
2018-04-06 07:15:30 -07:00
|
|
|
```bash
|
2018-10-10 06:49:24 -07:00
|
|
|
|
2018-04-06 07:15:30 -07:00
|
|
|
cd <source-dir>
|
2018-10-10 06:49:24 -07:00
|
|
|
|
2018-10-06 23:22:49 -07:00
|
|
|
export ALLOW_MISSING_DEPENDENCIES=true
|
2018-10-10 06:49:24 -07:00
|
|
|
|
2018-04-06 07:15:30 -07:00
|
|
|
. build/envsetup.sh
|
2018-10-10 06:49:24 -07:00
|
|
|
|
2018-04-06 07:15:30 -07:00
|
|
|
lunch omni_<device>-eng
|
2018-10-10 06:49:24 -07:00
|
|
|
|
2018-04-06 07:15:30 -07:00
|
|
|
mka recoveryimage
|
|
|
|
```
|