Skip to content

Instantly share code, notes, and snippets.

View flo-genymobile's full-sized avatar

Florent NOËL flo-genymobile

  • Genymobile
  • Paris
View GitHub Profile
@flo-genymobile
flo-genymobile / dumpRunningApk.sh
Created December 6, 2015 19:19
Shell script to dump current running apk to local directory
#!/bin/sh
# Simle shell script to dump the current running apk
# This require root adb access to the device
# Useful commands
# adb shell dumpsys activity recents
# adb shell dumpsys activity activities
# adb shell pm list package -f
@flo-genymobile
flo-genymobile / Multiple Git accounts
Last active August 29, 2015 14:05
How to deal wiht multiple Git accounts on the same machine
### deal with multiple Git accounts on one machine
1. generate ssh key for each account
$ ssh-keygen -t rsa -C "your_email@example.com"
2. add the keys to github
3. edit the ~/.ssh/config file
Host userNameA
Hostname github.com
User git
@flo-genymobile
flo-genymobile / Robolectric Tips And Tricks
Created August 27, 2014 21:44
Robolectric Tips And Tricks to add to android project
##### dependencies to add for robolectric + fest-android
--> in top-level build.gradle
dependencies {
...
classpath 'org.robolectric:robolectric-gradle-plugin:0.12.+'
}
--> in build.gradle