Skip to content

Instantly share code, notes, and snippets.

class MainActivity : AppCompatActivity() {
companion object {
private const val SECRET_TOKEN = "jb&1a=U51-ng2="
}
private val superService by lazy {
SuperService()
}
.method private final connectToWebservice()V
.locals 2
.line 38
invoke-direct {p0}, Ltech/skyrise/adriandefus/testsecurityapp/MainActivity;->getSuperService()Ltech/skyrise/adriandefus/testsecurityapp/SuperService;
move-result-object v0
const-string v1, "jb&1a=U51-ng2="
SECRET_TOKEN = "jb&1a=U51-ng2="
android {
(...)
def keystorePropertiesFile = rootProject.file("keystore.properties")
def keyStoreProperties = new Properties()
keyStoreProperties.load(new FileInputStream(keystorePropertiesFile))
defaultConfig {
private fun connectToWebservice() {
superService.connect(BuildConfig.SECRET_TOKEN)
}
.method private final connectToWebservice()V
.locals 2
.line 38
invoke-direct {p0}, Ltech/skyrise/adriandefus/testsecurityapp/MainActivity;->getSuperService()Ltech/skyrise/adriandefus/testsecurityapp/SuperService;
move-result-object v0
const-string v1, "jb&1a=U51-ng2="
class MainActivity : AppCompatActivity() {
companion object {
init {
System.loadLibrary("native-lib")
}
}
private external fun secretKey(): String
extern "C" JNIEXPORT jstring JNICALL
Java_tech_skyrise_adriandefus_testsecurityapp_MainActivity_secretKey(
JNIEnv* env,
jobject /* this */) {
std::string appKey = "jb&1a=U51-ng2=";
return env->NewStringUTF(appKey.c_str());
}
.method private final connectToWebservice()V
.locals 2
.line 42
invoke-direct {p0}, Ltech/skyrise/adriandefus/testsecurityapp/MainActivity;->getSuperService()Ltech/skyrise/adriandefus/testsecurityapp/SuperService;
move-result-object v0
invoke-direct {p0}, Ltech/skyrise/adriandefus/testsecurityapp/MainActivity;->secretKey()Ljava/lang/String;
.text:00030FF0 public Java_tech_skyrise_adriandefus_testsecurityapp_MainActivity_secretKey
.text:00030FF0 Java_tech_skyrise_adriandefus_testsecurityapp_MainActivity_secretKey proc near
.text:00030FF0 ; DATA XREF: LOAD:00000230↑o
.text:00030FF0
.text:00030FF0 arg_0 = dword ptr 8
.text:00030FF0
.text:00030FF0 push ebp
.text:00030FF1 mov ebp, esp
.text:00030FF3 push ebx
.text:00030FF4 push edi