Gabri3lZ / SwitchrootAndroidUtils

Utils for Switchroots LineageOS Android ROM for Nintendo Switch
MIT License
45 stars 4 forks source link

SwitchrootAndroidUtils

Utils for Switchroot's LineageOS Android ROM for Nintendo Switch.

flash.sh

An interactive bash script to flash Switchroot's Android image on a microSD card. It allows customizing the size for the Nintendo Switch partition and Android user partition, therefore enables the usage of the same microSD card for the Nintendo Switch and Android (and a Homebrew enabled Switch on a EMUMMC partition). Unlike flashing the whole image with Etcher and resizing the partitions afterwards, the script has the following advantages:

Requirements

All these programs / commands should be preinstalled on most recent Linux distributions. If you don't have Linux installed, it is possible to run everything from the Ubuntu Live-USB.

Unfortunately, I was not able to run the script within WSL on Windows 10, because there is no access to block level devices.

Usage

  1. Download the 16GB image from Switchroot's XDA-Developers post and extract the ZIP file.
  2. Download "flash.sh" to the same directory where the image is.
  3. Open Terminal emulator and navigate to the directory where the image and script are (in Ubuntu, you can use the File explorer to navigate there, right click the folder and select "Open in Terminal").
  4. Execute the script and pass the path to the Android image as a parameter:
    sudo ./flash.sh ./android-16gb.img
  5. Follow the instructions in the interactive script.
  6. Follow the remaining instructions in the XDA-Developers post (from step 3).

Screenshot