Skip to content

Instantly share code, notes, and snippets.

@T-rex2017
Last active June 22, 2019 13:30
Show Gist options
  • Save T-rex2017/2c8fc7353774125cea84cb48d4abc016 to your computer and use it in GitHub Desktop.
Save T-rex2017/2c8fc7353774125cea84cb48d4abc016 to your computer and use it in GitHub Desktop.
# repo sync
repo init -u git://github.com/omnirom/android.git -b android-9.0 && repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
# clone repo's
git clone https://github.com/trex-p1m-clones/kt_3.18.xx_alps.git kernel/lenovo/p1m && git clone https://github.com/trex-p1m-clones/dt_3.18.xx_alps.git -b twrp device/lenovo/p1m && git clone https://github.com/trex-p1m-clones/vt_3.18.xx_alps.git vendor/lenovo/p1m
# compile
source build/envsetup.sh && lunch omni_p1m-eng && make -j$(nproc --all) recoveryimage
# upload
cd out/target/product/p1m && curl --upload-file ./recovery.img https://transfer.sh/recovery.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment