@@ -14,13 +14,14 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
1414import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
1515import com.android.tools.smali.dexlib2.iface.reference.FieldReference
1616
17+ @Deprecated(" Patch is obsolete and the hooked code is no longer present in 19.09+" )
1718@Patch(
18- name = " HDR auto brightness" ,
1919 description = " Adds an option to make the brightness of HDR videos follow the system default." ,
2020 dependencies = [IntegrationsPatch ::class , SettingsPatch ::class , AddResourcesPatch ::class ],
2121 compatiblePackages = [
2222 CompatiblePackage (
23- " com.google.android.youtube" , [
23+ " com.google.android.youtube" ,
24+ [
2425 " 18.32.39" ,
2526 " 18.37.36" ,
2627 " 18.38.44" ,
@@ -33,20 +34,20 @@ import com.android.tools.smali.dexlib2.iface.reference.FieldReference
3334 " 19.02.39" ,
3435 " 19.03.35" ,
3536 " 19.03.36" ,
36- " 19.04.37"
37- ]
38- )
39- ]
37+ " 19.04.37" ,
38+ ],
39+ ),
40+ ],
4041)
4142@Suppress(" unused" )
4243object HDRBrightnessPatch : BytecodePatch(
43- setOf(HDRBrightnessFingerprint )
44+ setOf(HDRBrightnessFingerprint ),
4445) {
4546 override fun execute (context : BytecodeContext ) {
4647 AddResourcesPatch (this ::class )
4748
4849 SettingsPatch .PreferenceScreen .VIDEO .addPreferences(
49- SwitchPreference (" revanced_hdr_auto_brightness" )
50+ SwitchPreference (" revanced_hdr_auto_brightness" ),
5051 )
5152
5253 val method = HDRBrightnessFingerprint .result!! .mutableMethod
@@ -64,7 +65,7 @@ object HDRBrightnessPatch : BytecodePatch(
6465 """
6566 invoke-static {v$register }, Lapp/revanced/integrations/youtube/patches/HDRAutoBrightnessPatch;->getHDRBrightness(F)F
6667 move-result v$register
67- """
68+ """ ,
6869 )
6970 }
7071 }
0 commit comments