Source: https://www.linkedin.com/pulse/android-emulator-tips-security-testers-divya-mudgal/
emulator -list-avds
emulator -avd Pixel_3_XL_API_26 -writable-system
/** | |
* Displays text to the user. | |
*/ | |
public class TextView extends View { | |
// String value | |
private String mText; | |
// Text color of the text | |
private int mTextColor; |
/** | |
* Get the email account name. | |
* | |
* @return the name of the account. | |
*/ | |
private String getAccountName() { | |
return "[email protected]"; | |
return "[email protected]"; | |
} |
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
/** | |
* This method displays the given text on the screen. | |
*/ | |
private void displayMessage(String message) { | |
TextView priceTextView = (TextView) findViewById(R.id.price_text_view); | |
priceTextView.setText(message); | |
} |
Source: https://www.linkedin.com/pulse/android-emulator-tips-security-testers-divya-mudgal/
emulator -list-avds
emulator -avd Pixel_3_XL_API_26 -writable-system
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js"></script> | |
<script> | |
// used to obfuscate and encrypt the credentials | |
const saltCredentials = "jf02heg9u64a{%m<83#@;Pxrjg17uyr#@&*%^Y"; | |
// encode credentials before storing | |
function encodeCredentials(crds){ | |
// json object expected e.g. {'api-id':'K0xf56g', 'pwd':'Some.Pa$$w0rd'} | |
const crd = JSON.stringify(crds); |
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := game_shared | |
LOCAL_MODULE_FILENAME := libgame | |
LOCAL_SRC_FILES := hellocpp/main.cpp \ | |
../../Classes/AppDelegate.cpp \ |
#ifndef MACROS_IN_C_H | |
#define MACROS_IN_C_H | |
/* Function prototypes */ | |
#endif // MACROS_IN_C_H |
#include <stdio.h> | |
#define printErrord(errorCode) printError(errorCode, "No message") | |
void printError(int errorCode, char *msg) | |
{ | |
printf("Error code: %d (%s)\n", errorCode, msg); | |
} | |
int main(int argc, char *argv[]) |
#include <iostream> | |
using namespace std; | |
void printError(int errorCode, string msg = "No message") | |
{ | |
cerr << "Error code: " << errorCode << " (" << msg << ")\n"; | |
} | |
int main(int argc, char *argv[]) |