From e452eadce0e3536d1c26572cabdc53c512c9fe22 Mon Sep 17 00:00:00 2001 From: Abdullashakee <123253935+Abdullashakee@users.noreply.github.com> Date: Thu, 2 Mar 2023 19:17:44 +0530 Subject: [PATCH 1/3] Update recovery.yml --- .github/workflows/recovery.yml | 46 +++++++++++++--------------------- 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/.github/workflows/recovery.yml b/.github/workflows/recovery.yml index 321c7cb8..40bdbf3e 100644 --- a/.github/workflows/recovery.yml +++ b/.github/workflows/recovery.yml @@ -6,32 +6,24 @@ env: # change value from: # A) choosing right manifest: - # 1) recovery type: - # to build twrp, add: twrp - # to build shrp, add: shrp - # to build pbrp, add: pbrp - RTYPE: twrp - # 2) manifest is required choose the compatible its depend on your current android version. - MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git - # 3) manifest branch same thing it depend on your current android - BRANCH: twrp-9.0 + # 1) manifest is required choose the compatible its depend on your current android version. + MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git + # 2) manifest branch same thing it depend on your current android + BRANCH: twrp-11 # B) Information about your device: # 1) every device tree use main file called twrp_/omni_****.mk use the name between .mk and omni_/twrp_ keyword - DEVICE: m10lte + DEVICE: X698 # 2) device tree link - DT_LINK: https://github.com/youssefnone/android_recovery_samsung_m10lte - # 3) device tree branch which you want to build - # if your repo doesnt have a one branch not renamed use: main - DT_BR: twrp-1.0 - # 4) device manufacturer please you the one which used on device.mk or BoardConfig.mk - MANUFACTURER: samsung - # 5) target build. depend on what you have on you phone. recovery partition: recovery or recovery in boot partition: boot - TARGET: recovery - # 6) build type eng (recommended) , user (dont use it), userdebug (this too) + DT_LINK: https://github.com/SA-17/android_device_infinix_Infinix-X698 + # 3) device manufacturer please you the one which used on device.mk or BoardConfig.mk + MANUFACTURER: infinix + # 4) target build. depend on what you have on you phone. recovery partition: recovery or recovery in boot partition: boot + TARGET: boot + # 5) build type eng (recommended) , user (dont use it), userdebug (this too) BTYPE: eng - # 7) Twrp type omni or twrp may depend on main file omni_/twrp_****.mk - OT: omni + # 6) Twrp type omni or twrp may depend on main file omni_/twrp_****.mk + OT: twrp # end dont edit anything after this comment # C) these part and what under dont edit it @@ -48,9 +40,9 @@ jobs: - name: remove pkg and setting repo run: | - sudo apt update && sudo apt install zip - curl -LO https://github.com/SA-17/rm_pkg/raw/main/setup.sh && bash setup.sh - sudo -E apt-get -qq update + sudo apt update && sudo apt install git zip + git clone https://github.com/SA-17/rm_pkg pkg && cd pkg && bash setup.sh + cd .. && sudo -E apt-get -qq update sudo -E apt-get -qq install bc build-essential tar zip curl libstdc++6 git wget python gcc clang libssl-dev repo rsync flex curl bison aria2 sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo sudo chmod a+rx /usr/local/bin/repo @@ -61,15 +53,13 @@ jobs: cd work repo init -u $MANIFEST -b $BRANCH --depth=1 repo sync -c -j700 --force-sync --no-clone-bundle --no-tags - git clone $DT_LINK -b $DT_BR --depth=1 --single-branch device/$MANUFACTURER/$DEVICE + git clone $DT_LINK --depth=1 --single-branch device/$MANUFACTURER/$DEVICE - name: Build recovery run: | cd work . build/envsetup.sh && lunch $OT$SYM$DEVICE-$BTYPE && export ALLOW_MISSING_DEPENDENCIES=true && mka $TARGET$IMAGE -j30 - curl -LO https://github.com/SA-17/rm_pkg/raw/main/zip.sh - bash zip.sh - + zip out/target/product/recovery.zip out/target/product/$DEVICE/$TARGET.* - name: Release recovery uses: softprops/action-gh-release@v1 env: From f1018b1a2c7ab9beceb285cb54da9995bb116744 Mon Sep 17 00:00:00 2001 From: Abdullashakee <123253935+Abdullashakee@users.noreply.github.com> Date: Thu, 2 Mar 2023 19:21:27 +0530 Subject: [PATCH 2/3] Update recovery.yml --- .github/workflows/recovery.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/recovery.yml b/.github/workflows/recovery.yml index 40bdbf3e..4ac3730e 100644 --- a/.github/workflows/recovery.yml +++ b/.github/workflows/recovery.yml @@ -15,7 +15,7 @@ env: # 1) every device tree use main file called twrp_/omni_****.mk use the name between .mk and omni_/twrp_ keyword DEVICE: X698 # 2) device tree link - DT_LINK: https://github.com/SA-17/android_device_infinix_Infinix-X698 + DT_LINK: https://github.com/Abdullashakee/android_device_infinix_Infinix-X698/blob/A11/twrp_X698.mk # 3) device manufacturer please you the one which used on device.mk or BoardConfig.mk MANUFACTURER: infinix # 4) target build. depend on what you have on you phone. recovery partition: recovery or recovery in boot partition: boot From 1ce62f9778664b68cd4f8897650b558d88e4615b Mon Sep 17 00:00:00 2001 From: Abdullashakee <123253935+Abdullashakee@users.noreply.github.com> Date: Thu, 2 Mar 2023 19:42:31 +0530 Subject: [PATCH 3/3] Update recovery.yml --- .github/workflows/recovery.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/recovery.yml b/.github/workflows/recovery.yml index 4ac3730e..3c79e07f 100644 --- a/.github/workflows/recovery.yml +++ b/.github/workflows/recovery.yml @@ -15,7 +15,7 @@ env: # 1) every device tree use main file called twrp_/omni_****.mk use the name between .mk and omni_/twrp_ keyword DEVICE: X698 # 2) device tree link - DT_LINK: https://github.com/Abdullashakee/android_device_infinix_Infinix-X698/blob/A11/twrp_X698.mk + DT_LINK: https://github.com/Abdullashakee/android_device_infinix_Infinix-X698 # 3) device manufacturer please you the one which used on device.mk or BoardConfig.mk MANUFACTURER: infinix # 4) target build. depend on what you have on you phone. recovery partition: recovery or recovery in boot partition: boot