---
# System prepended metadata

title: Install DreamLand on MacOS

---

# Install DreamLand on MacOS

Dreamland github: https://github.com/canyie/Dreamland

1. Install Magisk
Source: https://github.com/topjohnwu/Magisk

Set environment variable ANDROID_SDK_ROOT have to install Android Studio first
2. Download Android Studio
    System setting download NDK (can be ignore)
    Check System setting SDK location (/Users/seansie/Library/Android/sdk)
3. Setting Path
```
export ANDROID_HOME=/Users/{your user name}/Library/Android/sdk
export ANDROID_SDK_ROOT=/Users/{your user name}/Library/Android/sdk
export ANDROID_AVD_HOME=/Users/{your user name}/.android/avd
```
example
```
export ANDROID_HOME=/Users/seansie/Library/Android/sdk
export ANDROID_SDK_ROOT=/Users/seansie/Library/Android/sdk
export ANDROID_AVD_HOME=/Users/seansie/.android/avd
export ANDROID_NDK_HOME=/Users/seansie/Library/Android/sdk/ndk-bundle
```
Source: https://stackoverflow.com/questions/29391511/where-is-android-sdk-root-and-how-do-i-set-it/30900424

4. Install NDK
```
cd to your Magisk folder
./build.py ndk
```
5. Install Java SDK

Soruce: https://www.oracle.com/java/technologies/javase-downloads.html

6. Build (fail to install)

```
python3 build.py all
```

