$ keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "C=US, O=Android, CN=Android Debug"
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
// $ frida -l antiroot.js -U -f com.example.app --no-pause | |
// CHANGELOG by Pichaya Morimoto ([email protected]): | |
// - I added extra whitelisted items to deal with the latest versions | |
// of RootBeer/Cordova iRoot as of August 6, 2019 | |
// - The original one just fucked up (kill itself) if Magisk is installed lol | |
// Credit & Originally written by: https://codeshare.frida.re/@dzonerzy/fridantiroot/ | |
// If this isn't working in the future, check console logs, rootbeer src, or libtool-checker.so | |
Java.perform(function() { | |
var RootPackages = ["com.noshufou.android.su", "com.noshufou.android.su.elite", "eu.chainfire.supersu", |
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
@AndroidEntryPoint | |
class LoginFragment : Fragment() { | |
private val viewModel: LoginViewModel by viewModels() | |
private val mainViewModel: MainViewModel by activityViewModels() | |
override fun onResume() { | |
super.onResume() | |
Log.d(LoginFragment::class.java.simpleName, "${activityVM.testState}") | |
} |
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
inline fun <reified T> T.logDebug(messages: String) { | |
Log.d(T::class.java.simpleName, messages) | |
} | |
inline fun <reified T> T.logError(messages: String) { | |
Log.e(T::class.java.simpleName, messages) | |
} |
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 android.content.Context; | |
import android.util.Log; | |
import android.widget.Toast; | |
/** | |
* Created by rhony on 18/04/16. | |
*/ | |
public class Logger { | |
public static void log_i(String className, String message) { | |
Log.i("TAG", " class : "+className+" \nMessage : "+message); |
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
private void animateFadeInOut() { | |
/* | |
bgImageView.setImageBitmap( | |
BitmapFactory.decodeResource(this.getResources(), R.drawable.bgimage) | |
); | |
*/ | |
bgImageView.setColorFilter(Color.argb(255, 255, 255, 255)); | |
bgImageView.setScaleType(ImageView.ScaleType.CENTER); | |
bgImageView.setAlpha(0.7f); |
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 com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException; | |
import com.sun.org.apache.xml.internal.security.utils.Base64; | |
import java.security.InvalidKeyException; | |
import java.security.KeyFactory; | |
import java.security.KeyPair; | |
import java.security.KeyPairGenerator; | |
import java.security.NoSuchAlgorithmException; | |
import java.security.PrivateKey; | |
import java.security.PublicKey; | |
import java.security.SecureRandom; |