There is a much simpler way to download either full videos or audio rips from YouTube, using only an Android terminal. In this Appuals guide, we will show you exactly how to accomplish this, no root required!
Requirements
The first step is to download and install the terminal emulator of your choice. Give the terminal app storage permissions if they are not requested on launch by default. You can do this by going into your Settings > Apps > (emulator app) > Permissions > Enable Storage Access. Now in the terminal app, enter all of the following commands on individual lines: (The last command is going to install nano text editor. This will allow us to easily set up our config file for the youtube-dl process). Open your youtube-dl config file in nano text editor with this terminal command: Now add the following lines to the config file: Now because there is no CTRL+S to save our changes in nano editor, we need to use the volume keys instead of CTRL as a keyboard (unless you are using a keyboard over USB-OTG). So to save your config file in nano, press Volume Down + O (on the Android screen keyboard), and exit with Volume Down + X. Now when you are back in the terminal emulator, you need to type a few more commands. This will link Youtube-dl’s native terminal commands to the “Share” menu in the official YouTube app. And we will create and config a new file in nano once again: And add the following line to this new config file, then save and exit nano. Now we are ready to test everything. You can launch YouTube and go to any video, then tap the “Share” button. You should see a Termux button and icon. Pressing this button will download the video to your Android phone!
Fix: Pseudo-terminal will not be allocated because stdin is not a terminalHow to: Download YouTube Videos on Your iPhoneHow To Download Videos From YouTubeFix: YouTube Videos Not Playing on Android