feat(Google Photos): Add Enable DCIM folders backup control
patch (#5138)
This commit is contained in:
@ -192,6 +192,10 @@ public final class app/revanced/patches/googlenews/misc/gms/GmsCoreSupportPatchK
|
|||||||
public static final fun getGmsCoreSupportPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getGmsCoreSupportPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final class app/revanced/patches/googlephotos/misc/backup/EnableDCIMFoldersBackupControlPatchKt {
|
||||||
|
public static final fun getEnableDCIMFoldersBackupControlPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
|
}
|
||||||
|
|
||||||
public final class app/revanced/patches/googlephotos/misc/extension/ExtensionPatchKt {
|
public final class app/revanced/patches/googlephotos/misc/extension/ExtensionPatchKt {
|
||||||
public static final fun getExtensionPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
public static final fun getExtensionPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
package app.revanced.patches.googlephotos.misc.backup
|
||||||
|
|
||||||
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
import app.revanced.util.returnEarly
|
||||||
|
|
||||||
|
@Suppress("unused")
|
||||||
|
val enableDCIMFoldersBackupControlPatch = bytecodePatch(
|
||||||
|
name = "Enable DCIM folders backup control",
|
||||||
|
description = "Disables always on backup for the Camera and other DCIM folders, allowing you to control backup " +
|
||||||
|
"for each folder individually. This will make the app default to having no folders backed up.",
|
||||||
|
use = false,
|
||||||
|
) {
|
||||||
|
compatibleWith("com.google.android.apps.photos")
|
||||||
|
|
||||||
|
execute {
|
||||||
|
isDCIMFolderBackupControlDisabled.method.returnEarly(false)
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
package app.revanced.patches.googlephotos.misc.backup
|
||||||
|
|
||||||
|
import app.revanced.patcher.fingerprint
|
||||||
|
|
||||||
|
internal val isDCIMFolderBackupControlDisabled = fingerprint {
|
||||||
|
returns("Z")
|
||||||
|
strings("/dcim", "/mars_files/")
|
||||||
|
}
|
Reference in New Issue
Block a user