mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-28 18:15:48 +01:00
fix(YouTube - Check environment): Only use fields available since Android 8 (#3655)
This commit is contained in:
parent
5dffd3df02
commit
4413533065
@ -65,12 +65,8 @@ abstract class BaseCheckEnvironmentPatch(
|
||||
"PATCH_ID" to ID.encodedAndHashed,
|
||||
"PATCH_MANUFACTURER" to MANUFACTURER.encodedAndHashed,
|
||||
"PATCH_MODEL" to MODEL.encodedAndHashed,
|
||||
"PATCH_ODM_SKU" to ODM_SKU.encodedAndHashed,
|
||||
"PATCH_PRODUCT" to PRODUCT.encodedAndHashed,
|
||||
"PATCH_RADIO" to RADIO.encodedAndHashed,
|
||||
"PATCH_SKU" to SKU.encodedAndHashed,
|
||||
"PATCH_SOC_MANUFACTURER" to SOC_MANUFACTURER.encodedAndHashed,
|
||||
"PATCH_SOC_MODEL" to SOC_MODEL.encodedAndHashed,
|
||||
"PATCH_TAGS" to TAGS.encodedAndHashed,
|
||||
"PATCH_TYPE" to TYPE.encodedAndHashed,
|
||||
"PATCH_USER" to USER.encodedAndHashed,
|
||||
@ -98,8 +94,10 @@ abstract class BaseCheckEnvironmentPatch(
|
||||
private val String.encodedAndHashed
|
||||
get() = MutableStringEncodedValue(
|
||||
ImmutableStringEncodedValue(
|
||||
Base64.encode(MessageDigest.getInstance("SHA-1")
|
||||
.digest(this.toByteArray(StandardCharsets.UTF_8))),
|
||||
Base64.encode(
|
||||
MessageDigest.getInstance("SHA-1")
|
||||
.digest(this.toByteArray(StandardCharsets.UTF_8)),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -14,12 +14,8 @@ public class Build {
|
||||
public static final String ID = null;
|
||||
public static final String MANUFACTURER = null;
|
||||
public static final String MODEL = null;
|
||||
public static final String ODM_SKU = null;
|
||||
public static final String PRODUCT = null;
|
||||
public static final String RADIO = null;
|
||||
public static final String SKU = null;
|
||||
public static final String SOC_MANUFACTURER = null;
|
||||
public static final String SOC_MODEL = null;
|
||||
public static final String TAGS = null;
|
||||
public static final String TYPE = null;
|
||||
public static final String USER = null;
|
||||
|
Loading…
Reference in New Issue
Block a user