What happened last week: 04

Android Studio

Make your logcat more beautiful by changing settings.

Perfect explanation for git fast forward. Original link


A tip to reveal masked passwords in the browsers.

Android Tools

You can get the required permission for the apk with aapt. You can find “aapt” under androidsdk/build-tools/<versions>/aap. I had an issue to execute the command, therefore I copied “aapt” to platform-tools and it worked!

$ aapt d permissions path/to/your.apk

Get apk method count

$ cat classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'

Get minSdkVersion and targetSdkVersion from apk. Version number will be displayed in a text as hex, therefore you need to manipulate the text and convert it to decimal

$ aapt list -a app-release.apk | grep "minSdkVersion"
//output  A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10


  • Manipulating html content with python is super easy. You can use BeautifulSoup
  • You can use pylint for static analyzing the code. Super awesome.
$ pip install pylint
$ pylint your_python_file.py


  • Use “continue” in order to continue tasks after a failure task.
$ ./gradlew failTask nextTask --continue


Use ignore annotation to ignore unit tests instead of ugly comment out

@ Ignore("I can't solve this test")
@ Test public void mytest(){}

Great talk about how to make acceptance/functional tests easier and more readable. Testing Robots(Page object concept)


How to get the current branch name.

$ git rev-parse --short HEAD

Use aliases for git

$ git config --global alias.lol "log --oneline --graph --decorate"
$ git config --global alias.lo "log --oneline --decorate"
$ git config --global alias.l "log --oneline"
$ git config --global alias.st "status"
$ git lol
$ git lo
$ git l
$ git st
Like what you read? Give Orhan Obut a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.