1. #更新源
    2. termux-change-repo
    3. #允许存储权限
    4. termux-setup-storage
    5. #安装最新版python
    6. apt install python
    7. #安卓视频下载器
    8. apt install ffmpeg
    9. #安卓you-get
    10. pip3 install you-get
    11. #查询python安装路径
    12. $ which python
    13. /data/data/com.termux/files/usr/bin/python
    14. you-get https://b23.tv/yTQoKeq
    15. site: Bilibili
    16. title: 【技术杂谈】Android逆向:简单安卓app破解(以xx音乐为例)教程
    17. stream:
    18. - format: dash-flv
    19. container: mp4
    20. quality: 高清 1080P
    21. size: 74.6 MiB (78223690 bytes)
    22. # download-with: you-get --format=dash-flv [URL]
    23. Downloading 【技术杂谈】Android逆向:简单安卓app破解(以xx音乐为例)教程.mp4 ...
    24. 100% ( 74.6/ 74.6MB) ├████████████████┤[2/2] 4 MB/s
    25. Merging video parts... Merged into 【技术杂谈】Android逆向:简单安卓app破解(以xx音乐为例)教程.mp4
    26. Downloading 【技术杂谈】Android逆向:简单安卓app破解(以xx音乐为例)教程.cmt.xml ...
    27. $

    Screenshot_2022-06-09-02-21-25-276_bin.mt.plus.jpg
    最终,视频保存在这里/data/data/com.termux/files/home/芷荷随身wifi刷入面具及全网通.mp4

    在这个过程中是不需要root权限的
    那么如果我们要获取root权限,怎么办呢?
    既可以通过apt,也可以通过pkg进行安装tsu

    1. $
    2. $ apt search tsu
    3. Sorting... Done
    4. Full Text Search... Done
    5. tsu/stable 8.6.0 all
    6. A su wrapper for Termux
    7. $ pkg search tsu
    8. Sorting... Done
    9. Full Text Search... Done
    10. tsu/stable 8.6.0 all
    11. A su wrapper for Termux
    12. $ apt install tsu
    13. Reading package lists... Done
    14. Building dependency tree
    15. Reading state information... Done
    16. The following NEW packages will be installed:
    17. tsu
    18. 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
    19. Need to get 4508 B of archives.
    20. After this operation, 57.3 kB of additional disk space will be used.
    21. Get:1 https://mirrors.tuna.tsinghua.edu.cn/termux/termux-packages-24 stable/main aarch64 tsu all 8.6.0 [4508 B]
    22. Fetched 4508 B in 0s (8258 B/s)
    23. Selecting previously unselected package tsu.
    24. (Reading database ... 14828 files and directories currently installed.)
    25. Preparing to unpack .../apt/archives/tsu_8.6.0_all.deb ...
    26. Unpacking tsu (8.6.0) ...
    27. Setting up tsu (8.6.0) ...

    输入su,即可弹出获取root权限的窗口