revanced-patches-template
revanced-patches-template copied to clipboard
feat: shorts playback disable at startup
Type
Cosmetic
Issue
When you close YouTube app during shorts playing, the app will automatically restore shorts playback after the next app opening.
Feature
This patch disable shorts-back feature, making sure that the shorts button on the quick menu of device home screen continues to works normally.
Motivation
https://github.com/orgs/revanced/discussions/200
Additional context
App version: 17.32.35 --->
Put the following code:
if-nez p2, :cond_appstartupshorts
const/4 v0, 0x0
const/4 p2, 0x1
:cond_appstartupshorts
inside kza.smali, after the following stock code:
const-string p2, "com.google.android.youtube.action.open.shorts"
.line 10
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v1
invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2