pylerSM / YouTubeBackgroundPlayback

[Xposed module] Enable background playback in YouTube
http://repo.xposed.info/module/com.pyler.youtubebackgroundplayback
BSD 3-Clause "New" or "Revised" License
315 stars 81 forks source link

12.39.60 doesn't work #348

Closed ArchidGM closed 6 years ago

ArchidGM commented 6 years ago

I try to change the assets in hooks-3 but it doesnt work too.

And how do you know what assets you need to use in every version, Where are you taking them, I'm sorry, I'm new.

th3an7 commented 6 years ago

Why you want to change them? They are always the same - the content is always exact as the previous one - the only change is the class' name...

If you're building .apk on your PC and you want to have your own hooks, you need to change direct link in module source code. It should point to your .json file - if you won't change the URL, the hooks will be downloaded from this repo (if they are updated for current YT app)

ArchidGM commented 6 years ago

Hi, i try to change the assets because it doesn't work when i build the repo, sorry if i don't explain me well. -I started to change the assets because I thought I could make it work but it was not.

th3an7 commented 6 years ago

Are you using Android Studio to build an .apk? Does it show any error or you just installing module's apk and it "doesn't work"?

Do you have Xposed Framework installed, enabled module and rebooted device? Check logcat/xposed logs - they should tell you what's wrong.

ArchidGM commented 6 years ago

Android Studio error:

//////// InvalidVirtualFileAccessException: Accessing invalid virtual file: file://E:/**/Escritorio/YouTubeBackgroundPlayback-master/build/generated/source/r/debug/com/pyler/youtubebackgroundplayback/R.java; original:32168; found:31843 ////////

th3an7 commented 6 years ago

https://stackoverflow.com/questions/42548968/android-studio-invalidvirtualfileaccessexception-accessing-invalid-virtual-fi

ArchidGM commented 6 years ago

I already fix the problem with Android Studio, when I compile I do not have any errors but when installing the apk and restart it still does not work. My xposed works fine but YTB does not work.

Log Xposed attach xposed_error_20171013_163531.log

th3an7 commented 6 years ago

Can you temporarily disable Adaway?

Also, check logcat...

On Fri, Oct 13, 2017 at 11:38 PM ArchidGM notifications@github.com wrote:

I already fix the problem with Android Studio, when I compile I do not have any errors but when installing the apk and restart it still does not work. My xposed works fine but YTB does not work.

Log Xposed attach xposed_error_20171013_163531.log https://github.com/pylerSM/YouTubeBackgroundPlayback/files/1384063/xposed_error_20171013_163531.log

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/348#issuecomment-336573675, or mute the thread https://github.com/notifications/unsubscribe-auth/AMxxbI29WeOhCZhu33w-KfkkWQeOT274ks5sr9g9gaJpZM4P5CFT .

ArchidGM commented 6 years ago

Already disable YoutubeAdaway and restart but it still does not work

th3an7 commented 6 years ago

Have you tried using one of .apk posted in https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/336 ?

ArchidGM commented 6 years ago

Yes but i think is curropt because i can't open it :(

SDMU commented 6 years ago

@th3an7 I am following the method you show in the video . I found the classes corresponding to background mode and audio policy but I cannot find the playability status is null . I don't understand what to look for in zho.class

th3an7 commented 6 years ago

Nothing... you just need to find the class that looks the same as the previous one :P

There should be more info how to find that one class easier somewhere on this repo... probably by @esgie - he uses IDA Pro to find that class :P

On Sat, Oct 14, 2017 at 5:06 AM SDMU notifications@github.com wrote:

@th3an7 https://github.com/th3an7 I am following the method you show in the video . I found the classes corresponding to background mode and audio policy but I cannot find the playability status is null . I don't understand what to look for in zho.class

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/348#issuecomment-336605509, or mute the thread https://github.com/notifications/unsubscribe-auth/AMxxbD67h91liKy97SQg-MKX4P1tjRPoks5ssCVGgaJpZM4P5CFT .

SDMU commented 6 years ago

I see , thanks !

r00tcracker commented 6 years ago

Hey @th3an7 I am kinda new to this, and I am building the APK in Android Studio (I left a comment for you on your Youtube video on how to change the classes, Leonardo :) ) So when you say this "If you're building .apk on your PC and you want to have your own hooks, you need to change direct link in module source code. It should point to your .json file - if you won't change the URL, the hooks will be downloaded from this repo (if they are updated for current YT app)"

Does that mean modify this line public static final String HOOKS_DOWNLOAD_URL = "https://raw.githubusercontent.com/pylerSM/YouTubeBackgroundPlayback/master/assets/hooks-3.json";

To whatever my directory with the modified JSON file is right? Thanks for all your help

th3an7 commented 6 years ago

Yes but you must upload it somewhere where it's possible to read it's content (possibly some sort of FTP server or your own GitHub fork)

If you'll input your local path (something like C:/XXX/ etc.) it won't work because all hooks are downloaded remotely when opening YT app.

On Sun, Oct 15, 2017, 23:34 r00tcracker notifications@github.com wrote:

Hey @th3an7 https://github.com/th3an7 I am kinda new to this, and I am building the APK in Android Studio (I left a comment for you on your Youtube video on how to change the classes, Leonardo :) ) So when you say this "If you're building .apk on your PC and you want to have your own hooks, you need to change direct link in module source code. It should point to your .json file - if you won't change the URL, the hooks will be downloaded from this repo (if they are updated for current YT app)"

Does that mean modify this line public static final String HOOKS_DOWNLOAD_URL = " https://raw.githubusercontent.com/pylerSM/YouTubeBackgroundPlayback/master/assets/hooks-3.json ";

To whatever my directory with the modified JSON file is right? Thanks for all your help

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/348#issuecomment-336743307, or mute the thread https://github.com/notifications/unsubscribe-auth/AMxxbNic7Q_UV0JarmXzAleDf0jv4Femks5ssnpdgaJpZM4P5CFT .

r00tcracker commented 6 years ago

Gotcha @th3an7 Thanks :)

r00tcracker commented 6 years ago

@th3an7 Sorry man, I don't know where to ask this. Is this module compatible with the official Xposed for Nougat? Thanks

th3an7 commented 6 years ago

@r00tcracker apparently it does (https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/336#issuecomment-335034163)

ghost commented 6 years ago

Did anyone try with 12.40.60 though?

r00tcracker commented 6 years ago

@VladMano Yeah, I created a fork from here and updated it for 12.40.60. If you can't wait for @th3an7 to update, you can get it from here. (you will need to compile the APK, and this is pointing to my fork. https://github.com/r00tcracker/YouTubeBackgroundPlayback Hope this is ok @th3an7 ,if not , please delete this reply :)