Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
polygraphene authored Mar 24, 2022
1 parent 168f60d commit e6210ba
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,35 @@ Don't use on other devices or other versions. It must crash (reboot).
1. Download binary from release page.
2. Setup adb (android platform tools).
3. Launch run.bat (For Windows) or run.sh (For Linux/Mac)
- If you get `'adb' is not recognized ...` errors, check to add adb to PATH.
- If you get `'adb' is not recognized ...` errors, check to add adb to PATH.
4. You now get temporary root shell by telnet <Device IP Address> 10847

![Screenshot](/screenshot1.png)

# How to build
1. Install Android NDK
2. Set PATH for aarch64-linux-android31-clang
- $ export PATH=$PATH:$ANDROID\_NDK/toolchains/llvm/prebuilt/linux-x86\_64/bin
```
export PATH=$PATH:$ANDROID\_NDK/toolchains/llvm/prebuilt/linux-x86\_64/bin
```
3. Run make
- $ make
```
$ make
```

# How to build kernel module
1. Download Pixel 6 kernel source. [Link](https://source.android.com/setup/build/building-kernels)
2. Put mymod directory on kernel/private/google-modules/
3. Apply mymod/build-script-patch.patch to kernel/private/gs-google
4. Run build script
- # For first build
- $ LTO=thin ./build/build.sh
- # For faster rebuild (skip full rebuild)
- $ SKIP\_MRPROPER=1 SKIP\_DEFCONFIG=1 LTO=thin ./build/build.sh


```
# For the first build
$ LTO=thin ./build/build.sh
# For faster rebuild (skip full rebuild)
$ SKIP\_MRPROPER=1 SKIP\_DEFCONFIG=1 LTO=thin ./build/build.sh
```

# Future work
- Stop using insecure telnet
- Make apk
Expand Down

0 comments on commit e6210ba

Please sign in to comment.