diff --git a/Dockerfile b/Dockerfile index b1d75d8..02d6231 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:stable-slim +FROM python:3.9.15-buster RUN apt-get update RUN apt-get install -y \ diff --git a/README.md b/README.md index 4bd06db..090a0f0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Reinstall Magisk on Lineageos +This is a fork. + This little bash script is used to reinstall magisk, which gets uninstalled after each LineageOS update. Before I had to patch once more the boot using the Magisk app doing all the steps manually, making some mistakes along the way. Now it takes less than 3 minutes to reinstall magisk (virtually all the time is taken by the download), and without any intervention on my part. @@ -15,11 +17,22 @@ Moreover it needs root privileges on your phone to run. So it may screw up both your computer and your phone, so I invite you to check its source code before running it and using it at your own risks! +## Docker + +We use docker to make it fastly reproducible. +Steps: + +1. Build
+ ```docker build -t magiskupdate .``` +2. Run
+ ```docker run --env ADB_DEVICE= magiskupdate``` + + ## Bash Bash is one of the standard shells on Linux and MacOS systems. -If on Windows, you can use the [Windows Subsystem for Linux](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) to run it. See [this guide](https://docs.microsoft.com/en-us/windows/wsl/install) to install it. +If on Windows, you should run linux. ## Installation