Andorid Apps (arm, nano)
https://opengapps.org/?api=9.0&variant=nano
wget https://netix.dl.sourceforge.net/project/opengapps/arm/20200429/open_gapps-arm-9.0-nano-20200429.zip -P /tmpCompile Heimdall (tested with v1.4.2)
sudo apt-get install -y build-essential cmake zlib1g-dev qt5-default libusb-1.0-0-dev libgl1-mesa-glx libgl1-mesa-dev
git clone https://gitlab.com/BenjaminDobell/Heimdall.git /tmp/Heimdall
cd /tmp/Heimdall
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
# test
cd bin/
./heimdall version
Boot phone to recovery mode
Vol- + Home + Power
Download recovery file
https://twrp.me/Devices/
wget https://dl.twrp.me/hlte/twrp-3.3.1-0-hlte.img -P /tmp
Flash LineageOS
https://wiki.lineageos.org/devices/hlte/install
#./heimdall print-pit
./heimdall flash --RECOVERY /tmp/twrp-3.3.1-0-hlte.img --no-reboot
adb sideload /tmp/lineage-*-nightly-hlte-signed.zip
adb sideload /tmp/open_gapps-arm-*-nano-*.zip
adb rebootDebug with ADB
adb shell tail -f /tmp/recovery.log
Play Protect certified
https://forum.shiftphones.com/threads/solved-device-no-longer-play-protect-certified-after-update-to-lineageos-22-1.5596/
https://www.google.com/android/uncertified/
adb root
adb shell
sqlite3 /data/user/$(cmd activity get-current-user)/*/*/gservices.db "select * from main where name = \"android_id\";"