forked from ReVanced/revanced-integrations
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tiktok):
sim-spoof
patch (ReVanced#219)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
- Loading branch information
Showing
4 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
app/src/main/java/app/revanced/tiktok/spoof/sim/SpoofSimPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; | ||
} | ||
} | ||
} |