Giter Club home page Giter Club logo

rvx-builder's Introduction

ReVanced Extended Builder

This project will allow you to download the APK of supported apps and build ReVanced Extended easily!

Required

You'll need at least Zulu JDK 17 and ADB (optional, required only for rooted phones).

If you plan to use it from source, you'll also require Node.js >= 16.

How to use

If you are on a PC, download the latest executable from here or if you are on a Android device, please see this.

NOTE: If you intend to build the rooted version of either YouTube or YouTube Music, you must have the stock YouTube app to be the same version as the one chosen for building. Otherwise, the build will fail.

For developers

For developers, see this

How to use (Docker)

Required docker and docker-compose (for *nix cli) must be installed

Note: If you're using Docker Desktop, docker-compose will be pre-installed.

Clone the repository and cd into the directory rvx-builder

Build using docker-compose

docker-compose build --pull --no-cache

This builds the Docker image (--no-cache is used to build the image from scratch; sometimes the cache might cause version conflicts).

After building, launch the container (runs at localhost:8000):

docker-compose up -d

To stop the container:

docker-compose down

Note: docker-compose uses docker-compose.yml so make sure you are in the same directory rvx-builder

To update to a newer version, stop the existing container if it is running, build the image and start it again.

Build using only docker

docker build . --pull -t <name_of_the_image> --no-cache

Run the newly built container:

docker run -d --name <name_of_container> -p 8000:8000 --restart unless-stopped -v ./revanced/:/app/rvx-builder/revanced/ <name_of_the_image>

This launches the container on http://localhost:8000

To stop the container:

docker rm <name_of_container> -f
docker rmi <name_of_the_image> -f

To update to a newer version of Builder, stop the existing container if it is running, build the container start it again.

In both the builds, a persistent storage is kept. All the builds are stored in <path/to>/rvx-builder/revanced/.

rvx-builder's People

Contributors

anzarfarooq avatar cnc-robert avatar elijah629 avatar git-hmmm avatar gydavid22 avatar inotia00 avatar j4k0xb avatar katrovsky avatar masterflitzer avatar nyxiereal avatar patrykmis avatar paulpoyyayil avatar pedrozzz0 avatar reisxd avatar rikysonic avatar rippleflow avatar saibamen avatar sakya avatar sebiai avatar shreyash-b avatar shrihankp avatar snyk-bot avatar sunnniee avatar supertigerdev avatar the-l1nux-user avatar username0136 avatar victor141516 avatar viperml avatar vocalfan avatar wjm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rvx-builder's Issues

fail after reaching choosing patches section

Describe the bug
After downloading everything when it reaches the point of choosing patches, this error happens:
An error occured:FetchError: invalid json response body at https://www.apkmirror.com/wp-json/apkm/v1/app_exists/ reason: Unexpected token < in JSON at position 0 at /data/data/com.termux/files/home/rvx-builder/node_modules/node-fetch/lib/index.js:273:32 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async fetchPackages (/data/data/com.termux/files/home/rvx-builder/wsEvents/getApp.js:19:20) at async getPatches (/data/data/com.termux/files/home/rvx-builder/wsEvents/getApp.js:40:16) at async WebSocket.

To Reproduce
Steps to reproduce the behavior:

  1. Run rvx builder in termux
  2. Go to localhost
  3. Download everything in local host
  4. See error, when you reach "choose your patches

Screenshots
InShot_20230131_010814127

revanced-builder Version:
3.8.0
Desktop (please complete the following information):

  • OS: Android
  • Version: 11

Additional context
Thise problem didn't happen before

Bug: Reply field with white background with black-theme patch

I have the Theme patch for the AMOLED theme on.

Built YouTube Revanced Extended using rvx-builder v3.4.15 Windows .exe from the releases page.

Screenshots of the issue are attached...

Makes it impossible to see what you're typing.

This only happens when replying from the player page, as in with the video opened and you scroll down to the comments.

It does NOT happen if you're replying from the Notifications tab, it actually works as intended from there.


Theme: AMOLED.
Xiaomi Redmi Note 11 Global (spes), Xiaomi.eu MIUI 13 - Android 12, no root.
Windows Builder: rvx-builder v3.4.15

Screenshot_2022-10-09-19-49-16-928_app revanced android youtube

Screenshot_2022-10-09-19-49-02-371_app revanced android youtube

Process Failed

Screenshots
image

revanced-builder Version: v3.5.0

Desktop (please complete the following information):

  • OS: Windows
  • Version: 10

Bug ๐Ÿ›

[builder] An error occured.
FetchError: invalid json response body at https://www.apkmirror.com/wp-json/apkm/v1/app_exists/ reason: Unexpected token < in JSON at position 0
at /data/data/com.termux/files/home/rvx-builder/node_modules/node-fetch/lib/index.js:273:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fetchPackages (/data/data/com.termux/files/home/rvx-builder/wsEvents/getApp.js:19:20)
at async getPatches (/data/data/com.termux/files/home/rvx-builder/wsEvents/getApp.js:40:16)
at async WebSocket. (/data/data/com.termux/files/home/rvx-builder/index.js:175:9)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Failed run rvx-builder on android

[builder] An error occured.
FetchError: invalid json response body at https://www.apkmirror.com/wp-json/apkm/v1/app_exists/ reason: Unexpected token < in JSON at position 0
at /data/data/com.termux/files/home/rvx-builder/node_modules/node-fetch/lib/index.js:273:32
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fetchPackages (/data/data/com.termux/files/home/rvx-builder/wsEvents/getApp.js:19:20)
at async getPatches (/data/data/com.termux/files/home/rvx-builder/wsEvents/getApp.js:40:16)
at async WebSocket. (/data/data/com.termux/files/home/rvx-builder/index.js:175:9)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues

Please report this bug

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

revanced-builder Version: [e.g. v1.2.10]

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Version: [e.g. 10]

Additional context
Add any other context about the problem here.
vanced

revanced-cli --list bug

Sorry, I am very new in GitHub. I couldn't find how to open the issue of revanced-cli command.

Describe the bug
revanced-cli --list bug

To Reproduce
java.exe -jar revanced-cli-2.15.2-all.jar -b revanced-patches-2.111.4.jar -a com.google.android.youtube_17.34.36.apk --list

Desktop (please complete the following information):

  • OS: Windows 7 x64 Enterprise

Additional context

  1. With --list alone, it produces descriptions by default.
  2. With --list --with-descriptions, it omits descriptions from the result.

Cannot find Download patches

Dear sir, today I built an apk with your rvx-builder but I can't find Download patches. Can you help me, thanks!
image

Bugs

Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\trann\Downloads\YTB-Build\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:28:3)
at Socket. (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:186:53)

question: Are there any commands/launch -arguments to pass into rvx-builder to...

Are there any commands/launch -arguments to pass into rvx-builder to disable it automatically launching the browser window upon opening?

You can do that with docker-compose but I couldn't with the built executable from releases...

I have the habit of opening it from the Terminal/Shortcut and running my own command after to open localhost it in my browser of choice.

[revanced-cli] output signed apk filesize vary difference up to 700kb

Describe the bug
[revanced-cli] output signed apk filesize vary difference up to 700kb

To Reproduce
java.exe -jar revanced-cli-2.15.2-all.jar -b revanced-patches-2.111.4.jar -m app-release-unsigned-0.71.1.apk --keystore=revanced.keystore -c -t %temp%/ReVanced-Cache -a com.google.android.youtube_17.34.36.apk -o app.revanced.android.youtube_17.34.36_arm64-v8a.apk --rip-lib=armeabi-v7a --rip-lib=x86 --rip-lib=x86_64

Desktop (please complete the following information):

  • OS: Windows 7 X64 Enterprise

Additional context

89,993,575    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.1
89,887,079    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.2
89,985,383    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.3
90,055,015    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.4
89,538,919    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.5
89,649,511    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.6
90,087,783    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.7
90,280,295    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.8
89,960,807    app.revanced.android.youtube_17.34.36_arm64-v8a.apk.9

The output filesize varies too much ~700kb.
I used revanced.keystore from the first run. Then I can update the app in the future.
I generated 9 times and keep the lowest one for my friends.

error message after patching is finished?

got this error message right at the end of patching normal youtube. the program generates the revanced apk, and even said "Finished" for a moment before i got the error. however, trying to open the apks gives me a "There was a problem parsing the package" error.
error-report

patches applied are as follows:
Client Spoof
Custom Branding Icon Revancify
Custom Branding Name
Enable Old Layout
Enable Old Seekbar Color
Enable Seekbar Tapping
Hide Create Button
Hide General Ads
Hide Shorts Button
Hide Shorts Component
Hide Startup Shorts Player
Hide Stories
Hide Video Ads
Microg Support
Optimize Resource
Patch Options
Return Youtube Dislike
Settings
Sponsorblock
Theme

program version 3.7.0

os: windows 10

resource busy or locked, unlink '\\?\C:\Users\p

**Patching failed **
After the patching screen, error occures.
rvx-builder v3.4.16
Command prompt output
[builder] Listening at port 8000
[builder] The webserver is now running!
[builder] Opening the app in the default browser... Done, check if a browser window has opened
[builder] An error occured.
Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\myuser\Downloads\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:38:3)
at Socket. (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Desktop (please complete the following information):

  • OS: Win10 v22h2, os build 19045.2130

Win 7 rvx-builder v3.4.15

rvx-builder v3.4.15

  • OS: Windows
  • Version: Win 7
    I i run rvx-builder and it crashes just a window appears and disappears

EBUSY: resource busy or locked

Describe the bug
Final compilation of Youtube app getting error

To Reproduce
Steps to reproduce the behavior:

  1. Try to compile YouTube App
  2. See error

Screenshots
image

Revanced builder 3.4.16, with 3.4.15 everything works fine with the same patches

Desktop (please complete the following information):

  • OS: Windows 11
  • Version: Build 25321

Additional context
Here is my patch list:
"overlay-buttons",
"hide-cast-button",
"return-youtube-dislike",
"custom-branding-icon-revancify",
"materialyou",
"hide-pip-notification",
"extended",
"sponsorblock",
"minimized-playback",
"translations",
"microg-support",
"optimize-resource",
"video-ads",
"general-ads"

Error while compiling YouTube and YouTube Music app - Unknown chunk type '200'

I am facing an issue while trying to compile the YouTube and YouTube Music app. Every time I try to compile the app, I receive the following error message:

"[builder] WARNING: aapt2 W 02-22 01:26:52 18917 18917] Unknown chunk type '200'."

I have tried cleaning and rebuilding the project, but the issue persists. I suspect this may be an issue with AAPT2.

Could someone please assist in resolving this issue so that I can continue with the development of the app? Any help would be greatly appreciated.

Steps to Reproduce:

  1. Select the version and patches of the YouTube or YouTube Music app.
  2. Attempt to compile the app.
  3. Observe the error message: "[builder] WARNING: aapt2 W 02-22 01:26:52 18917 18917] Unknown chunk type '200'."

Expected behavior:
The YouTube and YouTube Music app should compile successfully without any errors.

Actual behavior:
The app fails to compile due to the error message: "[builder] WARNING: aapt2 W 02-22 01:26:52 18917 18917] Unknown chunk type '200'."
Screenshot_20230222-012720~2

cast button is not showing

Describe the bug

Although unselect hide cast button, cast button is not showing in revanced Youtube
"Hide cast button option" is ON in the setting menu of revanced setting.
if i off the option, i can see cast button. but can't connect TV

revanced-builder Version:
v3.7.0

Desktop (please complete the following information):

  • OS: Windows
  • Version: 10

Device or resource busy

Describe the bug
An error occured:Error: Command failed: su -c 'base_path="/data/adb/revanced/com.google.android.youtube.apk" && mv -f "/data/adb/revanced/ReVanced-YouTube-v18.01.36-cli_v2.20.1-patches_v2.153.4.apk" "$base_path" && chmod 644 "$base_path" && chown system:system "$base_path" && chcon u:object_r:apk_data_file:s0 "$base_path"'mv: bad '/data/adb/revanced/ReVanced-YouTube-v18.01.36-cli_v2.20.1-patches_v2.153.4.apk': Device or resource busyat ChildProcess.exithandler (node:child_process:419:12)at ChildProcess.emit (node:events:513:28)at maybeClose (node:internal/child_process:1091:16)at ChildProcess._handle.onexit (node:internal/child_process:302:5)

To Reproduce
Steps to reproduce the behavior:

  1. Just building
    Screenshots
    If applicable, add screenshots to help explain your problem.

revanced-builder Version: [e.g. latest]

Desktop (please complete the following information):

  • OS: android
  • Version: 13

Additional context
Add any other context about the problem here.

Error: Downloading Dependencies not working

Describe the bug
When I try to download dependices I think this happens. (I think I have a crappy internet of something)

Screenshots
image

image

revanced-builder Version:
[v3.8.0]

Desktop

  • OS: [Windows]
  • Version: [10]

Additional context

[builder] An error occured.
FetchError: request to https://api.github.com/repos/inotia00/revanced-cli/releases/latest failed, reason: getaddrinfo ENOTFOUND api.github.com
at ClientRequest. (C:\snapshot\rvx-builder2\node_modules\node-fetch\lib\index.js:1491:11)
at ClientRequest.emit (node:events:537:28)
at TLSSocket.socketErrorListener (node:_http_client:465:9)
at TLSSocket.emit (node:events:537:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Error building

while building youtube revanced extended with v. 17.49.37

An error occured:TypeError: Cannot read properties of undefined (reading 'replace')at outputName (/data/data/com.termux/files/home/rvx-builder/wsEvents/patchApp.js:94:35)at afterBuild (/data/data/com.termux/files/home/rvx-builder/wsEvents/patchApp.js:29:3)at Socket.

"Error: EBUSY: resource busy or locked" and "Finished downloading files" but no files get downloaded, "revanced" folder is empty... ERROR

Update: Solved in the replies bellow.


Still getting Error: EBUSY: resource busy or locked, also tried doing again from a different folder and I get a [builder] Finished downloading files. but no files get downloaded, revanced folder is empty... or when it downloads them I get the Error: EBUSY when patching...
Tried ReisXD builder and it is working fine.

Full Patching Process:

msedge_g0FLoBmTxV.mp4
Error: EBUSY: resource busy or locked, unlink '\\?\D:\Ferramentas\revanced\inotia00-rvx-builder\revanced-cache\1.apk'
    at unlinkSync (node:fs:1780:3)
    at _unlinkSync (node:internal/fs/rimraf:214:14)
    at rimrafSync (node:internal/fs/rimraf:195:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at rmSync (node:fs:1274:10)
    at afterBuild (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:38:3)
    at Socket.<anonymous> (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Tried rvx-builder-v3.4.15 and rvx-builder-v3.4.16 and same thing happens on both.


Describe the bug

Builder fails to patch, using the versions and rvx-resources bellow:
revanced-integrations-v0.63.0
revanced-patches-v2.99.0
revanced-cli-v2.14.0

Steps To Reproduce

  1. Try to build latest recommended (Youtube v17.42.35).
  2. Failure.

Screenshots

msedge_8S7C0AgL7i


revanced-builder Version: rvx-builder v3.4.16

Desktop (please complete the following information):

  • OS: Windows
  • Version: 11

Additional context: Crash Report

[builder] An error occured.
Error: EBUSY: resource busy or locked, unlink '\\?\D:\Edge Downloads 2022.4\revanced-cache\1.apk'
    at unlinkSync (node:fs:1780:3)
    at _unlinkSync (node:internal/fs/rimraf:214:14)
    at rimrafSync (node:internal/fs/rimraf:195:7)
    at node:internal/fs/rimraf:253:9
    at Array.forEach (<anonymous>)
    at _rmdirSync (node:internal/fs/rimraf:250:7)
    at rimrafSync (node:internal/fs/rimraf:193:7)
    at rmSync (node:fs:1274:10)
    at afterBuild (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:38:3)
    at Socket.<anonymous> (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.
[builder] An error occured.
Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (node:fs:747:3)
    at Object.readSync (pkg/prelude/bootstrap.js:947:32)
    at tryReadSync (node:fs:447:20)
    at Object.readFileSync (node:fs:493:19)
    at readFileSync (pkg/prelude/bootstrap.js:1082:36)
    at parsePatch (C:\snapshot\rvx-builder-build3\utils\PatchesParser.js:9:5)
    at getPatches (C:\snapshot\rvx-builder-build3\wsEvents\getPatches.js:28:24)
    at WebSocket.<anonymous> (C:\snapshot\rvx-builder-build3\index.js:175:15)
    at WebSocket.emit (node:events:537:28)
    at Receiver.receiverOnMessage (C:\snapshot\rvx-builder-build3\node_modules\ws\lib\websocket.js:1178:20)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Mount error

In the finishing steps when script is trying to mount an app this error occurs. And it doesn't even matter what patches you use.

Screenshot_20221129-004159_Firefox

Was using the latest version of builder, 3.5.0

  • OS: Android
  • Version: 11

UPD: Turns out if you delete an unpached app and then install a patched one it will work just fine, but still this doesn't solve the problem of it not being able to do all the thing automatically

bug

{can't build youtube revanced extended v18.04.35...the patching process is stuck at the end of the process. i used the latest rvx-builder-win v3.8.0}

Error: EBUSY: resource busy or locked, unlink ?

Describe the bug
I've tried the latest version of you builder on 2 Window's machines now and both give me the same error during the compilation process. I get :
Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\vmb11\Desktop\Revanced\revanced-cache\1.apk'

To Reproduce
Steps to reproduce the behavior:

Just run it on Windows 10 or 11

Screenshots
If applicable, add screenshots to help explain your problem.

revanced-builder Version: [e.g. v1.2.10]
3.4.16

Desktop (please complete the following information):

  • OS: Windows 11 or 10
  • Version: home x64

Additional context
Node.js v19.0.1
Zulu JDK v17.38.21

Error: Command failed: su -c 'cp "./mount.sh" "/data/adb/service.d/mount_revanced_com.google.android.youtube.sh"

[Builder] An error occured:Error: Command failed: su -c 'cp "./mount.sh" "/data/adb/service.d/mount_revanced_com.google.android.youtube.sh"'cp: /data/adb/service.d/mount_revanced_com.google.android.youtube.sh: No such file or directoryat ChildProcess.exithandler (node:child_process:400:12)at ChildProcess.emit (node:events:513:28)at maybeClose (node:internal/child_process:1093:16)at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)

Module not found error when trying to run rvx-builder

Node.js v18.14.1
~ $ ./rvx-builder.sh
[rvx-builder] Already gotten storage access.
[rvx-builder] Node.js and JDK already installed.
[rvx-builder] rvx-builder found.
[rvx-builder] All checks done.

node:internal/modules/cjs/loader:1078
throw err;
^

Error: Cannot find module '/data/data/com.termux/files/home/rvx-builder'
at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v18.14.1

That is what i am getting when trying to run the builder, i tried the options in documentation but it doesn't help. Please anyone tell me a solution for this.

Thank you.

Building failed.

Describe the bug
Building failed.

To Reproduce
After building, it fails at the point of referring to 1.apk

Screenshots
If applicable, add screenshots to help explain your problem.

revanced-builder Version:
3.5.0

Desktop (please complete the following information):

  • OS: Windows 10 Home
  • Version: 19044.1266-ja_jp

Additional context
[builder] An error occured:
Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\โ€‹[Username]\Desktop\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:38:3)
at Socket. (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:200:53)
Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Revanced Icons Error

I built revanced normally with no errors, but the revancify icon doesn't work, and it only appears on the splash screen when you open the app, on the home screen you get the normal youtube icon.

v3.4.16 Youtube Build Error

Describe the bug
A clear and concise description of what the bug is.

[builder] An error occured.
Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\ChrisB\Downloads\ReVanced\inotia00\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:38:3)
at Socket. (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

To Reproduce
Steps to reproduce the behavior:

I tried to build Youtube Revanced with v3.4.16, and got the error above. On v3.4.15, it builds fine.

Screenshots
If applicable, add screenshots to help explain your problem.

**revanced-builder Version: v3.4.16

Desktop (please complete the following information):

  • OS: Windows
  • Version: 10

Additional context
On v3.4.15, it builds fine.

Error when patching YouTube Music

During the final patching of YTMusic, this error pops up
Screenshot: https://imgur.com/a/7w2LJLp
revanced-builder Version: 3.8.0

  • OS: Windows
  • Version: 10

Log:
Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\danil\Desktop\rvx-builder\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:28:3)
at Socket. (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:186:53)

[builder] SEVERE: music-microg-support failed

LOG
[builder] SEVERE: music-microg-support failed: app.revanced.patcher.patch.PatchResultError: 'music-microg-support' depends on 'music-microg-support' but the following error was raised: java.io.FileNotFoundException: ./revanced-cache/AndroidManifest.xml (No such file or directory)

To Reproduce
Select Youtube Music

revanced-builder Version:
Current

Fails when writing patched app

[builder] Listening at port 8000
[builder] The webserver is now running!
[builder] Opening the app in the default browser... Done, check if a browser window has opened
[builder] An error occured.
Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\jason\Downloads\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:28:3)
at Socket. (C:\snapshot\rvx-builder2\wsEvents\patchApp.js:186:53)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

Youtube build error

[builder] An error occured.
Error: EBUSY: resource busy or locked, unlink '\?\F:\Programs\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:38:3)
at Socket. (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53)

OS : Windows 11

To reprodude :

Building youtube on v3.14.16

It doesn't work again

Error: EBUSY: resource busy or locked, unlink '\?\D:\ReVanced\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:38:3)
at Socket. (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53)

I worked at Windows 11, so I deleted and reinstall them, but it doesn't work again.

Build Error

Error: EBUSY: resource busy or locked, unlink '\?\D:\ReVanced AMOLED\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:38:3)
at Socket. (C:\snapshot\rvx-builder-build3\wsEvents\patchApp.js:219:53)
[builder] Please report this bug here: https://github.com/inotia00/rvx-builder/issues.

WIndows 11

wiki(request): Docker-Compose Build Instructions for the Revanced-Documentation Wiki

It could be based on this, with your own style to match of course.
I can only speak for Windows 10/11 here:



These are the Windows 10/11 docker-compose instructions to run the rvx-builder in a clean docker container:

Please follow each step carefully and make sure you read everything.

  1. Install Git if you don't have it already. If you are not sure, install it.

  2. Install and open Docker Desktop, it has to be running in the background for you to be able to run the builder container. Wait for it to load completely.

If you're running Windows 11, you can open your PowerShell terminal and install both of the above requirements with this command:

winget install --id=Git.Git -e  && winget install --id=Docker.DockerDesktop -e --accept-package-agreements
  1. After you install both I recommend creating a new empty folder and performing the next steps inside it for better organization.

  2. Right click inside the newly created folder and select "Open in Terminal" or "Open PowerShell Here" in the context menu.

  3. Now that you have a Terminal running, run:

git clone -b revanced-extended https://github.com/inotia00/rvx-builder --depth=1 --no-tags
  1. Then run this command to get from here to the rvx-builder directory:
cd .\rvx-builder\

Or manually reopen the Terminal inside the newly created rvx-builder repository folder.

  1. To start building with docker-compose run:
docker-compose build --no-cache

This can take a while, please wait for it to finish.

  1. After building, launch the container by running:
docker-compose up -d

In your browser open localhost:8000 to access the builder interface.
Your built applications will be located in the revanced folder inside the the rvx-builder folder that is located in the folder you created in step 3.

  1. When you are done building your applications, to stop the container you can run:
docker-compose down

Once that is done you can also stop Docker Desktop and close your Terminal window now.


In the future when you're running the builder again, after starting Docker Desktop, you can open a Terminal inside the rvx-builder folder and start from step 7.



For advanced users:

Although it's recommended to build with the --no-cache flag, you don't necessarily have to unless you want to update the builder or just being safe, that way it will use the previous image to get you running the builder quickly.
If you run it in this fashion, to update the builder when you want to, open the Terminal inside the rvx-builder folder, do a git pull to be sure, and follow the docker-compose instructions to build again, and you really have to use the --no-cache flag this time.


Overall this method has the advantage of pulling directly from the repository at the time of build, so you will pull all the most recent commits even if they aren't yet in the release builds.

The main advantage is really the clean environment for building, that should be reproducible in any machine regardless of setup.
Docker is amazing.

Error: resource busy or locked, error for 3.7.0

Describe the bug
Error: EBUSY: resource busy or locked

To Reproduce
When patching YouTube music, the YouTube app patched normally.

revanced-builder Version:
3.7.0

Desktop (please complete the following information):

  • OS: Microsoft Windows
  • Version: 10 Build:19045.2364

Additional context
[builder] An error occured:
Error: EBUSY: resource busy or locked, unlink '\?\C:\Users\โ€‹[Username]\Desktop\revanced-cache\1.apk'
at unlinkSync (node:fs:1780:3)
at _unlinkSync (node:internal/fs/rimraf:214:14)
at rimrafSync (node:internal/fs/rimraf:195:7)
at node:internal/fs/rimraf:253:9
at Array.forEach ()
at _rmdirSync (node:internal/fs/rimraf:250:7)
at rimrafSync (node:internal/fs/rimraf:193:7)
at rmSync (node:fs:1274:10)
at afterBuild (C:\snapshot\revanced-builder-test\wsEvents\patchApp.js:28:3)
at Socket. (C:\snapshot\revanced-builder-test\wsEvents\patchApp.js:185:53)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.