forked from ReVanced/revanced-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpoofSimPatch.java
31 lines (28 loc) 路 836 Bytes
/
SpoofSimPatch.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package app.revanced.tiktok.spoof.sim;
import app.revanced.tiktok.settings.SettingsEnum;
public class SpoofSimPatch {
public static boolean isEnable() {
return SettingsEnum.TIK_SIMSPOOF.getBoolean();
}
public static String getCountryIso(String value) {
if (isEnable()) {
return SettingsEnum.TIK_SIMSPOOF_ISO.getString();
} else {
return value;
}
}
public static String getOperator(String value) {
if (isEnable()) {
return SettingsEnum.TIK_SIMSPOOF_MCCMNC.getString();
} else {
return value;
}
}
public static String getOperatorName(String value) {
if (isEnable()) {
return SettingsEnum.TIK_SIMSPOOF_OP_NAME.getString();
} else {
return value;
}
}
}