Coder Social home page Coder Social logo

re-vanced's Introduction

Re-Vanced

Google colab Re-Vanced Builder.

Contributors

4 simple steps that's it.

⭐ The project if it works. Follow me for updates.


  1. Open .ipynb in Google Colab
  2. Upload and copy id for youtube.apk from drive.
    • Run the script, more info there.
  3. Wait for the script to build, once you start it.
  4. Download your Revanced..!

You could manually provide compilation commands. but by default it uses non-root method from official docs with -d device-name omitted.

java -jar revanced-cli-all.jar -a some.apk -c -d device-name -o revanced.apk -b revanced-patches.jar 

⚠️ This is not official revanced page. You can find it here

re-vanced's People

Contributors

bartek20 avatar jarvis-ank avatar mrpurple666 avatar thomas930 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

Watchers

 avatar  avatar

re-vanced's Issues

[Bug]: Script finished with errors, no APK

What happened?

I ran the patch and I can't find the APK anywhere. It says patched with errors and I don't know why.

Logs (content of the /logs/app.log file)

cmd.log
build.log
app (1).log

This is what it shows in the collab window.

<>:85: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:101: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:213: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:217: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:221: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:225: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:226: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:85: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:101: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:213: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:217: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:221: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:225: SyntaxWarning: "is" with a literal. Did you mean "=="?
<>:226: SyntaxWarning: "is" with a literal. Did you mean "=="?
:85: SyntaxWarning: "is" with a literal. Did you mean "=="?
if mode is 'VERSION':
:101: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif mode is 'APK':
:109: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif mode is 'DOWNLOAD':

Startup variables <<<<< <<<<<
BUILDER_MODE: Google Drive
YOUTUBE_ID: https://drive.google.com/file/d/1gr1LNDTt61HTYE74XW0Pn5XA8ONdyht8/view?usp=sharing
INTEGRATIONS_TAG: LATEST
PATCHES_TAG: LATEST
CLI_TAG: LATEST
MICROG_URL: DEFAULT

[STEP 1/6] >>>>> >>>>> Creating working directories <<<<< <<<<<
[1/3] Logs folder
[2/3] Downloads folder
[3/3] ReVanced Folder

[STEP 2/6] >>>>> >>>>> Checking whether the system is up-to-date <<<<< <<<<<
[1/2] System update
[2/2] System upgrade

[STEP 3/6] >>>>> >>>>> Installing necessary apps <<<<< <<<<<
[1/2] gdown
[2/2] Zulu JDK-17

[STEP 4/6] >>>>> >>>>> Downloading necessary files <<<<< <<<<<
[1/5] Integrations
:213: SyntaxWarning: "is" with a literal. Did you mean "=="?
if INTEGRATIONS_TAG is 'LATEST' or not check_tag('revanced-integrations', INTEGRATIONS_TAG): INTEGRATIONS_TAG = get_tag('revanced/revanced-integrations')
[2/5] Patches
:217: SyntaxWarning: "is" with a literal. Did you mean "=="?
if PATCHES_TAG is 'LATEST' or not check_tag('revanced-patches', PATCHES_TAG): PATCHES_TAG = get_tag('revanced/revanced-patches')
[3/5] CLI
:221: SyntaxWarning: "is" with a literal. Did you mean "=="?
if CLI_TAG is 'LATEST' or not check_tag('revanced-cli', CLI_TAG): CLI_TAG = get_tag('revanced/revanced-cli')
[4/5] MicroG
:225: SyntaxWarning: "is" with a literal. Did you mean "=="?
if MICROG_URL is 'DEFAULT': MICROG_URL = 'https://github.com/Jarvis-Ank/Re-Vanced/blob/main/microG_0.2.24.220220.apk'
:226: SyntaxWarning: "is" with a literal. Did you mean "=="?
if MICROG_URL is 'LATEST': MICROG_URL = get_tag('microg/GmsCore', True)
[5/5] Youtube

