Skip to content

Instantly share code, notes, and snippets.

@weslley39
Last active June 1, 2019 16:09
Show Gist options
  • Save weslley39/b828854c8bf26109b30216ba6a5ab154 to your computer and use it in GitHub Desktop.
Save weslley39/b828854c8bf26109b30216ba6a5ab154 to your computer and use it in GitHub Desktop.
export PATH=/Users/weslleyneri/Library/Android/sdk/platform-tools:/Users/weslleyneri/Library/Android/sdk/tools:$PATH
adb reverse tcp:8081 tcp:8081 - foward port
adb shell input keyevent 82 - run command line tools
adb shell settings put system screen_off_timeout 60000 - always awake
~/Library/Android/sdk/emulator/emulator -avd Pixel_2_API_27 -dns-server 8.8.8.8,8.8.4.4 - start avd on mac
"/emulator -list-avds" - list emulators
./gradlew installDebug - install app from comand liine
adb logcat *:S ReactNative:V ReactNativeJS:V - see console.logs
adb push /Users/weslleyneri/apps/rook/android/app/build/outputs/apk/app-dev19-armeabi-v7a-debug.apk /data/local/tmp/net.lua.reseller
adb shell pm install -t -r "/data/local/tmp/net.lua.reseller"
adb reverse tcp:19000 tcp:19000 && adb reverse tcp:19001 tcp:19001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment