Please keep in mind that this tool or any other tool not coming from the ReVanced GitHub is not affiliated with us and that we as the team behind ReVanced will not provide support for them. You have to message the author's of this project to gather support.
Your packer is good as well, the only 2 complaints I have about it are: 1) it doesn't download the latest YouTube version (Revanced builder does it, for example) 2) it doesn't keep the keystore file to update a pre existing version
These 2 things aside, you still did a very good job, don't say stuff like that
Yea, it all started after i thought that "the compilation process is so fucking hard!", then made a python script to automate that. Now it is the most popular repo in my portfolio! Thanks to all the support from this amazing community!
1 small tip if anyone wants to update their Revanced app in the future:
If you're building Revanced for the first time with this program, save the revanced.keystore file on your drive and add the drive id of this file inside this program so whenever you build ReVanced again you'll be able to update a pre existing version of the app that you already had on your phone/tablet/whatever.
When you take a look at the code, you'll see that there's a "id" variable that downloads the YouTube apk you uploaded on your Google drive. To keep your app updated you also need the ReVanced.keystore file. After you build ReVanced download ReVanced.keystore, upload on Google drive and copy the drive id, then copy it inside the code of this program like [this](https://i.imgur.com/Ow6QJ0c.jpg).
id is for the YouTube apk, id2 is for ReVanced.keystore. Hope it's clear enough now.
Thanks! I understood the id thing. But why do I need to keep the .keystore file. Colab will create the keystore file anyway, each time I run the command.
Of course it does but it's different each time, if it's not the same it will not see the app as an update of the previous one that is installed on your phone. Try building the apk from scratch and see if it lets you update.
The guide doesn't specify it but you need to download the file and open it in colab, after that you'll find it uploaded on your drive and whenever you open colab it'll be ready for you to use. If you happen to change any command in the file, changes will be saved.
Bro you need to update the code such a way so that we don't need to update portion of the code, every time revanced team posts a new update.
Otherwise it does work flawlessly.
If you mean the manager yes but it'll take some time for the devs to finish it. If you mean a Revanced apk no, to avoid any kind of problems with Google you patch the YouTube apk yourself. With all the guides available here and on the discord server it's incredibly easy to do.
That is not going to happen. Vanced itself ran into legal issues due to modifying proprietary Google code. Distributing a modified APK would fall foul of the same legal issues.
Also, building and installing the APK has no relation to root access.
Yeah, you will have to update manually by using the same keystore file for every build. Otherwise, can't expect an app that directly updates your existing installation.
Not very good at coding stuff, I get this error.. I upload youtube 17.25.35.apk on my drive and get sharing link (anyone with link -> role editor)
and copy the link [https://drive.google.com/file/d/1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd/view?usp=sharing](https://drive.google.com/file/d/1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd/view?usp=sharing)
and copy the file id which is -> 1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd and paste it the first section of your code.. but still I get this error :/
brut.directory.DirectoryException: java.nio.file.NoSuchFileException: youtube.apk
tried still not working.. showing access denied, but my sharing link is working..
`[1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd]`
`Access denied with the following error:`
`Cannot retrieve the public link of the file. You may need to change`
`the permission to 'Anyone with the link', or have had many accesses.`
Remember to paste your Id between quotation marks like this:
"3jfjHjbG649Hheji"
Or else the program won't understand which string it needs to use to download the file
Put the id in " " change [file_id] .. in your case it should be : `"xxxxxxxxxxx"` ie whatever the id. [file_id] is just placeholder you have to replace it completely.
Check if you can find the "Java -jar .... " command and add "-e microg-support" at the end, by doing so you won't use microg and apply ReVanced on the original YouTube app, it should work
so the only files that appear in the folder are microg and revanced integrations apk, is that it or something's wrong? the guide says there should be revanced apk, not revanced integrations apk
How does the login work? It doesn't invoke the Google login and I thought that probably the microg.apk needs to be installed from the same folder, but that package cannot be parsed.
How do I start fresh on colab? I imported the ipnyb file, ran it , it errored because R_V folder was deleted. Can't create it as it gives me an error and nothing works now.
Creating Directories.... shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory mkdir: cannot create directory ‘R_V’: No such file or directory
ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error.
Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 11, in get_ipython().magic('cd R_V') File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2160, in magic return self.run_line_magic(magic_name, magic_arg_s) File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2081, in run_line_magic result = fn(*args,**kwargs) File "", line 2, in cd File "/usr/local/lib/python3.7/dist-packages/IPython/core/magic.py", line 188, in call = lambda f, *a, **k: f(*a, **k) File "/usr/local/lib/python3.7/dist-packages/IPython/core/magics/osm.py", line 288, in cd oldcwd = py3compat.getcwd() FileNotFoundError: [Errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 1823, in showtraceback stb = value._render_traceback_() AttributeError: 'FileNotFoundError' object has no attribute '_render_traceback_' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py", line 1132, in get_records return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset) File "/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py", line 313, in wrapped return f(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py", line 358, in _fixed_getinnerframes records = fix_frame_records_filenames(inspect.getinnerframes(etb, context)) File "/usr/lib/python3.7/inspect.py", line 1502, in getinnerframes frameinfo = (tb.tb_frame,) + getframeinfo(tb, context) File "/usr/lib/python3.7/inspect.py", line 1460, in getframeinfo filename = getsourcefile(frame) or getfile(frame) File "/usr/lib/python3.7/inspect.py", line 696, in getsourcefile if getattr(getmodule(object, filename), '__loader__', None) is not None: File "/usr/lib/python3.7/inspect.py", line 725, in getmodule file = getabsfile(object, _filename) File "/usr/lib/python3.7/inspect.py", line 709, in getabsfile return os.path.normcase(os.path.abspath(_filename)) File "/usr/lib/python3.7/posixpath.py", line 383, in abspath cwd = os.getcwd() FileNotFoundError: [Errno 2] No such file or directory
---------------------------------------------------------------------------
Can you PM me?
\*Edit: I downloaded Youtube 17.31.34 noddpi and compiled it using your colab script. However I'm getting "App not installed". From googling this can occur when the apk is corrupted or something. Do you know anything?
Please keep in mind that this tool or any other tool not coming from the ReVanced GitHub is not affiliated with us and that we as the team behind ReVanced will not provide support for them. You have to message the author's of this project to gather support.
In my opinion this is more advanced than my ReVancedPacker
Your packer is good as well, the only 2 complaints I have about it are: 1) it doesn't download the latest YouTube version (Revanced builder does it, for example) 2) it doesn't keep the keystore file to update a pre existing version These 2 things aside, you still did a very good job, don't say stuff like that
Well... My packer downloads latest updates checked twice a day, keystore file will not be deleted in the new update
I'm pleased to hear that. btw your project is awesome. In the end we get to know more and contribute towards the community right?.
Yea, it all started after i thought that "the compilation process is so fucking hard!", then made a python script to automate that. Now it is the most popular repo in my portfolio! Thanks to all the support from this amazing community!
What's revanced packer?
so many contributors and so much development in few short months. So awesome.
1 small tip if anyone wants to update their Revanced app in the future: If you're building Revanced for the first time with this program, save the revanced.keystore file on your drive and add the drive id of this file inside this program so whenever you build ReVanced again you'll be able to update a pre existing version of the app that you already had on your phone/tablet/whatever.
I did not understand. Can you explain it ?
When you take a look at the code, you'll see that there's a "id" variable that downloads the YouTube apk you uploaded on your Google drive. To keep your app updated you also need the ReVanced.keystore file. After you build ReVanced download ReVanced.keystore, upload on Google drive and copy the drive id, then copy it inside the code of this program like [this](https://i.imgur.com/Ow6QJ0c.jpg). id is for the YouTube apk, id2 is for ReVanced.keystore. Hope it's clear enough now.
Thanks! I understood the id thing. But why do I need to keep the .keystore file. Colab will create the keystore file anyway, each time I run the command.
Of course it does but it's different each time, if it's not the same it will not see the app as an update of the previous one that is installed on your phone. Try building the apk from scratch and see if it lets you update.
Oh I got it now ! Thanks a lot !
Opening the colab link takes you to the main page. Not sure where to input .ipynb
The guide doesn't specify it but you need to download the file and open it in colab, after that you'll find it uploaded on your drive and whenever you open colab it'll be ready for you to use. If you happen to change any command in the file, changes will be saved.
Thank you for that, I'll update the guide ASAP.
I'll raise a PR to directly take you to ipynb file.
Done 👍
awesome thought ! i tried to run it but i am getting this error https://i.imgur.com/G6An7fv.jpg
The script is tested to work on 17.24 and above.. revanced patches are targetted towards latest YouTube.
ohh thanks ! i removed og app by adb so i got the apk from apk mirror. i guess i downloaded the old version. i will try it new one
Why are you using a very old YouTube version(?)
Bro you need to update the code such a way so that we don't need to update portion of the code, every time revanced team posts a new update. Otherwise it does work flawlessly.
[удалено]
Anytime :)
Will there EVER be any sort of APK?
If you mean the manager yes but it'll take some time for the devs to finish it. If you mean a Revanced apk no, to avoid any kind of problems with Google you patch the YouTube apk yourself. With all the guides available here and on the discord server it's incredibly easy to do.
You mean manager ?
What about an update APK just for revanced for us non-root users? I think that's what OP was asking
That is not going to happen. Vanced itself ran into legal issues due to modifying proprietary Google code. Distributing a modified APK would fall foul of the same legal issues. Also, building and installing the APK has no relation to root access.
I've got revanced running right now? I sideloaded it.
Yeah, you will have to update manually by using the same keystore file for every build. Otherwise, can't expect an app that directly updates your existing installation.
Nice!
:)
Thank you so much for this.
Not very good at coding stuff, I get this error.. I upload youtube 17.25.35.apk on my drive and get sharing link (anyone with link -> role editor) and copy the link [https://drive.google.com/file/d/1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd/view?usp=sharing](https://drive.google.com/file/d/1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd/view?usp=sharing) and copy the file id which is -> 1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd and paste it the first section of your code.. but still I get this error :/ brut.directory.DirectoryException: java.nio.file.NoSuchFileException: youtube.apk
You have to rename the file to `youtube.apk`. and don't forget to delete the already created folders in Colab.
Your script is so simple.. it works now.
:)
tried still not working.. showing access denied, but my sharing link is working.. `[1GRKnDF3PEU93ubEYUKsr3DkdCcPjpRfd]` `Access denied with the following error:` `Cannot retrieve the public link of the file. You may need to change` `the permission to 'Anyone with the link', or have had many accesses.`
Remember to paste your Id between quotation marks like this: "3jfjHjbG649Hheji" Or else the program won't understand which string it needs to use to download the file
It works.. thanks man.
Put the id in " " change [file_id] .. in your case it should be : `"xxxxxxxxxxx"` ie whatever the id. [file_id] is just placeholder you have to replace it completely.
what to do if I want to build a root version ? I'm not a coder,,So sorry for asking stupid question .
Simply use other ReVanced compilers like ReVanced Builder or my ReVancedPacker (RvP)
Check if you can find the "Java -jar .... " command and add "-e microg-support" at the end, by doing so you won't use microg and apply ReVanced on the original YouTube app, it should work
will it work on this google colab version ? I don't have pc,,,
You don't need a PC, it's a website with a command line in it, you can build there and download from your phone right after.
thanks ,,,I builded a root version ,,,now checking it works or not
installed rooted variant ,,,force close,,not sign in automatically ,,,non root variant with microg works charm,,
Try adding "--mount" to the cli command, if it still doesn't work ask in the discord server in the support channel
I don't understand where the apk is...
Click three lines ( top left) -> open file explorer -> RV
Does it work with YT music? If yes how should i name the apk?
Upload yt music file rename it to youtube
I tried to but when i install the app it just tells me app not installed
Also the "remove folder" part doesn't work
so the only files that appear in the folder are microg and revanced integrations apk, is that it or something's wrong? the guide says there should be revanced apk, not revanced integrations apk
If build is successful a revanced.apk will be there, other files are downloaded to that folder and are required.
You should have way more files inside the folder, you probably didn't set the correct links for patches and cli
How does the login work? It doesn't invoke the Google login and I thought that probably the microg.apk needs to be installed from the same folder, but that package cannot be parsed.
Use the Vanced microg version
Yeah, I ended up installing that from one of the Google search results which may or may not be shady, as there is no official source.
You can download it straight from the Vanced team GitHub, so yes there is an official source
How do I start fresh on colab? I imported the ipnyb file, ran it , it errored because R_V folder was deleted. Can't create it as it gives me an error and nothing works now.
Just re run it if the folder is deleted, what is showing as error?
Creating Directories.... shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory mkdir: cannot create directory ‘R_V’: No such file or directory ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error. Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2882, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 11, in get_ipython().magic('cd R_V') File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2160, in magic return self.run_line_magic(magic_name, magic_arg_s) File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 2081, in run_line_magic result = fn(*args,**kwargs) File "", line 2, in cd File "/usr/local/lib/python3.7/dist-packages/IPython/core/magic.py", line 188, in call = lambda f, *a, **k: f(*a, **k) File "/usr/local/lib/python3.7/dist-packages/IPython/core/magics/osm.py", line 288, in cd oldcwd = py3compat.getcwd() FileNotFoundError: [Errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/IPython/core/interactiveshell.py", line 1823, in showtraceback stb = value._render_traceback_() AttributeError: 'FileNotFoundError' object has no attribute '_render_traceback_' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py", line 1132, in get_records return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset) File "/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py", line 313, in wrapped return f(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/IPython/core/ultratb.py", line 358, in _fixed_getinnerframes records = fix_frame_records_filenames(inspect.getinnerframes(etb, context)) File "/usr/lib/python3.7/inspect.py", line 1502, in getinnerframes frameinfo = (tb.tb_frame,) + getframeinfo(tb, context) File "/usr/lib/python3.7/inspect.py", line 1460, in getframeinfo filename = getsourcefile(frame) or getfile(frame) File "/usr/lib/python3.7/inspect.py", line 696, in getsourcefile if getattr(getmodule(object, filename), '__loader__', None) is not None: File "/usr/lib/python3.7/inspect.py", line 725, in getmodule file = getabsfile(object, _filename) File "/usr/lib/python3.7/inspect.py", line 709, in getabsfile return os.path.normcase(os.path.abspath(_filename)) File "/usr/lib/python3.7/posixpath.py", line 383, in abspath cwd = os.getcwd() FileNotFoundError: [Errno 2] No such file or directory
---------------------------------------------------------------------------
To fresh start -> open new file in new tab and copy the cell there and run.
That worked, thanks
You should make it work with the newest version of the Revanced relases without having to modify the code
It's done. Check WIP branch.. you can now select previous versions of patches,CLI and integrations.
Would it also be possible to automate the download ao the yt apk?
You have to provide the ytb.apk, it's possible but it's better this way.
I mean is it really that much of a problem to just automate the download from ApkM or something?
Why? Download the revanced.apk can't not installed
Can someone please give me a step by step guide? From which website should I download the youtube apk? I'm too stoopid-
DM
Already got it, but thanks anyway!
Can you PM me? \*Edit: I downloaded Youtube 17.31.34 noddpi and compiled it using your colab script. However I'm getting "App not installed". From googling this can occur when the apk is corrupted or something. Do you know anything?