프로젝트를 하면서 기존 release apk의 정보를 알고 싶을 때가 생깁니다.
간단하게 구글콘솔에 들어가서 확인이 가능하지만,
프로젝트 구글콘솔 담당자가 누구인지도 모르면 답답합니다.
기존 소스에는 versionCode 10인데, 현재 release는 변경되어 있을 확률이 큽니다.
기존 소스의 apk를 받아서 아래와 같이 명령어를 치면 해당 apk의 결과가 나옵니다. 짜짠~~
1.명령어
D:\100.app-env\03.android\sdk\build-tools\34.0.0-rc2\appt dump badging sample.apk
2.결과
package: name='kr.co.goms.exam'
versionCode='11' versionName='1.0.15'
platformBuildVersionName='12'
platformBuildVersionCode='31'
compileSdkVersion='31'
compileSdkVersionCodename='12'
sdkVersion:'24'
targetSdkVersion:'31'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
uses-permission: name='android.permission.VIBRATE'
uses-permission: name='android.permission.READ_PHONE_STATE'
uses-permission: name='android.permission.READ_PHONE_NUMBERS'
uses-permission: name='android.permission.SYSTEM_ALERT_WINDOW'
uses-permission: name='android.permission.ACTION_MANAGE_OVERLAY_PERMISSION'
uses-permission: name='android.permission.CALL_PHONE'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.CHANGE_WIFI_STATE'
uses-permission: name='android.permission.WRITE_EXTERNAL_STORAGE'
uses-permission: name='android.permission.READ_EXTERNAL_STORAGE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.WAKE_LOCK'
uses-permission: name='android.permission.KILL_BACKGROUND_PROCESSES'
uses-permission: name='android.permission.GET_TASKS'
uses-permission: name='android.permission.RESTART_PACKAGES'
uses-permission: name='com.google.android.gms.permission.AD_ID'
uses-permission: name='android.permission.RECEIVE_BOOT_COMPLETED'
uses-permission: name='android.permission.USE_BIOMETRIC'
uses-permission: name='android.permission.USE_FULL_SCREEN_INTENT'
uses-permission: name='android.permission.FOREGROUND_SERVICE'
uses-permission: name='android.permission.USE_FINGERPRINT'
uses-permission: name='com.google.android.c2dm.permission.RECEIVE'
uses-permission: name='com.google.android.finsky.permission.BIND_GET_INSTALL_REFERRER_SERVICE'
uses-permission: name='android.permission.POST_NOTIFICATIONS'
application-icon-120:'res/ic_launcher.png'
application-icon-160:'res/ic_launcher.png'
application-icon-240:'res/ic_launcher.png'
application-icon-320:'res/ic_launcher.png'
application-icon-480:'res/ic_launcher.png'
application-icon-640:'res/ic_launcher.png'
application-icon-65534:'res/ic_launcher.png'
application: label='동력수상레저기구 취득하기' icon='res/ic_launcher.png'
uses-library-not-required:'org.apache.http.legacy'
launchable-activity: name='com.hanacapital.mct.phone.ui.IntroActivity' label='' icon=''
uses-library-not-required:'androidx.camera.extensions.impl'
uses-permission: name='android.permission.QUERY_ALL_PACKAGES'
feature-group: label=''
uses-feature: name='android.hardware.camera'
uses-feature-not-required: name='android.hardware.camera.autofocus'
uses-feature-not-required: name='android.hardware.camera.flash'
uses-feature-not-required: name='android.hardware.camera.front'
uses-feature-not-required: name='android.hardware.location'
uses-feature-not-required: name='android.hardware.location.gps'
uses-feature-not-required: name='android.hardware.location.network'
3.여담
요즘 유행하는 chatGPT chat.openai.com 에서 아래와 같이 검색해서 얻은 결과입니다.
검색 : apktool apk file version code
감사합니다.
오늘도 즐거운 코딩되세요.
'Android Tip' 카테고리의 다른 글
XML ImageView에 대한 ContentDescription의 고찰 (0) | 2020.05.07 |
---|---|
안드로이드 8.0에서의 android.os.FileUriExposedException 버그 해결 (1) | 2018.05.10 |
ANR 및 비정상 종료 중 BadTokenException 해결책 (0) | 2018.01.04 |
GlideBitmapPool 적용 (Bitmap Out of Memory) (0) | 2017.09.27 |
애니메이션 처리 후 Activity 이동 (0) | 2017.08.25 |