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
package com.example.android.menu; | |
import android.os.Bundle; | |
import android.support.v7.app.AppCompatActivity; | |
import android.view.View; | |
public class MainActivity extends AppCompatActivity { | |
@Override |
/** | |
* Displays an image, such as an icon. | |
*/ | |
public class ImageView extends View { | |
// Resource ID for the source image that should be displayed in the ImageView. | |
private int mImageId; | |
// Context of the app | |
private Context mContext; |
/** | |
* 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 |