To delete ads, just delete those activities.
That is, these lines
If you delete it, there will be no ads. But it will leave a gap! Then to remove the blank space, change the layout_videos_item_ad.xml layout file under the \res\layout directory
xmlns:android="/apk/res/android" />Just change the height to 0.0dip . The ads have been removed. But after removing it, I found that it would crash after running for a while. After analyzing the signature, there is no problem. It should be a problem with network verification. This is a bit complicated. You can use a hook to pass the signature verification and it will not crash. Or, keep the original signature and try to crack it with a lucky cracker.