Pull docker image with android sdk
% docker pull thyrlian/android-sdk
Launch container with apk file mount to /app.apk
path and bash
interactive console
% docker run --rm -it -v $HOME/Downloads/some-android-app.apk:/app.apk thyrlian/android-sdk bash
Before use apkanalyzer
you must install necessary build tools
# sdkmanager --install 'build-tools;29.0.2'
Check debuggable mode
# apkanalyzer manifest debuggable /app.apk
(output)
true | false
Get permissions
# apkanalyzer manifest permissions /app.apk
(output)
android.permission.FLASHLIGHT
android.permission.RECORD_AUDIO
android.permission.READ_PRIVILEGED_PHONE_STATE
android.permission.WRITE_EXTERNAL_STORAGE
android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION
android.permission.INTERNET
android.permission.ACCESS_NETWORK_STATE
android.permission.CHANGE_NETWORK_STATE
android.permission.ACCESS_WIFI_STATE
android.permission.CAMERA
android.permission.MODIFY_AUDIO_SETTINGS
android.permission.READ_EXTERNAL_STORAGE
android.permission.READ_PHONE_STATE
More info at https://developer.android.com/studio/command-line/apkanalyzer
Top comments (0)