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

Please tell me the role of these json files #372

Closed ohyeah521 closed 5 years ago

ohyeah521 commented 5 years ago

Hello, I am a developer. What is the difference between asking these json files?

hooks-1.json // what about this? hooks-2.json // what about this?
hooks-3-41.json // android4.4+ hooks-3.json // android 5.0+

th3an7 commented 5 years ago

Those are hooks files with all classes that should be modified by Xposed Framework

Those 2 first are old files that were used when module wasn't being updated remotely...

First one is super old so it can be skipped... Second one is for version 5.0+ that was used in previous versions and it still could be used so I am keeping it updated just in case... Third and forth are current hooks for Android 5.0+ and Android 4.2+ - they are separate because classes in those versions are different from each other.

On Fri, Jun 14, 2019, 08:41 ohyeah521 notifications@github.com wrote:

Hello, I am a developer. What is the difference between asking these json files?

hooks-1.json // what about this? hooks-2.json // what about this? hooks-3-41.json // android4.4+ hooks-3.json // android 5.0+

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pylerSM/YouTubeBackgroundPlayback/issues/372?email_source=notifications&email_token=ADGHC3EFR3U7AVFXI2JVCELP2M4S7A5CNFSM4HYE6NDKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZPKFGQ, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGHC3CKAABUXLTHBGDF4X3P2M4S7ANCNFSM4HYE6NDA .

ohyeah521 commented 5 years ago

Thank you, I know, this is the new configuration of YT 142350 version, I am not familiar with the usage of GitHub, submit it here.

hooks-3-41.json


"142350": [
        { "class_name": "ahnf", "method_name": "m", "parameter_types": [], "actions": [
            { "name": "set_field_boolean_before_method", "field_name": "k.b", "value": true }
        ] },
        { "class_name": "dyk", "method_name": "f", "parameter_types": [], "actions": [
            { "name": "return_string", "value": "on" }
        ] },
        { "class_name": "aixs", "method_name": "d", "parameter_types": [ "atmi" ], "actions": [
            { "name": "return_boolean", "value": true }
        ] }
    ]

hooks-3.json


"142350": [
        { "class_name": "ahsi", "method_name": "m", "parameter_types": [], "actions": [
            { "name": "set_field_boolean_before_method", "field_name": "k.b", "value": true }
        ] },
        { "class_name": "dwu", "method_name": "f", "parameter_types": [], "actions": [
            { "name": "return_string", "value": "on" }
        ] },
        { "class_name": "ajcv", "method_name": "d", "parameter_types": [ "atro" ], "actions": [
            { "name": "return_boolean", "value": true }
        ] }
    ]

th3an7 commented 5 years ago

Thanks :D I've added those hooks - should work again