- Download the fastboot ROM suitable for your device from the MIUI site and extract the downloaded archive [edit: MIUI page is dead. Use Xiaomi Firmware Updater]
- Download and extract the Android SDK Platform Tools
- Make sure
adb
andfastboot
(components of platform-tools) are in your
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
package info.skyblond.steganography.fourier | |
import info.skyblond.steganography.add | |
import info.skyblond.steganography.div | |
import info.skyblond.steganography.plus | |
import info.skyblond.steganography.times | |
import org.apache.commons.math3.complex.Complex | |
import org.apache.commons.math3.primes.Primes | |
import org.apache.commons.math3.transform.DftNormalization | |
import org.apache.commons.math3.transform.FastFourierTransformer |
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
import java.math.BigDecimal | |
import kotlin.math.* | |
/** | |
* No need to apply transformations on non-Chinese coordinates. | |
* | |
* This is not follow the geo definition line. It just thinks a square. | |
* */ | |
fun isOutOfChina(lat: Double, lng: Double): Boolean { | |
if (lng < 72.004 || lng > 137.8347) { |
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
package info.skyblond.crypto | |
import org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey | |
import org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey | |
import org.bouncycastle.jce.ECNamedCurveTable | |
import org.bouncycastle.jce.provider.BouncyCastleProvider | |
import org.bouncycastle.jce.spec.ECPrivateKeySpec | |
import org.bouncycastle.jce.spec.ECPublicKeySpec | |
import java.math.BigInteger | |
import java.security.* |
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
{"sig":"a5546c17eb1826c90b49ca13d5d73a5ec5bd85ce788f8ee1d08d26e5b5a2c11e4da68577f74527b82fe7eced25180147331c52230de24427945fdd46ef2431f61","msghash":"b1506e74aef6ca9f56953e5d7dd652a749a5aab1af09cdc2db585b4b7adecf9e"} |