-
Install deps
sudo apk add git build-base libusb libusb-dev linux-headers openssl-dev -
git clone https://android.googlesource.com/platform/external/gsc-utils/ -
cd gsc-utils/extra/gsctool -
Make a generated_version.h in this directory with:
#define VERSION "1.0.0" #define BUILDER "pmos" #define DATE "$(date)" -
sudo make -
Optionally install with
sudo install -m 755 gsctool /usr/local/bin/gsctoolbut I just go to the dir and run with
sudo ./gsctool -a -I