- PVSM.RU - https://www.pvsm.ru -
Статья навеяна этой новостью [1] на Хабре
Печальные новости [2] о проекте YouTube Vanced. Гугл потребовал закрытия проекта и удаления готовых дистрибутивов. Разработчики подчинились. Поэтому больше YouTube Vanced с официального сайта не скачать. Возможно есть где-нибудь на зеркалах, но надо быть осторожным. В дистрибутиве могут быть вредные присадки.
Чем был хорош YouTube Vanced:
Но дело освобождения от рекламы живет и побеждает… ну почти. Теперь есть проект ReVanced [3]. Позволяет самостоятельно пропатчить установочный файл YouTube.
Документация [4] у них зачаточном состоянии. Но испытать проект на себе можно. Официальные требования [5] для того, чтобы попробовать:
WARNING: Skipping seekbar-tapping: Incompatible with version 17.24.35. This patch is only compatible with version com.google.android.youtube: 17.17.34, 17.19.36, 17.20.37, 17.22.36, 17.23.35, 17.23.36, 17.24.34
Вначале я попытался пойти по этой инструкции [9]. Но она устарела. Ключи запуска изменились. Ссылки на пакеты устарели.
У меня последовательность действий получилась следующая:
PS C:UsersEvgeniy> cd C:Softplatform-tools PS C:Softplatform-tools> ls Каталог: C:Softplatform-tools Mode LastWriteTime Length Name ---- ------------- ------ ---- ------ 01.01.2008 0:00 5989376 adb.exe ------ 01.01.2008 0:00 97792 AdbWinApi.dll ------ 01.01.2008 0:00 62976 AdbWinUsbApi.dll ------ 01.01.2008 0:00 241664 dmtracedump.exe ------ 01.01.2008 0:00 436224 etc1tool.exe ------ 01.01.2008 0:00 1649152 fastboot.exe ------ 01.01.2008 0:00 44032 hprof-conv.exe ------ 01.01.2008 0:00 231594 libwinpthread-1.dll ------ 01.01.2008 0:00 489984 make_f2fs.exe ------ 01.01.2008 0:00 489984 make_f2fs_casefold.exe ------ 01.01.2008 0:00 1157 mke2fs.conf ------ 01.01.2008 0:00 752128 mke2fs.exe ------ 01.01.2008 0:00 2834292 NOTICE.txt -a---- 25.06.2022 22:22 45397186 revanced-cli-1.11.1-all.jar -a---- 25.06.2022 22:20 1816001 revanced-integrations.apk -a---- 25.06.2022 23:22 2040 revanced-integrations.keystore -a---- 25.06.2022 22:10 114924 revanced-patches-1.10.5.dex -a---- 25.06.2022 22:10 251013 revanced-patches-1.10.5.jar -a---- 26.06.2022 0:08 2040 revanced.keystore ------ 01.01.2008 0:00 37 source.properties ------ 01.01.2008 0:00 1162752 sqlite3.exe -a---- 25.06.2022 22:21 137603855 youtube.apk -a---- 25.06.2022 23:35 137603855 youtube1.apk
PS C:Softplatform-tools> java Usage: java [options] <mainclass> [args...] (to execute a class) or java [options] -jar <jarfile> [args...] (to execute a jar file) or java [options] -m <module>[/<mainclass>] [args...] java [options] --module <module>[/<mainclass>] [args...] (to execute the main class in a module) or java [options] <sourcefile> [args] (to execute a single source-file program) Arguments following the main class, source file, -jar <jarfile>, -m or --module <module>/<mainclass> are passed as the arguments to main class. ..........
PS C:Softplatform-tools> adb devices * daemon not running; starting now at tcp:5037 * daemon started successfully List of devices attached 12345678 unauthorized
PS C:Softplatform-tools> ./adb devices List of devices attached 12345678 device
PS C:Softplatform-tools> java.exe -jar .revanced-cli-1.11.1-all.jar -b .revanced-patches-1.10.5.jar -l INFO: seekbar-tapping: Enable tapping on the seekbar of the YouTube player. INFO: general-ads: Patch to remove general ads in bytecode. INFO: video-ads: Patch to remove ads in the YouTube video player. INFO: custom-branding: Change the branding of YouTube. INFO: premium-heading: Show the premium branding on the the YouTube home screen. INFO: minimized-playback: Enable minimized and background playback. INFO: disable-fullscreen-panels: Disable comments panel in fullscreen view. INFO: old-quality-layout: Enable the original quality flyout menu. INFO: disable-create-button: Disable the create button. INFO: amoled: Enables pure black theme. INFO: disable-shorts-button: Hide the shorts button. INFO: hide-cast-button: Patch to hide the cast button. INFO: microg-support: Patch to allow YouTube ReVanced to run without root and under a different package name. INFO: background-play: Enable playing music in the background. INFO: exclusive-audio-playback: Add the option to play music without video. INFO: codecs-unlock: Enables more audio codecs. Usually results in better audio quality but may depend on song and device. INFO: upgrade-button-remover: Remove the upgrade tab from the pivot bar in YouTube music. INFO: tasteBuilder-remover: Removes the "Tell us which artists you like" card from the Home screen. The same functionality can be triggered from the settings anyway
PS C:Softplatform-tools> java.exe -jar .revanced-cli-1.11.1-all.jar -h Usage: ReVanced-CLI [-hV] (-b=<patchBundles> [-b=<patchBundles>]... [-l] [-a=<inputFile> -o=<outputPath> [-e=<excludedPatches>]... [-r] [--experimental] [-m=<mergeFiles>]... [--mount] [--cn=<cn>] [--keystore=<keystorePath>] [-p=<password>] [-d=<deploy>] [-t=<cacheDirectory>] [-c]]) -a, --apk=<inputFile> Input file to be patched -b, --bundles=<patchBundles> One or more bundles of patches -c, --clean Clean the temporal resource cache directory. This will be done anyways when running the patcher --cn=<cn> Overwrite the default CN for the signed file -d, --deploy-on=<deploy> If specified, deploy to adb device with given name -e, --exclude=<excludedPatches> Explicitly exclude patches --experimental Disable patch version compatibility patch -h, --help Show this help message and exit. --keystore=<keystorePath> File path to your keystore -l, --list List patches only -m, --merge=<mergeFiles> One or more dex file containers to merge --mount If specified, instead of installing, mount -o, --out=<outputPath> Output file path -p, --password=<password> Overwrite the default password for the signed file -r, --resource-patcher Disable patching resources -t, --temp-dir=<cacheDirectory> Temporal resource cache directory -V, --version Print version information and exit.
PS C:Softplatform-tools> java.exe -jar .revanced-cli-1.11.1-all.jar -a .youtube1.apk -c -d 12345678 -o .revanced.apk -b .revanced-patches-1.10.5.jar -m .revanced-integrations.apk INFO: Decoding resources INFO: Reading dex files INFO: Merging .revanced-integrations.apk WARNING: Skipping background-play: Incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music WARNING: Skipping exclusive-audio-playback: Incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music WARNING: Skipping codecs-unlock: Incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music WARNING: Skipping upgrade-button-remover: Incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music WARNING: Skipping tasteBuilder-remover: Incompatible with com.google.android.youtube. This patch is only compatible with com.google.android.apps.youtube.music INFO: seekbar-tapping succeeded INFO: general-ads succeeded INFO: video-ads succeeded INFO: custom-branding succeeded INFO: premium-heading succeeded INFO: minimized-playback succeeded INFO: disable-fullscreen-panels succeeded INFO: old-quality-layout succeeded INFO: disable-create-button succeeded INFO: amoled succeeded INFO: disable-shorts-button succeeded INFO: hide-cast-button succeeded INFO: microg-support succeeded INFO: Compiling resources INFO: Writing modified dex files INFO: Writing dex file classes.dex INFO: Writing dex file classes3.dex INFO: Writing dex file classes2.dex INFO: Writing dex file classes4.dex INFO: Writing dex file classes6.dex INFO: Writing dex file classes5.dex INFO: Writing dex file classes7.dex INFO: Writing dex file classes8.dex INFO: Writing resources INFO: Aligning revanced_raw.apk INFO: Signing revanced_aligned.apk INFO: Found existing keystore: revanced INFO: Copying revanced_signed.apk to revanced.apk INFO: Installing without mounting INFO: Finished
Пример команды, если мы хотим исключить некоторые патчи:
java.exe -jar .revanced-cli-1.11.1-all.jar -a .youtube1.apk -c -d 6535d72f -o .revanced.apk -b .revanced-patches-1.10.5.jar -m .revanced-integrations.apk -e custom-branding -e premium-heading -e amoled
Из замеченных минусов — нет тонкой настройки видео, как было в YouTube Vanced. И нет фильтра на рекламную интеграцию авторов видео. И явный минус — всю эту операцию надо делать регулярно с выходом новых версий Ютуба и патчей ReVanced к нему
Телеграмм-канал команды [13]
Сообщество на Reddit [14]
Автор: Евгений
Источник [15]
Сайт-источник PVSM.RU: https://www.pvsm.ru
Путь до страницы источника: https://www.pvsm.ru/android/376343
Ссылки в тексте:
[1] этой новостью: https://habr.com/ru/news/t/672476/
[2] новости: https://www.theverge.com/2022/3/13/22975890/youtube-vanced-app-discontinued-shutting-down-legal-reasons
[3] ReVanced: https://github.com/revanced
[4] Документация: https://github.com/revanced/revanced-documentation
[5] Официальные требования: https://github.com/revanced/revanced-documentation/wiki/Prerequisites
[6] официального сайта: https://developer.android.com/studio/releases/platform-tools.html
[7] тут: https://www.apkmirror.com/apk/google-inc/youtube/
[8] тут: https://www.azul.com/downloads/?package=jdk#download-openjdk
[9] этой инструкции: https://www.paget96projects.com/guides/revanced-is-here-and-here-is-how-you-can-install-it
[10] revanced-cli: https://github.com/revanced/revanced-cli/releases/tag/v1.11.1
[11] revanced-patches: https://github.com/revanced/revanced-patches/releases/tag/v1.10.5
[12] revanced-integrations: https://github.com/revanced/revanced-integrations/releases/tag/v0.15.0
[13] Телеграмм-канал команды: https://t.me/app_revanced
[14] Сообщество на Reddit: https://www.reddit.com/r/revancedapp/
[15] Источник: https://habr.com/ru/post/673460/?utm_source=habrahabr&utm_medium=rss&utm_campaign=673460
Нажмите здесь для печати.