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
class MainActivity : AppCompatActivity() { | |
companion object { | |
private const val SECRET_TOKEN = "jb&1a=U51-ng2=" | |
} | |
private val superService by lazy { | |
SuperService() | |
} |
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
.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=" |
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
SECRET_TOKEN = "jb&1a=U51-ng2=" |
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
android { | |
(...) | |
def keystorePropertiesFile = rootProject.file("keystore.properties") | |
def keyStoreProperties = new Properties() | |
keyStoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
defaultConfig { | |
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 fun connectToWebservice() { | |
superService.connect(BuildConfig.SECRET_TOKEN) | |
} |
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
.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=" |
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
class MainActivity : AppCompatActivity() { | |
companion object { | |
init { | |
System.loadLibrary("native-lib") | |
} | |
} | |
private external fun secretKey(): String |
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
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()); | |
} |
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
.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; |
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
.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 |
OlderNewer