This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### dependencies to add for robolectric + fest-android | |
--> in top-level build.gradle | |
dependencies { | |
... | |
classpath 'org.robolectric:robolectric-gradle-plugin:0.12.+' | |
} | |
--> in build.gradle |