No description
Find a file
Vladimir Avtsenov 3f18e1e54d
add readme for OP15 devices
Signed-off-by: Vladimir Avtsenov <vladimir.lsk.cool@gmail.com>
(cherry picked from commit da7b10ccef)
2026-07-22 04:08:02 +03:00
snippets manifest: apply builder modified repos 2026-07-22 04:08:01 +03:00
default.xml manifest: apply builder modified repos 2026-07-22 04:08:01 +03:00
README.mkdn add readme for OP15 devices 2026-07-22 04:08:02 +03:00

![alt text][logo]

[logo]:https://crdroid.net/img/logo.png "crDroid Android"

## 1. Grabbing the source

Repo is a tool provided by Google that simplifies using Git in the context of the Android source:
- Repo docs: http://source.android.com/source/developing.html
- Git docs: http://git-scm.com/book

### 1.1 Installing dependencies and Repo

Several packages are needed in order to build crDroid. Example (we are using Ubuntu):
```bash
sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32ncurses-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses6 libncurses-dev libsdl1.2-dev libssl-dev libwxgtk3.2-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
```
(Some of those packages may need adjustment for your linux distribution)

Install the Repo tool:
```bash
# create ~/bin and add to PATH for this session (or add to your shell profile)
mkdir -p ~/bin
export PATH=~/bin:$PATH

# download Repo
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo

# make Repo executable
chmod a+x ~/bin/repo
```

Tip: Add `export PATH=~/bin:$PATH` to `~/.bashrc` or your shell profile so Repo is available in future sessions.

### 1.2 Initializing Repo

Create a workspace and initialize the crDroid 16.0 manifest:
```bash
mkdir -p ~/crDroid
cd ~/crDroid
repo init -u https://github.com/crDroid-OnePlus-SM8850/android.git -b 16.0 --git-lfs --no-clone-bundle
```

Sync the source tree (may take a long time on first run):
```bash
repo sync
```

Notes and useful flags:
- To recover from interrupted syncs or to force a fresh copy:  
  `repo sync --force-sync --no-tags --no-clone-bundle -j8` (adjust `-j` to match your bandwidth/CPUs).
- Use `repo sync -c` to only sync the current branch per project (saves time/space) when appropriate.

---

## 2. Building

Prepare the build environment:
```bash
. build/envsetup.sh
```

Build using:
```bash
brunch <devicecodename>
```
(Replace `<devicecodename>` with your device codename, e.g. `infiniti` (OnePlus 15), `macan` (OnePlus 15R), `macanc` (OnePlus Ace 6T), `fairlady` (OnePlus 15T), etc.)

Troubleshooting tips:
- Out-of-disk-space: ensure enough free space (Android tree can require 100+ GB).
- If builds fail after repo sync, try `repo sync --force-sync` and a clean build: `mka clean` then rebuild.

---

## 3. Contributions

To submit changes or patches:
- Fork the repository on GitHub, make your changes, and open a Pull Request against the appropriate branch.
- We review PRs and merge them when appropriate.

---

## 4. How to become an Official Maintainer

1. Read and follow our rules and guidelines:
   https://github.com/crdroidandroid/rules-and-guidelines
2. If everything is in order, message Gabriel on Telegram:
   https://telegram.me/gwolf2u

---

## 5. crDroid features / overlays, translations and forum template

### 5.1 crDroid overlays or flags
Set overlays to the proper paths.

Frameworks base:
```text
overlay/frameworks/base/core/res/res/values/config.xml
```
Example reference:
https://github.com/crdroidandroid/android_frameworks_base/blob/16.0/core/res/res/values/cr_config.xml

SystemUI:
```text
overlay/frameworks/base/packages/SystemUI/res/values/config.xml
```
Example reference:
https://github.com/crdroidandroid/android_frameworks_base/blob/16.0/packages/SystemUI/res/values/cr_config.xml

---

If you device supports blur but it is expensive to render, you should disable default blur with following prop:
```text
ro.surface_flinger.blur_disabled_by_default=true
```

If you see artifacts with blur, you can reduce blur rendering effect with following example overlays:  
[Disable high performance transitions](https://github.com/crdroidandroid/android_device_xiaomi_sm6150-common/commit/a9f17d1197a9e7a6e383bddf9a05b4a3c32ebc8f)  
[Reduce blur radius](https://github.com/crdroidandroid/android_device_xiaomi_sm6150-common/commit/8ed0ecd296e5b34304b40d5d71685c7b4de617cd)

### 5.2 Build flags
If your device cannot render blur at all, you should disable blur support by defining below in device.mk
```text
TARGET_SUPPORTS_BLUR := false
```
### 5.3 Translations
We use Crowdin for translations. To help out see:
https://github.com/crdroidandroid/crdroid_features#translations

### 5.4 Forum template
Ready to share your build? Use the forum post template:
https://github.com/crdroidandroid/crdroid_features/blob/16.0/ForumPostTemplate