mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-20 01:23:57 +00:00
Compare commits
7 Commits
v2.176.2-d
...
v2.177.0-d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ee28e0081 | ||
|
|
fa49810907 | ||
|
|
2814328bfd | ||
|
|
055bc2e072 | ||
|
|
7b01617cd4 | ||
|
|
3cec0b59c1 | ||
|
|
228e8b7d48 |
21
CHANGELOG.md
21
CHANGELOG.md
@@ -1,3 +1,24 @@
|
|||||||
|
# [2.177.0-dev.2](https://github.com/revanced/revanced-patches/compare/v2.177.0-dev.1...v2.177.0-dev.2) (2023-06-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **reddit/hide-ads:** search for correct reference class descriptor ([ad2a858](https://github.com/revanced/revanced-patches/commit/ad2a8585b2a5ecbc5eb92dd23b0ab124aa8a2541))
|
||||||
|
|
||||||
|
# [2.177.0-dev.1](https://github.com/revanced/revanced-patches/compare/v2.176.2-dev.2...v2.177.0-dev.1) (2023-06-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **syncforreddit/change-oauth-client-id:** support pro version ([d34288b](https://github.com/revanced/revanced-patches/commit/d34288b6e8c7f5bb944622a3c741fcc693868033))
|
||||||
|
|
||||||
|
## [2.176.2-dev.2](https://github.com/revanced/revanced-patches/compare/v2.176.2-dev.1...v2.176.2-dev.2) (2023-06-12)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **syncforreddit/change-oauth-client-id:** trim whitespace from OAuth string ([#2402](https://github.com/revanced/revanced-patches/issues/2402)) ([2afea71](https://github.com/revanced/revanced-patches/commit/2afea71557cfe4eb64d7c7ebf5a07dfd24a11824))
|
||||||
|
|
||||||
## [2.176.2-dev.1](https://github.com/revanced/revanced-patches/compare/v2.176.1...v2.176.2-dev.1) (2023-06-12)
|
## [2.176.2-dev.1](https://github.com/revanced/revanced-patches/compare/v2.176.1...v2.176.2-dev.1) (2023-06-12)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -205,6 +205,14 @@ The official ReVanced Patches.
|
|||||||
| `spoof-signature` | Spoofs the signature of the app. | all |
|
| `spoof-signature` | Spoofs the signature of the app. | all |
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
### [📦 `com.laurencedawson.reddit_sync.pro`](https://play.google.com/store/apps/details?id=com.laurencedawson.reddit_sync.pro)
|
||||||
|
<details>
|
||||||
|
|
||||||
|
| 💊 Patch | 📜 Description | 🏹 Target Version |
|
||||||
|
|:--------:|:--------------:|:-----------------:|
|
||||||
|
| `change-oauth-client-id` | Changes the OAuth client ID. | all |
|
||||||
|
</details>
|
||||||
|
|
||||||
### [📦 `com.myprog.hexedit`](https://play.google.com/store/apps/details?id=com.myprog.hexedit)
|
### [📦 `com.myprog.hexedit`](https://play.google.com/store/apps/details?id=com.myprog.hexedit)
|
||||||
<details>
|
<details>
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,7 @@ package android.os;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
public final class Environment {
|
public final class Environment {
|
||||||
public static String DIRECTORY_DOWNLOADS = "Download";
|
public static File getExternalStorageDirectory() {
|
||||||
|
|
||||||
public static File getExternalStoragePublicDirectory(final String type) {
|
|
||||||
throw new UnsupportedOperationException("Stub");
|
throw new UnsupportedOperationException("Stub");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 2.176.2-dev.1
|
version = 2.177.0-dev.2
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -73,7 +73,7 @@ class HideAdsPatch : BytecodePatch(
|
|||||||
|
|
||||||
val reference = (it as ReferenceInstruction).reference as MethodReference
|
val reference = (it as ReferenceInstruction).reference as MethodReference
|
||||||
|
|
||||||
reference.name == "add" && reference.definingClass == "Lava/util/ArrayList;"
|
reference.name == "add" && reference.definingClass == "Ljava/util/ArrayList;"
|
||||||
}
|
}
|
||||||
|
|
||||||
result.mutableMethod.removeInstruction(index)
|
result.mutableMethod.removeInstruction(index)
|
||||||
|
|||||||
@@ -20,7 +20,12 @@ import java.util.*
|
|||||||
@Patch
|
@Patch
|
||||||
@Name("change-oauth-client-id")
|
@Name("change-oauth-client-id")
|
||||||
@Description("Changes the OAuth client ID.")
|
@Description("Changes the OAuth client ID.")
|
||||||
@Compatibility([Package("com.laurencedawson.reddit_sync")])
|
@Compatibility(
|
||||||
|
[
|
||||||
|
Package("com.laurencedawson.reddit_sync"),
|
||||||
|
Package("com.laurencedawson.reddit_sync.pro")
|
||||||
|
]
|
||||||
|
)
|
||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
class ChangeOAuthClientIdPatch : BytecodePatch(
|
class ChangeOAuthClientIdPatch : BytecodePatch(
|
||||||
listOf(GetAuthorizationStringFingerprint)
|
listOf(GetAuthorizationStringFingerprint)
|
||||||
@@ -34,10 +39,7 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
|
|||||||
return PatchResultError("No client ID provided")
|
return PatchResultError("No client ID provided")
|
||||||
}
|
}
|
||||||
|
|
||||||
File(
|
File(Environment.getExternalStorageDirectory(), "reddit_client_id_revanced.txt").also {
|
||||||
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),
|
|
||||||
"reddit_client_id_revanced.txt"
|
|
||||||
).also {
|
|
||||||
if (it.exists()) return@also
|
if (it.exists()) return@also
|
||||||
|
|
||||||
val error = """
|
val error = """
|
||||||
@@ -50,7 +52,7 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
|
|||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
|
|
||||||
return PatchResultError(error)
|
return PatchResultError(error)
|
||||||
}.let { clientId = it.readText() }
|
}.let { clientId = it.readText().trim() }
|
||||||
}
|
}
|
||||||
|
|
||||||
GetAuthorizationStringFingerprint.result?.also { result ->
|
GetAuthorizationStringFingerprint.result?.also { result ->
|
||||||
@@ -96,4 +98,4 @@ class ChangeOAuthClientIdPatch : BytecodePatch(
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user