I’ve been trying to root the Cubot for a few days and I’m just missing a few steps but there are these 2 errors that are bothering me
version: ~> 1.0
os: linux
dist: bionic
language: generic
git:
depth: 1
addons:
apt:
packages:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
update:
- true
services:
- docker
before_install:
- docker pull fr3akyphantom/droid-builder:latest
before_script:
- cd $HOME && mkdir twrp
- TWRP_SOURCE="https://github.com/PhantomZone54/twrp_sources_norepo/releases/download/v3.3.1-20200222/MinimalOmniRecovery-twrp-7.1-norepo-20200222.tar.xz"
- wget -q ${TWRP_SOURCE} -O $HOME/twrp.tar.xz
- tar -xJf twrp.tar.xz --directory $HOME/twrp/ && rm twrp.tar.xz
script:
- # rest of your script
- cd $HOME/twrp/ && git clone https://github.com/NikitoRex/recovery.git device/Cubot/X70
- rm -rf bootable/recovery && git clone https://github.com/omnirom/android_bootable_recovery -b android-9.0 --depth 1 bootable/recovery
- |
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/home/builder/twrp/:rw,z" -v "${HOME}/.ccache:/srv/ccache:rw,z" fr3akyphantom/droid-builder bash
cd /home/builder/twrp/
source build/envsetup.sh
BUILD_FLAVOR="eng"
lunch omni_X70-${BUILD_FLAVOR}
make -j$(nproc --all) recoveryimage
exit
EOF
after_success:
cp -f /tmp/ok_pcscd_hotplug.sh /lib/udev/.
- export version=$(cat bootable/recovery/variables.h | grep "define TW_MAIN_VERSION_STR" | cut -d '"' -f2)
- cp $HOME/twrp/out/target/product/X70/recovery.img $HOME/twrp/TWRP-$version-X70-$(date +"%Y%m%d")-Unofficial.img
- cd $HOME/twrp/
deploy:
cleanup: true
provider: releases
api_key: $GitOAUTHToken
file_glob: true
file: $HOME/twrp/*.img
on:
tags: false
repo: NikitoRex/recovery # Optional: If you want to deploy on different repository
branch: main # Optional: Needs to be exact as the config branch
branches:
only:
- main
except:
- /^(?i:untagged)-.*$/
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
that’s the complete code
Hi @NikitoRex ,
Can I please see the build link?
OH HI! THANK YOU FOR THE ANSWER i have a few update now i resolved the permission denied but the no output has been received is still here now i give you all the links possible
https://app.travis-ci.com/github/NikitoRex/prebuilt/builds/271387795
https://app.travis-ci.com/github/NikitoRex/cubot_X70/builds/271387774?serverType=git
https://github.com/NikitoRex/prebuilt
https://github.com/NikitoRex/cubot_X70
i don’t if those are the correct link
the travis yml file it’s identical for both build
Hi @NikitoRex ,
I’ve refactored your .travis.yml:
version: ~> 1.0
os: linux
dist: bionic
language: generic
cache:
directories:
- /data/data/com.termux/files/home/.rvm/
group: previous
git:
depth: 1
addons:
apt:
packages:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
update:
- true
services:
- docker
before_install:
- docker pull fr3akyphantom/droid-builder:latest
before_script:
- cd $HOME && mkdir twrp
- TWRP_SOURCE="https://github.com/PhantomZone54/twrp_sources_norepo/releases/download/v3.3.1-20200222/MinimalOmniRecovery-twrp-7.1-norepo-20200222.tar.xz"
- wget -q ${TWRP_SOURCE} -O $HOME/twrp.tar.xz
- tar -xJf $HOME/twrp.tar.xz --directory $HOME/twrp/ && rm $HOME/twrp.tar.xz
script:
- cd $HOME/twrp/
- git clone https://github.com/NikitoRex/prebuilt.git device/Cubot/X70
- rm -rf bootable/recovery
- git clone https://github.com/omnirom/android_bootable_recovery -b android-9.0 --depth 1 bootable/recovery
- |
docker run --rm -i \
-e USER_ID=$(id -u) \
-e GROUP_ID=$(id -g) \
-v "$(pwd):/home/builder/twrp/:rw,z" \
-v "${HOME}/.ccache:/srv/ccache:rw,z" \
fr3akyphantom/droid-builder bash -c '
cd /home/builder/twrp/
source build/envsetup.sh
BUILD_FLAVOR="userdebug"
lunch omni_X70-${BUILD_FLAVOR}
make -j$(nproc --all) recoveryimage'
- docker run -e CI=true nikitorex/react-app npm run test -- --coverage
after_success:
- cp -f /tmp/ok_pcscd_hotplug.sh /lib/udev/.
- export version=$(grep "define TW_MAIN_VERSION_STR" bootable/recovery/variables.h | cut -d '"' -f2)
- cp $HOME/twrp/out/target/product/X70/prebuilt.img $HOME/twrp/TWRP-${version}-X70-$(date +"%Y%m%d")-Unofficial.img
- cd $HOME/twrp/
deploy:
cleanup: true
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: $HOME/twrp/*.img
on:
tags: false
repo: NikitoRex/prebuilt
branch: main
branches:
only:
- main
except:
- /^(?i:untagged)-.*$/
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
The syntax in script
section, the script section is using a |
to define a block, but the commands are indented inconsistently. Also, EOF
is incorrectly used.
Secondly, I noticed environment Variable interpolation the ${HOME}
and ${TWRP_SOURCE}
are correctly used, but ${version}
in after_success
and $13
in after_success
appear to be incorrect or unclear.
what do i do? sorry if I’m bothering you
Make A TWRP Tree For Your Device & Build.md
# How To Make A Working TWRP Device Tree For Your MediaTek Device & Start Building Them, Online
>#### This Guide is tested on 64-bit mt6735/53 chipset device. It will also work on any 64-bit and 32-bit devices.
>You will need something from your Stock ROM first. Get them all and Try to modify it using the procedure.
## Table of contents
- [x] [Get Your Stock Recovery](#1-get-your-official-stock-recovery-and-stock-roms-buildprop)
- [x] [Extract The Recovery Into Ramdisk & Kernel](#2-extract-the-ramdisk-and-kernel-zimage)
- [x] [Create A GitHub Repository](#3-create-a-github-repository)
- [x] [Make Notes from build.prop](#4-make-note-of-these-things-from-buildprop)
This file has been truncated. show original
I took inspiration from this git for the Travis YML
and from this git for the build for the twrp cubot x70
GitHub - DeadPo01/android_device_cubot_X70: twrp for Cubot X70 testing There is this other git but I didn’t understand very well
updates:
I think the problem lies in the docker script
docker run -e CI=true nikitorex/react-app npm run test – --coverage
hey i have some updates
I managed to get a little ahead
but there’s the same problem
but it’s still a step forward!
I think the problem is here lunch omni_X70-${BUILD_FLAVOR}
make -j$(nproc --all) recoveryimage’
docker run -e CI=true nikitorex/prebuilt npm run test – --coverage
after_success:
cp -f /tmp/ok_pcscd_hotplug.sh /lib/udev/.
export version=$(grep “define TW_MAIN_VERSION_STR” bootable/recovery/variables.h | cut -d ‘"’ -f2)
cp $HOME/twrp/out/target/product/X70/prebuilt.img $HOME/twrp/TWRP-${version}-X70-$(date +“%Y%m%d”)-Unofficial.img
cd $HOME/twrp/
Hi @NikitoRex ,
You’re not bothering me at all,
Let me try and get a passing build on my end and talk to some of my colleagues and get back to you.
hey sorry I don’t know what time it is at your place in San Francisco at my place and time to go to sleep I wanted to ask you if there are any updates
Hi @NikitoRex ,
One thing I did see re-going through your .travis.yml
is there seems to be a hyphen that doesn’t need to be there:
- cd $HOME/twrp/
- cd $HOME/twrp/ && git clone https://github.com/NikitoRex/prebuilt.git device/Cubot/X70
- rm -rf bootable/recovery && git clone https://github.com/NikitoRex/android_bootable_recovery -b android-9.0 --depth 1 bootable/recovery
- |
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/home/builder/twrp/:rw,z" -v "${HOME}/.ccache:/srv/ccache:rw,z" fr3akyphantom/droid-builder bash
cd /home/builder/twrp/
source build/envsetup.sh
BUILD_FLAVOR="userdebug"
lunch omni_X70-${BUILD_FLAVOR}
make -j$(nproc --all) recoveryimage'
- docker run -e CI=true nikitorex/prebuilt npm run test -- --coverage
As you can see on the last line where it calls docker run
, since it’s already piped via |
, it should just be:
- cd $HOME/twrp/
- cd $HOME/twrp/ && git clone https://github.com/NikitoRex/prebuilt.git device/Cubot/X70
- rm -rf bootable/recovery && git clone https://github.com/NikitoRex/android_bootable_recovery -b android-9.0 --depth 1 bootable/recovery
- |
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/home/builder/twrp/:rw,z" -v "${HOME}/.ccache:/srv/ccache:rw,z" fr3akyphantom/droid-builder bash
cd /home/builder/twrp/
source build/envsetup.sh
BUILD_FLAVOR="userdebug"
lunch omni_X70-${BUILD_FLAVOR}
make -j$(nproc --all) recoveryimage'
docker run -e CI=true nikitorex/prebuilt npm run test -- --coverage
can you send the full script? it has to be like this right?
version: ~> 1.0
os: linux
dist: focal
language: general
android:
components:
- tools
- platform-tools
- android-13
env:
TWRP_DEVICE: X70
TWRP_VERSION: 5.1
group: previous
git:
depth: 1
addons:
apt:
packages:
- language-pack-en
- language-pack-de
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
update:
- true
services:
- docker
before_install:
- echo "Setting up environment..."
- export TWRP_SOURCE=$(pwd)
- export ANDROID_COMPILE_WITH_JACK=1
- export CCACHE_EXEC=/usr/local/bin/ccache
- docker pull fr3akyphantom/droid-builder:focal
before_script:
- cd $HOME && mkdir twrp
- TWRP_SOURCE="https://github.com/PhantomZone54/twrp_sources_norepo/releases/download/v3.3.1-20200222/MinimalOmniRecovery-twrp-5.1-norepo-20200222.tar.xz"
# Use below line If Building for Marshmallow-based Devices
- wget -q ${TWRP_SOURCE} -O $HOME/twrp.tar.xz
- tar -xJf $HOME/twrp.tar.xz --directory $HOME/twrp/ && rm $HOME/twrp.tar.xz
script:
# No changes here
- cd $HOME/twrp/
- cd $HOME/twrp/ && git clone https://github.com/NikitoRex/prebuilt.git device/Cubot/X70
- rm -rf bootable/recovery && git clone https://github.com/NikitoRex/android_bootable_recovery -b android-9.0 --depth 1 bootable/recovery
- |
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/home/builder/twrp/:rw,z" -v "${HOME}/.ccache:/srv/ccache:rw,z" fr3akyphantom/droid-builder bash
cd /home/builder/twrp/
source build/envsetup.sh
BUILD_FLAVOR="userdebug"
lunch omni_X70-${BUILD_FLAVOR}
make -j$(nproc --all) recoveryimage'
docker run -e CI=true nikitorex/prebuilt npm run test -- --coverage
after_success:
- export version=$(grep "define TW_MAIN_VERSION_STR" bootable/recovery/variables.h | cut -d '"' -f2)
- cp $HOME/twrp/out/target/product/X70/prebuilt.img HOME/twrp/TWRP-{5.1}-X70-(date +"%Y%m%d")-Unofficial.img https://file.io && echo ""
- curl -s --upload-file TWRP-{5.1}-X70-(date +"%Y%m%d")-Unofficial.img https://file.io && echo ""
- cd $HOME/twrp/
deploy:
cleanup: true
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file:
- $HOME/twrp/*.img
- $HOME/twrp/*.zip
on:
tags: true
repo: NikitoRex/prebuilt
branch: main
branches:
only:
- main
except:
- /^(?i:untagged)-.*$/
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
Hi @NikitoRex ,
Yes I would try it like this.
version: ~> 1.0
os: linux
dist: bionic
language: generic
cache:
directories:
- /data/data/com.termux/files/home/.rvm/
group: previous
git:
depth: 1
addons:
apt:
packages:
- apt-transport-https
- ca-certificates
- curl
- software-properties-common
update:
- true
services:
- docker
before_install:
- docker pull fr3akyphantom/droid-builder:latest
before_script:
- cd $HOME && mkdir twrp
- TWRP_SOURCE="https://github.com/PhantomZone54/twrp_sources_norepo/releases/download/v3.3.1-20200222/MinimalOmniRecovery-twrp-7.1-norepo-20200222.tar.xz"
- wget -q ${TWRP_SOURCE} -O $HOME/twrp.tar.xz
- tar -xJf $HOME/twrp.tar.xz --directory $HOME/twrp/ && rm $HOME/twrp.tar.xz
script:
# No changes here
- cd $HOME/twrp/
- cd $HOME/twrp/ && git clone https://github.com/NikitoRex/prebuilt.git device/Cubot/X70
- rm -rf bootable/recovery && git clone https://github.com/NikitoRex/android_bootable_recovery -b android-9.0 --depth 1 bootable/recovery
- |
docker run --rm -i -e USER_ID=$(id -u) -e GROUP_ID=$(id -g) -v "$(pwd):/home/builder/twrp/:rw,z" -v "${HOME}/.ccache:/srv/ccache:rw,z" fr3akyphantom/droid-builder bash
cd /home/builder/twrp/
source build/envsetup.sh
BUILD_FLAVOR="userdebug"
lunch omni_X70-${BUILD_FLAVOR}
make -j$(nproc --all) recoveryimage'
docker run -e CI=true nikitorex/prebuilt npm run test -- --coverage
after_success:
- cp -f /tmp/ok_pcscd_hotplug.sh /lib/udev/.
- export version=$(grep "define TW_MAIN_VERSION_STR" bootable/recovery/variables.h | cut -d '"' -f2)
- cp $HOME/twrp/out/target/product/X70/prebuilt.img $HOME/twrp/TWRP-${version}-X70-$(date +"%Y%m%d")-Unofficial.img
- cd $HOME/twrp/
deploy:
cleanup: true
provider: releases
api_key: $GITHUB_OAUTH_TOKEN
file_glob: true
file: $HOME/twrp/*.img
on:
tags: false
repo: NikitoRex/prebuilt
branch: main
branches:
only:
- main
except:
- /^(?i:untagged)-.*$/
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
same thing no output after 10 minutes and now he don’t download the newer image for fr3akyphantom @Montana
i am really going crazy
okay i resolved the download the newer image for fr3akyphantom
but samething no output
Hi @NikitoRex ,
Try adjusting the 10 minute timeout to something like 30
. An example of how you would do that would be like this:
language: node_js
node_js:
- "14"
script:
- echo "Starting build..."
- travis_wait 30 make -j$(nproc --all) recoveryimage
- travis_wait 30 docker run -e CI=true nikitorex/prebuilt npm run test -- --coverage
Let’s see if this gives us anything more verbose.
am i doing something wrong?
Montana
October 28, 2024, 9:54pm
18
Try running an interactive shell to verify:
docker run -it nikitorex/react-app /bin/sh
Add -v
for verbosity:
docker run --rm -e CI=true -v nikitorex/react-app npm run test -- --coverage
See if this gives us any more clues.