Skip to content

Instantly share code, notes, and snippets.

View nhoxbypass's full-sized avatar
🐧
I come from Earth

Tam H. Doan nhoxbypass

🐧
I come from Earth
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 2 columns, instead of 3. in line 2.
JIT, AOT
Dynamic translate part of bytecode to machine code and cache in memory when app run, Statically translate bytecode to machine code at installation time and store in storage
Small memory, One time event, code execute faster but need extra space and time
JVM DVM
Not free Free
Use .class bytecode Convert .class bytecode to .dex bytecode using dex compiler (dx tool)
Stack based Register based
language: android
jdk:
- oraclejdk8
android:
components:
- tools
- platform-tools
def build_param = "${build}"
if (build_param == "devCI") {
// Exclude all except mockDebug flavor
android.variantFilter { variant ->
if (variant.getFlavors().get(0).name != 'mock' || variant.buildType.name != 'debug') {
variant.setIgnore(true)
}
}
} else if (build_param == "releaseCI") {
// Exclude all except prodRelease flavor
android {
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro'
{
"project_info": {
"project_number": "",
"project_id": ""
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:123456789012:android:1234567890123456",
"android_client_info": {
@nhoxbypass
nhoxbypass / build.gradle
Last active August 3, 2019 11:57
Default build.gradle
android {
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled true
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules-debug.pro'
ADB
1- Go to your platform-tools folder in a command prompt
2- Enter the command adb devices to get the list of your devices
C:\Android\adt-bundle-windows-x86_64\sdk\platform-tools>adb devices
List of devices attached
emulator-xxxx device
3- Connect a shell to your device:
C:\Android\adt-bundle-windows-x86_64\sdk\platform-tools>adb -s emulator-xxxx shell
4a- You can bypass this step on rooted device
Network
- HTTPS vs HTTP
- HSTS
- HTTP/2
- Session vs Cookie
- SSL
- SSH
- Symmetric vs Asymmetric
- RSA, RC4, MD5
- AES, DES
namespace Picture_Viewer
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
// Cài đặt thuộc tính pictureBox
pictureBox1.ImageLocation = "http://1.bp.blogspot.com/-ZskeiTa6Rig/VZwjEuEQPqI/AAAAAAAAAM0/VK5Im7Cfu3s/s1600/cooltext125983511023412.png";