FIX: apk install works correctly on Linux now.

FEAT: minor code refactoring for adb.r