Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

richardlock/powershell-install-lineagemagiskpatchedbootimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Install-LineageMagiskPatchedBootImage PowerShell script

PowerShell script to download current LineageOS build, extract boot image, patch with Magisk, and flash patched boot image to Android device.

Based on a bash script by NicolasWebDev, which itself is based on the Magisk installation guide.

Due to the lack of native USB support in Windows Subsystem for Linux (WSL), I ported the script to PowerShell and added some additional error checking for Windows users to easily upgrade LineageOS and repatch the boot image with Magisk.

Usage

  1. Open 'Settings > System > Updater' on your LineageOS device. Download and install an update.

  2. Reboot device and Magisk will show as no longer installed.

  3. Connect your device to your computer.

  4. Open a PowerShell prompt on your computer.

  5. Download or clone the repository.

    PS> git clone http://github.com/richardlock/Install-LineageMagiskPatchedBootImage
  6. Get the device serial number of the connected LineageOS device.

    PS> adb devices
    List of devices attached
    ABCD123456 device
  7. Execute the script specifying the device serial number.

    .\Install-LineageMagiskPatchedBootImage.ps1 -DeviceSerialNumber 'ABCD123456'

Requirements

Android device requirements:

  • LineageOS.
  • Magisk.
  • Rooted debugging enabled.

Windows device requirements:

About

Install-LineageMagiskPatchedBootImage PowerShell script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published