From 5cb6427de03c527da0a20bb9e091bb5091725ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ordon?= Date: Thu, 21 Jun 2018 14:38:31 +0200 Subject: [PATCH] Changed HOOKS_DOWNLOAD_URL + APP_PACKAGE Reflecting YT Music app package name + hooks... The rest of the code is exactly the same... I won't change LOG_TAG and module package name as it can throw errors when trying to build .apk BEWARE: Without changing modules' package name, you can't have YTBP and YTMBP modules installed at the same time as Android will try to overwrite existing YTBP module (if it's already installed) --- .../youtubebackgroundplayback/YouTubeBackgroundPlayback.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/com/pyler/youtubebackgroundplayback/YouTubeBackgroundPlayback.java b/java/com/pyler/youtubebackgroundplayback/YouTubeBackgroundPlayback.java index ae1ba7d6..02074470 100644 --- a/java/com/pyler/youtubebackgroundplayback/YouTubeBackgroundPlayback.java +++ b/java/com/pyler/youtubebackgroundplayback/YouTubeBackgroundPlayback.java @@ -42,9 +42,9 @@ public class YouTubeBackgroundPlayback implements IXposedHookLoadPackage { private static final String LOG_TAG = "YTBackgroundPlayback"; - private static final String APP_PACKAGE = "com.google.android.youtube"; + private static final String APP_PACKAGE = "com.google.android.apps.youtube.music"; - private static final String HOOKS_DOWNLOAD_URL = "https://raw.githubusercontent.com/pylerSM/YouTubeBackgroundPlayback/master/assets/hooks-3.json"; + private static final String HOOKS_DOWNLOAD_URL = "https://raw.githubusercontent.com/pylerSM/YouTubeBackgroundPlayback/yt-music/assets/hooks-music.json"; private static final ScheduledExecutorService WORKER = Executors.newSingleThreadScheduledExecutor();