[STEP 5/6] >>>>> >>>>> Building revanced apk <<<<< <<<<<
INFO: Reading dex files
INFO: Decoding AndroidManifest.xml only, because resources are not needed
INFO: Skipping custom-video-buffer: Excluded by default
INFO: Skipping export-all-activities: Excluded by default
INFO: Skipping predictive-back-gesture: Excluded by default
INFO: Skipping remove-screenshot-restriction: Excluded by default
INFO: Skipping spoof-wifi-connection: Excluded by default
INFO: Merging ./ReVanced/revanced-integrations.apk
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at org.jf.dexlib2.util.DexUtil.verifyDexHeader(DexUtil.java:91)
at lanchon.multidexlib2.RawDexIO.readRawDexFile(RawDexIO.java:53)
at lanchon.multidexlib2.RawDexIO.readRawDexFile(RawDexIO.java:43)
at lanchon.multidexlib2.MultiDexIO.readMultiDexContainer(MultiDexIO.java:66)
at lanchon.multidexlib2.MultiDexIO.readMultiDexContainer(MultiDexIO.java:51)
at lanchon.multidexlib2.MultiDexIO.readMultiDexContainer(MultiDexIO.java:42)
at lanchon.multidexlib2.MultiDexIO.readDexFile(MultiDexIO.java:36)
at app.revanced.patcher.PatcherContext$Integrations.merge(PatcherContext.kt:35)
at app.revanced.patcher.Patcher$executePatches$1.invokeSuspend(Patcher.kt:339)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlin.sequences.SequenceBuilderIterator.hasNext(SequenceBuilder.kt:127)
at app.revanced.utils.patcher.PatcherKt.applyPatchesVerbose(Patcher.kt:83)
at app.revanced.cli.patcher.Patcher.start$revanced_cli(Patcher.kt:20)
at app.revanced.cli.command.MainCommand.run(MainCommand.kt:155)
at picocli.CommandLine.executeUserObject(CommandLine.java:2026)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at app.revanced.cli.main.MainKt.main(Main.kt:7)

[STEP 6/6] >>>>> >>>>> Finishing <<<<< <<<<<
[1/2] Moving output file
mv: cannot stat './ReVanced/revanced.apk': No such file or directory
[2/2] Removing temporary files

[FINISHED] Script finished with errors, LOGS download'll start automaticaly within few seconds.

Code of Conduct

  • I confirm and agree to contact me by pinging me in this thread in case of questions.

download error message

on download i have this error message and the file wont download completed any ideas for this issue?
is it a problem using idm to download the file and not the browser?

Failed to fetch
TypeError: Failed to fetch
at va.program_ (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:5723:433)
at xa (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:20:336)
at va.next_ (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:18:474)
at ya.next (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:21:206)
at https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:22:115
at new Promise ()
at faa (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:22:8)
at H (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:22:147)
at k.fetch (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:5723:65)
at va.program_ (https://colab.research.google.com/v2/external/external_polymer_binary_l10n__el.js?vrz=colab-20220902-060047-RC00_471746797:5810:169)

Gdown not working properly with some ID's

I had issues with the ID sharing part of the google drive.
To fix the issue i just replaced
gdown $id
with
gdown --id id_of_file

Just in case someone struggle with it !

This is what I get when trying to compile. End result is that there's no 'revanced.apk' in the folder.

brut.androlib.AndrolibException: Could not load resources.arsc from file: youtube.apk
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:788)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:66)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:58)
at brut.androlib.Androlib.getResTable(Androlib.java:74)
at app.revanced.patcher.Patcher.(Patcher.kt:59)
at app.revanced.cli.command.MainCommand.run(MainCommand.kt:141)
at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at app.revanced.cli.main.MainKt.main(Main.kt:7)

Protected Branch

@Jarvis-Ank could you disable the protected branch in the repository, because I can't make changes directly in the main branch, but I have to create separate ones for each patch.

link error .. and capturing file

1/Using the instructions copying the link GDrive provides will give you a filenotfound error - it actually explains this in the code result but the average pleb will not even see this. Link has to be structured like https://drive.google.com/uc?id=...file..id.. which you can easily just add in your file id from the link first provided https://drive.google.com/file/d/.....file...id..here../view?usp=sharing

2/ most that are probably going to use this are prob not going to have any clue as to how to get the file once it has run completely - I added this before the rm folder command - it copies file to your gdrive main dir (remove " from 1st and 4th lines)

"# mount it"
from google.colab import drive
drive.mount('/content/drive')
"# copy it there"
!cp revanced.apk "/content/drive/My Drive/"

Awesome work tho btw, thx 4 spending the time to he rid us of those ****** ads

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.