ADB로 APK 꺼내기

Published: by

패키지 리스트 출력

adb shell pm list packages

package:com.android.cts.priv.ctsshim
package:com.google.android.youtube
package:com.android.internal.display.cutout.emulation.corner
package:com.google.android.ext.services
...
..
.

APK 경로 출력

adb shell pm list packages -f

package:/system/priv-app/CtsShimPrivPrebuilt/CtsShimPrivPrebuilt.apk=com.android.cts.priv.ctsshim
package:/data/app/com.google.android.youtube-YS_XxihcEwIHaldPXW07LA==/base.apk=com.google.android.youtube
package:/vendor/overlay/DisplayCutoutEmulationCorner/DisplayCutoutEmulationCornerOverlay.apk=com.android.internal.display.cutout.emulation.corner
...
..
.

유저가 설치한 APK 출력

adb shell pm list packages -f -3  // -3은 서드파티를 의미

package:/data/app/io.github.ovso.shortcuts--X0Tga1i9D14TWyOHaFmhw==/base.apk=io.github.ovso.shortcuts
package:/data/app/io.github.ovso.righttoknow-C7L4kzU5cf2vU-wnOw1stQ==/base.apk=io.github.ovso.righttoknow
package:/data/app/com.mycelebs.excitingbooking-IXPgUQHfvdf3PfjkO0H1mw==/base.apk=com.mycelebs.excitingbooking
...
..
.

APK 가져오기(꺼내기)

adb pull /data/app/io.github.ovso.shortcuts--X0Tga1i9D14TWyOHaFmhw==/base.apk

adb pull 이후 .apk로 끝나는 경로까지만 입력한다.

저장되는 곳은, 명령어를 입력한 위치다.