inotia00/ReVanced_Extended

question: How do I filter components after I capture the debug logs?

Closed this issue · 1 comments

Application

YouTube

Question description

I am able to capture debug logs in YouTube and YT Music, but I struggle with interpreting them and using them to create custom filters.

For example, someone asked me if they can hide video Premieres, such as this one. (I know that you can add "Premieres" to the keyword filter, but for the sake of this example I want to see how to do it through the custom filter).

I started capturing debug logs and searched for the video title.

This is what I captured:
search_of_premiere.txt

I then filtered it for "Premieres", since this seems to be a BufferString associated with the Premier:
filtered_for_premieres.txt

I thought I would be able to filter video_lockup_with_attachment$Premieres or video_lockup$Premieres or thumbnail$Premieres but none of these have the desired effect.

Screenshot_20240902_212841_Logcat Reader

SmartSelect_20240902_211408_YT Extended

What am I doing wrong, and how would you approach such a task?

Acknowledgements

  • This issue is not a duplicate of an existing question.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
  • I have written the title and contents in English.

As far as I know, some strings contained in byte buffers need special decoding to be filtered

Customfilter can also filter some strings contained in byte buffers, but it cannot filter all strings contained in byte buffers
(This is why keyword filters were released)